Introduce build conditions
This commit is contained in:
parent
6c2d3cb13f
commit
c78c21c53f
@ -1,5 +1,9 @@
|
||||
# Add support for IPv6
|
||||
%{bcond_without perl_Net_HTTP_enables_ipv6}
|
||||
# Do not run network tests accessing Internet
|
||||
%{bcond_with perl_Net_HTTP_enables_network_test}
|
||||
# Add support for TLS/SSL
|
||||
%{bcond_without perl_Net_HTTP_enables_ssl}
|
||||
|
||||
Name: perl-Net-HTTP
|
||||
Version: 6.14
|
||||
@ -21,8 +25,14 @@ BuildRequires: perl(base)
|
||||
BuildRequires: perl(Carp)
|
||||
BuildRequires: perl(Compress::Raw::Zlib)
|
||||
# Prefer IO::Socket::IP over IO::Socket::INET and IO::Socket::INET6
|
||||
%if %{with perl_Net_HTTP_enables_ipv6}
|
||||
BuildRequires: perl(IO::Socket::IP)
|
||||
%else
|
||||
BuildRequires: perl(IO::Socket)
|
||||
%endif
|
||||
%if %{with perl_Net_HTTP_enables_ssl}
|
||||
BuildRequires: perl(IO::Socket::SSL) >= 1.38
|
||||
%endif
|
||||
BuildRequires: perl(IO::Uncompress::Gunzip)
|
||||
BuildRequires: perl(Symbol)
|
||||
BuildRequires: perl(URI)
|
||||
@ -39,10 +49,15 @@ Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
||||
Requires: perl(Compress::Raw::Zlib)
|
||||
Requires: perl(IO::Uncompress::Gunzip)
|
||||
# Prefer IO::Socket::IP over IO::Socket::INET and IO::Socket::INET6
|
||||
%if %{with perl_Net_HTTP_enables_ipv6}
|
||||
Requires: perl(IO::Socket::IP)
|
||||
%else
|
||||
Requires: perl(IO::Socket)
|
||||
%endif
|
||||
Requires: perl(Symbol)
|
||||
# Recommended
|
||||
%if %{with perl_Net_HTTP_enables_ssl}
|
||||
Requires: perl(IO::Socket::SSL) >= 1.38
|
||||
%endif
|
||||
Conflicts: perl-libwww-perl < 6
|
||||
|
||||
%description
|
||||
|
||||
Loading…
Reference in New Issue
Block a user