Accepting request 674652 from home:adamm:branches:devel:libraries:c_c++

- Version update to 1.15.0:
  * Add ares_init_options() configurability for path to resolv.conf file
  * Ability to exclude building of tools (adig, ahost, acountry) in CMake
  * Report ARES_ENOTFOUND for .onion domain names as per RFC7686
    (bsc#1125306)
  * Apply the IPv6 server blacklist to all nameserver sources
  * Prevent changing name servers while queries are outstanding
  * ares_set_servers_csv() on failure should not leave channel in a
    bad state
- enable unit tests
- disable-live-tests.patch: disable tests to live servers
- onion-crash.patch: backport fix for a crash affecting .onion TLD

OBS-URL: https://build.opensuse.org/request/show/674652
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/c-ares?expand=0&rev=7
This commit is contained in:
Tomáš Chvátal
2019-02-13 16:25:34 +00:00
committed by Git OBS Bridge
parent dfa7e543d9
commit 167e224183
8 changed files with 134 additions and 18 deletions

View File

@@ -1,7 +1,7 @@
#
# spec file for package c-ares
#
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2019 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
@@ -12,13 +12,13 @@
# 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/
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%define libname libcares2
Name: c-ares
Version: 1.14.0
Version: 1.15.0
Release: 0
Summary: Library for asynchronous name resolves
License: MIT
@@ -29,6 +29,8 @@ Source1: http://c-ares.haxx.se/download/%{name}-%{version}.tar.gz.asc
Source3: %{name}.keyring
Source4: baselibs.conf
Patch0: 0001-Use-RPM-compiler-options.patch
Patch1: disable-live-tests.patch
Patch2: onion-crash.patch
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: gcc-c++
@@ -65,6 +67,8 @@ by Greg Hudson at MIT.
%prep
%setup -q
%patch0 -p1
%patch1 -p1
%patch2 -p1
# Remove bogus cflags checking
sed -i -e '/XC_CHECK_BUILD_FLAGS/d' configure.ac
@@ -77,9 +81,14 @@ autoreconf -fiv
--enable-symbol-hiding \
--enable-nonblocking \
--enable-shared \
--disable-static
--disable-static \
--enable-tests
make %{?_smp_mflags}
%check
make -C test %{?_smp_mflags}
./test/arestest
%install
%make_install
find %{buildroot} -type f -name "*.la" -delete -print