adns/adns.spec

151 lines
4.0 KiB
RPMSpec

#
# spec file for package adns (Version 1.4)
#
# 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: adns
Version: 1.4
Release: 74
License: GPL v2 or later
Group: Productivity/Networking/DNS/Utilities
Url: http://www.chiark.greenend.org.uk/~ian/adns/
AutoReqProv: on
Summary: Advanced Easy-to-Use Asynchronous-Capable DNS Utilities
Source: %{name}-%{version}.tar.bz2
Source1: README.SUSE
Patch0: %{name}-%{version}-destdir.patch
Patch1: %{name}-%{version}-configure.patch
Patch2: %{name}-%{version}-ipv6.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
adns includes a collection of useful DNS resolver utilities.
Authors:
--------
Ian Jackson <adns-maint at chiark dot greenend dot org dot uk>
%package -n libadns1
License: GPL v2 or later
Summary: Advanced DNS resolver client library
Group: System/Libraries
Provides: libadns = %{version}
#openSUSE 10.2
Obsoletes: libadns <= 1.3
%description -n libadns1
Libadns is an advanced, easy to use, asynchronous-capable DNS resolver
client library for C (and C++) programs.
Authors:
--------
Ian Jackson <adns-maint at chiark dot greenend dot org dot uk>
%package -n libadns-devel
License: GPL v2 or later
Summary: Libraries and header files to develop programs with libadns support
Group: Development/Languages/C and C++
Requires: libadns1 = %{version} glibc-devel
%description -n libadns-devel
Libadns-devel includes the header file and static library to develop
programs with libads support.
Authors:
--------
Ian Jackson <adns-maint at chiark dot greenend dot org dot uk>
%prep
%setup -q
%patch0
%patch1
%patch2
cp %{S:1} .
%build
autoreconf -fiv
%configure
make %{?jobs:-j%jobs} all
%install
make DESTDIR=%{buildroot} install
# FIXME: --disable-static not available
rm %{buildroot}%{_libdir}/*.a
%check
# disable check for ipv6 patch
# make check
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root)
%doc COPYING GPL-vs-LGPL LICENCE.WAIVERS README* TODO changelog
%{_bindir}/adns*
%files -n libadns1
%defattr(-,root,root)
%{_libdir}/libadns.so.1*
%files -n libadns-devel
%defattr(-,root,root)
%{_includedir}/adns.h
%{_libdir}/libadns.so
%post -n libadns1 -p /sbin/ldconfig
%postun -n libadns1 -p /sbin/ldconfig
%changelog
* Fri Jan 16 2009 crrodriguez@suse.de
- remove static libraries
* Thu Sep 18 2008 prusnak@suse.cz
- document CVE-2008-1447 / CVE-2008-4100 poisoning vulnerability
in README.SUSE [bnc#426515]
* Wed Feb 20 2008 prusnak@suse.cz
- added patch to support IPv6 protocol [#350506]
* Tue Aug 07 2007 crrodriguez@suse.de
- update to version 1.4
- run ldconfig
- use library packaging policy
- run make check
* Fri Sep 01 2006 mt@suse.de
- updated to adns-1.3, providing new support for SRV RRs
and unknown RRs as well as several portability fixes.
- adopted configure and destdir patches, removed obsolete
codecleanup and missing_symlink patches
* Wed Apr 26 2006 mrueckert@suse.de
- added adns-missing_symlink.diff:
add missing symlink "libadns.so" so you can dynamically
link against libadns.
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Mon Dec 19 2005 ro@suse.de
- added libadns.so.1 to filelist
* Mon Apr 04 2005 pth@suse.de
- Make declarations of adns__parse_domain match.
* Tue Aug 10 2004 lmuelle@suse.de
- Inital SuSE RPM; [#43590].