- 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
This commit is contained in:
parent
f34ce5d950
commit
0ea1f5d38e
@ -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
|
||||
|
||||
|
16
ldns.spec
16
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
|
||||
|
Loading…
x
Reference in New Issue
Block a user