summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@redhat.com>2008-08-07 18:07:02 -0300
committerArnaldo Carvalho de Melo <acme@redhat.com>2008-08-07 18:07:02 -0300
commit747432b3eac0cb0158a35705beee557c84172a5d (patch)
tree8024b37d9eb6018d821e4007949d104a207edf7d
parente95863910b8485e4f0b5b8bace4abf9162f7a39a (diff)
downloadpython-linux-procfs-747432b3eac0cb0158a35705beee557c84172a5d.tar.gz
Makefile: add make rpmdev
To build an rpm without first commiting the latest changes. Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
-rw-r--r--Makefile8
1 files changed, 8 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 4fddd7b..e5aee5c 100644
--- a/Makefile
+++ b/Makefile
@@ -13,3 +13,11 @@ bz2: rpmdirs
rpm: bz2 rpmdirs
rpmbuild -ba --define "_topdir $(PWD)/rpm" rpm/SPECS/$(PACKAGE).spec
+
+bz2dev: rpmdirs
+ @mkdir -p /tmp/$(PACKAGE)-$(VERSION)
+ @tar cf - `cat MANIFEST` | (cd /tmp/$(PACKAGE)-$(VERSION) ; tar xf -)
+ @(cd /tmp; tar cf - $(PACKAGE)-$(VERSION)) | bzip2 -9 > rpm/SOURCES/$(PACKAGE)-$(VERSION).tar.bz2
+
+rpmdev: bz2dev rpmdirs
+ rpmbuild -ba --define "_topdir $(PWD)/rpm" rpm/SPECS/$(PACKAGE).spec