# # spec file for package adns (Version 1.4) # # Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany. # This file and all modifications and additions to the pristine # package are under the same license as the package itself. # # Please submit bugfixes or comments via http://bugs.opensuse.org/ # # norootforbuild Name: adns Version: 1.4 Release: 1 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: ftp://ftp.chiark.greenend.org.uk/users/ian/adns/%{name}-%{version}.tar.bz2 Patch0: adns-destdir.diff Patch1: adns-configure.diff BuildRoot: %{_tmppath}/%{name}-%{version}-build %description adns includes a collection of useful DNS resolver utilities. Authors: -------- Ian Jackson %package -n libadns1 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 %package -n libadns-devel 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 %prep %setup -q %patch0 %patch1 %build autoreconf -fi export CFLAGS="$RPM_OPT_FLAGS -Wall" %configure --with-pic %{__make} %{?jobs:-j%jobs} all %install %{__make} DESTDIR=%{buildroot} install %check %{__make} check %clean %{__rm} -rf %{buildroot} %files %defattr(-,root,root) %{_bindir}/adnshost %{_bindir}/adnslogres %{_bindir}/adnsresfilter %{_bindir}/adnsheloex %doc changelog COPYING GPL-vs-LGPL INSTALL README* TODO %files -n libadns1 %defattr(-,root,root) %{_libdir}/libadns.so.1* %files -n libadns-devel %defattr(-,root,root) %{_includedir}/adns.h %{_libdir}/libadns.so %{_libdir}/libadns.a %post -n libadns1 -p /sbin/ldconfig %postun -n libadns1 -p /sbin/ldconfig %changelog * 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 * Thu Apr 27 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].