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