[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: proper way to distinguish epel from fedora



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



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]