[Fedora-packaging] using the tilde in tarball versions

Bruno Wolff III bruno at wolff.to
Wed May 1 19:00:38 UTC 2013


On Wed, May 01, 2013 at 20:37:44 +0200,
   Daniel Pocock <daniel at pocock.com.au> wrote:
>
>That seems problematic for various reasons:
>
>- when I build a test rpm (which is one reason for the test tarball), it
>would end up with a name like project-3.3.0-test1-1.tar.gz
>
>- looking at this doc, it is not clear if it will take `3.3.0-test1' as
>the version, or if it will be `3.3.0' and release will be `test1':
>
>http://fedoraproject.org/wiki/Archive:Tools/RPM/VersionComparison
>
>and in any case, 3.3.0-test1 > 3.3.0, while 3.3.0 = 3.3.0, so in no case
>can I see how to make a version that is < 3.3.0

The way you should do it is use 3.3.0 for the version and 0.X.test1%{dist} 
for the release, where X is a number that gets incremented for each test1 
build.


More information about the packaging mailing list