aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tvignaud@mandriva.org>2003-07-10 09:13:20 +0000
committerThierry Vignaud <tvignaud@mandriva.org>2003-07-10 09:13:20 +0000
commit6dac84d06bc33c54ac9678b03d0fb567d2453d1a (patch)
tree35bd2fdd1d7ca7f35997f558fa54a8e401a731d8
parentd3c0258e424f5ab11fa30bc4372dc018418bac70 (diff)
downloaduserdrake-6dac84d06bc33c54ac9678b03d0fb567d2453d1a.tar
userdrake-6dac84d06bc33c54ac9678b03d0fb567d2453d1a.tar.gz
userdrake-6dac84d06bc33c54ac9678b03d0fb567d2453d1a.tar.bz2
userdrake-6dac84d06bc33c54ac9678b03d0fb567d2453d1a.tar.xz
userdrake-6dac84d06bc33c54ac9678b03d0fb567d2453d1a.zip
add srpm target
-rw-r--r--Makefile7
1 files changed, 5 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 8f78073..d965079 100644
--- a/Makefile
+++ b/Makefile
@@ -47,8 +47,11 @@ dis: clean
bzip2 -9f ../$(NAME)-$(VERSION).tar
rm -rf $(NAME)-$(VERSION)
-rpm: dis ../$(NAME)-$(VERSION).tar.bz2 $(RPM)
+srpm: dis ../$(NAME)-$(VERSION).tar.bz2 $(RPM)
cp -f ../$(NAME)-$(VERSION).tar.bz2 $(RPM)/SOURCES
cp -f $(NAME).spec $(RPM)/SPECS/
- rpm -ba --clean --rmsource $(NAME).spec
rm -f ../$(NAME)-$(VERSION).tar.bz2
+ rpm -bs $(NAME).spec
+
+rpm: srpm
+ rpm -bb --clean --rmsource $(NAME).spec