Re: How do I get a version with a '-' to pass spec file syntax?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, 2005-04-01 at 05:39 -0500, James Olin Oden wrote:
> On Apr 1, 2005 2:29 AM, Dionysos <dionysos@xxxxxxxxxx> wrote:
> > Le Vendredi 01 Avril 2005 02:46, Brian Auld a Ãcrit :

> > > I keep getting an error "error: line 19: Illegal char '-' in version:
> > > Version: 0.9.6-pre4" when I run an rpmbuild command on my spec file.  Am
> > > I missing something obvious here.  I can't seem to get version numbers
> > > with hyphens to work.

> Just as Alain said, rpm does not allow -'s in versions.  What I would
> do in this case, well have done, is use an _ in place of the - so your
> version becomes:
> 
>   0.9.6_pre4
> 
> rpm's version parsing code will parse it correctly (or as you might expect).

However to prevent having to bump epoch when 0.9.6 becomes final the
original poster might want to encapsulate the pre in the release ala:

http://fedoraproject.org/wiki/PackageNamingGuidelines#head-c33853487ab884ae57c78f515ae1a77c6abc4d3f

or think of someother naming scheme to allow pre/rc/test/whatever as the
project uses to upgrade seemlessly to final releases.

Paul

_______________________________________________
Rpm-list mailing list
Rpm-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/rpm-list

[Index of Archives]     [RPM Ecosystem]     [Linux Kernel]     [Red Hat Install]     [PAM]     [Red Hat Watch]     [Red Hat Development]     [Red Hat]     [Gimp]     [Yosemite News]     [IETF Discussion]

  Powered by Linux