1 Summary: A library that performs asynchronous DNS operations
2 Summary(pl.UTF-8): Biblioteka do wykonywania asynchronicznych zapytań DNS
8 Source0: https://c-ares.haxx.se/download/%{name}-%{version}.tar.gz
9 # Source0-md5: 2ca44be1715cd2c5666a165d35788424
10 Patch0: %{name}-resolv.conf-reading-is-not-fatal.patch
11 URL: https://c-ares.haxx.se/
12 BuildRequires: autoconf >= 2.57
13 BuildRequires: automake
14 BuildRequires: libtool
15 BuildRequires: sed >= 4.0
16 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
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.
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
29 Summary: Development files for c-ares library
30 Summary(pl.UTF-8): Pliki nagłówkowe dla biblioteki c-ares
31 Group: Development/Libraries
32 Requires: %{name} = %{version}-%{release}
35 Header files for c-ares library.
37 %description devel -l pl.UTF-8
38 Pliki nagłówkowe biblioteki c-ares.
41 Summary: Static c-ares library
42 Summary(pl.UTF-8): Statyczna biblioteka c-ares
43 Group: Development/Libraries
44 Requires: %{name}-devel = %{version}-%{release}
47 Static c-ares library.
49 %description static -l pl.UTF-8
50 Statyczna biblioteka c-ares.
56 # we want our own debug flags, if any
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
67 --disable-silent-rules \
68 --enable-optimize="%{rpmcflags}" \
74 rm -rf $RPM_BUILD_ROOT
76 DESTDIR=$RPM_BUILD_ROOT
79 rm -rf $RPM_BUILD_ROOT
81 %post -p /sbin/ldconfig
82 %postun -p /sbin/ldconfig
85 %defattr(644,root,root,755)
86 %doc AUTHORS CHANGES LICENSE.md NEWS README.cares README.md RELEASE-NOTES TODO
87 %attr(755,root,root) %{_libdir}/libcares.so.*.*.*
88 %attr(755,root,root) %ghost %{_libdir}/libcares.so.2
91 %defattr(644,root,root,755)
92 %attr(755,root,root) %{_libdir}/libcares.so
93 %{_libdir}/libcares.la
95 %{_includedir}/ares_build.h
96 %{_includedir}/ares_dns.h
97 %{_includedir}/ares_rules.h
98 %{_includedir}/ares_version.h
99 %{_mandir}/man3/ares_*.3*
100 %{_pkgconfigdir}/libcares.pc
103 %defattr(644,root,root,755)
104 %{_libdir}/libcares.a