comparison contrib/buildrpm @ 21641:977e5bd6eb76

buildrpm: include release version in .tar.gz name Official releases are fully indentified by the version number, these builds are not. Specs are however traditionally not versioned.
author Mads Kiilerich <madski@unity3d.com>
date Tue, 20 May 2014 04:07:58 +0200
parents 4bfb721de6dd
children 4c4385eb26bc
comparison
equal deleted inserted replaced
21640:4bfb721de6dd 21641:977e5bd6eb76
41 # official tag, version is like 1.3.1 41 # official tag, version is like 1.3.1
42 version=`echo $hgversion | sed -e 's/+.*//'` 42 version=`echo $hgversion | sed -e 's/+.*//'`
43 release='0' 43 release='0'
44 fi 44 fi
45 45
46 $HG archive -t tgz $rpmdir/SOURCES/mercurial-$version.tar.gz 46 $HG archive -t tgz $rpmdir/SOURCES/mercurial-$version-$release.tar.gz
47 rpmspec=$rpmdir/SPECS/mercurial-$version.spec 47 rpmspec=$rpmdir/SPECS/mercurial.spec
48 48
49 sed -e "s,^Version:.*,Version: $version," \ 49 sed -e "s,^Version:.*,Version: $version," \
50 -e "s,^Release:.*,Release: $release," \ 50 -e "s,^Release:.*,Release: $release," \
51 $specfile > $rpmspec 51 $specfile > $rpmspec
52 52