PLD-doc: devel-hints-en.txt - notes on Release tag and %rel macro

Przemyslaw Iskra sparky at pld-linux.org
Mon Jun 7 15:09:43 CEST 2010


On Mon, Jun 07, 2010 at 02:59:12PM +0200, Arkadiusz Miskiewicz wrote:
> On Monday 07 of June 2010, Caleb Maclennan wrote:
> > 2010/6/7 pawelz <pawelz at pld-linux.org>:

> > How does this information apply to packages such as open-iscsi which
> > has a release of 0.%{subver}.%{rel} where subver is from the upstream
> > project and rel is the pld release incrementor. The reason I ask is
> > this 0.x.y number looks like a fraction release to me, but it is built
> > and in the TH tree. How should I have incremented this to indicate
> > that it isn't ready to be built again yet? Should the rel also be a
> > fraction? Why the 0. before the subver?
> 
> Usually such scheme (0.%{snap}.%{rel}) is used for snapshots. Then if final 
> version of package comes you can simply do Release: 1. We avoid putting 
> snapshot indicator into version because for example final 1.0 < than snapshot 
> 1.0.200100515.
> 
> In our versioning this is 1.0-1 final and 1.0-0.20100515.1 for snapshot.

If you want to use fractional release in package with subver just define
rel to that release, it would look like: 1.0-0.20100515.0.1

Another use for the first number in "snapshot release" it to serve as
auxilary epoch. E.g. if some project uses alpha, beta, gamma, delta as
their subver names you will have to increase it for "delta" release to
maintain proper seniority.

[sparky at quad ~]$ rpmvercmp 1.0-0.gamma.1 1.0-0.delta.1
1.0-0.gamma.1 > 1.0-0.delta.1
[sparky at quad ~]$ rpmvercmp 1.0-0.gamma.1 1.0-1.delta.1
1.0-0.gamma.1 < 1.0-1.delta.1
 

-- 
 ____  Sparky{PI] -- Przemyslaw _  ___  _  _  ........... LANG...Pl..Ca..Es..En
/____) ___  ___  _ _ || Iskra  |  | _ \| |  | : WWW........ppcrcd.pld-linux.org
\____\| -_)'___| ||^'||//\\// <   |  _/| |  | : JID......sparky<at>jabberes.org
(____/||   (_-_|_||  ||\\ ||   |_ |_|  |_| _| : Mail....sparky<at>pld-linux.org


More information about the pld-devel-en mailing list