2018-02-20 10:24:29 +01:00
|
|
|
#
|
2018-02-20 10:35:11 +01:00
|
|
|
# spec file for package c-ares
|
2018-02-20 10:24:29 +01:00
|
|
|
#
|
2019-02-13 17:25:34 +01:00
|
|
|
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
2018-02-20 10:24:29 +01: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.
|
|
|
|
|
2019-02-13 17:25:34 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2018-02-20 10:24:29 +01:00
|
|
|
#
|
|
|
|
|
|
|
|
|
2018-02-20 10:35:11 +01:00
|
|
|
%define libname libcares2
|
|
|
|
Name: c-ares
|
2019-11-08 15:58:09 +01:00
|
|
|
Version: 1.15.0~20191108
|
2018-02-20 10:24:29 +01:00
|
|
|
Release: 0
|
|
|
|
Summary: Library for asynchronous name resolves
|
|
|
|
License: MIT
|
|
|
|
Group: Development/Libraries/C and C++
|
2018-02-20 10:35:11 +01:00
|
|
|
URL: http://c-ares.haxx.se/
|
2019-11-08 15:58:09 +01:00
|
|
|
#Source0: https://c-ares.haxx.se/daily-snapshot/c-ares-1.15.0-20191108.tar.gz
|
|
|
|
Source0: c-ares-1.15.0-20191108.tar.gz
|
|
|
|
#Source0: http://c-ares.haxx.se/download/%{name}-%{version}.tar.gz
|
|
|
|
#Source1: http://c-ares.haxx.se/download/%{name}-%{version}.tar.gz.asc
|
2018-02-20 10:35:11 +01:00
|
|
|
Source3: %{name}.keyring
|
2018-02-20 10:24:29 +01:00
|
|
|
Source4: baselibs.conf
|
|
|
|
Patch0: 0001-Use-RPM-compiler-options.patch
|
2019-02-13 17:25:34 +01:00
|
|
|
Patch1: disable-live-tests.patch
|
2019-10-23 17:55:33 +02:00
|
|
|
# PATCH-FIX-OPENSUSE 0010-Disable-failing-test.patch
|
2019-11-08 15:58:09 +01:00
|
|
|
#Patch12: 0010-Disable-failing-test.patch
|
2018-02-20 10:24:29 +01:00
|
|
|
BuildRequires: autoconf
|
|
|
|
BuildRequires: automake
|
|
|
|
BuildRequires: gcc-c++
|
|
|
|
BuildRequires: libtool
|
|
|
|
BuildRequires: pkgconfig
|
|
|
|
|
|
|
|
%description
|
|
|
|
c-ares is a C library that performs DNS requests and name resolves
|
|
|
|
asynchronously. c-ares is a fork of the library named 'ares', written
|
|
|
|
by Greg Hudson at MIT.
|
|
|
|
|
2018-02-20 10:35:11 +01:00
|
|
|
%package -n %{libname}
|
|
|
|
Summary: Library for asynchronous name resolves
|
|
|
|
Group: System/Libraries
|
|
|
|
|
|
|
|
%description -n %{libname}
|
|
|
|
c-ares is a C library that performs DNS requests and name resolves
|
|
|
|
asynchronously. c-ares is a fork of the library named 'ares', written
|
|
|
|
by Greg Hudson at MIT.
|
|
|
|
|
|
|
|
%package devel
|
2018-02-20 10:24:29 +01:00
|
|
|
Summary: Library for asynchronous name resolves
|
|
|
|
Group: Development/Libraries/C and C++
|
2018-02-20 10:35:11 +01:00
|
|
|
Requires: %{libname} = %{version}
|
2018-02-20 10:24:29 +01:00
|
|
|
Requires: glibc-devel
|
2018-02-20 10:35:11 +01:00
|
|
|
Provides: libcares-devel = %{version}
|
|
|
|
Obsoletes: libcares-devel < %{version}
|
2018-02-20 10:24:29 +01:00
|
|
|
|
2018-02-20 10:35:11 +01:00
|
|
|
%description devel
|
2018-02-20 10:24:29 +01:00
|
|
|
c-ares is a C library that performs DNS requests and name resolves
|
|
|
|
asynchronously. c-ares is a fork of the library named 'ares', written
|
|
|
|
by Greg Hudson at MIT.
|
|
|
|
|
|
|
|
%prep
|
2019-11-08 15:58:09 +01:00
|
|
|
%autosetup -p1 -n c-ares-1.15.0-20191108
|
2018-02-20 10:24:29 +01:00
|
|
|
|
|
|
|
# Remove bogus cflags checking
|
|
|
|
sed -i -e '/XC_CHECK_BUILD_FLAGS/d' configure.ac
|
|
|
|
sed -i -e '/XC_CHECK_USER_FLAGS/d' m4/xc-cc-check.m4
|
|
|
|
|
|
|
|
%build
|
|
|
|
autoreconf -fiv
|
|
|
|
%configure \
|
|
|
|
--disable-silent-rules \
|
|
|
|
--enable-symbol-hiding \
|
|
|
|
--enable-nonblocking \
|
|
|
|
--enable-shared \
|
2019-02-13 17:25:34 +01:00
|
|
|
--disable-static \
|
|
|
|
--enable-tests
|
2018-02-20 10:24:29 +01:00
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
2019-02-13 17:25:34 +01:00
|
|
|
%check
|
|
|
|
make -C test %{?_smp_mflags}
|
|
|
|
./test/arestest
|
|
|
|
|
2018-02-20 10:24:29 +01:00
|
|
|
%install
|
2018-02-20 10:35:11 +01:00
|
|
|
%make_install
|
2018-02-20 10:24:29 +01:00
|
|
|
find %{buildroot} -type f -name "*.la" -delete -print
|
|
|
|
|
2018-02-20 10:35:11 +01:00
|
|
|
%post -n %{libname} -p /sbin/ldconfig
|
|
|
|
%postun -n %{libname} -p /sbin/ldconfig
|
2018-02-20 10:24:29 +01:00
|
|
|
|
2018-02-20 10:35:11 +01:00
|
|
|
%files -n %{libname}
|
|
|
|
%license LICENSE.md
|
2018-02-20 10:24:29 +01:00
|
|
|
%{_libdir}/libcares.so.2*
|
|
|
|
|
2018-02-20 10:35:11 +01:00
|
|
|
%files devel
|
2018-02-20 10:24:29 +01:00
|
|
|
%{_libdir}/libcares.so
|
|
|
|
%{_includedir}/*.h
|
|
|
|
%{_mandir}/man3/ares_*
|
|
|
|
%{_libdir}/pkgconfig/libcares.pc
|
|
|
|
|
|
|
|
%changelog
|