Blame SPECS/ldns.spec

242bd2
%{?!with_python:      %global with_python      1}
242bd2
242bd2
%if %{with_python}
242bd2
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
242bd2
%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
242bd2
%endif
242bd2
242bd2
Summary: Low-level DNS(SEC) library with API
242bd2
Name: ldns
242bd2
Version: 1.6.16
242bd2
Release: 10%{?dist}
242bd2
License: BSD
242bd2
Url: http://www.nlnetlabs.nl/%{name}/
242bd2
Source: http://www.nlnetlabs.nl/downloads/%{name}/%{name}-%{version}.tar.gz
242bd2
Patch0: %{name}-1.6.16-uninitialized-value-compiler-warnings.patch
242bd2
Patch1: %{name}-1.6.16-multilib.patch
242bd2
Patch2: %{name}-1.6.16-manpage-fixes-bundle.patch
242bd2
Patch3: %{name}-1.6.16-dsa.patch
242bd2
Group: System Environment/Libraries
242bd2
BuildRequires: perl, libpcap-devel, openssl-devel, gcc-c++, doxygen,
242bd2
# for snapshots only
242bd2
# BuildRequires: libtool, autoconf, automake
242bd2
%if %{with_python}
242bd2
BuildRequires:  python-devel, swig
242bd2
%endif
242bd2
Requires: ca-certificates
242bd2
242bd2
%description
242bd2
ldns is a library with the aim to simplify DNS programming in C. All
242bd2
low-level DNS/DNSSEC operations are supported. We also define a higher
242bd2
level API which allows a programmer to (for instance) create or sign
242bd2
packets.
242bd2
242bd2
%package devel
242bd2
Summary: Development package that includes the ldns header files
242bd2
Group: Development/Libraries
242bd2
Requires: %{name} = %{version}-%{release}
242bd2
Requires: pkgconfig
242bd2
242bd2
%description devel
242bd2
The devel package contains the ldns library and the include files
242bd2
242bd2
%if %{with_python}
242bd2
%package python
242bd2
Summary: Python extensions for ldns
242bd2
Group: Applications/System
242bd2
Requires: %{name} = %{version}-%{release}
242bd2
242bd2
%description python
242bd2
Python extensions for ldns
242bd2
%endif
242bd2
242bd2
%package doc
242bd2
Summary: Documentation for the ldns library
242bd2
Group: Development/Libraries
242bd2
Requires: %{name}-devel = %{version}-%{release}
242bd2
BuildArch: noarch
242bd2
242bd2
%description doc
242bd2
This package contains documentation for the ldns library
242bd2
242bd2
%prep
242bd2
%setup -q 
242bd2
%patch0 -p2
242bd2
%patch1 -p1
242bd2
%patch2 -p1 -b .manpage
242bd2
%patch3 -p1
242bd2
# To built svn snapshots
242bd2
# rm config.guess config.sub ltmain.sh
242bd2
# aclocal
242bd2
# libtoolize -c --install
242bd2
# autoreconf --install
242bd2
242bd2
# fixup .pc file
242bd2
sed -i "s/@includedir@/@includedir@\/ldns/" packaging/libldns.pc.in
242bd2
242bd2
%build
242bd2
# as long as ECC is banned we cannot enable GOST or ECDSA
242bd2
%configure \
242bd2
    --disable-rpath \
242bd2
    --disable-static \
242bd2
    --disable-gost \
242bd2
    --enable-ecdsa \
242bd2
    --with-ca-file=/etc/pki/tls/certs/ca-bundle.trust.crt \
242bd2
    --with-ca-path=/etc/pki/tls/certs/ \
242bd2
%if %{with_python}
242bd2
    --with-pyldns \
242bd2
%endif
242bd2
    --with-trust-anchor=%{_sharedstatedir}/unbound/root.key
242bd2
242bd2
(cd drill ;
242bd2
%configure \
242bd2
    --disable-rpath \
242bd2
    --disable-static \
242bd2
    --disable-gost \
242bd2
    --enable-ecdsa \
242bd2
    --with-ca-file=/etc/pki/tls/certs/ca-bundle.trust.crt \
242bd2
    --with-ca-path=/etc/pki/tls/certs/ \
242bd2
    --with-trust-anchor=%{_sharedstatedir}/unbound/root.key
242bd2
)
242bd2
(cd examples ;
242bd2
%configure \
242bd2
    --disable-rpath \
242bd2
    --disable-static \
242bd2
    --disable-gost \
242bd2
    --enable-ecdsa \
242bd2
    --with-ca-file=/etc/pki/tls/certs/ca-bundle.trust.crt \
242bd2
    --with-ca-path=/etc/pki/tls/certs/ \
242bd2
    --with-trust-anchor=%{_sharedstatedir}/unbound/root.key
242bd2
)
242bd2
242bd2
make %{?_smp_mflags} 
242bd2
( cd drill ; make %{?_smp_mflags} )
242bd2
( cd examples ; make %{?_smp_mflags} )
242bd2
make %{?_smp_mflags} doc
242bd2
242bd2
%install
242bd2
rm -rf %{buildroot}
242bd2
242bd2
make DESTDIR=%{buildroot} INSTALL="%{__install} -p" install 
242bd2
make DESTDIR=%{buildroot} INSTALL="%{__install} -p" install-doc
242bd2
242bd2
# install pkg-config file
242bd2
install -D -m 644 packaging/libldns.pc %{buildroot}%{_libdir}/pkgconfig/ldns.pc
242bd2
242bd2
# don't package xml files
242bd2
rm doc/*.xml
242bd2
# don't package building script for install-doc in doc section
242bd2
rm doc/doxyparse.pl
242bd2
#remove double set of man pages
242bd2
rm -rf doc/man
242bd2
# remove .la files
242bd2
rm -rf %{buildroot}%{_libdir}/*.la %{buildroot}%{python_sitearch}/*.la
242bd2
(cd drill ; make DESTDIR=%{buildroot} install)
242bd2
(cd examples; make DESTDIR=%{buildroot} install)
242bd2
242bd2
%clean
242bd2
rm -rf %{buildroot}
242bd2
242bd2
%files 
242bd2
%defattr(-,root,root)
242bd2
%{_libdir}/libldns*so.*
242bd2
%{_bindir}/drill
242bd2
%{_bindir}/ldnsd
242bd2
%{_bindir}/ldns-chaos
242bd2
%{_bindir}/ldns-compare-zones
242bd2
%{_bindir}/ldns-[d-z]*
242bd2
%doc README LICENSE
242bd2
%{_mandir}/*/*
242bd2
242bd2
%files devel
242bd2
%defattr(-,root,root,-)
242bd2
%{_libdir}/libldns*so
242bd2
%{_libdir}/pkgconfig/ldns.pc
242bd2
%{_bindir}/ldns-config
242bd2
%dir %{_includedir}/ldns
242bd2
%{_includedir}/ldns/*.h
242bd2
%doc Changelog README
242bd2
242bd2
%if %{with_python}
242bd2
%files python
242bd2
%defattr(-,root,root)
242bd2
%{python_sitearch}/*
242bd2
%endif
242bd2
242bd2
%files doc
242bd2
%doc doc
242bd2
242bd2
%post -p /sbin/ldconfig
242bd2
242bd2
%postun -p /sbin/ldconfig
242bd2
242bd2
%changelog
242bd2
* Wed May 18 2016 Pavel Å imerda <psimerda@redhat.com> - 1.6.16-10
242bd2
- Resolves: #1077799 - ldns could produce bad DSA sign
242bd2
242bd2
* Tue May 17 2016 Tomas Hozza <thozza@redhat.com> - 1.6.16-9
242bd2
- Fix and install the .pc (pkg-config) file (#1096925)
242bd2
242bd2
* Thu May 12 2016 Tomas Hozza <thozza@redhat.com> - 1.6.16-8
242bd2
- Enabled ECDSA support (#1265605)
242bd2
242bd2
* Fri Jan 24 2014 Daniel Mach <dmach@redhat.com> - 1.6.16-7
242bd2
- Mass rebuild 2014-01-24
242bd2
242bd2
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 1.6.16-6
242bd2
- Mass rebuild 2013-12-27
242bd2
242bd2
* Tue Jul 23 2013 Tomas Hozza <thozza@redhat.com> - 1.6.16-5
242bd2
- Fix compiler warnings and one uninitialized value
242bd2
- make ldns-config multilib clean
242bd2
- Fix man pages and usages errors
242bd2
242bd2
* Mon Jun 03 2013 Paul Wouters <pwouters@redhat.com> - 1.6.16-4
242bd2
- Use /var/lib/unbound/root.key for --with-trust-anchor
242bd2
242bd2
* Fri Apr 19 2013 Adam Tkac <atkac redhat com> - 1.6.16-3
242bd2
- make package multilib clean
242bd2
242bd2
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.6.16-2
242bd2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
242bd2
242bd2
* Tue Oct 30 2012 Paul Wouters <pwouters@redhat.com> - 1.6.16-1
242bd2
- Updated to 1.6.16
242bd2
- Addresses bug in 1.6.14 and 1.6.15 that affects opendnssec
242bd2
  (if you have empty non-terminals and use NSEC3)
242bd2
242bd2
* Fri Oct 26 2012 Paul Wouters <pwouters@redhat.com> - 1.6.15-1
242bd2
- Updated to 1.6.15, as 1.6.14 accidentally broke ABI
242bd2
  (We never released 1.6.14)
242bd2
242bd2
* Tue Oct 23 2012 Paul Wouters <pwouters@redhat.com> - 1.6.14-1
242bd2
- [pulled before release]
242bd2
- Updated to 1.6.14
242bd2
- Removed merged in patch
242bd2
- Added new dependancy on ca-certificates for ldns-dane PKIX validation
242bd2
242bd2
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.6.13-3
242bd2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
242bd2
242bd2
* Fri Jun 01 2012 Paul Wouters <pwouters@redhat.com> - 1.6.13-2
242bd2
- Added reworked ldns-read-zone patch from trunk
242bd2
  (adds -p for SOA padding, and -o for zeroizing timestamps/sigs)
242bd2
242bd2
* Mon May 21 2012 Paul Wouters <pwouters@redhat.com> - 1.6.13-1
242bd2
- Upgraded to 1.6.13, bugfix release
242bd2
- Added --disable-ecdsa as ECC is still banned
242bd2
- Removed --with-sha2 - it is always enabled and option was removed
242bd2
242bd2
* Wed Jan 11 2012 Paul Wouters <paul@nohats.ca> - 1.6.12-1
242bd2
- Upgraded to 1.6.12, fixes important end of year handling date bug
242bd2
242bd2
* Wed Oct  5 2011 Paul Wouters <paul@xelerance.com> - 1.6.11-2
242bd2
- Updated to 1.6.11, fixes rhbz#741026 which is CVE-2011-3581
242bd2
- Python goes into sitearch, not sitelib
242bd2
- Fix source link and spelling errors in description
242bd2
242bd2
* Mon Sep 19 2011 Paul Wouters <paul@xelerance.com> - 1.6.10-2
242bd2
- Fix for losing nameserver when it drops UDP fragments in
242bd2
  ldns_resolver_send_pkt [Willem Toorop <willem@NLnetLabs.nl>]
242bd2
- Added ldnsx module (to be merged into ldns soon)
242bd2
  http://git.xelerance.com/cgi-bin/gitweb.cgi?p=ldnsx.git;a=summary
242bd2
242bd2
* Wed Jun 08 2011 Paul Wouters <paul@xelerance.com> - 1.6.10-1
242bd2
- Upodated to 1.6.10
242bd2
- Commented out dependancies that are only needed for snapshots
242bd2
242bd2
* Sun Mar 27 2011 Paul Wouters <paul@xelerance.com> - 1.6.9-1
242bd2
- Updated to 1.6.9
242bd2
242bd2
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.6.8-2
242bd2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
242bd2
242bd2
* Mon Jan 24 2011 Paul Wouters <paul@xelerance.com> - 1.6.8-1
242bd2
- Updated to 1.6.8
242bd2
242bd2
* Thu Aug 26 2010 Paul Wouters <paul@xelerance.com> - 1.6.6-2
242bd2
- Bump for EVR
242bd2
242bd2
* Mon Aug 09 2010 Paul Wouters <paul@xelerance.com> - 1.6.6-1
242bd2
- Upgraded to 1.6.6
242bd2
242bd2
* Wed Jul 21 2010 David Malcolm <dmalcolm@redhat.com> - 1.6.5-2
242bd2
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
242bd2
242bd2
* Tue Jun 15 2010 Paul Wouters <paul@xelerance.com> - 1.6.5-1
242bd2
- Updated to 1.6.5
242bd2
242bd2
* Fri Jan 22 2010 Paul Wouters <paul@xelerance.com> - 1.6.4-2
242bd2
- Fix missing _ldns.so causing ldns-python to not work
242bd2
- Patch for installing ldns-python files
242bd2
- Patch for rpath in ldns-python
242bd2
- Don't install .a file for ldns-python
242bd2
242bd2
* Wed Jan 20 2010 Paul Wouters <paul@xelerance.com> - 1.6.4-1
242bd2
- Upgraded to 1.6.4. 
242bd2
- Added ldns-python sub package
242bd2
242bd2
* Fri Dec 04 2009 Paul Wouters <paul@xelerance.com> - 1.6.3-1
242bd2
- Upgraded to 1.6.3, which has minor bugfixes
242bd2
242bd2
* Fri Nov 13 2009 Paul Wouters <paul@xelerance.com> - 1.6.2-1
242bd2
- Upgraded to 1.6.2. This fixes various bugs.
242bd2
  (upstream released mostly to default with sha2 for the imminent
242bd2
   signed root, but we already enabled that in our builds)
242bd2
242bd2
* Tue Aug 25 2009 Tomas Mraz <tmraz@redhat.com> - 1.6.1-3
242bd2
- rebuilt with new openssl
242bd2
242bd2
* Sun Aug 16 2009 Paul Wouters <paul@xelerance.com> - 1.6.1-2
242bd2
- Added openssl dependancy back in, since we get more functionality
242bd2
 when using openssl. Especially in 'drill'.
242bd2
242bd2
* Sun Aug 16 2009 Paul Wouters <paul@xelerance.com> - 1.6.1-1
242bd2
- Updated to 1.6.1
242bd2
242bd2
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.6.0-5
242bd2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
242bd2
242bd2
* Mon Jul 13 2009 Paul Wouters <paul@xelerance.com> - 1.6.0-4
242bd2
- Fixed the ssl patch so it can now compile --without-ssl
242bd2
242bd2
* Sat Jul 11 2009 Paul Wouters <paul@xelerance.com> - 1.6.0-3
242bd2
- Added patch to compile with --without-ssl
242bd2
- Removed openssl dependancies
242bd2
- Recompiled with --without-ssl
242bd2
242bd2
* Sat Jul 11 2009 Paul Wouters <paul@xelerance.com> - 1.6.0-2
242bd2
- Updated to 1.6.0
242bd2
- (did not yet compile with --without-ssl due to compile failures)
242bd2
242bd2
* Fri Jul 10 2009 Paul Wouters <paul@xelerance.com> - 1.6.0-1
242bd2
- Updated to 1.6.0
242bd2
- Compile without openssl
242bd2
242bd2
* Thu Apr 16 2009 Paul Wouters <paul@xelerance.com> - 1.5.1-4
242bd2
- Memory management bug when generating a sha256 key, see:
242bd2
  https://bugzilla.redhat.com/show_bug.cgi?id=493953
242bd2
242bd2
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5.1-2
242bd2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
242bd2
242bd2
* Tue Feb 10 2009 Paul Wouters <paul@xelerance.com> - 1.5.1-1
242bd2
- Updated to new version, 1.5.0 had a bug preventing
242bd2
  zone signing.
242bd2
242bd2
* Mon Feb  9 2009 Paul Wouters <paul@xelerance.com> - 1.5.0-1
242bd2
- Updated to new version
242bd2
242bd2
* Thu Feb 05 2009 Adam Tkac <atkac redhat com> - 1.4.0-3
242bd2
- fixed configure flags
242bd2
242bd2
* Sat Jan 17 2009 Tomas Mraz <tmraz@redhat.com> - 1.4.0-2
242bd2
- rebuild with new openssl
242bd2
242bd2
* Fri Nov  7 2008 Paul Wouters <paul@xelerance.com> - 1.4.0-1
242bd2
- Updated to 1.4.0
242bd2
242bd2
* Wed May 28 2008 Paul Wouters <paul@xelerance.com> - 1.3.0-3
242bd2
- enable SHA2 functionality
242bd2
242bd2
* Wed May 28 2008 Paul Wouters <paul@xelerance.com> - 1.3.0-2
242bd2
- re-tag (don't do builds while renaming local repo dirs)
242bd2
242bd2
* Wed May 28 2008 Paul Wouters <paul@xelerance.com> - 1.3.0-1
242bd2
- Updated to latest release
242bd2
242bd2
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 1.2.2-3
242bd2
- Autorebuild for GCC 4.3
242bd2
242bd2
* Wed Dec  5 2007 Paul Wouters <paul@xelerance.com> - 1.2.2-2
242bd2
- Rebuild for new libcrypto
242bd2
242bd2
* Thu Nov 29 2007 Paul Wouters <paul@xelerance.com> - 1.2.2-1
242bd2
- Upgraded to 1.2.2. Removed no longer needed race workaround
242bd2
242bd2
* Tue Nov 13 2007 Paul Wouters <paul@xelerance.com> - 1.2.1-4
242bd2
- Try to fix racing ln -s statements in parallel builds
242bd2
242bd2
* Fri Nov  9 2007 Paul Wouters <paul@xelerance.com> - 1.2.1-3
242bd2
- Added patch for ldns-read-zone that does not put @. in RRDATA
242bd2
242bd2
* Fri Oct 19 2007 Paul Wouters <paul@xelerance.com> - 1.2.1-2
242bd2
- Use install -p to work around multilib conflicts for .h files
242bd2
242bd2
* Wed Oct 10 2007 Paul Wouters <paul@xelerance.com> - 1.2.1-1
242bd2
- Updated to 1.2.1
242bd2
- Removed patches that got moved into upstream
242bd2
242bd2
* Wed Aug  8 2007 Paul Wouters <paul@xelerance.com> 1.2.0-11
242bd2
- Patch for ldns-key2ds to write to stdout
242bd2
- Again remove extra set of man pages from doc
242bd2
- own /usr/include/ldns (bug 233858)
242bd2
242bd2
* Wed Aug  8 2007 Paul Wouters <paul@xelerance.com> 1.2.0-10
242bd2
- Added sha256 DS record patch to ldns-key2ds
242bd2
- Minor tweaks for proper doc/man page installation.
242bd2
- Workaround for parallel builds
242bd2
242bd2
* Mon Aug  6 2007 Paul Wouters <paul@xelerance.com> 1.2.0-2
242bd2
- Own the /usr/include/ldns directory (bug #233858)
242bd2
- Removed obsoleted patch
242bd2
- Remove files form previous libtool run accidentally packages by upstream
242bd2
242bd2
* Mon Sep 11 2006 Paul Wouters <paul@xelerance.com> 1.0.1-4
242bd2
- Commented out 1.1.0 make targets, put make 1.0.1 targets.
242bd2
242bd2
* Mon Sep 11 2006 Paul Wouters <paul@xelerance.com> 1.0.1-3
242bd2
- Fixed changelog typo in date
242bd2
- Rebuild requested for PT_GNU_HASH support from gcc
242bd2
- Did not upgrade to 1.1.0 due to compile issues on x86_64
242bd2
242bd2
* Fri Jan  6 2006 Paul Wouters <paul@xelerance.com> 1.0.1-1
242bd2
- Upgraded to 1.0.1. Removed temporary clean hack from spec file.
242bd2
242bd2
* Sun Dec 18 2005 Paul Wouters <paul@xelerance.com> 1.0.0-8
242bd2
- Cannot use make clean because there are no Makefiles. Use hardcoded rm.
242bd2
242bd2
* Sun Dec 18 2005 Paul Wouters <paul@xelerance.com> 1.0.0-7
242bd2
- Patched 'make clean' target to get rid of object files shipped with 1.0.0
242bd2
242bd2
* Tue Dec 13 2005 Paul Wouters <paul@xelerance.com> 1.0.0-6
242bd2
- added a make clean for 2.3.3 since .o files were left behind upstream,
242bd2
  causing failure on ppc platform
242bd2
242bd2
* Sun Dec 11 2005 Tom "spot" Callaway <tcallawa@redhat.com> 1.0.0-5
242bd2
- minor cleanups
242bd2
242bd2
* Wed Oct  5 2005 Paul Wouters <paul@xelerance.com> 0.70_1205
242bd2
- reworked for svn version
242bd2
242bd2
* Sun Sep 25 2005 Paul Wouters <paul@xelerance.com> - 0.70
242bd2
- Initial version