SHA256
1
0
forked from pool/adns
adns/adns.spec
Stanislav Brabec 894e583cd6 Accepting request 288563 from home:pluskalm:branches:devel:libraries:c_c++
- 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

OBS-URL: https://build.opensuse.org/request/show/288563
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/adns?expand=0&rev=21
2015-03-04 17:15:56 +00:00

98 lines
2.8 KiB
RPMSpec

#
# 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: 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: %{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
%post -n %{lname} -p /sbin/ldconfig
%postun -n %{lname} -p /sbin/ldconfig
%changelog