# # spec file for package adns # # Copyright (c) 2015 SUSE LINUX 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/ # %define lname libadns1 Name: adns Version: 1.5.0 Release: 196.8 Summary: Advanced Easy-to-Use Asynchronous-Capable DNS Utilities License: GPL-2.0+ Group: Productivity/Networking/DNS/Utilities Url: http://www.chiark.greenend.org.uk/~ian/adns/ftp/ Source0: http://www.chiark.greenend.org.uk/~ian/adns/ftp/%{name}-%{version}.tar.gz Source1: http://www.chiark.greenend.org.uk/~ian/adns/ftp/%{name}-%{version}.tar.gz.sig Source2: %{name}.keyring Source3: README.SUSE Source4: baselibs.conf Patch0: %{name}-1.4-destdir.patch Patch1: %{name}-1.4-configure.patch Patch3: adns-visibility.patch BuildRequires: autoconf BuildRoot: %{_tmppath}/%{name}-%{version}-build %description adns includes a collection of useful DNS resolver utilities. %package -n %{lname} Summary: Advanced DNS resolver client library Group: System/Libraries Provides: libadns = %{version} #openSUSE 10.2 Obsoletes: libadns <= 1.3 %description -n %{lname} Libadns is an advanced, easy to use, asynchronous-capable DNS resolver client library for C (and C++) programs. %package -n libadns-devel Summary: Libraries and header files to develop programs with libadns support Group: Development/Languages/C and C++ Requires: %{lname} = %{version} Requires: glibc-devel %description -n libadns-devel Libadns-devel includes the header file and static library to develop programs with libads support. %prep %setup -q %patch0 %patch1 %patch3 cp %{SOURCE3} . %build autoreconf -fiv %configure make %{?_smp_mflags} all %install make DESTDIR=%{buildroot} install %{?_smp_mflags} # FIXME: --disable-static not available #rm %{buildroot}%{_libdir}/*.a %files %defattr(-,root,root) %doc COPYING GPL-vs-LGPL README* TODO changelog %{_bindir}/adns* %files -n %{lname} %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 %{lname} -p /sbin/ldconfig %postun -n %{lname} -p /sbin/ldconfig %changelog * Mon Mar 2 2015 mpluskal@suse.com - Remove obsolete patches * adns-ocloexec.patch * adns-1.4-ipv6.patch - Add gpg signature - Cleanup spec-file with spec-cleaner - Remove already disabled %%check section, tests require working network setup - Update to 1.5.0 * This release provides full IPv6 support. Applications can request AAAA records (containing IPv6 addresses) as well as, or instead of, A records (containing IPv4 addresses). adns 1.5 can speak to nameservers over IPv6. * converting between addresses and address literals. These carry less baggage than getaddrinfo and getnameinfo. * bugfixes and other minor changes (see changelog for details) * Tue Jun 11 2013 crrodriguez@opensuse.org - remove debug statement in the spec file, leftover from previous change. * Mon Jun 10 2013 crrodriguez@opensuse.org - Build with large file support in 32 bit archs, autoconf stuff is fine, but C files included config.h after C library headers, therefore no prototypes for *64 functions found. * Wed Mar 20 2013 mmeister@suse.com - Added download url as source. Please see http://en.opensuse.org/SourceUrls * Tue Dec 20 2011 coolo@suse.com - add autoconf as buildrequire to avoid implicit dependency * Tue Nov 22 2011 jengelh@medozas.de - Remove redundant/unwanted tags/section (cf. specfile guidelines) * Tue Nov 22 2011 crrodriguez@opensuse.org - Use O_CLOEXEC in library code. - Change the visibility patch to not use the error prone version-script but rather GCC visibility * Fri Sep 16 2011 jengelh@medozas.de - Implement baselibs for package - Remove redundant tags/sections from specfile * Sun Dec 19 2010 cristian.rodriguez@opensuse.org - Use 64bit file offsets * Fri Nov 5 2010 cristian.rodriguez@opensuse.org - export only public symbols * 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 7 2007 crrodriguez@suse.de - update to version 1.4 - run ldconfig - use library packaging policy - run make check * Fri Sep 1 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 4 2005 pth@suse.de - Make declarations of adns__parse_domain match. * Tue Aug 10 2004 lmuelle@suse.de - Inital SuSE RPM; [#43590].