Upgrade to 1.21.0 70/301370/1
authorSeonah Moon <seonah1.moon@samsung.com>
Wed, 15 Nov 2023 03:31:44 +0000 (12:31 +0900)
committerSeonah Moon <seonah1.moon@samsung.com>
Wed, 15 Nov 2023 03:32:20 +0000 (12:32 +0900)
Change-Id: Idf92dc66f0720a0d50187326f70f38a451ff466e

1  2 
docs/ares_set_servers_csv.3
packaging/c-ares.spec

  ares_set_servers_csv, ares_set_servers_ports_csv \- Set list of DNS servers to be used.
  .SH SYNOPSIS
  .nf
- .B #include <ares.h>
- .PP
- .B void ares_set_servers_csv(ares_channel \fIchannel\fP, const char* \fIservers\fP)
- .fi
- .SH DESCRIPTION
- The \fBares_set_servers_csv\fP function sets the list of DNS servers
- that ARES will query.  The format of the servers option is:
- .B int ares_set_servers_csv(ares_channel \fIchannel\fP, const char* \fIservers\fP)
- .B int ares_set_servers_ports_csv(ares_channel \fIchannel\fP, const char* \fIservers\fP)
++
+ #include <ares.h>
+ int ares_set_servers_csv(ares_channel \fIchannel\fP, const char* \fIservers\fP)
+ int ares_set_servers_ports_csv(ares_channel \fIchannel\fP, const char* \fIservers\fP)
  .fi
  .SH DESCRIPTION
  The \fBares_set_servers_csv\fP and \fBares_set_servers_ports_csv\fPfunctions set
index 8282b36,0000000..9ec6992
mode 100644,000000..100644
--- /dev/null
@@@ -1,73 -1,0 +1,73 @@@
- Version:        1.18.1
 +Name:           c-ares
++Version:        1.21.0
 +Release:        0
 +License:        MIT
 +Summary:        Library for asynchronous name resolves
 +Group:          Development/Libraries/C and C++
 +Source:         http://daniel.haxx.se/projects/c-ares/%{name}-%{version}.tar.gz
 +Source2:        baselibs.conf
 +Source1001:   c-ares.manifest
 +Source1002:   LICENSE
 +BuildRequires:  pkg-config
 +BuildRequires:  libtool
 +Url:            http://daniel.haxx.se/projects/c-ares
 +
 +%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
 +Summary:        Library for asynchronous name resolves
 +Group:          Development/Libraries/C and C++
 +
 +%description -n libcares
 +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:       libcares = %{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 %{name}-%{version}
 +cp %{SOURCE1001} .
 +cp %{SOURCE1002} .
 +
 +%build
 +autoreconf -fiv
 +%configure --enable-symbol-hiding --enable-nonblocking --enable-shared --disable-static --with-pic --disable-tests
 +sed -i -e 's@-g0@-g@g' Makefile
 +make %{?_smp_mflags}
 +
 +%install
 +%make_install
 +
 +%post -p /sbin/ldconfig -n libcares
 +
 +%postun -p /sbin/ldconfig -n libcares
 +
 +%files -n libcares
 +%license LICENSE
 +%license LICENSE.BSD
 +%manifest %{name}.manifest
 +%defattr(-,root,root)
 +%{_libdir}/libcares.so.2*
 +
 +%files -n libcares-devel
 +%license LICENSE
 +%license LICENSE.BSD
 +%manifest %{name}.manifest
 +%defattr(-,root,root)
 +%{_libdir}/libcares.so
 +%{_includedir}/*.h
 +%{_mandir}/man3/ares_*
 +%{_libdir}/pkgconfig/libcares.pc