1 Summary: Free, simple and portable asynchronous resolver library
7 Source0: https://www.opensmtpd.org/archives/%{name}-%{version}.tar.gz
8 # Source0-md5: 2a2832e8c25683bd17f4ce8b37ba940a
9 URL: https://github.com/OpenSMTPD/libasr
10 BuildRequires: openssl-devel
11 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
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.
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.
25 Summary: Development files for %{name}
26 Group: Development/Libraries
27 Requires: %{name} = %{version}-%{release}
30 This package contains the header files and libraries for developing
45 rm -rf $RPM_BUILD_ROOT
47 DESTDIR=$RPM_BUILD_ROOT
49 rm $RPM_BUILD_ROOT%{_libdir}/libasr.la
51 # FIXME: somehow libtool installs this with -m 644
52 chmod a+x $RPM_BUILD_ROOT%{_libdir}/libasr.so.*
55 rm -rf $RPM_BUILD_ROOT
57 %post -p /sbin/ldconfig
58 %postun -p /sbin/ldconfig
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
67 %defattr(644,root,root,755)
70 %{_mandir}/man3/asr_run.3*