1 |
%define shortname asyncns |
2 |
%define major 0 |
3 |
%define libname %mklibname %shortname %major |
4 |
%define libname_devel %mklibname -d %shortname |
5 |
|
6 |
Summary: A library for executing name service queries asynchronously |
7 |
Name: libasyncns |
8 |
Version: 0.8 |
9 |
Release: %mkrel 8 |
10 |
Source0: http://0pointer.de/lennart/projects/libasyncns/%{name}-%{version}.tar.gz |
11 |
Patch0: libasyncns-0.8-libdir.patch |
12 |
License: LGPL |
13 |
Group: System/Libraries |
14 |
URL: http://0pointer.de/lennart/projects/libasyncns/ |
15 |
BuildRequires : doxygen |
16 |
|
17 |
%description |
18 |
A small and lightweight library that implements easy to use asynchronous |
19 |
wrappers around the libc NSS functions getaddrinfo(), res_query() and related. |
20 |
|
21 |
|
22 |
#---------------------------------------------------------------------------- |
23 |
|
24 |
%package -n %{libname} |
25 |
Summary: A library for executing name service queries asynchronously |
26 |
Group: System/Libraries |
27 |
Provides: %name = %{version}-%{release} |
28 |
|
29 |
%description -n %{libname} |
30 |
A small and lightweight library that implements easy to use asynchronous |
31 |
wrappers around the libc NSS functions getaddrinfo(), res_query() and related. |
32 |
|
33 |
|
34 |
#---------------------------------------------------------------------------- |
35 |
|
36 |
%package -n %{libname_devel} |
37 |
Summary: Development files for %{name} |
38 |
Group: Development/C |
39 |
Requires: %{libname} = %{version}-%{release} |
40 |
Provides: %{name}-devel = %{version}-%{release} |
41 |
|
42 |
|
43 |
%description -n %{libname_devel} |
44 |
Development files for %{name} |
45 |
|
46 |
#---------------------------------------------------------------------------- |
47 |
|
48 |
%prep |
49 |
%setup -q |
50 |
%apply_patches |
51 |
|
52 |
%build |
53 |
%configure2_5x --disable-static |
54 |
%make |
55 |
|
56 |
%install |
57 |
%makeinstall_std |
58 |
find %{buildroot} \( -name *.a -o -name *.la \) -exec rm -f {} \; |
59 |
|
60 |
#---------------------------------------------------------------------------- |
61 |
|
62 |
%files -n %{libname} |
63 |
%{_libdir}/%{name}.so.%{major}* |
64 |
|
65 |
%files -n %{libname_devel} |
66 |
%doc %{_docdir}/%{name} |
67 |
%{_includedir}/%{shortname}.h |
68 |
%{_libdir}/%{name}.so |
69 |
%{_libdir}/pkgconfig/%{name}.pc |