package for Fedora and EPEL from one spec source?

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


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

> 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.
>
>
This page
http://fedoraproject.org/wiki/DistTag
and the buildsys macros RPM on EPEL5 should help you.
http://buildsys.fedoraproject.org/buildgroups/rhel5/x86_64/

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.
Steve.



> 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
> --
> devel mailing list
> devel at lists.fedoraproject.org
> https://admin.fedoraproject.org/mailman/listinfo/devel
>



-- 
Steve Traylen
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.fedoraproject.org/pipermail/devel/attachments/20110201/6b7ebaab/attachment.html 


More information about the devel mailing list