Accepting request 396540 from server:dns

Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/396540
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/ldns?expand=0&rev=12
This commit is contained in:
Dominique Leuenberger 2016-05-23 14:36:14 +00:00 committed by Git OBS Bridge
commit 61d8c0e4c4
2 changed files with 52 additions and 2 deletions

View File

@ -1,3 +1,19 @@
-------------------------------------------------------------------
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
- disable perl on sle11 as it needs at least 5.14.2
-------------------------------------------------------------------
Tue May 10 22:23:24 UTC 2016 - mrueckert@suse.de
- fix building on SLE11 by disabling gost
-------------------------------------------------------------------
Tue Sep 1 11:46:20 UTC 2015 - dimstar@opensuse.org

View File

@ -15,6 +15,17 @@
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# gost needs openssl >= 1.0
# we need at least 5.14.2
%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
Version: 1.6.17
@ -26,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/
@ -77,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
@ -86,6 +100,9 @@ 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
Group: Productivity/Networking/DNS/Servers
@ -95,6 +112,8 @@ Requires: libldns1 >= %version
%description -n perl-DNS-LDNS
Perl bindings for ldns library
%endif
%prep
%setup -q
%patch0 -p1
@ -102,6 +121,9 @@ Perl bindings for ldns library
%build
export CFLAGS="%{optflags} -fno-strict-aliasing"
%configure \
%if ! %{with gost}
--disable-gost \
%endif
--disable-rpath \
--disable-static \
--enable-rrtype-ninfo \
@ -109,9 +131,13 @@ 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
--with-drill \
--with-examples \
--with-ca-path=/etc/ssl/certs/
@ -123,18 +149,22 @@ 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
%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
@ -188,6 +218,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
@ -196,9 +227,12 @@ popd
%dir %{perl_vendorarch}/auto/DNS/
%{perl_vendorarch}/auto/DNS/LDNS/
%{_mandir}/man3/DNS::LDNS*3pm*
%endif
%if %{with python}
%files -n python-ldns
%defattr(-,root,root)
%{python_sitearch}/*ldns*
%endif
%changelog