package for Fedora and EPEL from one spec source?

Gerd v. Egidy lists at egidy.de
Tue Feb 1 14:23:46 UTC 2011


Hi,

I've submitted my first Fedora package for review and sponsoring recently:

https://bugzilla.redhat.com/show_bug.cgi?id=673175

I want to submit it for Fedora and EPEL 5. The differences between the two are 
minimal, there are just some programs missing in EPEL which need to be 
commented out in the default config.

What is the best way to handle this? Can I keep one spec for both and use 
conditionals to always build the right way?

I've seen code like "%if 0%{?rhel}" somewhere on the net, but that didn't work 
for me. I guess the %rhel-macro should be defined in /etc/rpm/macros.dist 
where I usually find stuff like %fedora but that doesn't exist on my Centos 5.

Or am I supposed to create a completely separate .spec for EPEL once the 
review, sponsoring etc. for Fedora is done?

Kind regards,

Gerd

-- 
Address (better: trap) for people I really don't want to get mail from:
jonas at cactusamerica.com


More information about the devel mailing list