]>
Commit | Line | Data |
---|---|---|
e48cff68 ER |
1 | Summary: Free, simple and portable asynchronous resolver library |
2 | Name: libasr | |
3 | Version: 1.0.1 | |
4 | Release: 1 | |
5 | License: BSD | |
6 | Group: Libraries | |
7 | Source0: https://www.opensmtpd.org/archives/%{name}-%{version}.tar.gz | |
8 | # Source0-md5: ca46c5f24846598f9fd2322c265f5313 | |
9 | URL: https://github.com/OpenSMTPD/libasr | |
e48cff68 ER |
10 | BuildRequires: openssl-devel |
11 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
12 | ||
13 | %description | |
14 | Libasr allows to run DNS queries and perform hostname resolutions in a | |
15 | fully asynchronous fashion. The implementation is thread-less, | |
16 | fork-less, and does not make use of signals or other "tricks" that | |
17 | might get in the developer's way. The API was initially developed for | |
18 | the OpenBSD operating system, where it is natively supported. | |
19 | ||
20 | This library is intended to bring this interface to other systems. It | |
21 | is originally provided as a support library for the portable version | |
22 | of the OpenSMTPD daemon, but it can be used in any other contexts. | |
23 | ||
24 | %package devel | |
25 | Summary: Development files for %{name} | |
26 | Group: Development/Libraries | |
27 | Requires: %{name} = %{version}-%{release} | |
28 | ||
29 | %description devel | |
30 | This package contains the header files and libraries for developing | |
31 | with %{name}. | |
32 | ||
33 | %prep | |
34 | %setup -q | |
35 | ||
36 | %build | |
37 | %configure \ | |
38 | --enable-shared \ | |
39 | --disable-static \ | |
40 | --with-mantype=man | |
41 | ||
42 | %{__make} | |
43 | ||
44 | %install | |
45 | rm -rf $RPM_BUILD_ROOT | |
46 | %{__make} install \ | |
47 | DESTDIR=$RPM_BUILD_ROOT | |
48 | ||
49 | rm $RPM_BUILD_ROOT%{_libdir}/libasr.la | |
50 | ||
51 | # FIXME: somehow libtool installs this with -m 644 | |
52 | chmod a+x $RPM_BUILD_ROOT%{_libdir}/libasr.so.* | |
53 | ||
54 | %clean | |
55 | rm -rf $RPM_BUILD_ROOT | |
56 | ||
57 | %post -p /sbin/ldconfig | |
58 | %postun -p /sbin/ldconfig | |
59 | ||
60 | %files | |
61 | %defattr(644,root,root,755) | |
62 | %doc ChangeLog LICENCE README.md | |
63 | %attr(755,root,root) %{_libdir}/libasr.so.*.*.* | |
64 | %ghost %{_libdir}/libasr.so.0 | |
65 | ||
66 | %files devel | |
67 | %defattr(644,root,root,755) | |
68 | %{_includedir}/asr.h | |
69 | %{_libdir}/libasr.so |