summaryrefslogtreecommitdiff
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
parent7e7e8642126d9f0dc46f5a00392d5a5da09d3a87 (diff)
downloadlibaio-98b2aea87e86e9542aafaefba05bfaabbc4b4e95.tar.gz
add srpm targetlibaio.0-3-8.1
-rw-r--r--ChangeLog1
-rw-r--r--Makefile4
2 files changed, 5 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 9cc76c1..e219725 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,7 @@
0.3.8
- make clean deletes libredhat-kernel.so.1
- const struct timespec *
+ - add make srpm target
0.3.7
- fix assembly function .types
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)