Mandriva

Return to the main archive index.

Custom Search

Mandrake Linux Archives: cooker@mandrivalinux.org

Mandrake Linux: cooker@mandrivalinux.org


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


On Monday 06 March 2006 18:27, Olivier LAHAYE wrote:
> Hi,
>
> I'd like to use %mkrel macro so my packages (dkms for O2 Micro smart card
> reader) is realy clean.
> Unfortunately I'm unable to find any recommandation on its usage. (even in
> mdk-rpm-howto-1.1-2mdk and google).
>
> I'm using a custom %distsuffix in my ~/.rpmmacros
> and I'd be happy to have generic src.rpm package so they have my custom
> distsuffix when build on site and mdk suffix if built elsewhere. (usefull
> for having a view of localy developped packages and original distro
> packages).
>
> But it generates a realy strange result I didn't find any explanation for.
> %mkrel 1
> will generate a
> 0.1.20060ecr
>
> how do 0.1 is generated?
> I tryed to understand /usr/lib/rpm/mandriva/macros but I had a buffer
> overflow in my brain which also misses a perl plugin ;-)
>
> More simply: what is the purpose of x and y in x.y.20060suffix ?


In the case of a stable release, x is %rel - 1, y is there to allow 
differentiation between multiple rebuilds based on the original %rel cooker 
package.

Note that this is done because cooker doesn't use distribution-specific 
release tags. Once cooker does (hopefully in a few months), this will be 
unnecessary, and release tags on stable using %mkrel will not be as ugly, but 
instead something like 1mdv2008 in cooker, 1mdv2007 rebuilt on 2007, 
1mdv2007.1 next package for 2007 based on 1mdv2007 (or similar).

> what means x; what means y: how do I controle them?

You can control y by defining %subrel in your spec file before calling %mkrel:
%define subrel 2
%mkrel %rel

http://qa.mandriva.com/twiki/bin/view/Main/DistroSpecificReleaseTag has more 
background

Regards,
Buchan

-- 
Buchan Milne
B.Eng,RHCE(803004789010797),LPIC-2(LPI000074592)

Attachment: pgp00037.pgp
Description: PGP signature



Date Index | Thread Index

Looking for a job?



Advertisement