6e724c8be4ea69a763bf7867d0ed297eb89f3fda
[platform/upstream/libasyncns.git] / packaging / libasyncns.spec
1 Name:           libasyncns
2 Version:        0.8
3 Release:        1
4 License:        LGPL-2.1+
5 Summary:        A C library for executing name service queries asynchronously
6 URL:            http://0pointer.de/lennart/projects/libasyncns
7 Group:          System/Libraries
8 Source:         %{name}-%{version}.tar.gz
9
10 %description
11 Libasyncns is a C library for executing name service queries
12 asynchronously. It is an asynchronous wrapper around getaddrinfo(3),
13 getnameinfo(3), res_query(3) and res_search(3) from libc and libresolv.
14
15 %package devel
16 Summary:        libasyncns development package
17 Group:          Development/Libraries
18 Requires:       %{name} = %{version}
19
20 %description devel
21 Development package for libasyncns, a C library for executing name
22 service queries asynchronously. It is an asynchronous wrapper around
23 getaddrinfo(3), getnameinfo(3), res_query(3) and res_search(3) from libc
24 and libresolv.
25
26 %prep
27 %setup -q
28
29 %build
30 %configure
31
32 make %{?_smp_mflags}
33
34 %install
35 %make_install
36
37 rm -rf %{buildroot}%{_datadir}/doc
38
39
40 %post -p /sbin/ldconfig
41
42 %postun -p /sbin/ldconfig
43
44
45 %files
46 %{_libdir}/libasyncns.so.*
47
48 %files devel
49 %{_includedir}/asyncns.h
50 %{_libdir}/libasyncns.so
51 %{_libdir}/pkgconfig/libasyncns.pc