File adns.spec of Package adns.15332

# 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

%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
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
Patch3:         adns-1.5.1-CVE-2017-9103.patch
Patch4:         adns-1.5.1-CVE-2017-9104.patch
Patch5:         adns-1.5.1-CVE-2017-9105.patch
Patch6:         adns-1.5.1-CVE-2017-9106.patch
Patch7:         adns-1.5.1-CVE-2017-9107.patch
Patch8:         adns-1.5.1-CVE-2017-9108.patch
Patch9:         adns-1.5.1-CVE-2017-9109.patch
BuildRequires:  autoconf

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.

%setup -q
%patch3 -p1
%patch4 -p1
%patch5 -p1 
%patch6 -p1
%patch7 -p1
%patch8 -p1
%patch9 -p1
cp %{SOURCE3} .

autoreconf -fiv
make %{?_smp_mflags} all

# FIXME: --disable-static not available
rm %{buildroot}%{_libdir}/*.a


%files -n %{lname}

%files -n libadns-devel

%post -n %{lname} -p /sbin/ldconfig
%postun -n %{lname} -p /sbin/ldconfig

openSUSE Build Service is sponsored by