package for Fedora and EPEL from one spec source?

Steve Traylen steve.traylen at
Tue Feb 1 14:36:47 UTC 2011

On Tue, Feb 1, 2011 at 3:23 PM, Gerd v. Egidy <lists at> wrote:

> Hi,
> I've submitted my first Fedora package for review and sponsoring recently:
> 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.
This page
and the buildsys macros RPM on EPEL5 should help you.

yes is perfectly possible to have one .spec file for all at the start though
they may diverge due to difference update policies in particular.

> 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
> --
> devel mailing list
> devel at

Steve Traylen
-------------- next part --------------
An HTML attachment was scrubbed...

More information about the devel mailing list