f559d78
Summary: A library that performs asynchronous DNS operations
f559d78
Name: c-ares
2b573b7
Version: 1.3.0
a5fc130
Release: 2%{?dist}
f559d78
License: MIT
f559d78
Group: System Environment/Libraries
f559d78
URL: http://daniel.haxx.se/projects/c-ares/
2b573b7
Source0: http://daniel.haxx.se/projects/c-ares/c-ares-%{version}.tar.gz
2b573b7
Source1: LICENSE
f559d78
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
f559d78
f559d78
%description
f559d78
c-ares is a C library that performs DNS requests and name resolves 
f559d78
asynchronously. c-ares is a fork of the library named 'ares', written 
f559d78
by Greg Hudson at MIT.
f559d78
f559d78
%package devel
f559d78
Summary: Development files for c-ares
f559d78
Group: Development/Libraries
f559d78
Requires: %{name} = %{version}-%{release}
f559d78
f559d78
%description devel
f559d78
This package contains the header files and static libraries needed to
f559d78
compile applications or shared objects that use c-ares.
f559d78
f559d78
%prep
f559d78
%setup -q
2b573b7
cp %{SOURCE1} .
f559d78
f559d78
%build
f559d78
%configure --enable-shared
f559d78
%{__make} %{?_smp_mflags}
f559d78
f559d78
%install
f559d78
rm -rf $RPM_BUILD_ROOT
f559d78
make DESTDIR=$RPM_BUILD_ROOT install
f559d78
rm -rf $RPM_BUILD_ROOT/%{_libdir}/libcares.la
f559d78
f559d78
%clean
f559d78
rm -rf $RPM_BUILD_ROOT
f559d78
f559d78
%post -p /sbin/ldconfig
f559d78
%postun -p /sbin/ldconfig
f559d78
f559d78
%files
f559d78
%defattr(-, root, root)
2b573b7
%doc README README.cares CHANGES NEWS LICENSE
f559d78
%{_libdir}/*.so.*
f559d78
f559d78
%files devel
f559d78
%defattr(-, root, root, 0755)
f559d78
%{_includedir}/ares.h
f559d78
%{_includedir}/ares_version.h
f559d78
%{_libdir}/libcares.a
f559d78
%{_libdir}/*.so
f559d78
%{_mandir}/man3/ares_*
f559d78
f559d78
%changelog
a5fc130
* Tue Feb 28 2006 Tom "spot" Callaway <tcallawa@redhat.com> 1.3.0-2
a5fc130
- bump for FC-5 rebuild
a5fc130
2b573b7
* Sun Sep  4 2005 Tom "spot" Callaway <tcallawa@redhat.com> 1.3.0-1
2b573b7
- include LICENSE text
2b573b7
- bump to 1.3.0
2b573b7
ff21115
* Tue May 31 2005 Tom "spot" Callaway <tcallawa@redhat.com> 1.2.1-4
d9ef2ff
- use dist tag to prevent EVR overlap
d9ef2ff
f559d78
* Fri Apr 22 2005 Tom "spot" Callaway <tcallawa@redhat.com> 1.2.1-2
f559d78
- fix license (MIT, not LGPL)
f559d78
- get rid of libcares.la
f559d78
f559d78
* Fri Apr 22 2005 Tom "spot" Callaway <tcallawa@redhat.com> 1.2.1-1
f559d78
- initial package creation
f559d78