Do not run optional test on RHEL

This commit is contained in:
Jitka Plesnikova 2018-04-06 11:05:46 +02:00
parent 6999ed7ebd
commit bb304e2e37

View File

@ -1,4 +1,8 @@
%if ! (0%{?rhel})
%{bcond_without perl_Net_SSLeay_enables_optional_test}
%else
%{bcond_with perl_Net_SSLeay_enables_optional_test}
%endif
# Provides/Requires filtering is different from rpm 4.9 onwards
%global rpm49 %(rpm --version | perl -p -e 's/^.* (\\d+)\\.(\\d+).*/sprintf("%d.%03d",$1,$2) ge 4.009 ? 1 : 0/e' 2>/dev/null || echo 0)