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