- 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
|
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
|
%if 0%{?suse_version} > 1110
|
||||||
%bcond_without gost
|
%bcond_without gost
|
||||||
%bcond_without perl
|
%bcond_without perl
|
||||||
|
%bcond_without python
|
||||||
%else
|
%else
|
||||||
%bcond_with gost
|
%bcond_with gost
|
||||||
%bcond_with perl
|
%bcond_with perl
|
||||||
|
%bcond_with python
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
Name: ldns
|
Name: ldns
|
||||||
@ -35,7 +37,9 @@ BuildRequires: doxygen
|
|||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: libpcap-devel
|
BuildRequires: libpcap-devel
|
||||||
BuildRequires: openssl-devel
|
BuildRequires: openssl-devel
|
||||||
|
%if %{with python}
|
||||||
BuildRequires: python-devel
|
BuildRequires: python-devel
|
||||||
|
%endif
|
||||||
BuildRequires: swig
|
BuildRequires: swig
|
||||||
#
|
#
|
||||||
Url: http://www.nlnetlabs.nl/projects/ldns/
|
Url: http://www.nlnetlabs.nl/projects/ldns/
|
||||||
@ -86,6 +90,7 @@ should be a lot faster than Perl.
|
|||||||
|
|
||||||
This package holds the development files.
|
This package holds the development files.
|
||||||
|
|
||||||
|
%if %{with python}
|
||||||
%package -n python-ldns
|
%package -n python-ldns
|
||||||
Summary: Python bindings for ldns
|
Summary: Python bindings for ldns
|
||||||
Group: Productivity/Networking/DNS/Servers
|
Group: Productivity/Networking/DNS/Servers
|
||||||
@ -95,6 +100,8 @@ Requires: libldns1 >= %version
|
|||||||
%description -n python-ldns
|
%description -n python-ldns
|
||||||
Python bindings for ldns library
|
Python bindings for ldns library
|
||||||
|
|
||||||
|
%endif
|
||||||
|
|
||||||
%if %{with perl}
|
%if %{with perl}
|
||||||
%package -n perl-DNS-LDNS
|
%package -n perl-DNS-LDNS
|
||||||
Summary: Perl bindings for ldns
|
Summary: Perl bindings for ldns
|
||||||
@ -104,6 +111,7 @@ Requires: libldns1 >= %version
|
|||||||
|
|
||||||
%description -n perl-DNS-LDNS
|
%description -n perl-DNS-LDNS
|
||||||
Perl bindings for ldns library
|
Perl bindings for ldns library
|
||||||
|
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
@ -123,8 +131,10 @@ export CFLAGS="%{optflags} -fno-strict-aliasing"
|
|||||||
--enable-rrtype-cds \
|
--enable-rrtype-cds \
|
||||||
--enable-rrtype-uri \
|
--enable-rrtype-uri \
|
||||||
--enable-rrtype-ta \
|
--enable-rrtype-ta \
|
||||||
|
%if %{with python}
|
||||||
--with-pyldns \
|
--with-pyldns \
|
||||||
--with-pyldnsx \
|
--with-pyldnsx \
|
||||||
|
%endif
|
||||||
%if %{with perl}
|
%if %{with perl}
|
||||||
--with-p5-dns-ldns \
|
--with-p5-dns-ldns \
|
||||||
%endif
|
%endif
|
||||||
@ -139,9 +149,12 @@ make DESTDIR="%{buildroot}" \
|
|||||||
install-drill \
|
install-drill \
|
||||||
install-examples
|
install-examples
|
||||||
|
|
||||||
|
%if %{with python}
|
||||||
make DESTDIR="%{buildroot}" \
|
make DESTDIR="%{buildroot}" \
|
||||||
install-pyldns \
|
install-pyldns \
|
||||||
install-pyldnsx
|
install-pyldnsx
|
||||||
|
%{__rm} -v %{buildroot}%{python_sitearch}/*.la
|
||||||
|
%endif
|
||||||
|
|
||||||
%if %{with perl}
|
%if %{with perl}
|
||||||
pushd contrib/DNS-LDNS
|
pushd contrib/DNS-LDNS
|
||||||
@ -152,7 +165,6 @@ popd
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
%{__rm} -v %{buildroot}%{_libdir}/libldns.*a
|
%{__rm} -v %{buildroot}%{_libdir}/libldns.*a
|
||||||
%{__rm} -v %{buildroot}%{python_sitearch}/*.la
|
|
||||||
#
|
#
|
||||||
%fdupes %buildroot%_mandir
|
%fdupes %buildroot%_mandir
|
||||||
|
|
||||||
@ -217,8 +229,10 @@ popd
|
|||||||
%{_mandir}/man3/DNS::LDNS*3pm*
|
%{_mandir}/man3/DNS::LDNS*3pm*
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
%if %{with python}
|
||||||
%files -n python-ldns
|
%files -n python-ldns
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%{python_sitearch}/*ldns*
|
%{python_sitearch}/*ldns*
|
||||||
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
x
Reference in New Issue
Block a user