119dd8
Summary: A library that performs asynchronous DNS operations
119dd8
Name: c-ares
119dd8
Version: 1.13.0
c2402d
Release: 6%{?dist}
119dd8
License: MIT
119dd8
Group: System Environment/Libraries
119dd8
URL: http://c-ares.haxx.se/
119dd8
Source0: http://c-ares.haxx.se/download/%{name}-%{version}.tar.gz
119dd8
# The license can be obtained at http://c-ares.haxx.se/license.html
119dd8
Source1: LICENSE
119dd8
Patch0: 0001-Use-RPM-compiler-options.patch
c2402d
Patch1: 0002-fix-CVE-2021-3672.patch
119dd8
119dd8
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
119dd8
119dd8
BuildRequires: autoconf
119dd8
BuildRequires: automake
119dd8
BuildRequires: libtool
119dd8
119dd8
%description
119dd8
c-ares is a C library that performs DNS requests and name resolves 
119dd8
asynchronously. c-ares is a fork of the library named 'ares', written 
119dd8
by Greg Hudson at MIT.
119dd8
119dd8
%package devel
119dd8
Summary: Development files for c-ares
119dd8
Group: Development/Libraries
119dd8
Requires: %{name} = %{version}-%{release}
119dd8
Requires: pkgconfig
119dd8
119dd8
%description devel
119dd8
This package contains the header files and libraries needed to
119dd8
compile applications or shared objects that use c-ares.
119dd8
119dd8
%prep
119dd8
%setup -q
119dd8
%patch0 -p1 -b .optflags
c2402d
%patch1 -p1 -b .dns
119dd8
119dd8
cp %{SOURCE1} .
119dd8
f=CHANGES ; iconv -f iso-8859-1 -t utf-8 $f -o $f.utf8 ; mv $f.utf8 $f
119dd8
119dd8
%build
119dd8
autoreconf -if
119dd8
%configure --enable-shared --disable-static \
119dd8
           --disable-dependency-tracking
119dd8
%{__make} %{?_smp_mflags}
119dd8
119dd8
%install
119dd8
rm -rf $RPM_BUILD_ROOT
119dd8
make DESTDIR=$RPM_BUILD_ROOT install
119dd8
rm -f $RPM_BUILD_ROOT/%{_libdir}/libcares.la
119dd8
119dd8
%clean
119dd8
rm -rf $RPM_BUILD_ROOT
119dd8
119dd8
%post -p /sbin/ldconfig
119dd8
%postun -p /sbin/ldconfig
119dd8
119dd8
%files
119dd8
%defattr(-, root, root)
119dd8
%doc README.cares CHANGES NEWS LICENSE
119dd8
%{_libdir}/*.so.*
119dd8
119dd8
%files devel
119dd8
%defattr(-, root, root, 0755)
119dd8
%{_includedir}/ares.h
119dd8
%{_includedir}/ares_build.h
119dd8
%{_includedir}/ares_dns.h
119dd8
%{_includedir}/ares_rules.h
119dd8
%{_includedir}/ares_version.h
119dd8
%{_libdir}/*.so
119dd8
%{_libdir}/pkgconfig/libcares.pc
119dd8
%{_mandir}/man3/ares_*
119dd8
119dd8
%changelog
c2402d
* Fri Oct 15 2021 Alexey Tikhonov <atikhono@redhat.com> - 1.13.0-6
c2402d
- Resolves: rhbz#1989425 - CVE-2021-3672 c-ares: missing input validation of host names may lead to Domain Hijacking [rhel-8]
c2402d
119dd8
* Mon Aug 13 2018 Jakub Hrozek <jhrozek@redhat.com> - 1.13.0-5
119dd8
- Drop an unused patch
119dd8
119dd8
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.13.0-4
119dd8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
119dd8
119dd8
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.13.0-3
119dd8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
119dd8
119dd8
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.13.0-2
119dd8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
119dd8
119dd8
* Tue Jun 20 2017 Jakub Hrozek <jhrozek@redhat.com> - 1.13.0-1
119dd8
- update to 1.13.0
119dd8
119dd8
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.12.0-2
119dd8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
119dd8
119dd8
* Thu Sep 29 2016 Tom Callaway <spot@fedoraproject.org> - 1.12.0-1
119dd8
- update to 1.12.0
119dd8
119dd8
* Fri Feb 19 2016 Jakub Hrozek <jhrozek@redhat.com> - 1.11.0
119dd8
- New upstream version 1.11.0
119dd8
119dd8
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.10.0-6
119dd8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
119dd8
119dd8
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.10.0-5
119dd8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
119dd8
119dd8
* Fri Aug 15 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.10.0-4
119dd8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
119dd8
119dd8
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.10.0-3
119dd8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
119dd8
119dd8
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.10.0-2
119dd8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
119dd8
119dd8
* Mon May 13 2013 Jakub Hrozek <jhrozek@redhat.com> - 1.10.1-1
119dd8
- New upstream release 1.10
119dd8
- Obsolete upstreamed patches
119dd8
- Amend the multilib patch, there's no need to patch configure since we
119dd8
  are running autoreconf anyways
119dd8
- https://raw.github.com/bagder/c-ares/cares-1_10_0/RELEASE-NOTES
119dd8
119dd8
* Thu Apr 11 2013 Jakub Hrozek <jhrozek@redhat.com> - 1.9.1-6
119dd8
- Apply an upstream patch to override AC_CONFIG_MACRO_DIR only conditionally
119dd8
119dd8
* Thu Apr 11 2013 Jakub Hrozek <jhrozek@redhat.com> - 1.9.1-5
119dd8
- Apply a patch by Stephen Gallagher to patch autoconf, not configure to
119dd8
  allow optflags to be passed in by build environment
119dd8
- Run autoreconf before configure
119dd8
- git rm obsolete patches
119dd8
- Apply upstream patch to stop overriding AC_CONFIG_MACRO_DIR
119dd8
119dd8
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.9.1-4
119dd8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
119dd8
119dd8
* Wed Aug 8 2012 Jakub Hrozek <jhrozek@redhat.com> - 1.9.1-3
119dd8
- Include URL to the license text
119dd8
119dd8
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.9.1-2
119dd8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
119dd8
119dd8
* Mon Jun 25 2012 Tom Callaway <spot@fedoraproject.org> - 1.9.1-1
119dd8
- update to 1.9.1
119dd8
119dd8
* Sat Apr 28 2012 Tom Callaway <spot@fedoraproject.org> - 1.8.0-1
119dd8
- update to 1.8.0
119dd8
- fix multilib patch (thanks to Paul Howarth)
119dd8
119dd8
* Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.7.5-2
119dd8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
119dd8
119dd8
* Wed Aug 17 2011 Jakub Hrozek <jhrozek@redhat.com> - 1.7.5-1
119dd8
- New upstream release 1.7.5
119dd8
- Obsoletes patch #2
119dd8
- Rebase patch #1 (optflags) to match the 1.7.5 code
119dd8
- Fixed Source0 URL to point at the upstream tarball
119dd8
119dd8
* Mon Apr 11 2011 Jakub Hrozek <jhrozek@redhat.com> - 1.7.4-3
119dd8
- Apply upstream patch to fix rhbz#695424
119dd8
119dd8
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.7.4-2
119dd8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
119dd8
119dd8
* Fri Dec 10 2010 Tom "spot" Callaway <tcallawa@redhat.com> - 1.7.4-1
119dd8
- update to 1.7.4
119dd8
119dd8
* Wed Aug 25 2010 Jakub Hrozek <jhrozek@redhat.com> - 1.7.3-3
119dd8
- Actually apply the patches
119dd8
119dd8
* Wed Aug 25 2010 Jakub Hrozek <jhrozek@redhat.com> - 1.7.3-2
119dd8
- apply couple of patches from upstream
119dd8
119dd8
* Tue Jun 15 2010 Jakub Hrozek <jhrozek@redhat.com> - 1.7.3-1
119dd8
- Upgrade to new upstream release 1.7.3 (obsoletes search/domain patch)
119dd8
- Fix conflict of -devel packages on multilib architectures (#602880)
119dd8
119dd8
* Thu Jun 3 2010 Jakub Hrozek <jhrozek@redhat.com> - 1.7.1-2
119dd8
- Use last instance of search/domain, not the first one (#597286)
119dd8
119dd8
* Tue Mar 23 2010 Jakub Hrozek <jhrozek@redhat.com> - 1.7.1-1
119dd8
- update to 1.7.1 which contains the IPv6 nameserver patch
119dd8
119dd8
* Sun Mar  7 2010 Jakub Hrozek <jhrozek@redhat.com> - 1.7.0-3
119dd8
- Change IPv6 nameserver patch according to upstream changes
119dd8
  (upstream revisions 1199,1201,1202)
119dd8
119dd8
* Wed Mar  3 2010 Jakub Hrozek <jhrozek@redhat.com> - 1.7.0-2
119dd8
- Add a patch to allow usage of IPv6 nameservers
119dd8
119dd8
* Tue Dec  1 2009 Tom "spot" Callaway <tcallawa@redhat.com> - 1.7.0-1
119dd8
- update to 1.7.0
119dd8
119dd8
* Sat Jul 25 2009 Ville Skyttä <ville.skytta at iki.fi> - 1.6.0-3
119dd8
- Patch to make upstream build system honor our CFLAGS and friends.
119dd8
- Don't bother building throwaway static libs.
119dd8
- Disable autotools dependency tracking for cleaner build logs and possible
119dd8
  slight build speedup.
119dd8
- Convert docs to UTF-8.
119dd8
- Update URLs.
119dd8
119dd8
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.6.0-2
119dd8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
119dd8
119dd8
* Wed Jul 22 2009 Tom "spot" Callaway <tcallawa@redhat.com> - 1.6.0-1
119dd8
- update to 1.6.0
119dd8
119dd8
* Mon Feb 23 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5.3-2
119dd8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
119dd8
119dd8
* Fri Sep 12 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 1.5.3-1
119dd8
- update to 1.5.3
119dd8
119dd8
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 1.5.1-2
119dd8
- Autorebuild for GCC 4.3
119dd8
119dd8
* Tue Feb 19 2008 Tom "spot" Callaway <tcallawa@redhat.com> 1.5.1-1
119dd8
- update to 1.5.1
119dd8
119dd8
* Thu Aug 23 2007 Tom "spot" Callaway <tcallawa@redhat.com> 1.4.0-2
119dd8
- rebuild for ppc32
119dd8
119dd8
* Wed Jun 27 2007 Tom "spot" Callaway <tcallawa@redhat.com> 1.4.0-1
119dd8
- bump to 1.4.0 (resolves bugzilla 243591)
119dd8
- get rid of static library (.a)
119dd8
119dd8
* Wed Jan 17 2007 Tom "spot" Callaway <tcallawa@redhat.com> 1.3.2-1
119dd8
- bump to 1.3.2
119dd8
119dd8
* Mon Sep 11 2006 Tom "spot" Callaway <tcallawa@redhat.com> 1.3.1-2
119dd8
- FC-6 bump
119dd8
119dd8
* Mon Jul 10 2006 Tom "spot" Callaway <tcallawa@redhat.com> 1.3.1-1
119dd8
- bump to 1.3.1
119dd8
119dd8
* Tue Feb 28 2006 Tom "spot" Callaway <tcallawa@redhat.com> 1.3.0-2
119dd8
- bump for FC-5 rebuild
119dd8
119dd8
* Sun Sep  4 2005 Tom "spot" Callaway <tcallawa@redhat.com> 1.3.0-1
119dd8
- include LICENSE text
119dd8
- bump to 1.3.0
119dd8
119dd8
* Tue May 31 2005 Tom "spot" Callaway <tcallawa@redhat.com> 1.2.1-4
119dd8
- use dist tag to prevent EVR overlap
119dd8
119dd8
* Fri Apr 22 2005 Tom "spot" Callaway <tcallawa@redhat.com> 1.2.1-2
119dd8
- fix license (MIT, not LGPL)
119dd8
- get rid of libcares.la
119dd8
119dd8
* Fri Apr 22 2005 Tom "spot" Callaway <tcallawa@redhat.com> 1.2.1-1
119dd8
- initial package creation
119dd8