blob: a5ef33f574a195839aefb8172b1a5c37a082aa27 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
|
Name: c-ares
Version: 1.7.5
Release: 1
License: MIT
Summary: Library for asynchronous name resolves
Group: Development/Libraries/C and C++
Source: http://daniel.haxx.se/projects/c-ares/%{name}-%{version}.tar.bz2
Source2: baselibs.conf
BuildRequires: pkg-config
BuildRequires: libtool
Url: http://daniel.haxx.se/projects/c-ares
%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 -n libcares
Summary: Library for asynchronous name resolves
Group: Development/Libraries/C and C++
%description -n libcares
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 -n libcares-devel
Summary: Library for asynchronous name resolves
Group: Development/Libraries/C and C++
Requires: libcares = %{version}
Requires: glibc-devel
%description -n libcares-devel
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.
%prep
%setup -q -n %{name}-%{version}
%build
autoreconf -fiv
%configure --enable-symbol-hiding --enable-nonblocking --enable-shared --disable-static --with-pic
sed -i -e 's@-g0@-g@g' Makefile
make %{?_smp_mflags}
%install
%make_install
%post -p /sbin/ldconfig -n libcares
%postun -p /sbin/ldconfig -n libcares
%files -n libcares
%defattr(-,root,root)
%{_libdir}/libcares.so.2*
%files -n libcares-devel
%defattr(-,root,root)
%{_libdir}/libcares.so
%{_includedir}/*.h
%{_mandir}/man3/ares_*
%{_libdir}/pkgconfig/libcares.pc
%changelog
|