On 01/27/2014 03:10 AM, Jordi Sayol wrote:
error: line 2: Illegal char '-' in: Version: 2.065.0-b2

rpm packages do not allows "-" on version.

I've pull-requested deb/rpm scripts to fix new dmd versioning scheme. Dash "-" is 
replaced by tilde "~" on deb/rpm packages version, and so on packages name.

I get:
    rpm packages do not allows "~" on version.

As I wrote earlier we're stuck with RPM 4.8.1 which doesn't allow the use of tilde.
In fact Fedoras package guidelines explicitly discourage using "~"
https://fedoraproject.org/wiki/Packaging:NamingGuidelines#Pre-Release_packages and suggests to use the 'Release' field.

Currently we always set this to 0 (https://github.com/D-Programming-Language/installer/blob/4df7d4339062a348739c5c8e884bdf09bdad4778/linux/dmd_rpm.sh#L287), but we're supposed to enumerate the prerelease versions with 0.1.b1, 0.2.b2, 0.3.b3, 0.4.rc1, 0.5.rc2. For a final version this will become 1 andOnce a final build it will start with 1 and potential rebuilds get a 2, 3.

The i386 fedora rpm names would looks this.

dmd.2.065.0-0.1.b1.fedora.i386.rpm  //<- Beta1
dmd.2.065.0-0.2.b2.fedora.i386.rpm  //<- Beta2
dmd.2.065.0-0.3.b3.fedora.i386.rpm  //<- Beta3
dmd.2.065.0-0.4.rc1.fedora.i386.rpm //<- RC1
dmd.2.065.0-0.5.rc2.fedora.i386.rpm //<- RC2
dmd.2.065.0-1.fedora.i386.rpm       //<- final release
dmd.2.065.0-2.fedora.i386.rpm       //<- fixup of the "final" release

The important part is, that the beta stuff stay out of the version number. Only the 'Release' field is allowed to have letters.

I'm a bit unsure how that would continue with 2.065.1.


Would that work for OpenSuse and .deb too?


Reply via email to