f9a319e4 |
Summary: A library that performs asynchronous DNS operations
Name: c-ares |
c071b36c |
Version: 1.12.0 |
8195e125 |
Release: 2%{?dist} |
f9a319e4 |
License: MIT
Group: System Environment/Libraries
Vendor: VMware, Inc.
Distribution: Photon
URL: http://c-ares.haxx.se/
Source0: http://c-ares.haxx.se/download/%{name}-%{version}.tar.gz |
c071b36c |
%define sha1 c-ares=8abfce61d2d788fb60a3441d05275162a460cbed |
8195e125 |
Patch0: https://c-ares.haxx.se/CVE-2017-1000381.patch |
46ec180c |
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: libtool
%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 devel
Summary: Development files for c-ares
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
Requires: pkg-config
%description devel
This package contains the header files and libraries needed to
compile applications or shared objects that use c-ares.
%prep
%setup -q |
8195e125 |
%patch0 -p1 |
46ec180c |
f=CHANGES ; iconv -f iso-8859-1 -t utf-8 $f -o $f.utf8 ; mv $f.utf8 $f
%build
autoreconf -if
%configure --enable-shared --disable-static \
--disable-dependency-tracking
%{__make} %{?_smp_mflags}
%install
rm -rf $RPM_BUILD_ROOT
make DESTDIR=$RPM_BUILD_ROOT install
rm -f $RPM_BUILD_ROOT/%{_libdir}/libcares.la
|
23a6af57 |
%check
make %{?_smp_mflags} check
|
46ec180c |
%clean
rm -rf $RPM_BUILD_ROOT
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-, root, root) |
c071b36c |
%doc README.md README.msvc README.cares CHANGES NEWS |
46ec180c |
%{_libdir}/*.so.*
%files devel
%defattr(-, root, root, 0755)
%{_includedir}/ares.h
%{_includedir}/ares_build.h
%{_includedir}/ares_dns.h
%{_includedir}/ares_rules.h
%{_includedir}/ares_version.h
%{_libdir}/*.so
%{_libdir}/pkgconfig/libcares.pc
%{_mandir}/man3/ares_*
%changelog |
8195e125 |
* Fri Sep 29 2017 Dheeraj Shetty <dheerajs@vmware.com> 1.12.0-2
- Fix for CVE-2017-1000381 |
c071b36c |
* Fri Apr 07 2017 Anish Swaminathan <anishs@vmware.com> 1.12.0-1
- Upgrade to 1.12.0 |
f9a319e4 |
* Wed Oct 05 2016 Xiaolin Li <xiaolinl@vmware.com> 1.10.0-3
- Apply patch for CVE-2016-5180.
* Tue May 24 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 1.10.0-2
- GA - Bump release of all rpms
* Wed Feb 03 2016 Anish Swaminathan <anishs@vmware.com> - 1.10.0-1
- Initial version |