aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorFrederic Lepied <flepied@mandriva.com>2005-09-10 05:26:58 +0000
committerFrederic Lepied <flepied@mandriva.com>2005-09-10 05:26:58 +0000
commite284a43dfd65c94c88eebaf1883f687ca6b4b4ee (patch)
treed48e1ccbc3f1a22ecfeaebe8f78f059e82d50864 /Makefile
parentc4c1832356198b5098759b9f94dc2eca6cbdc685 (diff)
downloadrpm-helper-e284a43dfd65c94c88eebaf1883f687ca6b4b4ee.tar
rpm-helper-e284a43dfd65c94c88eebaf1883f687ca6b4b4ee.tar.gz
rpm-helper-e284a43dfd65c94c88eebaf1883f687ca6b4b4ee.tar.bz2
rpm-helper-e284a43dfd65c94c88eebaf1883f687ca6b4b4ee.tar.xz
rpm-helper-e284a43dfd65c94c88eebaf1883f687ca6b4b4ee.zip
add an RPMOPT to be able to pass args to rpm easily.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 5 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 0dd5982..903d0c3 100644
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,5 @@
#############################################################################
+# Project : Mandriva Linux
# File : Makefile
# Package : rpm-helper
# Author : Frederic Lepied
@@ -24,6 +25,8 @@ RPMACROSDIR=/etc/rpm/macros.d
MACROFILEIN = $(PACKAGE).macros.in
MACROFILE = $(MACROFILEIN:.in=)
+RPMOPT = --clean --rmsource --rmspec
+
all:
@echo "done"
@@ -63,10 +66,10 @@ tar:
rm -rf $(PACKAGE)-$(VERSION)
buildrpm:
- rpm -ta $(PACKAGE)-$(VERSION).tar.bz2
+ rpm -ta $(RPMOPT) $(PACKAGE)-$(VERSION).tar.bz2
buildsrpm:
- rpm -ts $(PACKAGE)-$(VERSION).tar.bz2
+ rpm -ts $(RPMOPT) $(PACKAGE)-$(VERSION).tar.bz2
# rules to build a distributable rpm