Re: rpms/redir/EL-6 import.log,1.2,1.3 redir.spec,1.3,1.4

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

 



Hello All!

2010/5/10 Dennis Gilmore <dennis@xxxxxxxx>:

>> -%if 0%{?rhel}
>> +%if 0%{?rhel} < 5
>>  BuildRequires:  tcp_wrappers
>> +%else
>> +BuildRequires:  tcp_wrappers-devel
>>  %endif
>
> this fix is incorrect.  because "%if 0%{?rhel} < 5"  becomes if 0<5  on fedora
> since rhel is undefined. you need to add a check for fedora also.

I didn't read the rest of this thread yet, but in case then someone
still didn't suggets it yet, I would like to propose more reliable
solution

%if 0%{?el4}%{?el5}
echo "This is either RHEL 4 or RHEL 5"
%else
echo "EL-6 or Fedora"
%endif
-- 
With best regards, Peter Lemenkov.
-- 
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/devel



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]
  Powered by Linux