5 Summary: Library for asynchronous name resolves
6 Group: Development/Libraries/C and C++
7 Source: http://daniel.haxx.se/projects/c-ares/%{name}-%{version}.tar.gz
9 Source1001: c-ares.manifest
11 BuildRequires: pkg-config
12 BuildRequires: libtool
13 Url: http://daniel.haxx.se/projects/c-ares
16 c-ares is a C library that performs DNS requests and name resolves
17 asynchronously. c-ares is a fork of the library named 'ares', written
18 by Greg Hudson at MIT.
21 Summary: Library for asynchronous name resolves
22 Group: Development/Libraries/C and C++
24 %description -n libcares
25 c-ares is a C library that performs DNS requests and name resolves
26 asynchronously. c-ares is a fork of the library named 'ares', written
27 by Greg Hudson at MIT.
29 %package -n libcares-devel
30 Summary: Library for asynchronous name resolves
31 Group: Development/Libraries/C and C++
32 Requires: libcares = %{version}
35 %description -n libcares-devel
36 c-ares is a C library that performs DNS requests and name resolves
37 asynchronously. c-ares is a fork of the library named 'ares', written
38 by Greg Hudson at MIT.
41 %setup -q -n %{name}-%{version}
47 %configure --enable-symbol-hiding --enable-nonblocking --enable-shared --disable-static --with-pic --disable-tests
48 sed -i -e 's@-g0@-g@g' Makefile
54 %post -p /sbin/ldconfig -n libcares
56 %postun -p /sbin/ldconfig -n libcares
60 %manifest %{name}.manifest
62 %{_libdir}/libcares.so.2*
64 %files -n libcares-devel
66 %manifest %{name}.manifest
68 %{_libdir}/libcares.so
70 %{_mandir}/man3/ares_*
71 %{_libdir}/pkgconfig/libcares.pc