adns/adns.spec
Adam Majer 037df42bc1 Accepting request 814724 from home:kstreitova:branches:devel:libraries:c_c++
- Update to 1.6.0
- Changes in 1.6.0:
  * Bugfixes
    * adnshost: Support --reverse in -f mode input stream
    * timeout robustness against clock skew: track query start time and
      duration.  Clock instability may now only cause spurious timeouts
      rather than indefinite hangs or even assertion failures.
  * New features:
    * adnshost: Offer ability to set adns checkc flags
    * adnslogres: Honour --checkc-freq (if it comes first)
    * adnsresfilter: Honour --checkc-freq and --checkc-entex
    * time handling: Support use of CLOCK_MONOTONIC via an init flag.
    * adns_str* etc.: Improve robustness; more allowable inputs values.
  * Internal changes:
    * adnshost: adh-opts.c: Whitespace adjustments to option table
  * Build system and tests improvements
- Changes in 1.5.2
  * Important security fixes:
    CVE-2017-9103 CVE-2017-9104 CVE-2017-9105 CVE-2017-9109:
      Vulnerable applications: all adns callers.
      Exploitable by: the local recursive resolver.
      Likely worst case: Remote code execution.
    CVE-2017-9106:
      Vulnerable applications: those that make SOA queries.
      Exploitable by: upstream DNS data sources.
      Likely worst case: DoS (crash of the adns-using application)
    CVE-2017-9107:
      Vulnerable applications: those that use adns_qf_quoteok_query.
      Exploitable by: sources of query domain names.
      Likely worst case: DoS (crash of the adns-using application)

OBS-URL: https://build.opensuse.org/request/show/814724
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/adns?expand=0&rev=29
2020-06-15 15:25:03 +00:00

99 lines
2.7 KiB
RPMSpec

#
# spec file for package adns
#
# Copyright (c) 2020 SUSE LLC
#
# 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 https://bugs.opensuse.org/
#
%define lname libadns1
Name: adns
Version: 1.6.0
Release: 0
Summary: Advanced Easy-to-Use Asynchronous-Capable DNS Utilities
License: GPL-2.0-or-later
Group: Productivity/Networking/DNS/Utilities
URL: https://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_build all
%install
make install \
prefix=%{buildroot}%{_prefix} \
bindir=%{buildroot}%{_bindir} \
includedir=%{buildroot}%{_includedir} \
libdir=%{buildroot}%{_libdir} \
# FIXME: --disable-static not available
rm %{buildroot}%{_libdir}/*.a
%files
%license COPYING
%doc 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