Hello All!
2010/5/10 Dennis Gilmore <[email protected]>:
>> -%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
[email protected]
https://admin.fedoraproject.org/mailman/listinfo/devel