- update to 1.6.17

- enable rrtype-ninfo, rrtype-rkey, rrtype-cds, rrtype-uri, rrtype-ta
- build pyldnsx bindings
- build perl bindings
- pass the path to our CA store

OBS-URL: https://build.opensuse.org/package/show/server:dns/ldns?expand=0&rev=24
This commit is contained in:
2014-05-27 22:06:18 +00:00
committed by Git OBS Bridge
parent 1aa5eeb46c
commit ff570ab817
4 changed files with 187 additions and 87 deletions

View File

@@ -17,7 +17,7 @@
Name: ldns
Version: 1.6.16
Version: 1.6.17
Release: 0
#
#
@@ -85,28 +85,54 @@ Requires: libldns1 >= %version
%description -n python-ldns
Python bindings for ldns library
%package -n perl-DNS-LDNS
Summary: Perl bindings for ldns
Group: Productivity/Networking/DNS/Servers
# doesn't use symbol versioning
Requires: libldns1 >= %version
%description -n perl-DNS-LDNS
Perl bindings for ldns library
%prep
%setup -q
%build
%configure --disable-rpath --disable-static --with-pyldns
export CFLAGS="%{optflags} -fno-strict-aliasing"
%configure \
--disable-rpath \
--disable-static \
--enable-rrtype-ninfo \
--enable-rrtype-rkey \
--enable-rrtype-cds \
--enable-rrtype-uri \
--enable-rrtype-ta \
--with-pyldns \
--with-pyldnsx \
--with-p5-dns-ldns \
--with-drill \
--with-examples \
--with-ca-path=/etc/ssl/certs/
%{__make} %{?_smp_mflags}
pushd drill
%configure --disable-rpath --disable-static
%{__make} %{?_smp_mflags}
popd
pushd examples
%configure --disable-rpath --disable-static
%{__make} %{?_smp_mflags}
popd
%install
%makeinstall
%makeinstall -C examples
%makeinstall -C drill
make DESTDIR="%{buildroot}" \
install \
install-drill \
install-examples
make DESTDIR="%{buildroot}" \
install-pyldns \
install-pyldnsx
pushd contrib/DNS-LDNS
%perl_make_install
%perl_process_packlist
popd
%{__rm} -v %{buildroot}%{_libdir}/libldns.*a
%{__rm} -v %{buildroot}%{python_sitearch}/*.la
%{__rm} -rv doc/doxyparse.pl doc/man/
%{__rm} -rfv %{buildroot}%{perl_sitearch}/
#
%fdupes %buildroot%_mandir
@@ -158,11 +184,20 @@ popd
%{_includedir}/ldns/
%{_libdir}/libldns.so
%{_mandir}/man3/ldns*.3*
%doc libdns.vim doc
%doc libdns.vim LICENSE README*
%files -n perl-DNS-LDNS
%defattr(-,root,root)
%{perl_vendorarch}/DNS/LDNS.pm
%dir %{perl_vendorarch}/DNS/
%{perl_vendorarch}/DNS/LDNS/
%dir %{perl_vendorarch}/auto/DNS/
%{perl_vendorarch}/auto/DNS/LDNS/
%{_mandir}/man3/DNS::LDNS*3pm*
%files -n python-ldns
%defattr(-,root,root)
%{python_sitearch}/*
%{python_sitearch}/*ldns*
%changelog