summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorDavid Howells <dhowells@redhat.com>2013-08-29 22:18:34 +0100
committerDavid Howells <dhowells@redhat.com>2013-08-29 22:20:16 +0100
commitc7696a882853d6d18af5e3aef237a2285cc6b2c3 (patch)
tree298c85c71b70dc0a01ee169afaf512cd4f293192 /Makefile
parent480fc94ab9b7669f966c981556dcbc83c338d1a6 (diff)
downloadkeyutils-c7696a882853d6d18af5e3aef237a2285cc6b2c3.tar.gz
Compress the tarball built by the Makefile
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile11
1 files changed, 7 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index c542e77..f1227f3 100644
--- a/Makefile
+++ b/Makefile
@@ -27,7 +27,8 @@ MAJOR := $(word 3,$(vermajor))
MINOR := $(word 3,$(verminor))
VERSION := $(MAJOR).$(MINOR)
-TARBALL := keyutils-$(VERSION).tar.bz2
+TARBALL := keyutils-$(VERSION).tar
+ZTARBALL := $(TARBALL).bz2
###############################################################################
#
@@ -218,10 +219,11 @@ distclean: clean
# Generate a tarball
#
###############################################################################
-$(TARBALL):
+$(ZTARBALL):
git archive --prefix=keyutils-$(VERSION)/ --format tar -o $(TARBALL) HEAD
+ bzip2 -9 $(TARBALL)
-tarball: $(TARBALL)
+tarball: $(ZTARBALL)
###############################################################################
#
@@ -254,7 +256,8 @@ rpm:
chmod ug-s rpmbuild
mkdir -p rpmbuild/{SPECS,SOURCES,BUILD,BUILDROOT,RPMS,SRPMS}
git archive --prefix=keyutils-$(VERSION)/ --format tar -o $(SRCBALL) HEAD
- rpmbuild -ts $(SRCBALL) --define "_srcrpmdir rpmbuild/SRPMS" $(RPMFLAGS)
+ bzip2 -9 $(SRCBALL)
+ rpmbuild -ts $(SRCBALL).bz2 --define "_srcrpmdir rpmbuild/SRPMS" $(RPMFLAGS)
rpmbuild --rebuild $(SRPM) $(RPMBUILDDIRS) $(RPMFLAGS)
rpmlint: rpm