proper way to distinguish epel from fedora

Rex Dieter rdieter at math.unl.edu
Wed Nov 11 04:08:07 UTC 2009


BJ Dierkes wrote:

> Is there any problem with:
> 
> %if %{el5}
> ExcludeArch: ppc ppc64
> %endif

preferable might be
%if 0%{?el5}
ExcludeArch: ppc ppc64
%endif

or

%if 0%{?rhel} == 5
ExcludeArch: ppc ppc64
%endif

these won't cause failures if the macro you're testing isn't defined.

-- Rex





More information about the epel-devel-list mailing list