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