Add support for an "epoch" in the RPM spec file. This epoch is a discrete

number used to determine if one RPM is newer than another, which in turn
ensures that v1.2.10 is always interpreted as newer than v1.2.9.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@819008 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Graham Leggett
2009-09-25 21:02:33 +00:00
parent 68dac97c61
commit a8c86736ef
3 changed files with 7 additions and 2 deletions

View File

@ -48,6 +48,8 @@ elif test "$1" = "major"; then
echo ${major}
elif test "$1" = "mmn"; then
echo ${mmn}
elif test "$1" = "epoch"; then
printf "%03d" ${major} ${minor} ${patch}
elif test "$1" = "libtool"; then
# Yes, ${minor}:${patch}:${minor} is correct due to libtool idiocy.
echo ${minor}:${patch}:${minor}