Accepting request 577197 from devel:libraries:c_c++

step 1 of package rename

OBS-URL: https://build.opensuse.org/request/show/577197
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/c-ares?expand=0&rev=1
This commit is contained in:
Adam Majer 2018-02-20 09:24:29 +00:00 committed by Git OBS Bridge
commit b7ef4ba2af
9 changed files with 462 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.osc

View File

@ -0,0 +1,41 @@
From 7dada62a77e061c752123e672e844386ff3b01ea Mon Sep 17 00:00:00 2001
From: Stephen Gallagher <sgallagh@redhat.com>
Date: Wed, 10 Apr 2013 12:32:44 -0400
Subject: [PATCH] Use RPM compiler options
---
m4/cares-compilers.m4 | 19 ++++++-------------
1 file changed, 6 insertions(+), 13 deletions(-)
diff --git a/m4/cares-compilers.m4 b/m4/cares-compilers.m4
index 7ee8e0dbe741c1a64149a0d20b826f507b3ec620..d7708230fb5628ae80fbf1052da0d2c78ebbc160 100644
--- a/m4/cares-compilers.m4
+++ b/m4/cares-compilers.m4
@@ -143,19 +143,12 @@ AC_DEFUN([CARES_CHECK_COMPILER_GNU_C], [
gccvhi=`echo $gccver | cut -d . -f1`
gccvlo=`echo $gccver | cut -d . -f2`
compiler_num=`(expr $gccvhi "*" 100 + $gccvlo) 2>/dev/null`
- flags_dbg_all="-g -g0 -g1 -g2 -g3"
- flags_dbg_all="$flags_dbg_all -ggdb"
- flags_dbg_all="$flags_dbg_all -gstabs"
- flags_dbg_all="$flags_dbg_all -gstabs+"
- flags_dbg_all="$flags_dbg_all -gcoff"
- flags_dbg_all="$flags_dbg_all -gxcoff"
- flags_dbg_all="$flags_dbg_all -gdwarf-2"
- flags_dbg_all="$flags_dbg_all -gvms"
- flags_dbg_yes="-g"
- flags_dbg_off="-g0"
- flags_opt_all="-O -O0 -O1 -O2 -O3 -Os"
- flags_opt_yes="-O2"
- flags_opt_off="-O0"
+ flags_dbg_all=""
+ flags_dbg_yes=""
+ flags_dbg_off=""
+ flags_opt_all=""
+ flags_opt_yes=""
+ flags_opt_off=""
CURL_CHECK_DEF([_WIN32], [], [silent])
else
AC_MSG_RESULT([no])
--
1.8.1.4

1
baselibs.conf Normal file
View File

@ -0,0 +1 @@
libcares2

3
c-ares-1.13.0.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:03f708f1b14a26ab26c38abd51137640cb444d3ec72380b21b20f1a8d2861da7
size 1446797

11
c-ares-1.13.0.tar.gz.asc Normal file
View File

@ -0,0 +1,11 @@
-----BEGIN PGP SIGNATURE-----
iQEzBAABCgAdFiEEJ+3q8i86vOtQ25oSXMkI/bceEsIFAllIuuQACgkQXMkI/bce
EsI7zggAsJksIJrmi2aAxzABYKM2z9Wz5Z75TuoFcD+2+EBb8mfATaWBfVfzVIUs
LtOxnzDIt9zI0uVSI3ihmDqABDEm2k5oAHChp2wvolRRpPYkZTQFSdVNcw5dXz32
9Bg2xs+kQgUwF5YwVeaWa/p8Mi/G/9iE5mrG+o5ZE+W0Nmrhy3KQuGZEA6rEsTLd
6aNEkbCi2Apsnq9P7Tk9zkq57AiZJlz4XK0uSQBTTuqxlteqNJ1WaKCE6dBuVl3r
zuTeMZmsjuQD0Dm5mf4Q6ZAXedAsFz7oHHyGwHRby7gIzOhqPHamIlcsaxxAraJn
NoK1fgidOKerZF5NS4VwMFolcRdI5w==
=DvNE
-----END PGP SIGNATURE-----

257
libcares2.changes Normal file
View File

@ -0,0 +1,257 @@
-------------------------------------------------------------------
Tue Jun 20 19:35:16 UTC 2017 - tchvatal@suse.com
- 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
-------------------------------------------------------------------
Mon Oct 31 12:05:59 UTC 2016 - tchvatal@suse.com
- Version update to 1.12.0:
* Fixes bsc#1007728 CVE-2016-5180
* api: add ARES_OPT_NOROTATE optmask value
* Collection of bugfixes
-------------------------------------------------------------------
Thu Jun 9 20:41:26 UTC 2016 - astieger@suse.com
- 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
-------------------------------------------------------------------
Fri Nov 14 09:18:41 UTC 2014 - dimstar@opensuse.org
- No longer perform gpg validation; osc source_validator does it
implicit:
+ Drop gpg-offline BuildRequires.
+ No longer execute gpg_verify.
-------------------------------------------------------------------
Thu May 15 12:07:42 UTC 2014 - tchvatal@suse.com
- Version bump to 1.10.0:
* Various small updates all around
* Cleanup of automake to build with latest tools
* For more see CHANGES
- Remove upstreamed patches:
* cares-autotools.diff
- Remove patch that needs quite work and was never acceted upstream:
* 0001-cares-1.9.1-add-symbol-versioning-support.patch
- Added patches:
* 0001-Use-RPM-compiler-options.patch
-------------------------------------------------------------------
Fri May 3 07:12:14 UTC 2013 - mvyskocil@suse.com
- Use the genuine upstream tarball
- Verify tarball using gpg-offline
-------------------------------------------------------------------
Thu May 2 13:24:49 UTC 2013 - jengelh@inai.de
- Get rid of outdated autotools construct to fix build with
new automake-1.13
-------------------------------------------------------------------
Sun Jan 6 21:14:16 UTC 2013 - p.drouand@gmail.com
- Update to 1.9.1 version:
* include the ares_parse_soa_reply.* files in the tarball
- Removed patches (fixed and merged on upstream release)
* 0001-ares_destroy.c-fix-segfault-in-ares_destroy_options.patch
* 0002-ares_getnameinfo-fix-random-results-with-c-ares-1.7..patch
* 0003-ares_init.c-fix-segfault-triggered-in-ares_init_opti.patch
- Updated and versionned patchs for upstream release:
* 0001-add-symbol-versioning-support.patch
* cares-ocloexec.patch
-------------------------------------------------------------------
Fri Feb 3 20:27:55 UTC 2012 - crrodriguez@opensuse.org
- Fix license
- provide symbol versioning support
- fix -debuginfo packages
-------------------------------------------------------------------
Tue Nov 15 09:16:32 UTC 2011 - jengelh@medozas.de
- Remove redundant/unwanted tags/section (cf. specfile guidelines)
-------------------------------------------------------------------
Mon Nov 14 23:42:39 UTC 2011 - crrodriguez@opensuse.org
- Open all fds with O_CLOEXEC.
-------------------------------------------------------------------
Mon Oct 17 03:29:31 UTC 2011 - crrodriguez@opensuse.org
- Cherry-pick 3 patches from HEAD
* ares_destroy.c: fix segfault in ares_destroy_options()
* ares_getnameinfo: fix random results, memory corruption
* ares_init.c: fix segfault triggered in ares_init_options()
upon previous failure of init_by_defaults()
-------------------------------------------------------------------
Wed Aug 17 21:17:44 UTC 2011 - crrodriguez@opensuse.org
- Update to version 1.7.4
* Drop obsolete patch
* detection of semicolon comments in resolv.conf
* fixed ares_parse_*_reply memory leaks
* only fall back to AF_INET searches when looking for AF_UNSPEC addresses
-------------------------------------------------------------------
Sat Mar 19 21:16:09 UTC 2011 - crrodriguez@opensuse.org
- fix NULL ptr dereference
-------------------------------------------------------------------
Mon Dec 13 16:17:56 UTC 2010 - cristian.rodriguez@opensuse.org
- c-ares version 1.7.4
* local-bind: Support binding to local interface/IPs, see
ares_set_local_ip4, ares_set_local_ip6, ares_set_local_dev
* memory leak in ares_getnameinfo
* add missing break that caused get_ares_servers to fail
* ares_parse_a_reply: fix CNAME response parsing
* init_by_options: don't copy an empty sortlist
* Replaced uint32_t with unsigned int to fix broken builds
on a couple of platforms
* Fix lookup with HOSTALIASES set
* adig: fix NAPTR parsing
* compiler warning cleanups
-------------------------------------------------------------------
Fri Oct 29 16:51:25 UTC 2010 - cristian.rodriguez@opensuse.org
- Fix aliasing warning in gcc
- Add missing break that caused get_ares_servers to fail
-------------------------------------------------------------------
Sun Jul 25 19:02:16 UTC 2010 - cristian.rodriguez@opensuse.org
- update to version 1.7.3
* ares_init: Last, not first instance of domain or search should win
* Added ares_parse_mx_reply()
* Fix memory leak
-------------------------------------------------------------------
Sat Apr 24 11:38:19 UTC 2010 - coolo@novell.com
- buildrequire pkg-config to fix provides
-------------------------------------------------------------------
Wed Mar 24 18:26:05 UTC 2010 - crrodriguez@opensuse.org
- update to version 1.7.1, includes IPV6 nameservers support
-------------------------------------------------------------------
Wed Mar 10 14:25:32 UTC 2010 - crrodriguez@opensuse.org
- remove invalid configure options
-------------------------------------------------------------------
Mon Feb 22 21:53:18 UTC 2010 - crrodriguez@opensuse.org
- fix build
- update to version 1.7.0, see RELEASE_NOTES for detail
-------------------------------------------------------------------
Mon Feb 1 11:14:59 UTC 2010 - jengelh@medozas.de
- package baselibs.conf
-------------------------------------------------------------------
Wed Sep 30 20:54:42 UTC 2009 - crrodriguez@opensuse.org
- add gcc visibility support
-------------------------------------------------------------------
Mon Jan 5 21:03:53 CET 2009 - crrodriguez@suse.de
- update to version 1.6.0
* Added support for the glibc "rotate" resolv.conf option (or ARES_OPT_ROTATE)
* Added ares_gethostbyname_file()
* Added ares_dup()
* Added ares_set_socket_callback()
* improved configure detection of several functions
* improved source code portability
* adig supports a regular numerical dotted IP address for the -s option
* handling of EINPROGRESS for UDP connects
* ares_parse_ptr_reply() would cause a buffer to shrink instead of expand if a
reply contained 8 or more records
* buildconf works on OS X
-------------------------------------------------------------------
Wed Sep 3 16:37:43 CEST 2008 - crrodriguez@suse.de
- update to c-ares 1.5.3 final
* address an issue in which a response could be sent back to the
source port of a client from a different address than the request was made to.
This is one form of a DNS cache poisoning attack.
Only necessary on UDP sockets as they are connection-less, TCP
is unaffected.
-------------------------------------------------------------------
Sat Aug 9 23:56:49 CEST 2008 - crrodriguez@suse.de
- update to c-ares 1.5.3+20080809
* users found that the second and subsequent DNS lookups from
fresh processes using c-ares to resolve the same
address would randomly cause the process to never see a reply.
-------------------------------------------------------------------
Sun Jun 15 20:44:19 CEST 2008 - crrodriguez@suse.de
- update to version 1.5.2 final
* code refactoring in ares_gethostbyaddr
* improved checking of /dev/urandom in configure script
* new sample application, acountry
* improved MSVC6 dsp files
* adig sample application supports NAPTR records
* improved file seeding randomizer
* improved parsing of resolver configuration files
* updated configure script to remove autoconf 2.62 warnings
* use monotonic time source if available
* return all PTR-records when doing reverse lookups
* millisecond resolution support for the timeout option
-------------------------------------------------------------------
Fri Apr 25 23:30:06 CEST 2008 - crrodriguez@suse.de
- update to current c-ares from curl cvs
* Eino Tuominen improved the code when a file is used to seed the randomizer.
* Alexey Simak made adig support NAPTR records
* Erik Kline cleaned up ares_gethostbyaddr.c:next_lookup() somewhat
* add pkgconfig script
-------------------------------------------------------------------
Tue Apr 15 15:09:51 CEST 2008 - ro@suse.de
- added baselibs.conf file for multilib support (libcurl4)
-------------------------------------------------------------------
Fri Nov 30 01:09:51 CET 2007 - crrodriguez@suse.de
- version 1.5.1
-------------------------------------------------------------------
Wed Aug 8 17:48:05 UTC 2007 - crrodriguez@suse.de
- run ldconfig

34
libcares2.keyring Normal file
View File

@ -0,0 +1,34 @@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1JrIPWOWKvVwKWDxoEbYgW/yvy1TOuXH2
76zbxLl5OEE8sQuOfXZsFSX2IPF9hsgNGaNzor8Ke7Y5BuCQLcGZWW5dLFbbKRKj
XG8CaWmsJVoIc2nyXCAss2q9oCJ13X/5z+Ei392rwi1d3NxAYkSiDQan+fkWkCvZ
H+dHmFjQ1ANDKielxcW1VfilK1hu9ziBBDf8TCEud/q0woIAH7rvIft4i3Cqjymo
nByE4/OjfH8j4EteQ8qoknMCjjwNVqkAEQEAAYkBHwQYAQoACQUCVwaI8QIbDAAK
CRBcyQj9tx4SwupjB/9TV4anbZK58bN7QJ5qGnU3GNjlvWFZXMw1u1xVc7abDJyq
mFeJcJ4qLUkvBA0OsvlVnMWmeCmzsXhlQVM4Bv6IWyr7JBWgkK5q2CWVB59V7v7z
nf5kWnMGFhDFPlLsGbxDWLMoZGH+Iy84whMJFgferwCJy1dND/bHXPztfhvFXi8N
NlJUFJa8Xtmugm78C+nwNHcFpVC70HPr3oa8U1ODXMp7L8W/dL3eLYXmRCNd0urH
gYrzDt6V/zf5ymvPk5w4HBocn2oRCJj/FXKhFAUptmpTE3g1yvYULmuFcNGAnPAE
xmAmd6NqsCmbj/qx4ytjt5uxt6Jm6IXV9cry8i6x
=iWGV
-----END PGP PUBLIC KEY BLOCK-----

91
libcares2.spec Normal file
View File

@ -0,0 +1,91 @@
#
# spec file for package libcares2
#
# Copyright (c) 2017 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 pkg_name c-ares
Name: libcares2
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
Source4: baselibs.conf
Patch0: 0001-Use-RPM-compiler-options.patch
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.
%package -n libcares-devel
Summary: Library for asynchronous name resolves
Group: Development/Libraries/C and C++
Requires: %{name} = %{version}
Requires: glibc-devel
%description -n libcares-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}
%patch0 -p1
# 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 \
--disable-static \
--with-pic
make %{?_smp_mflags}
%install
make %{?_smp_mflags} DESTDIR=%{buildroot} install
find %{buildroot} -type f -name "*.la" -delete -print
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root)
%{_libdir}/libcares.so.2*
%files -n libcares-devel
%defattr(-,root,root)
%{_libdir}/libcares.so
%{_includedir}/*.h
%{_mandir}/man3/ares_*
%{_libdir}/pkgconfig/libcares.pc
%changelog