[Fedora-packaging] Re: ExtraDistTagConditionalMacros

Thorsten Leemhuis fedora at leemhuis.info
Fri Mar 23 18:16:26 UTC 2007


Axel Thimm schrieb:
> On Fri, Mar 23, 2007 at 12:10:05PM -0500, Tom spot Callaway wrote:
>> I have added a draft for Extra DistTag Conditional Macros. Dag Wieers
>> pointed out on the epel-devel mailing list that there were some useful
>> macros that we could add to the existing helper macros to ease
>> conditionals in spec files.
>> http://fedoraproject.org/wiki/PackagingDrafts/ExtraDistTagConditionalMacros
>> Comments are always welcomed.
> Having the macros is OK, but we should discourage lazy-riding on them,
> as it tends to assume an API/ABI stability, that doesn't exist (at
> least not on Fedora in that extend).
> 
> For example F7 has foo-1 and therefore the packager of bar thinks it
> would be easier to query the fc7 or f7 macro than to check for foo's
> version. On the next update of foo to foo-2 package bar and it's
> specfile break.
> 
> E.g. add something like: "Try to avoid explict conditionals on the
> distribution and prefer testing for features instead"

Strongly agreed. A nice thing about the current spec files in
Fedora-land IMHO is that they are easy to read and to understand, even
if you look at them for the first time.

That's IMHO often not the case for some spec files out in the wild that
use conditionals quite heavily. Heavily IMHO = all those with more then
three --with/--without or other conditionals.

CU
thl




More information about the Fedora-packaging mailing list