summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2013-11-29 14:51:42 +0100
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2013-11-29 14:51:42 +0100
commitc95897846764ac082c6ce3d1a78786ca4cd31e8a (patch)
tree98f7866b59a5c59a809dfe99c77b57433a394fb2
parent482cc782982aad63627d96af98a603f714a103d1 (diff)
downloadbuildscripts-c95897846764ac082c6ce3d1a78786ca4cd31e8a.tar.gz
buildscripts-c95897846764ac082c6ce3d1a78786ca4cd31e8a.tar.bz2
buildscripts-c95897846764ac082c6ce3d1a78786ca4cd31e8a.zip
build the srpm package
-rwxr-xr-xbin/build-rpm-package5
1 files changed, 5 insertions, 0 deletions
diff --git a/bin/build-rpm-package b/bin/build-rpm-package
index 6edd039..155b5b1 100755
--- a/bin/build-rpm-package
+++ b/bin/build-rpm-package
@@ -191,6 +191,11 @@ build_packages() {
mv $TEMP_DIR/$PROJECT $TEMP_DIR/$PROJECT-$UPSTREAM_VERSION
tar -czf ~/rpmbuild/SOURCES/$PROJECT-$UPSTREAM_VERSION.tar.gz $PROJECT-$UPSTREAM_VERSION
+
+ # create the SRPM package
+ rpmbuild -bs $PROJECT.spec
+
+ # clean up the Git clone from the temp folder
cd && rm $TEMP_DIR/$PROJECT -Rf