2007-01-15 23:50:52 +01:00
|
|
|
#
|
2011-09-17 12:06:32 +02:00
|
|
|
# spec file for package adns
|
2007-01-15 23:50:52 +01:00
|
|
|
#
|
2011-09-17 12:06:32 +02:00
|
|
|
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2007-01-15 23:50:52 +01:00
|
|
|
#
|
2008-09-24 14:58:43 +02:00
|
|
|
# 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.
|
|
|
|
|
2007-01-15 23:50:52 +01:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
2008-02-21 01:31:47 +01:00
|
|
|
|
2007-01-15 23:50:52 +01:00
|
|
|
Name: adns
|
2011-09-17 12:06:32 +02:00
|
|
|
%define lname libadns1
|
2007-08-10 09:49:21 +02:00
|
|
|
Version: 1.4
|
2011-09-17 12:06:32 +02:00
|
|
|
Release: 83
|
2010-11-08 14:41:43 +01:00
|
|
|
License: GPLv2+
|
2007-01-15 23:50:52 +01:00
|
|
|
Group: Productivity/Networking/DNS/Utilities
|
2008-02-21 01:31:47 +01:00
|
|
|
Url: http://www.chiark.greenend.org.uk/~ian/adns/
|
2007-01-15 23:50:52 +01:00
|
|
|
Summary: Advanced Easy-to-Use Asynchronous-Capable DNS Utilities
|
2008-02-21 01:31:47 +01:00
|
|
|
Source: %{name}-%{version}.tar.bz2
|
2008-09-24 14:58:43 +02:00
|
|
|
Source1: README.SUSE
|
2011-09-17 12:06:32 +02:00
|
|
|
Source2: baselibs.conf
|
2008-02-21 01:31:47 +01:00
|
|
|
Patch0: %{name}-%{version}-destdir.patch
|
|
|
|
Patch1: %{name}-%{version}-configure.patch
|
|
|
|
Patch2: %{name}-%{version}-ipv6.patch
|
2010-11-08 14:41:43 +01:00
|
|
|
Patch3: adns-visibility.patch
|
2007-01-15 23:50:52 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
|
|
|
|
%description
|
|
|
|
adns includes a collection of useful DNS resolver utilities.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
Ian Jackson <adns-maint at chiark dot greenend dot org dot uk>
|
|
|
|
|
2011-09-17 12:06:32 +02:00
|
|
|
%package -n %lname
|
2010-11-08 14:41:43 +01:00
|
|
|
License: GPLv2+
|
2007-01-15 23:50:52 +01:00
|
|
|
Summary: Advanced DNS resolver client library
|
|
|
|
Group: System/Libraries
|
2007-08-10 09:49:21 +02:00
|
|
|
Provides: libadns = %{version}
|
|
|
|
#openSUSE 10.2
|
|
|
|
Obsoletes: libadns <= 1.3
|
2007-01-15 23:50:52 +01:00
|
|
|
|
2011-09-17 12:06:32 +02:00
|
|
|
%description -n %lname
|
2007-01-15 23:50:52 +01:00
|
|
|
Libadns is an advanced, easy to use, asynchronous-capable DNS resolver
|
|
|
|
client library for C (and C++) programs.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
Ian Jackson <adns-maint at chiark dot greenend dot org dot uk>
|
|
|
|
|
|
|
|
%package -n libadns-devel
|
2010-11-08 14:41:43 +01:00
|
|
|
License: GPLv2+
|
2007-08-10 09:49:21 +02:00
|
|
|
Summary: Libraries and header files to develop programs with libadns support
|
2007-01-15 23:50:52 +01:00
|
|
|
Group: Development/Languages/C and C++
|
2011-09-17 12:06:32 +02:00
|
|
|
Requires: %lname = %{version} glibc-devel
|
2007-01-15 23:50:52 +01:00
|
|
|
|
|
|
|
%description -n libadns-devel
|
|
|
|
Libadns-devel includes the header file and static library to develop
|
|
|
|
programs with libads support.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
Ian Jackson <adns-maint at chiark dot greenend dot org dot uk>
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
%patch0
|
|
|
|
%patch1
|
2008-02-21 01:31:47 +01:00
|
|
|
%patch2
|
2010-11-08 14:41:34 +01:00
|
|
|
%patch3
|
2008-09-24 14:58:43 +02:00
|
|
|
cp %{S:1} .
|
2007-01-15 23:50:52 +01:00
|
|
|
|
|
|
|
%build
|
2009-01-19 01:38:30 +01:00
|
|
|
autoreconf -fiv
|
|
|
|
%configure
|
2011-09-17 12:06:32 +02:00
|
|
|
make %{?_smp_mflags} all
|
2007-01-15 23:50:52 +01:00
|
|
|
|
|
|
|
%install
|
2008-02-21 01:31:47 +01:00
|
|
|
make DESTDIR=%{buildroot} install
|
2009-01-19 01:38:30 +01:00
|
|
|
# FIXME: --disable-static not available
|
|
|
|
rm %{buildroot}%{_libdir}/*.a
|
2007-08-10 09:49:21 +02:00
|
|
|
|
|
|
|
%check
|
2008-02-21 01:31:47 +01:00
|
|
|
# disable check for ipv6 patch
|
|
|
|
# make check
|
2007-01-15 23:50:52 +01:00
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
2008-02-21 01:31:47 +01:00
|
|
|
%doc COPYING GPL-vs-LGPL LICENCE.WAIVERS README* TODO changelog
|
|
|
|
%{_bindir}/adns*
|
2007-01-15 23:50:52 +01:00
|
|
|
|
2011-09-17 12:06:32 +02:00
|
|
|
%files -n %lname
|
2007-01-15 23:50:52 +01:00
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_libdir}/libadns.so.1*
|
|
|
|
|
|
|
|
%files -n libadns-devel
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_includedir}/adns.h
|
|
|
|
%{_libdir}/libadns.so
|
2007-08-10 09:49:21 +02:00
|
|
|
|
2011-09-17 12:06:32 +02:00
|
|
|
%post -n %lname -p /sbin/ldconfig
|
2007-08-10 09:49:21 +02:00
|
|
|
|
2011-09-17 12:06:32 +02:00
|
|
|
%postun -n %lname -p /sbin/ldconfig
|
2007-01-15 23:50:52 +01:00
|
|
|
|
2007-08-10 09:49:21 +02:00
|
|
|
%changelog
|