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