summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2010-11-11 19:54:02 +0100
committerRemi Collet <fedora@famillecollet.com>2010-11-11 19:54:02 +0100
commit3cc5e4e33d517852f9faed9266a6b410460b703c (patch)
treeeb0647a9884e62829ba1c0302f19d97c0fd58dc1 /Makefile
parent35ff116efe9aa5bc936d383f8270a9d7da8f50d7 (diff)
update to oracle-instantclient 11.2.0.2.0
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile35
1 files changed, 35 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..62912c6
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,35 @@
+SRCDIR := $(shell pwd)
+NAME := oracle-instantclient-11.2
+
+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
+