121 lines
3.4 KiB
RPMSpec
121 lines
3.4 KiB
RPMSpec
Summary: Lowlevel DNS(SEC) library with API
|
|
Name: ldns
|
|
Version: 1.2.0
|
|
Release: 7%{?dist}
|
|
License: BSD
|
|
Url: http://open.nlnetlabs.nl/%{name}/
|
|
Source: http://open.nlnetlabs.nl/downloads/%{name}-%{version}.tar.gz
|
|
Patch0: ldns-1.2.x-key2ds-SHA256.patch
|
|
Group: System Environment/Libraries
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
BuildRequires: libtool, autoconf, automake, gcc-c++, openssl-devel, doxygen, perl
|
|
|
|
%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 devel
|
|
Summary: Development package that includes the ldns header files
|
|
Group: Development/Libraries
|
|
Requires: %{name} = %{version}-%{release}, openssl-devel
|
|
|
|
%description devel
|
|
The devel package contains the ldns library and the include files
|
|
|
|
%prep
|
|
%setup -q
|
|
%patch0
|
|
|
|
# To built svn snapshots
|
|
#rm config.guess config.sub ltmain.sh
|
|
#libtoolize
|
|
#autoreconf
|
|
|
|
%configure --disable-rpath
|
|
|
|
%build
|
|
make %{?_smp_mflags}
|
|
(cd drill ; %configure --disable-rpath --with-ldns=../ldns/)
|
|
(cd examples ; %configure --disable-rpath --with-ldns=../ldns/)
|
|
( cd drill ; make %{?_smp_mflags} )
|
|
( cd examples ; make %{?_smp_mflags} )
|
|
make %{?_smp_mflags} doc
|
|
|
|
%install
|
|
rm -rf %{buildroot}
|
|
|
|
make DESTDIR=%{buildroot} install
|
|
make DESTDIR=%{buildroot} install-doc
|
|
|
|
rm doc/doxyparse.pl
|
|
#remove doc stubs
|
|
rm -rf doc/.svn
|
|
# remove .la files
|
|
rm -rf %{buildroot}%{_libdir}/*.la
|
|
(cd drill ; make DESTDIR=%{buildroot} install)
|
|
(cd examples; make DESTDIR=%{buildroot} install)
|
|
|
|
%clean
|
|
rm -rf %{buildroot}
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
%{_libdir}/libldns*so
|
|
%{_bindir}/drill
|
|
%{_bindir}/ldns-*
|
|
%{_bindir}/ldnsd
|
|
%doc README LICENSE
|
|
%{_mandir}/*/*
|
|
|
|
%files devel
|
|
%defattr(-,root,root,-)
|
|
%{_libdir}/libldns.a
|
|
%dir %{_includedir}/ldns/*
|
|
%doc doc Changelog README
|
|
|
|
%post -p /sbin/ldconfig
|
|
|
|
%postun -p /sbin/ldconfig
|
|
|
|
%changelog
|
|
* Mon Aug 8 2007 Paul Wouters <paul@xelerance.com> 1.2.0-7
|
|
- Added sha256 DS record patch to ldns-key2ds
|
|
- Minor tweaks for proper doc/man page installation.
|
|
|
|
* Mon Aug 6 2007 Paul Wouters <paul@xelerance.com> 1.2.0-2
|
|
- Own the /usr/include/ldns directory (bug #233858)
|
|
- Removed obsoleted patch
|
|
- Remove files form previous libtool run accidentally packages by upstream
|
|
|
|
* Mon Sep 11 2006 Paul Wouters <paul@xelerance.com> 1.0.1-4
|
|
- Commented out 1.1.0 make targets, put make 1.0.1 targets.
|
|
|
|
* Mon Sep 11 2006 Paul Wouters <paul@xelerance.com> 1.0.1-3
|
|
- Fixed changelog typo in date
|
|
- Rebuild requested for PT_GNU_HASH support from gcc
|
|
- Did not upgrade to 1.1.0 due to compile issues on x86_64
|
|
|
|
* Fri Jan 6 2006 Paul Wouters <paul@xelerance.com> 1.0.1-1
|
|
- Upgraded to 1.0.1. Removed temporary clean hack from spec file.
|
|
|
|
* Sun Dec 18 2005 Paul Wouters <paul@xelerance.com> 1.0.0-8
|
|
- Cannot use make clean because there are no Makefiles. Use hardcoded rm.
|
|
|
|
* Sun Dec 18 2005 Paul Wouters <paul@xelerance.com> 1.0.0-7
|
|
- Patched 'make clean' target to get rid of object files shipped with 1.0.0
|
|
|
|
* Sun Dec 13 2005 Paul Wouters <paul@xelerance.com> 1.0.0-6
|
|
- added a make clean for 2.3.3 since .o files were left behind upstream,
|
|
causing failure on ppc platform
|
|
|
|
* Sun Dec 11 2005 Tom "spot" Callaway <tcallawa@redhat.com> 1.0.0-5
|
|
- minor cleanups
|
|
|
|
* Wed Oct 5 2005 Paul Wouters <paul@xelerance.com> 0.70_1205
|
|
- reworked for svn version
|
|
|
|
* Sun Sep 25 2005 Paul Wouters <paul@xelerance.com> - 0.70
|
|
- Initial version
|