summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@redhat.com>2008-06-30 17:39:15 -0300
committerArnaldo Carvalho de Melo <acme@redhat.com>2008-06-30 17:39:15 -0300
commit04f4e1bf7df81a0ddf43ab608a2030ca20bfce37 (patch)
tree8e7bc2ee2ac3e35914d712903dd0da8891d9be3f
parent55c33d46d3b2e81d473abd1aff1f540876ff88a7 (diff)
downloadpython-ethtool-04f4e1bf7df81a0ddf43ab608a2030ca20bfce37.tar.gz
python-ethtool-04f4e1bf7df81a0ddf43ab608a2030ca20bfce37.tar.xz
python-ethtool-04f4e1bf7df81a0ddf43ab608a2030ca20bfce37.zip
Makefile: Add bz2 and rpm targets
To build an rpm now use: make rpm Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
-rw-r--r--Makefile6
1 files changed, 6 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 2f4c484..80282a6 100644
--- a/Makefile
+++ b/Makefile
@@ -39,3 +39,9 @@ local:
@cp /tmp/${PKGNAME}-$(VERSION)/dist/${PKGNAME}-$(VERSION).tar.gz .
@rm -rf /tmp/${PKGNAME}-$(VERSION)
@echo "The archive is in ${PKGNAME}-$(VERSION).tar.gz"
+
+bz2:
+ git archive --format=tar --prefix=${PKGNAME}-$(VERSION)/ HEAD | bzip2 -9 > rpm/SOURCES/${PKGNAME}-$(VERSION).tar.bz2
+
+rpm: bz2
+ rpmbuild -ba --define "_topdir $(PWD)/rpm" rpm/SPECS/${PKGNAME}.spec