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.bz2
9 Source1001: c-ares.manifest
10 BuildRequires: pkg-config
11 BuildRequires: libtool
12 Url: http://daniel.haxx.se/projects/c-ares
15 c-ares is a C library that performs DNS requests and name resolves
16 asynchronously. c-ares is a fork of the library named 'ares', written
17 by Greg Hudson at MIT.
20 Summary: Library for asynchronous name resolves
21 Group: Development/Libraries/C and C++
23 %description -n libcares
24 c-ares is a C library that performs DNS requests and name resolves
25 asynchronously. c-ares is a fork of the library named 'ares', written
26 by Greg Hudson at MIT.
28 %package -n libcares-devel
29 Summary: Library for asynchronous name resolves
30 Group: Development/Libraries/C and C++
31 Requires: libcares = %{version}
34 %description -n libcares-devel
35 c-ares is a C library that performs DNS requests and name resolves
36 asynchronously. c-ares is a fork of the library named 'ares', written
37 by Greg Hudson at MIT.
40 %setup -q -n %{name}-%{version}
45 %configure --enable-symbol-hiding --enable-nonblocking --enable-shared --disable-static --with-pic
46 sed -i -e 's@-g0@-g@g' Makefile
52 %post -p /sbin/ldconfig -n libcares
54 %postun -p /sbin/ldconfig -n libcares
57 %manifest %{name}.manifest
59 %{_libdir}/libcares.so.2*
61 %files -n libcares-devel
62 %manifest %{name}.manifest
64 %{_libdir}/libcares.so
66 %{_mandir}/man3/ares_*
67 %{_libdir}/pkgconfig/libcares.pc