]>
Commit | Line | Data |
---|---|---|
fb176567 | 1 | Summary: A library that performs asynchronous DNS operations |
d0f05923 | 2 | Summary(pl.UTF-8): Biblioteka do wykonywania asynchronicznych zapytań DNS |
fb176567 | 3 | Name: c-ares |
cb743bc9 JB |
4 | Version: 1.11.0 |
5 | Release: 1 | |
fb176567 AG |
6 | License: MIT |
7 | Group: Libraries | |
b9206b2d | 8 | Source0: http://c-ares.haxx.se/download/%{name}-%{version}.tar.gz |
cb743bc9 | 9 | # Source0-md5: d5c6d522cfc54bb6f215a0b7912d46be |
5122b158 | 10 | Patch0: %{name}-resolv.conf-reading-is-not-fatal.patch |
b9206b2d | 11 | URL: http://c-ares.haxx.se/ |
777ebe8a | 12 | BuildRequires: autoconf >= 2.57 |
cce9c713 ER |
13 | BuildRequires: automake |
14 | BuildRequires: libtool | |
15 | BuildRequires: sed >= 4.0 | |
fb176567 AG |
16 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
17 | ||
18 | %description | |
19 | c-ares is a C library that performs DNS requests and name resolves | |
20 | asynchronously. c-ares is a fork of the library named 'ares', written | |
21 | by Greg Hudson at MIT. | |
22 | ||
166ca016 JR |
23 | %description -l pl.UTF-8 |
24 | c-ares jest napisaną w C biblioteką do asynchronicznego wykonywania | |
25 | zapytań DNS. c-ares jest to fork biblioteki 'ares' napisanej przez | |
fb176567 AG |
26 | Grega Hudsona w MIT. |
27 | ||
28 | %package devel | |
29 | Summary: Development files for c-ares library | |
d0f05923 | 30 | Summary(pl.UTF-8): Pliki nagłówkowe dla biblioteki c-ares |
fb176567 AG |
31 | Group: Development/Libraries |
32 | Requires: %{name} = %{version}-%{release} | |
33 | ||
34 | %description devel | |
35 | Header files for c-ares library. | |
36 | ||
166ca016 JR |
37 | %description devel -l pl.UTF-8 |
38 | Pliki nagłówkowe biblioteki c-ares. | |
fb176567 AG |
39 | |
40 | %package static | |
41 | Summary: Static c-ares library | |
d0f05923 | 42 | Summary(pl.UTF-8): Statyczna biblioteka c-ares |
fb176567 AG |
43 | Group: Development/Libraries |
44 | Requires: %{name}-devel = %{version}-%{release} | |
45 | ||
46 | %description static | |
47 | Static c-ares library. | |
48 | ||
166ca016 | 49 | %description static -l pl.UTF-8 |
fb176567 AG |
50 | Statyczna biblioteka c-ares. |
51 | ||
52 | %prep | |
d522fb60 | 53 | %setup -q |
5122b158 | 54 | %patch0 -p1 |
fb176567 | 55 | |
cce9c713 | 56 | # we want our own debug flags, if any |
cb743bc9 JB |
57 | %{__sed} -i -e 's/flags_dbg_off=".*"/flags_dbg_off="%{rpmcflags}"/' m4/cares-compilers.m4 |
58 | %{__sed} -i -e 's/flags_opt_yes=".*"/flags_opt_yes="%{rpmcflags}"/' m4/cares-compilers.m4 | |
cce9c713 | 59 | |
fb176567 | 60 | %build |
cce9c713 ER |
61 | %{__libtoolize} |
62 | %{__aclocal} -I m4 | |
bf3cdf8b | 63 | %{__autoheader} |
cce9c713 ER |
64 | %{__autoconf} |
65 | %{__automake} | |
fb176567 | 66 | %configure \ |
cb743bc9 | 67 | --disable-silent-rules \ |
cce9c713 | 68 | --enable-optimize="%{rpmcflags}" \ |
fb176567 AG |
69 | --enable-shared |
70 | ||
71 | %{__make} | |
72 | ||
73 | %install | |
74 | rm -rf $RPM_BUILD_ROOT | |
75 | %{__make} install \ | |
76 | DESTDIR=$RPM_BUILD_ROOT | |
77 | ||
78 | %clean | |
79 | rm -rf $RPM_BUILD_ROOT | |
80 | ||
0bea12c2 JB |
81 | %post -p /sbin/ldconfig |
82 | %postun -p /sbin/ldconfig | |
fb176567 AG |
83 | |
84 | %files | |
85 | %defattr(644,root,root,755) | |
cb743bc9 | 86 | %doc CHANGES NEWS README.cares README.md |
cce9c713 ER |
87 | %attr(755,root,root) %{_libdir}/libcares.so.*.*.* |
88 | %attr(755,root,root) %ghost %{_libdir}/libcares.so.2 | |
fb176567 AG |
89 | |
90 | %files devel | |
91 | %defattr(644,root,root,755) | |
777ebe8a | 92 | %attr(755,root,root) %{_libdir}/libcares.so |
cce9c713 | 93 | %{_libdir}/libcares.la |
b43df78b ER |
94 | %{_includedir}/ares.h |
95 | %{_includedir}/ares_build.h | |
96 | %{_includedir}/ares_dns.h | |
97 | %{_includedir}/ares_rules.h | |
98 | %{_includedir}/ares_version.h | |
cce9c713 ER |
99 | %{_mandir}/man3/ares_*.3* |
100 | %{_pkgconfigdir}/libcares.pc | |
fb176567 AG |
101 | |
102 | %files static | |
103 | %defattr(644,root,root,755) | |
cce9c713 | 104 | %{_libdir}/libcares.a |