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