diff options
-rwxr-xr-x | bin/build-rpm-package | 9 |
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 |