auto-import c-ares-1.2.1-2 on branch devel from c-ares-1.2.1-2.src.rpm
This commit is contained in:
parent
af043d197a
commit
f559d78dc4
@ -0,0 +1 @@
|
||||
c-ares-1.2.1.tar.gz
|
63
c-ares.spec
Normal file
63
c-ares.spec
Normal file
@ -0,0 +1,63 @@
|
||||
Summary: A library that performs asynchronous DNS operations
|
||||
Name: c-ares
|
||||
Version: 1.2.1
|
||||
Release: 2
|
||||
License: MIT
|
||||
Group: System Environment/Libraries
|
||||
URL: http://daniel.haxx.se/projects/c-ares/
|
||||
Source0: http://daniel.haxx.se/projects/c-ares/c-ares-1.2.1.tar.gz
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
|
||||
%description
|
||||
c-ares is a C library that performs DNS requests and name resolves
|
||||
asynchronously. c-ares is a fork of the library named 'ares', written
|
||||
by Greg Hudson at MIT.
|
||||
|
||||
%package devel
|
||||
Summary: Development files for c-ares
|
||||
Group: Development/Libraries
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
|
||||
%description devel
|
||||
This package contains the header files and static libraries needed to
|
||||
compile applications or shared objects that use c-ares.
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
|
||||
%build
|
||||
%configure --enable-shared
|
||||
%{__make} %{?_smp_mflags}
|
||||
|
||||
%install
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
make DESTDIR=$RPM_BUILD_ROOT install
|
||||
rm -rf $RPM_BUILD_ROOT/%{_libdir}/libcares.la
|
||||
|
||||
%clean
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
%post -p /sbin/ldconfig
|
||||
%postun -p /sbin/ldconfig
|
||||
|
||||
%files
|
||||
%defattr(-, root, root)
|
||||
%doc README README.cares CHANGES NEWS
|
||||
%{_libdir}/*.so.*
|
||||
|
||||
%files devel
|
||||
%defattr(-, root, root, 0755)
|
||||
%{_includedir}/ares.h
|
||||
%{_includedir}/ares_version.h
|
||||
%{_libdir}/libcares.a
|
||||
%{_libdir}/*.so
|
||||
%{_mandir}/man3/ares_*
|
||||
|
||||
%changelog
|
||||
* Fri Apr 22 2005 Tom "spot" Callaway <tcallawa@redhat.com> 1.2.1-2
|
||||
- fix license (MIT, not LGPL)
|
||||
- get rid of libcares.la
|
||||
|
||||
* Fri Apr 22 2005 Tom "spot" Callaway <tcallawa@redhat.com> 1.2.1-1
|
||||
- initial package creation
|
||||
|
Loading…
Reference in New Issue
Block a user