[ldns-users] ldns fedora spec file and signed binaries available

Paul Wouters paul at xelerance.com
Thu Oct 6 15:44:42 UTC 2005


On Thu, 6 Oct 2005, Jelte Jansen wrote:

> I think the problem with the install directories was that we did not put
> $(DESTDIR) in our makefile install targets, so i've added them. Am i
> correct? (if so, it should work now, i've changed the ugly configure
> line in the .spec back to just ./configure)
>
> btw. we were planning on doing a big release real soon now (1.0.0). So
> if you have anything else that you think should really be in i/fixed let
> us know

Attached is the updated spec file. It builds correctly on my systems. It
now includes /usr/bin/drill in the ldns package, and uses DESTDIR=%{buildroot}

(if you can port those changes to nsd, that would be great too :)

'make examples' has been commented out, since building that breaks on a
missing examples/configure file. If it does build, add the resulting installed
files to either the regular package or the dev package %files section.

Paul
-- 

"Happiness is never grand"

 	--- Mustapha Mond, World Controller (Brave New World)
-------------- next part --------------
Summary: Lowlevel DNS(SEC) library with API
Name: ldns
Version: 1.0.0
Release: 3
License: LGPL
Url: http://open.nlnetlabs.nl/%{name}/
Source: http://open.nlnetlabs.nl/downloads/%{name}-%{version}.tar.gz
Group: System Environment/Libraries
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Requires: openssl
BuildRequires: libtool, autoconf, automake, gcc-c++, openssl-devel, doxygen

%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
rm -rf %{buildroot}
%setup -q 
libtoolize
autoreconf

%configure


%build
%{__make} %{?_smp_mflags}
%{__make} %{?_smp_mflags} drill
#%{__make} %{?_smp_mflags} examples
%{__make} %{?_smp_mflags} doc

%install

export DESTDIR=%{buildroot}
%{__make} install
%{__make} install-doc
%{__make} drill-install
#%{__make} examples
#remove doc stubs
rm -rf doc/.svn
#remove double set of man pages
rm -rf doc/man

%clean
rm -rf %{buildroot}

%files 
%defattr(-,root,root)
%{_libdir}/libldns*so
%{_bindir}/drill
%doc README LICENSE ROADMAP TODO 
%doc %{_mandir}/*/*

%files devel
%defattr(-,root,root,-)
%{_libdir}/libldns.la
%{_libdir}/libldns.a
%dir %{_includedir}/ldns/*
%doc doc
%doc Changelog COMPILE 

%pre

%post 
/sbin/ldconfig

%postun
/sbin/ldconfig

%changelog
* Wed Oct  6 2005 Paul Wouters <paul at xelerance.com> - 1.0.0
- reworked for svn version using DESTDIR. Added drill

* Sun Sep 25 2005 Paul Wouters <paul at xelerance.com> - 0.70
- Initial version





More information about the ldns-users mailing list