summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNate Straz <nstraz@redhat.com>2005-09-23 15:16:08 +0000
committerNathan Straz <nstraz@redhat.com>2008-09-23 09:37:44 -0400
commit0c2eff324a989dcbb0f57731f37704bbfdcf2bbf (patch)
tree39d324696d861c3de171ea105af7a65d8e9fff53
parentbd083c50264fcefcf4454401793c0dc43e8a3d62 (diff)
downloadqarsh-0c2eff324a989dcbb0f57731f37704bbfdcf2bbf.zip
qarsh-0c2eff324a989dcbb0f57731f37704bbfdcf2bbf.tar.gz
qarsh-0c2eff324a989dcbb0f57731f37704bbfdcf2bbf.tar.xz
Version the tarball according to the spec file version
-rw-r--r--Makefile8
-rw-r--r--qarsh.spec2
2 files changed, 7 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index f7cdb0d..026b181 100644
--- a/Makefile
+++ b/Makefile
@@ -27,10 +27,14 @@ install: all
clean:
$(RM) $(TARGETS)
-qarsh.tar.bz2: qarsh.spec
+VERSION := $(shell awk '/^Version:/ { print $$2 }' qarsh.spec)
+qarsh-$(VERSION).tar.bz2: qarsh.spec
+ -rm $@
tar cjf $@ .
-rpm: qarsh.tar.bz2 qarsh.spec
+tarball: qarsh-$(VERSION).tar.bz2
+
+rpm: qarsh-$(VERSION).tar.bz2 qarsh.spec
rpmbuild -ta $<
# Redefine the default compile rule to include target specific parts
diff --git a/qarsh.spec b/qarsh.spec
index 7b05ff0..1e42432 100644
--- a/qarsh.spec
+++ b/qarsh.spec
@@ -7,7 +7,7 @@ License: GPL
Buildroot: %{_tmppath}/%{name}-%{version}-root
Packager: Nathan Straz <nstraz@redhat.com>
-Source0: qarsh.tar.bz2
+Source0: qarsh-%{version}.tar.bz2
%description
qarsh is an rsh/ssh replacement designed for a testing environment. That means