diff options
-rw-r--r-- | Makefile | 8 | ||||
-rw-r--r-- | qarsh.spec | 2 |
2 files changed, 7 insertions, 3 deletions
@@ -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 @@ -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 |