rpms/redir/EL-6 import.log,1.2,1.3 redir.spec,1.3,1.4
Peter Lemenkov
lemenkov at gmail.com
Thu May 27 16:10:19 UTC 2010
Hello All!
2010/5/10 Dennis Gilmore <dennis at ausil.us>:
>> -%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.
More information about the devel
mailing list