summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2013-11-29 14:37:53 +0100
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2013-11-29 14:37:53 +0100
commitab93627c1ffabbf292b848eca4f0dad803cf504a (patch)
tree39aefa98d71c30f7679f54d0e3cb3b3bafbe16c7
parent1bc4cbefa9662b352e233548ddd12b2d2b59aa38 (diff)
downloadbuildscripts-ab93627c1ffabbf292b848eca4f0dad803cf504a.tar.gz
buildscripts-ab93627c1ffabbf292b848eca4f0dad803cf504a.tar.bz2
buildscripts-ab93627c1ffabbf292b848eca4f0dad803cf504a.zip
create source tarball from Git manually
-rwxr-xr-xbin/build-rpm-package9
1 files changed, 6 insertions, 3 deletions
diff --git a/bin/build-rpm-package b/bin/build-rpm-package
index 0bb0583..07fa84b 100755
--- a/bin/build-rpm-package
+++ b/bin/build-rpm-package
@@ -194,11 +194,14 @@ build_packages() {
git checkout $CHECKOUT || git checkout master
GITREV=$(gitrevno)
- VERSION=$l_CODENAME
+ UPSTREAM_VERSION=$(cat $PROJECT.spec | egrep "^Version:.*" | awk '{ print $2 }')
# tar upstream sources from our Git clone
-
- ### TODO: really tar the sources
+ mkdir -p ~/rpmbuild/SOURCES
+ rm -Rf ".git"
+ cd ..
+ mv $TEMP_DIR/$PROJECT $TEMP_DIR/$PROJECT-$UPSTREAM_VERSION
+ tar -czf ~/rpmbuild/SOURCES/$PROJECT-$UPSTREAM_VERSION $TEMP_DIR/$PROJECT-$UPSTREAM_VERSION
# modify the section for non-main package builds