From 1671fd544c642abf56f4c71f47a321faeb2bed86395dddd59d1d5b546b12f67d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Tue, 20 Feb 2018 09:35:11 +0000 Subject: [PATCH] - Rename everything to c-ares - Version update to 1.13.0: * Fixes bsc#1044946 CVE-2017-1000381 * Bunch of bugfixes - Drop cares-1.9.1-ocloexec.patch as it broke again and it is not really worth all the fwdporting - Drop check phase there is only return 0 - Version update to 1.12.0: * Fixes bsc#1007728 CVE-2016-5180 * api: add ARES_OPT_NOROTATE optmask value * Collection of bugfixes - update to 1.11.0: * Allow multiple -s options to the ahost command * api: Expose the ares_library_initialized() function * api: Add ares_set_sortlist(3) entrypoint * api: Add entrypoints to allow use of per-server ports * api: introduce `ares_parse_txt_reply_ext` * api: Add ares_set_socket_configure_callback() * Add -t u option to ahost * collection of bug fixes - No longer perform gpg validation; osc source_validator does it implicit: + Drop gpg-offline BuildRequires. + No longer execute gpg_verify. - Version bump to 1.10.0: OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/c-ares?expand=0&rev=2 --- libcares2.changes => c-ares.changes | 5 +++ libcares2.keyring => c-ares.keyring | 0 libcares2.spec => c-ares.spec | 48 +++++++++++++++++------------ 3 files changed, 34 insertions(+), 19 deletions(-) rename libcares2.changes => c-ares.changes (98%) rename libcares2.keyring => c-ares.keyring (100%) rename libcares2.spec => c-ares.spec (67%) diff --git a/libcares2.changes b/c-ares.changes similarity index 98% rename from libcares2.changes rename to c-ares.changes index ee1d064..ebab142 100644 --- a/libcares2.changes +++ b/c-ares.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Feb 20 09:35:01 UTC 2018 - tchvatal@suse.com + +- Rename everything to c-ares + ------------------------------------------------------------------- Tue Jun 20 19:35:16 UTC 2017 - tchvatal@suse.com diff --git a/libcares2.keyring b/c-ares.keyring similarity index 100% rename from libcares2.keyring rename to c-ares.keyring diff --git a/libcares2.spec b/c-ares.spec similarity index 67% rename from libcares2.spec rename to c-ares.spec index eeebca4..11815fd 100644 --- a/libcares2.spec +++ b/c-ares.spec @@ -1,7 +1,7 @@ # -# spec file for package libcares2 +# spec file for package c-ares # -# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2018 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 @@ -16,17 +16,17 @@ # -%define pkg_name c-ares -Name: libcares2 +%define libname libcares2 +Name: c-ares Version: 1.13.0 Release: 0 Summary: Library for asynchronous name resolves License: MIT Group: Development/Libraries/C and C++ -Url: http://c-ares.haxx.se/ -Source0: http://c-ares.haxx.se/download/%{pkg_name}-%{version}.tar.gz -Source1: http://c-ares.haxx.se/download/%{pkg_name}-%{version}.tar.gz.asc -Source3: libcares2.keyring +URL: http://c-ares.haxx.se/ +Source0: http://c-ares.haxx.se/download/%{name}-%{version}.tar.gz +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 BuildRequires: autoconf @@ -40,19 +40,30 @@ 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 -n libcares-devel +%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 Summary: Library for asynchronous name resolves Group: Development/Libraries/C and C++ -Requires: %{name} = %{version} +Requires: %{libname} = %{version} Requires: glibc-devel +Provides: libcares-devel = %{version} +Obsoletes: libcares-devel < %{version} -%description -n libcares-devel +%description devel 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 -%setup -q -n %{pkg_name}-%{version} +%setup -q %patch0 -p1 # Remove bogus cflags checking @@ -71,18 +82,17 @@ autoreconf -fiv make %{?_smp_mflags} %install -make %{?_smp_mflags} DESTDIR=%{buildroot} install +%make_install find %{buildroot} -type f -name "*.la" -delete -print -%post -p /sbin/ldconfig -%postun -p /sbin/ldconfig +%post -n %{libname} -p /sbin/ldconfig +%postun -n %{libname} -p /sbin/ldconfig -%files -%defattr(-,root,root) +%files -n %{libname} +%license LICENSE.md %{_libdir}/libcares.so.2* -%files -n libcares-devel -%defattr(-,root,root) +%files devel %{_libdir}/libcares.so %{_includedir}/*.h %{_mandir}/man3/ares_*