58fc7cd92f
- Use O_CLOEXEC in library code. - Change the visibility patch to not use the error prone version-script but rather GCC visibility OBS-URL: https://build.opensuse.org/request/show/92977 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/adns?expand=0&rev=10
105 lines
2.8 KiB
RPMSpec
105 lines
2.8 KiB
RPMSpec
#
|
|
# spec file for package adns
|
|
#
|
|
# Copyright (c) 2011 SUSE LINUX Products 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/
|
|
#
|
|
|
|
|
|
|
|
Name: adns
|
|
%define lname libadns1
|
|
Version: 1.4
|
|
Release: 83
|
|
License: GPLv2+
|
|
Group: Productivity/Networking/DNS/Utilities
|
|
Url: http://www.chiark.greenend.org.uk/~ian/adns/
|
|
Summary: Advanced Easy-to-Use Asynchronous-Capable DNS Utilities
|
|
Source: %{name}-%{version}.tar.bz2
|
|
Source1: README.SUSE
|
|
Source2: baselibs.conf
|
|
Patch0: %{name}-%{version}-destdir.patch
|
|
Patch1: %{name}-%{version}-configure.patch
|
|
Patch2: %{name}-%{version}-ipv6.patch
|
|
Patch3: adns-visibility.patch
|
|
Patch4: adns-ocloexec.patch
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
%description
|
|
adns includes a collection of useful DNS resolver utilities.
|
|
|
|
%package -n %lname
|
|
License: GPLv2+
|
|
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
|
|
License: GPLv2+
|
|
Summary: Libraries and header files to develop programs with libadns support
|
|
Group: Development/Languages/C and C++
|
|
Requires: %lname = %{version} 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
|
|
%patch3
|
|
%patch4
|
|
cp %{S:1} .
|
|
|
|
%build
|
|
autoreconf -fiv
|
|
%configure
|
|
make %{?_smp_mflags} all
|
|
|
|
%install
|
|
make DESTDIR=%{buildroot} install
|
|
# FIXME: --disable-static not available
|
|
rm %{buildroot}%{_libdir}/*.a
|
|
|
|
%check
|
|
# disable check for ipv6 patch
|
|
#make check
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
%doc COPYING GPL-vs-LGPL LICENCE.WAIVERS 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
|
|
|
|
%post -n %lname -p /sbin/ldconfig
|
|
|
|
%postun -n %lname -p /sbin/ldconfig
|
|
|
|
%changelog
|