Marcus Meissner
3b28fbcb72
- Update to 1.5.1 * Fix addr queries (including subqueries, ie including deferencing MX lookups etc.) not to crash when one of the address queries returns tempfail. Also, do not return a spurious pointer to the application when one of the address queries returns a permanent error (although, the application almost certainly won't use this pointer because the associated count is zero). * Portability fix for systems where socklen_t is bigger than int. * Fix for malicious optimisation of memcpy in test suite, which causes failure with gcc-4.1.9 -O3. * Fix TCP async connect handling. The bug is hidden on Linux and on most systems where the nameserver is on localhost. If it is not hidden, adns's TCP support is broken unless adns_if_noautosys is used. * adnsresfilter: Fix addrtextbuf buffer size. This is not actually a problem in real compiled code but should be corrected. * Properly include harness.h in adnstest.c in regress/. Suppresses a couple of compiler warnings (implicit declaration of Texit, etc.) - cleanup with spec-cleaner OBS-URL: https://build.opensuse.org/request/show/539006 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/adns?expand=0&rev=25
93 lines
2.6 KiB
RPMSpec
93 lines
2.6 KiB
RPMSpec
#
|
|
# spec file for package adns
|
|
#
|
|
# Copyright (c) 2017 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.1
|
|
Release: 0
|
|
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: adns-1.4-destdir.patch
|
|
Patch1: adns-1.4-configure.patch
|
|
Patch2: adns-visibility.patch
|
|
BuildRequires: autoconf
|
|
|
|
%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
|
|
%patch2
|
|
cp %{SOURCE3} .
|
|
|
|
%build
|
|
autoreconf -fiv
|
|
%configure
|
|
make %{?_smp_mflags} all
|
|
|
|
%install
|
|
%make_install
|
|
# FIXME: --disable-static not available
|
|
rm %{buildroot}%{_libdir}/*.a
|
|
|
|
%files
|
|
%doc COPYING GPL-vs-LGPL README* TODO changelog
|
|
%{_bindir}/adns*
|
|
|
|
%files -n %{lname}
|
|
%{_libdir}/libadns.so.1*
|
|
|
|
%files -n libadns-devel
|
|
%{_includedir}/adns.h
|
|
%{_libdir}/libadns.so
|
|
|
|
%post -n %{lname} -p /sbin/ldconfig
|
|
%postun -n %{lname} -p /sbin/ldconfig
|
|
|
|
%changelog
|