- disable perl on sle11 as it needs at least 5.14.2

OBS-URL: https://build.opensuse.org/package/show/server:dns/ldns?expand=0&rev=29
This commit is contained in:
Marcus Rückert 2016-05-10 22:44:30 +00:00 committed by Git OBS Bridge
parent 0d6ec885cf
commit f34ce5d950
2 changed files with 17 additions and 1 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Tue May 10 22:44:17 UTC 2016 - mrueckert@suse.de
- disable perl on sle11 as it needs at least 5.14.2
-------------------------------------------------------------------
Tue May 10 22:23:24 UTC 2016 - mrueckert@suse.de

View File

@ -16,10 +16,13 @@
#
# gost needs openssl >= 1.0
# we need at least 5.14.2
%if 0%{?suse_version} > 1110
%bcond_without gost
%bcond_without perl
%else
%bcond_with gost
%bcond_with perl
%endif
Name: ldns
@ -92,6 +95,7 @@ Requires: libldns1 >= %version
%description -n python-ldns
Python bindings for ldns library
%if %{with perl}
%package -n perl-DNS-LDNS
Summary: Perl bindings for ldns
Group: Productivity/Networking/DNS/Servers
@ -100,6 +104,7 @@ Requires: libldns1 >= %version
%description -n perl-DNS-LDNS
Perl bindings for ldns library
%endif
%prep
%setup -q
@ -120,7 +125,9 @@ export CFLAGS="%{optflags} -fno-strict-aliasing"
--enable-rrtype-ta \
--with-pyldns \
--with-pyldnsx \
%if %{with perl}
--with-p5-dns-ldns \
%endif
--with-drill \
--with-examples \
--with-ca-path=/etc/ssl/certs/
@ -136,14 +143,16 @@ make DESTDIR="%{buildroot}" \
install-pyldns \
install-pyldnsx
%if %{with perl}
pushd contrib/DNS-LDNS
%perl_make_install
%perl_process_packlist
popd
%{__rm} -rfv %{buildroot}%{perl_sitearch}/
%endif
%{__rm} -v %{buildroot}%{_libdir}/libldns.*a
%{__rm} -v %{buildroot}%{python_sitearch}/*.la
%{__rm} -rfv %{buildroot}%{perl_sitearch}/
#
%fdupes %buildroot%_mandir
@ -197,6 +206,7 @@ popd
%{_mandir}/man3/ldns*.3*
%doc libdns.vim LICENSE README*
%if %{with perl}
%files -n perl-DNS-LDNS
%defattr(-,root,root)
%{perl_vendorarch}/DNS/LDNS.pm
@ -205,6 +215,7 @@ popd
%dir %{perl_vendorarch}/auto/DNS/
%{perl_vendorarch}/auto/DNS/LDNS/
%{_mandir}/man3/DNS::LDNS*3pm*
%endif
%files -n python-ldns
%defattr(-,root,root)