proper way to distinguish epel from fedora

Steve Traylen steve.traylen at
Tue Nov 10 15:56:13 UTC 2009

On Tue, Nov 10, 2009 at 4:51 PM, Manuel Wolfshant
<wolfy at> wrote:
> Farkas Levente wrote:
>> hi,
>> what's the proper way to distinguish epel from fedora in the spec file?
>> i'd like to add
>> ExcludeArch:    ppc ppc64
>> on epel but not in case of fedora in a package (since there is no java
>> on ppc on epel). but what's the current recommended way to do so?
>> unfortunately %{?rhel} is not defined even in rhel-5 so what else can i

> it is defined. See for instance
> which separates the BRs for RHEL5 from the rest

You need to install some extra rpm macros with the buildsys-macros pacakage


>> use to distinguish it from fedora?
>> thanks in advance.
>> ps. anyway it'd be useful to put into the epel packaging guidelines.
> --
>    Manuel Wolfshant       linux registered user #131416
>       IT manager    NoBug Consulting SRL
>  A: Yes.
>  >Q: Are you sure?
>  >>A: Because it reverses the logical flow of conversation.
>  >>>Q: Why is top posting frowned upon?
> _______________________________________________
> epel-devel-list mailing list
> epel-devel-list at

Steve Traylen

More information about the epel-devel-list mailing list