Mandrake Linux Archives: cooker@mandrivalinux.org
Mandrake Linux: cooker@mandrivalinux.org
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
- From: Buchan Milne
- Subject: Re: [Cooker] %mkrel help
- Date: 6 Mar 2006 16:54:06 -0000
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
- References:
- [Cooker] %mkrel help
- From: Olivier LAHAYE
- [Cooker] %mkrel help
- Prev by Date: [Cooker] [Bug 21466] [hicolor-icon-theme] RESOLVED: missing small attachment icon in evolution
- Next by Date: [Cooker] [Bug 20373] [kernel] NEEDINFO: Kernel 2.6.12-14 boot problem
- Previous by thread: Re: [Cooker] %mkrel help
- Next by thread: [Cooker] [Bug 20877] [mkinitrd] NEW: kernel panic from 2.6.12-13 to 2.6.12-15 while 2.6.12-12 works fine
- Index(es):
