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