From 0ea1f5d38efa4dcf3f8578bc34b8321c35747ffa87952921decfc9beed0ae4f6 Mon Sep 17 00:00:00 2001 From: Marcus Rueckert Date: Tue, 10 May 2016 22:52:31 +0000 Subject: [PATCH] - disable python because the bindings dont match the old python version either OBS-URL: https://build.opensuse.org/package/show/server:dns/ldns?expand=0&rev=30 --- ldns.changes | 6 ++++++ ldns.spec | 16 +++++++++++++++- 2 files changed, 21 insertions(+), 1 deletion(-) diff --git a/ldns.changes b/ldns.changes index b91f396..788344e 100644 --- a/ldns.changes +++ b/ldns.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Tue May 10 22:52:09 UTC 2016 - mrueckert@suse.de + +- disable python because the bindings dont match the old python + version either + ------------------------------------------------------------------- Tue May 10 22:44:17 UTC 2016 - mrueckert@suse.de diff --git a/ldns.spec b/ldns.spec index 19dd01d..8b83730 100644 --- a/ldns.spec +++ b/ldns.spec @@ -20,9 +20,11 @@ %if 0%{?suse_version} > 1110 %bcond_without gost %bcond_without perl +%bcond_without python %else %bcond_with gost %bcond_with perl +%bcond_with python %endif Name: ldns @@ -35,7 +37,9 @@ BuildRequires: doxygen BuildRequires: fdupes BuildRequires: libpcap-devel BuildRequires: openssl-devel +%if %{with python} BuildRequires: python-devel +%endif BuildRequires: swig # Url: http://www.nlnetlabs.nl/projects/ldns/ @@ -86,6 +90,7 @@ should be a lot faster than Perl. This package holds the development files. +%if %{with python} %package -n python-ldns Summary: Python bindings for ldns Group: Productivity/Networking/DNS/Servers @@ -95,6 +100,8 @@ Requires: libldns1 >= %version %description -n python-ldns Python bindings for ldns library +%endif + %if %{with perl} %package -n perl-DNS-LDNS Summary: Perl bindings for ldns @@ -104,6 +111,7 @@ Requires: libldns1 >= %version %description -n perl-DNS-LDNS Perl bindings for ldns library + %endif %prep @@ -123,8 +131,10 @@ export CFLAGS="%{optflags} -fno-strict-aliasing" --enable-rrtype-cds \ --enable-rrtype-uri \ --enable-rrtype-ta \ +%if %{with python} --with-pyldns \ --with-pyldnsx \ +%endif %if %{with perl} --with-p5-dns-ldns \ %endif @@ -139,9 +149,12 @@ make DESTDIR="%{buildroot}" \ install-drill \ install-examples +%if %{with python} make DESTDIR="%{buildroot}" \ install-pyldns \ install-pyldnsx +%{__rm} -v %{buildroot}%{python_sitearch}/*.la +%endif %if %{with perl} pushd contrib/DNS-LDNS @@ -152,7 +165,6 @@ popd %endif %{__rm} -v %{buildroot}%{_libdir}/libldns.*a -%{__rm} -v %{buildroot}%{python_sitearch}/*.la # %fdupes %buildroot%_mandir @@ -217,8 +229,10 @@ popd %{_mandir}/man3/DNS::LDNS*3pm* %endif +%if %{with python} %files -n python-ldns %defattr(-,root,root) %{python_sitearch}/*ldns* +%endif %changelog