summaryrefslogtreecommitdiff
path: root/packaging/libasyncns.spec
blob: 6e724c8be4ea69a763bf7867d0ed297eb89f3fda (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
Name:           libasyncns
Version:        0.8
Release:        1
License:        LGPL-2.1+
Summary:        A C library for executing name service queries asynchronously
URL:            http://0pointer.de/lennart/projects/libasyncns
Group:          System/Libraries
Source:         %{name}-%{version}.tar.gz

%description
Libasyncns is a C library for executing name service queries
asynchronously. It is an asynchronous wrapper around getaddrinfo(3),
getnameinfo(3), res_query(3) and res_search(3) from libc and libresolv.

%package devel
Summary:        libasyncns development package
Group:          Development/Libraries
Requires:       %{name} = %{version}

%description devel
Development package for libasyncns, a C library for executing name
service queries asynchronously. It is an asynchronous wrapper around
getaddrinfo(3), getnameinfo(3), res_query(3) and res_search(3) from libc
and libresolv.

%prep
%setup -q

%build
%configure

make %{?_smp_mflags}

%install
%make_install

rm -rf %{buildroot}%{_datadir}/doc


%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig


%files
%{_libdir}/libasyncns.so.*

%files devel
%{_includedir}/asyncns.h
%{_libdir}/libasyncns.so
%{_libdir}/pkgconfig/libasyncns.pc