---- c-ares-1.6.0/ares_init.c~ 2010-02-07 14:22:41.480067790 +0200
-+++ c-ares-1.6.0/ares_init.c 2010-02-07 14:22:42.962764879 +0200
-@@ -839,6 +839,7 @@
+--- c-ares-1.11.0/ares_init.c.orig 2016-02-11 12:23:52.000000000 +0100
++++ c-ares-1.11.0/ares_init.c 2016-02-28 10:01:24.592903895 +0100
+@@ -1292,6 +1292,7 @@
switch(error) {
case ENOENT:
case ESRCH:
status = ARES_EOF;
break;
default:
-@@ -865,6 +866,7 @@
+@@ -1319,6 +1320,7 @@
switch(error) {
case ENOENT:
case ESRCH:
+ case EACCES:
- status = ARES_EOF;
break;
default:
-@@ -892,6 +894,7 @@
+ DEBUGF(fprintf(stderr, "fopen() failed with error: %d %s\n",
+@@ -1350,6 +1352,7 @@
switch(error) {
case ENOENT:
case ESRCH:
+ case EACCES:
- status = ARES_EOF;
break;
default:
-@@ -919,6 +922,7 @@
+ DEBUGF(fprintf(stderr, "fopen() failed with error: %d %s\n",
+@@ -1381,6 +1384,7 @@
switch(error) {
case ENOENT:
case ESRCH:
+ case EACCES:
- status = ARES_EOF;
break;
default:
+ DEBUGF(fprintf(stderr, "fopen() failed with error: %d %s\n",
Summary: A library that performs asynchronous DNS operations
Summary(pl.UTF-8): Biblioteka do wykonywania asynchronicznych zapytaĆ DNS
Name: c-ares
-Version: 1.10.0
-Release: 2
+Version: 1.11.0
+Release: 1
License: MIT
Group: Libraries
Source0: http://c-ares.haxx.se/download/%{name}-%{version}.tar.gz
-# Source0-md5: 1196067641411a75d3cbebe074fd36d8
+# Source0-md5: d5c6d522cfc54bb6f215a0b7912d46be
Patch0: %{name}-resolv.conf-reading-is-not-fatal.patch
URL: http://c-ares.haxx.se/
BuildRequires: autoconf >= 2.57
%patch0 -p1
# we want our own debug flags, if any
-sed -i -e 's/flags_dbg_off=".*"/flags_dbg_off="%{rpmcflags}"/' m4/cares-compilers.m4
-sed -i -e 's/flags_opt_yes=".*"/flags_opt_yes="%{rpmcflags}"/' m4/cares-compilers.m4
+%{__sed} -i -e 's/flags_dbg_off=".*"/flags_dbg_off="%{rpmcflags}"/' m4/cares-compilers.m4
+%{__sed} -i -e 's/flags_opt_yes=".*"/flags_opt_yes="%{rpmcflags}"/' m4/cares-compilers.m4
%build
%{__libtoolize}
%{__autoconf}
%{__automake}
%configure \
+ --disable-silent-rules \
--enable-optimize="%{rpmcflags}" \
--enable-shared
%files
%defattr(644,root,root,755)
-%doc README README.cares CHANGES NEWS
+%doc CHANGES NEWS README.cares README.md
%attr(755,root,root) %{_libdir}/libcares.so.*.*.*
%attr(755,root,root) %ghost %{_libdir}/libcares.so.2