%define major 1 %define libname %mklibname %{name} %{major} %define develname %mklibname -d %{name} %define build_python 1 %define subrel 1 Summary: Lowlevel DNS(SEC) library with API Name: ldns Version: 1.6.17 Release: %mkrel 8 License: BSD Group: System/Libraries URL: http://www.nlnetlabs.nl/ldns/ Source0: http://www.nlnetlabs.nl/downloads/ldns/ldns-%{version}.tar.gz Patch0: ldns-1.6.17-avoid-version.diff Patch1: ldns-1.6.17-build_only_once.diff Patch2: ldns-1.6.12-CVE-2014-3209.diff # https://www.nlnetlabs.nl/bugs-script/show_bug.cgi?id=685 # https://bugzilla.redhat.com/show_bug.cgi?id=1230140 Patch4: ldns-1.6.17-doxyparse-perl-5-22-fix.patch Patch5: ldns-1.6.17-check-parse-limit.patch Patch6: ldns-1.6.17-free-after-reallocing.patch BuildRequires: automake BuildRequires: autoconf BuildRequires: libtool BuildRequires: openssl-devel BuildRequires: doxygen %if %{build_python} BuildRequires: swig BuildRequires: python-devel %endif %description ldns is a library with the aim to simplify DNS programing in C. All lowlevel DNS/DNSSEC operations are supported. We also define a higher level API which allows a programmer to (for instance) create or sign packets. %package -n %{name}-utils Summary: DNS(SEC) utility Group: Networking/Other %description -n %{name}-utils This package contains various utilities used to manage and validate DNSSEC zones using ldns library. %package -n %{libname} Summary: Lowlevel DNS(SEC) library with API Group: System/Libraries %description -n %{libname} ldns is a library with the aim to simplify DNS programing in C. All lowlevel DNS/DNSSEC operations are supported. We also define a higher level API which allows a programmer to (for instance) create or sign packets. %package -n %{develname} Summary: Development package that includes the ldns header files Group: Development/C Requires: %{libname} = %{version}-%{release} Provides: %{name}-devel = %{version}-%{release} %description -n %{develname} The devel package contains the ldns library and the include files %if %{build_python} %package -n python-%{name} Summary: Python extensions for ldns Group: Development/Python %description -n python-%{name} Python extensions for ldns %endif %prep %setup -q %autopatch -p1 %build %configure2_5x \ --disable-rpath \ %if %{build_python} --with-pyldns \ %endif --disable-static ( cd examples ; %configure2_5x --disable-rpath ) ( cd drill ; %configure2_5x --disable-rpath ) %make ( cd examples ; %make ) ( cd drill ; %make ) %install %makeinstall_std ( cd examples ; %makeinstall_std ) ( cd drill ; %makeinstall_std ) # cleanup and fix --short-circuit rm -rf docs; mkdir -p docs cp -rp doc docs/ rm -rf docs/doc/man rm -f docs/doc/doxyparse.pl rm -f docs/doc/ldns_manpages rm -rf docs/doc/.svn #we don't want these find %{buildroot} -name "*.la" -exec rm -rf {} \; %if %{build_python} #remove executable bit chmod a-x %{buildroot}%{py_platsitedir}/*py %endif %files -n %{libname} %doc README LICENSE %{_libdir}/lib*so.%{major}{,.*} %files -n %{develname} %doc docs/* Changelog README %dir %{_includedir}/ldns %{_includedir}/ldns/* %{_libdir}/lib*.so %{_mandir}/man3/* %{_bindir}/%{name}-config %files -n %{name}-utils %{_bindir}/* %exclude %{_bindir}/%{name}-config %{_mandir}/man1/* %if %{build_python} %files -n python-%{name} %{py_platsitedir}/* %endif %changelog * Thu Dec 28 2017 guillomovitch <guillomovitch> 1.6.17-8.1.mga6 + Revision: 1186333 - fix CVE-2017-1000231 and CVE-2017-1000232 (#22066) * Wed Mar 02 2016 umeabot <umeabot> 1.6.17-8.mga6 + Revision: 983560 - Rebuild for openssl - Mageia 6 Mass Rebuild * Thu Nov 12 2015 tv <tv> 1.6.17-6.mga6 + Revision: 902909 - fix build * Wed Oct 15 2014 umeabot <umeabot> 1.6.17-5.mga5 + Revision: 748352 - Second Mageia 5 Mass Rebuild * Sat Sep 27 2014 tv <tv> 1.6.17-4.mga5 + Revision: 726691 - rebuild for missing pythoneggs deps * Tue Sep 16 2014 umeabot <umeabot> 1.6.17-3.mga5 + Revision: 681291 - Mageia 5 Mass Rebuild * Sat May 31 2014 pterjan <pterjan> 1.6.17-2.mga5 + Revision: 628287 - Rebuild for new Python * Wed May 07 2014 oden <oden> 1.6.17-1.mga5 + Revision: 621008 - 1.6.17 - P0: rediff - P1: rediff - P2: security fix for CVE-2014-3209 (upstream) * Fri Oct 18 2013 umeabot <umeabot> 1.6.16-3.mga4 + Revision: 506890 - Mageia 4 Mass Rebuild * Sat Jan 12 2013 umeabot <umeabot> 1.6.16-2.mga3 + Revision: 356745 - Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild * Sat Dec 01 2012 dlucio <dlucio> 1.6.16-1.mga3 + Revision: 323663 - 1.6.16 - P0 rediffed * Sun Mar 25 2012 dlucio <dlucio> 1.6.12-1.mga2 + Revision: 226298 - SPEC fixes - imported package ldns * Wed Jan 11 2012 Alexander Khrukin <akhrukin@mandriva.org> 1.6.12-1 + Revision: 760141 - version update 1.6.12 * Sat Nov 05 2011 Oden Eriksson <oeriksson@mandriva.com> 1.6.11-2 + Revision: 719584 - bump release - fix build - 1.6.11 (fixes CVE-2011-3581) * Sun Jun 12 2011 Oden Eriksson <oeriksson@mandriva.com> 1.6.10-1 + Revision: 684325 - 1.6.10 * Wed Jun 01 2011 Oden Eriksson <oeriksson@mandriva.com> 1.6.9-1 + Revision: 682253 - 1.6.9 * Wed Mar 16 2011 Stéphane Téletchéa <steletch@mandriva.org> 1.6.8-1 + Revision: 645249 - update to new version 1.6.8 * Fri Oct 29 2010 Michael Scherer <misc@mandriva.org> 1.6.6-3mdv2011.0 + Revision: 590007 - rebuild for python 2.7 * Mon Oct 25 2010 Jani Välimaa <wally@mandriva.org> 1.6.6-2mdv2011.0 + Revision: 589267 - add more conditionals for building python subpackage * Mon Oct 25 2010 Jani Välimaa <wally@mandriva.org> 1.6.6-1mdv2011.0 + Revision: 589266 - new version 1.6.6 - build python extensions - minor spec cleaning - disable static build * Tue Oct 19 2010 Michael Scherer <misc@mandriva.org> 1.6.4-3mdv2011.0 + Revision: 586687 - add a ldns-utils subpackage with various utilities * Tue Apr 20 2010 Funda Wang <fwang@mandriva.org> 1.6.4-2mdv2010.1 + Revision: 536962 - rebuild * Tue Mar 02 2010 Sandro Cazzaniga <kharec@mandriva.org> 1.6.4-1mdv2010.1 + Revision: 513634 - update to 1.6.4 * Fri Jul 31 2009 Frederik Himpe <fhimpe@mandriva.org> 1.6.0-1mdv2010.0 + Revision: 405233 - Update to new version 1.6.0 * Thu Mar 26 2009 Oden Eriksson <oeriksson@mandriva.com> 1.5.1-1mdv2009.1 + Revision: 361325 - 1.5.1 (fixes CVE-2009-1086) * Mon Dec 08 2008 Oden Eriksson <oeriksson@mandriva.com> 1.4.0-0.20081103.1mdv2009.1 + Revision: 311881 - 1.4.0 (from unbound-1.1.1.tar.gz) * Mon Dec 08 2008 Oden Eriksson <oeriksson@mandriva.com> 1.3.0-4mdv2009.1 + Revision: 311861 - 1.3.0 (final) * Fri Aug 08 2008 Thierry Vignaud <tv@mandriva.org> 1.3.0-3.20080229.2mdv2009.0 + Revision: 267800 - rebuild early 2009.0 package (before pixel changes) * Fri May 30 2008 Oden Eriksson <oeriksson@mandriva.com> 1.3.0-0.20080229.2mdv2009.0 + Revision: 213295 - fix deps * Thu May 29 2008 Oden Eriksson <oeriksson@mandriva.com> 1.3.0-0.20080229.1mdv2009.0 + Revision: 213178 - import ldns