summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2021-02-08 16:08:10 +0100
committerRemi Collet <remi@remirepo.net>2021-02-08 16:08:10 +0100
commit4c49ec1cbcbbcc97b427d118b04deeacce628739 (patch)
tree2e2f82a885e9a8079fa73317dac3fa2233f747f8 /Makefile
parentc57c7e0af89144a939657a354cc6aa6133709d3c (diff)
single spec
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile35
1 files changed, 2 insertions, 33 deletions
diff --git a/Makefile b/Makefile
index 5613163..1e65467 100644
--- a/Makefile
+++ b/Makefile
@@ -1,35 +1,4 @@
SRCDIR := $(shell pwd)
-NAME := oracle-instantclient-19
-
-RPMDEFINES := --define "_sourcedir $(SRCDIR)" \
- --define "_specdir $(SRCDIR)" \
- --define "_srcrpmdir $(SRCDIR)" \
- --define "_rpmdir $(SRCDIR)"
-
-SRCDEFINES := --define "dist .remi" \
- --define "_source_filedigest_algorithm 1" \
- --define "_binary_filedigest_algorithm 1"
-
-
-arch:
- mv *.src.rpm /data/rpms/SRPMS.remi/ && echo done || echo Nothing to do
-
-clean:
- @echo Clean $(NAME) in $(SRCDIR)
- @rm -rfv *~ noarch x86_64 *.src.rpm
-
-srpm64:
- rpmbuild $(RPMDEFINES) $(SRCDEFINES) -bs $(NAME)-x86_64.spec
-
-build64:
- rpmbuild $(RPMDEFINES) -bb $(NAME)-x86_64.spec
-
-srpm32:
- rpmbuild $(RPMDEFINES) $(SRCDEFINES) -bs $(NAME)-i386.spec
-
-build32:
- rpmbuild $(RPMDEFINES) -bb $(NAME)-i386.spec
-
-bp:
- rpmbuild $(RPMDEFINES) -bp $(NAME).spec
+NAME := $(shell basename $(SRCDIR))
+include ../common/Makefile