diff options
-rwxr-xr-x | bin/build-rpm-package | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/bin/build-rpm-package b/bin/build-rpm-package index 2f856a6..02e7a32 100755 --- a/bin/build-rpm-package +++ b/bin/build-rpm-package @@ -173,8 +173,11 @@ build_packages() { PKG_RELEASE=$(cat $PROJECT.spec | egrep "^Release:.*" | awk '{ print $2 }') PKG_SRCRELEASE=$(echo $PKG_RELEASE | sed -e 's/%{?dist}//') - sed -i $PROJECT.spec -e "s/%{?dist}/~git$DATE.$GITREV.$COMPONENT%{?dist}/" - + if [ "$COMPONENT" = "$COMPONENT_NIGHTLY" ]; then + sed -i $PROJECT.spec -e "s/%{?dist}/.0.git$DATE.$GITREV.$COMPONENT%{?dist}/" + else + sed -i $PROJECT.spec -e "s/%{?dist}/.1.git$DATE.$GITREV.$COMPONENT%{?dist}/" + fi mv $TEMP_DIR/$PROJECT $TEMP_DIR/$PROJECT-$UPSTREAM_VERSION tar -czf $PKGDIST/rpmbuild/SOURCES/$PROJECT-$UPSTREAM_VERSION.tar.gz $PROJECT-$UPSTREAM_VERSION |