Skip to content

Commit

Permalink
RPM version should start with a "v"
Browse files Browse the repository at this point in the history
  • Loading branch information
fennm committed Oct 17, 2016
1 parent 83c7c3a commit c61f1cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion redhat/build-rpm
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ install -d -m0755 $rpmdir/{BUILD,BUILDROOT,RPMS/$(uname -m),SOURCES,SPECS,SRPMS}

# copy the sources into place
cp redhat/bcal.spec $rpmdir/SPECS/bcal.spec
vers=$(git describe --always | tr - .)
vers=$(git describe --always | sed 's/^v//' | tr - .)
sed -i -e "s/Version:\s*\(\S\+\)/Version: $vers/" $rpmdir/SPECS/bcal.spec
git archive --prefix=bcal-$vers/ --format=tar.gz -o $rpmdir/SOURCES/bcal-$vers.tar.gz HEAD

Expand Down

0 comments on commit c61f1cc

Please sign in to comment.