aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@redhat.com>2008-08-07 17:58:25 -0300
committerArnaldo Carvalho de Melo <acme@redhat.com>2008-08-07 17:58:25 -0300
commitff762c81556d92058503be4c3f4e0151b3139e3a (patch)
tree251cb25e42679644bc65b371675cb032b965ebcf
parent932f65a54f2d4c3708acab22d5efd69c88969669 (diff)
downloadpython-schedutils-ff762c81556d92058503be4c3f4e0151b3139e3a.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--MANIFEST6
-rw-r--r--Makefile11
2 files changed, 17 insertions, 0 deletions
diff --git a/MANIFEST b/MANIFEST
new file mode 100644
index 0000000..6b13f44
--- /dev/null
+++ b/MANIFEST
@@ -0,0 +1,6 @@
+COPYING
+setup.py
+rpm/SPECS/python-schedutils.spec
+MANIFEST
+python-schedutils/schedutils.c
+Makefile
diff --git a/Makefile b/Makefile
index c00858a..118f7c4 100644
--- a/Makefile
+++ b/Makefile
@@ -11,5 +11,16 @@ bz2: rpmdirs
git archive --format=tar --prefix=$(PACKAGE)-$(VERSION)/ HEAD | \
bzip2 -9 > rpm/SOURCES/$(PACKAGE)-$(VERSION).tar.bz2
+install:
+ python setup.py install --root=$(DESTDIR)
+
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