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