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
51 mkdir -p %{buildroot}/usr/share/license
52 cp LICENSE %{buildroot}/usr/share/license/%{name}
54 %post -p /sbin/ldconfig -n libcares
56 %postun -p /sbin/ldconfig -n libcares
59 %manifest %{name}.manifest
61 %{_libdir}/libcares.so.2*
63 %files -n libcares-devel
64 %manifest %{name}.manifest
66 %{_libdir}/libcares.so
68 %{_mandir}/man3/ares_*
69 %{_libdir}/pkgconfig/libcares.pc
70 /usr/share/license/%{name}