]> git.pld-linux.org Git - packages/c-ares.git/blame - c-ares.spec
- 1.7.1-post snapshot, for ares_parse_mx etc
[packages/c-ares.git] / c-ares.spec
CommitLineData
bf3cdf8b 1%define snap 20100523
fb176567 2Summary: A library that performs asynchronous DNS operations
d0f05923 3Summary(pl.UTF-8): Biblioteka do wykonywania asynchronicznych zapytań DNS
fb176567 4Name: c-ares
3d8bc3f1 5Version: 1.7.1
bf3cdf8b 6Release: 1.%{snap}.0
fb176567
AG
7License: MIT
8Group: Libraries
bf3cdf8b 9Source0: http://c-ares.haxx.se/daily-snapshot/c-ares-%{version}-%{snap}.tar.gz
10# Source0-md5: 2c8ccd846a933c78b9dbe38bed815be9
5122b158 11Patch0: %{name}-resolv.conf-reading-is-not-fatal.patch
fb176567 12URL: http://daniel.haxx.se/projects/c-ares/
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
bf3cdf8b 54%setup -q -n %{name}-%{version}-%{snap}
5122b158 55%patch0 -p1
fb176567 56
cce9c713
ER
57# we want our own debug flags, if any
58sed -i -e 's/flags_dbg_off=".*"/flags_dbg_off="%{rpmcflags}"/' m4/cares-compilers.m4
59sed -i -e 's/flags_opt_yes=".*"/flags_opt_yes="%{rpmcflags}"/' m4/cares-compilers.m4
60
fb176567 61%build
cce9c713
ER
62%{__libtoolize}
63%{__aclocal} -I m4
bf3cdf8b 64%{__autoheader}
cce9c713
ER
65%{__autoconf}
66%{__automake}
fb176567 67%configure \
cce9c713 68 --enable-optimize="%{rpmcflags}" \
fb176567
AG
69 --enable-shared
70
71%{__make}
72
73%install
74rm -rf $RPM_BUILD_ROOT
75%{__make} install \
76 DESTDIR=$RPM_BUILD_ROOT
77
78%clean
79rm -rf $RPM_BUILD_ROOT
80
0bea12c2
JB
81%post -p /sbin/ldconfig
82%postun -p /sbin/ldconfig
fb176567
AG
83
84%files
85%defattr(644,root,root,755)
86%doc README README.cares CHANGES NEWS
cce9c713
ER
87%attr(755,root,root) %{_libdir}/libcares.so.*.*.*
88%attr(755,root,root) %ghost %{_libdir}/libcares.so.2
fb176567
AG
89
90%files devel
91%defattr(644,root,root,755)
777ebe8a 92%attr(755,root,root) %{_libdir}/libcares.so
cce9c713 93%{_libdir}/libcares.la
b43df78b
ER
94%{_includedir}/ares.h
95%{_includedir}/ares_build.h
96%{_includedir}/ares_dns.h
97%{_includedir}/ares_rules.h
98%{_includedir}/ares_version.h
cce9c713
ER
99%{_mandir}/man3/ares_*.3*
100%{_pkgconfigdir}/libcares.pc
fb176567
AG
101
102%files static
103%defattr(644,root,root,755)
cce9c713 104%{_libdir}/libcares.a
This page took 0.092076 seconds and 4 git commands to generate.