svn snapshot packages

Michael A. Peters mpeters at mac.com
Sun Jan 8 12:33:00 UTC 2006


Would just like some clarification.

In the wiki -

http://fedoraproject.org/wiki/PackageNamingGuidelines

If a snapshot package is considered a "pre-release package", you should
follow the guidelines listed in Pre-Release Packages, and use an
%{alphatag} in the following format: 

YYYYMMDDcvs

Where YYYY is the digits for the year, MM is the zero-padded digits for
the month, DD is the zero-padded digits for the day, and "cvs" is the
type of checkout. The date in reference is the date that the checkout
was taken. 

-=-

With svn checkouts, is it OK to use the svn revision instead of
YYYYMMDD ?

It is more precise imho as it specifies exactly the upstream revision
used (as there may be more than one revision on any given YYYYMMDD)

Secondly - if it is OK to use the svn revision, is it OK to put the svn
before the revision?

svn99 vs svn101 I think is cleaner than 99svn vs 101svn

But I'm flexible.

-=-
Related %{?dist} question -

pre-release snapshot packages always need to have an initial number of 0
so that when final release is made, it can be bumped to 1 (as explained
in the wiki)

I prefer to put the %{?dist} after the 0 before the %{alphatag} because
it guarantees that when upgrading distro, the package built against the
newer distro will look newer to yum. This normally would not be an
issue, but it might be if new code in the svn tree builds fine against
one compiler but doesn't against newer compiler in newer distro. Rare
case, sure, but ... project developers aren't always working with
bleeding edge compilers (which rawhide often uses).

Thoughts appreciated.




More information about the fedora-extras-list mailing list