building CVS rpm versioning
Todd Zullinger
tmz at pobox.com
Sun Dec 10 14:49:58 UTC 2006
Ian Malone wrote:
> I'd like to build an RPM or two from the CVS source, while I can get
> rpmbuild to spit out a set of RPMs I'd like to be able to do the
> versioning so a new release from Core/Extras/elsewhere would still
> replace it once available. What's the best way to go about this?
Check out the Naming Guidelines page on the Fedora Wiki:
http://fedoraproject.org/wiki/Packaging/NamingGuidelines#head-18aa467fc6925455e44be682fd336667a17e8933
There you'll find some guidelines with a discussion of how to handle
cvs versions and such.
A quick example. Say you're building gtkpod from CVS.
You could use something like this in your spec file:
%define cvs_date 20061126
Name: gtkpod
Version: 0.99.9
Release: 0.2.%{cvs_date}
This way, whenever 0.99.9 is released you can simply bump the Release
field to 1 and it will take precedence over all of your 0.99.9 CVS
builds.
HTH,
--
Todd OpenPGP -> KeyID: 0xBEAF0CE3 | URL: www.pobox.com/~tmz/pgp
======================================================================
The less a statesman amounts to, the more he loves the flag.
-- Kin Hubbard
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 542 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/fedora-list/attachments/20061210/82a65aec/attachment-0001.sig>
More information about the fedora-list
mailing list