summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorBen LaHaise <bcrl@kvack.org>2002-01-24 20:18:25 +0000
committerBen LaHaise <bcrl@kvack.org>2002-01-24 20:18:25 +0000
commit98b2aea87e86e9542aafaefba05bfaabbc4b4e95 (patch)
treea7be1dd522b3334376d1a968424730f750821d8f /Makefile
parent7e7e8642126d9f0dc46f5a00392d5a5da09d3a87 (diff)
downloadlibaio-98b2aea87e86e9542aafaefba05bfaabbc4b4e95.tar.gz
add srpm targetlibaio.0-3-8.1
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index d6aa319..4a42db3 100644
--- a/Makefile
+++ b/Makefile
@@ -3,6 +3,7 @@ SPECFILE=$(NAME).spec
VERSION=$(shell awk '/Version:/ { print $$2 }' $(SPECFILE))
RELEASE=$(shell awk '/Release:/ { print $$2 }' $(SPECFILE))
CVSTAG = $(NAME)_$(subst .,-,$(VERSION))_$(subst .,-,$(RELEASE))
+RPM=rpm
default: all
@@ -30,3 +31,6 @@ create-archive: tag-archive
@echo "The final archive is ./$(NAME)-$(VERSION).tar.gz."
archive: clean tag-archive create-archive
+
+srpm:
+ $(RPM) --define "_sourcedir `pwd`" --define "_srcrpmdir `pwd`" --nodeps -bs $(SPECFILE)