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