File ldns.spec of Package ldns

#
# spec file for package ldns (Version 1.5.1)
#
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

# norootforbuild


Name:           ldns
Summary:        ldns is a library to simplify DNS programming
Group:          Development/Libraries/C and C++
License:        BSD 3-Clause
Version:        1.6.11
Release:        1
Url:            http://www.nlnetlabs.nl/projects/ldns/
Source:         http://www.nlnetlabs.nl/downloads/ldns/%{name}-%{version}.tar.gz
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  openssl-devel libopenssl-devel libopenssl1_0_0 libtool

%description
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.



Authors:
--------
    NLnet Labs

%package -n     libldns1
License:        BSD 3-Clause
Summary:        ldns is a library to simplify DNS programming
Group:          Development/Libraries/C and C++

%description -n libldns1
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.



Authors:
--------
    NLnet Labs

%package -n		libldns-devel
License:        BSD 3-Clause
Summary:        ldns is a library to simplify DNS programming
Group:          Development/Libraries/C and C++
Requires:       libldns1 = %{version} openssl-devel

%description -n libldns-devel
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.



Authors:
--------
    NLnet Labs

%prep
%setup -q

%build
%configure --disable-static --with-pic
%{__make} %{?jobs:-j%jobs}

%install
%makeinstall
%{__rm} -f %{buildroot}%{_libdir}/*.la

%clean
rm -rf $RPM_BUILD_ROOT

%post -n libldns1 -p /sbin/ldconfig

%postun -n libldns1 -p /sbin/ldconfig

%files -n libldns1
%defattr(-,root,root)
%{_libdir}/libldns.so.1*
/usr/bin/ldns-config
/usr/share/man/man1/ldns-config.1.gz

%files -n libldns-devel
%defattr(-,root,root)
%dir %{_includedir}/ldns
%{_includedir}/ldns/*
%{_libdir}/*.so
%{_mandir}/man3/*

%changelog
* Wed Dec 21 2011 koga@iij.ad.jp
- update ldns to 1.6.11

* Mon Apr 27 2009 crrodriguez@suse.de
- initial version, required by unbound