Accepting request 517554 from home:pmonrealgonzalez:branches:server:dns
- Update to version 1.7.0 * Ldns built with openssl-1.1.0 [bsc#1042653] * Fix #551 change Regent to Copyright holder in BSD license in some of the headings of the file, to match the opensource.org BSD license. * -e option makes ldns-compare-zones exit with status code 2 on difference * Filter out specified RR types with ldns-read-zone -e and -E options * bugfix #563: Correct DNSKEY from DSA private key. * bugfix #562: ldns-keygen match DSA key maximum size with library. And check keysizes with all algorithms. * ldns-verify-zone accepts only one single zonefile as argument. * bugfix #573: ldns-keygen write private keys with mode 0600. * Fix configure to make ldns compile with LibreSSL 2.0 * drill now also accepts dig style -y option (-y <[algo:]name:key> i.s.o. -y <name:key[:algo]>) * OPENPGPKEY draft rr types. Enable with: --enable-rrtype-openpgpkey * bugfix #608: Correct comment about escaped characters * CDS and CDNSKEY rr type from RFC 7344. --enable-rrtype-cds configure option removed * fix: Memory leak in ldns_pkt_rr_list_by_name() * fix: Memory leak in ldns_dname2buffer_wire_compress() * bugfix #613: Allow tab as whitespace too in last rdata field of types of variable length. * bugfix: strip trailing whitespace from $ORIGIN lines in zone files * Let ldns-keygen output .ds files only for KSK keys * Parse RFC7218 TLSA mnemonics, but do not output them * Let ldns-dane use SPKI as the default selector i.s.o. Cert * bugfix: Fit left over NSEC3s once more before adding empty non terminals * bugfix #605: Determine default trust anchor location at compile time * bugfix #697: Double free with ldns-dane create * bugfix #623: Do not redefine bool type and boolean values OBS-URL: https://build.opensuse.org/request/show/517554 OBS-URL: https://build.opensuse.org/package/show/server:dns/ldns?expand=0&rev=32
This commit is contained in:
130
ldns.spec
130
ldns.spec
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package ldns
|
||||
#
|
||||
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -15,40 +15,23 @@
|
||||
# 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
|
||||
|
||||
%define libname libldns2
|
||||
Name: ldns
|
||||
Version: 1.6.17
|
||||
Version: 1.7.0
|
||||
Release: 0
|
||||
#
|
||||
#
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
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/
|
||||
Source: http://www.nlnetlabs.nl/downloads/ldns/ldns-%{version}.tar.gz
|
||||
Patch0: ldns-perl-5.22.patch
|
||||
#
|
||||
Summary: A dns library
|
||||
License: BSD-3-Clause
|
||||
Group: Development/Libraries/C and C++
|
||||
Url: http://www.nlnetlabs.nl/projects/ldns/
|
||||
Source: http://www.nlnetlabs.nl/downloads/ldns/ldns-%{version}.tar.gz
|
||||
BuildRequires: doxygen
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: libpcap-devel
|
||||
BuildRequires: openssl-devel >= 1.1.0
|
||||
BuildRequires: perl-Devel-CheckLib
|
||||
BuildRequires: python-devel
|
||||
BuildRequires: swig
|
||||
|
||||
%description
|
||||
The goal of ldns is to simplify DNS programming, it supports recent RFCs like
|
||||
@@ -59,26 +42,22 @@ should be a lot faster than Perl.
|
||||
|
||||
This package holds the tools/examples from ldns.
|
||||
|
||||
%package -n libldns1
|
||||
#
|
||||
%package -n %{libname}
|
||||
Summary: Tools from ldns
|
||||
Group: Productivity/Networking/DNS/Servers
|
||||
|
||||
%description -n libldns1
|
||||
%description -n %{libname}
|
||||
The goal of ldns is to simplify DNS programming, it supports recent RFCs like
|
||||
the DNSSEC documents, and allows developers to easily create software
|
||||
conforming to current RFCs, and experimental software for current Internet
|
||||
Drafts. A secondary benefit of using ldns is speed; ldns is written in C it
|
||||
should be a lot faster than Perl.
|
||||
|
||||
|
||||
%package devel
|
||||
Requires: libldns1 = %{version}
|
||||
# Openssl-devel is needed as dnssec.h has a #include ssl.h statement.
|
||||
Requires: openssl-devel
|
||||
#
|
||||
Summary: Development files for ldns
|
||||
Group: Development/Libraries/C and C++
|
||||
Requires: %{libname} = %{version}
|
||||
Requires: openssl-devel
|
||||
|
||||
%description devel
|
||||
The goal of ldns is to simplify DNS programming, it supports recent RFCs like
|
||||
@@ -87,43 +66,30 @@ conforming to current RFCs, and experimental software for current Internet
|
||||
Drafts. A secondary benefit of using ldns is speed; ldns is written in C it
|
||||
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
|
||||
# doesn't use symbol versioning
|
||||
Requires: libldns1 >= %version
|
||||
Requires: %{libname} >= %{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
|
||||
# doesn't use symbol versioning
|
||||
Requires: libldns1 >= %version
|
||||
Requires: %{libname} >= %{version}
|
||||
|
||||
%description -n perl-DNS-LDNS
|
||||
Perl bindings for ldns library
|
||||
|
||||
%endif
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
%patch0 -p1
|
||||
|
||||
%build
|
||||
export CFLAGS="%{optflags} -fno-strict-aliasing"
|
||||
%configure \
|
||||
%if ! %{with gost}
|
||||
--disable-gost \
|
||||
%endif
|
||||
--disable-rpath \
|
||||
--disable-static \
|
||||
--enable-rrtype-ninfo \
|
||||
@@ -131,52 +97,42 @@ 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/
|
||||
%{__make} %{?_smp_mflags}
|
||||
--with-ca-path=%{_sysconfdir}/ssl/certs/
|
||||
make %{?_smp_mflags}
|
||||
|
||||
# We cannot use the built-in --with-p5-dns-ldns
|
||||
pushd contrib/DNS-LDNS
|
||||
LD_LIBRARY_PATH="../../lib:$LD_LIBRARY_PATH" perl \
|
||||
Makefile.PL INSTALLDIRS=vendor INC="-I. -I../.." LIBS="-L../../lib"
|
||||
make %{?_smp_mflags}
|
||||
popd
|
||||
|
||||
%install
|
||||
make DESTDIR="%{buildroot}" \
|
||||
make DESTDIR=%{buildroot} \
|
||||
install \
|
||||
install-drill \
|
||||
install-examples
|
||||
|
||||
%if %{with python}
|
||||
make DESTDIR="%{buildroot}" \
|
||||
make DESTDIR=%{buildroot} \
|
||||
install-pyldns \
|
||||
install-pyldnsx
|
||||
%{__rm} -v %{buildroot}%{python_sitearch}/*.la
|
||||
%endif
|
||||
rm -v %{buildroot}%{python_sitearch}/*.la
|
||||
|
||||
%if %{with perl}
|
||||
pushd contrib/DNS-LDNS
|
||||
%perl_make_install
|
||||
%perl_process_packlist
|
||||
popd
|
||||
%{__rm} -rfv %{buildroot}%{perl_sitearch}/
|
||||
%endif
|
||||
make -C contrib/DNS-LDNS DESTDIR=%{buildroot} pure_install
|
||||
chmod 755 %{buildroot}%{perl_vendorarch}/auto/DNS/LDNS/LDNS.so
|
||||
rm -f %{buildroot}%{perl_vendorarch}/auto/DNS/LDNS/{.packlist,LDNS.bs}
|
||||
|
||||
%{__rm} -v %{buildroot}%{_libdir}/libldns.*a
|
||||
#
|
||||
%fdupes %buildroot%_mandir
|
||||
rm -v %{buildroot}%{_libdir}/libldns.*a
|
||||
%fdupes %{buildroot}%{_mandir}
|
||||
|
||||
%clean
|
||||
%{__rm} -rf %{buildroot}
|
||||
|
||||
%post -n libldns1 -p /sbin/ldconfig
|
||||
|
||||
%postun -n libldns1 -p /sbin/ldconfig
|
||||
%post -n %{libname} -p /sbin/ldconfig
|
||||
%postun -n %{libname} -p /sbin/ldconfig
|
||||
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
%{_bindir}/drill
|
||||
%{_bindir}/ldns-chaos
|
||||
%{_bindir}/ldns-compare-zones
|
||||
@@ -206,33 +162,25 @@ popd
|
||||
%{_mandir}/man1/drill.1*
|
||||
%{_mandir}/man1/ldns*.1*
|
||||
|
||||
%files -n libldns1
|
||||
%defattr(-,root,root,-)
|
||||
%{_libdir}/libldns.so.1*
|
||||
%files -n %{libname}
|
||||
%{_libdir}/libldns.so.*
|
||||
|
||||
%files devel
|
||||
%defattr(-,root,root,-)
|
||||
%{_bindir}/ldns-config
|
||||
%{_includedir}/ldns/
|
||||
%{_libdir}/libldns.so
|
||||
%{_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
|
||||
%dir %{perl_vendorarch}/DNS/
|
||||
%{perl_vendorarch}/DNS/LDNS/
|
||||
%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
|
||||
|
Reference in New Issue
Block a user