diff options
author | Frederic Lepied <flepied@mandriva.com> | 2005-09-10 05:26:58 +0000 |
---|---|---|
committer | Frederic Lepied <flepied@mandriva.com> | 2005-09-10 05:26:58 +0000 |
commit | e284a43dfd65c94c88eebaf1883f687ca6b4b4ee (patch) | |
tree | d48e1ccbc3f1a22ecfeaebe8f78f059e82d50864 | |
parent | c4c1832356198b5098759b9f94dc2eca6cbdc685 (diff) | |
download | rpm-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.
-rw-r--r-- | Makefile | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -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 |