1 Summary: Free, simple and portable asynchronous resolver library
7 Source0: https://www.opensmtpd.org/archives/%{name}-%{version}.tar.gz
8 # Source0-md5: ca46c5f24846598f9fd2322c265f5313
9 URL: https://github.com/OpenSMTPD/libasr
10 BuildRequires: libevent-devel
11 BuildRequires: openssl-devel
12 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
15 Libasr allows to run DNS queries and perform hostname resolutions in a
16 fully asynchronous fashion. The implementation is thread-less,
17 fork-less, and does not make use of signals or other "tricks" that
18 might get in the developer's way. The API was initially developed for
19 the OpenBSD operating system, where it is natively supported.
21 This library is intended to bring this interface to other systems. It
22 is originally provided as a support library for the portable version
23 of the OpenSMTPD daemon, but it can be used in any other contexts.
26 Summary: Development files for %{name}
27 Group: Development/Libraries
28 Requires: %{name} = %{version}-%{release}
31 This package contains the header files and libraries for developing
46 rm -rf $RPM_BUILD_ROOT
48 DESTDIR=$RPM_BUILD_ROOT
50 rm $RPM_BUILD_ROOT%{_libdir}/libasr.la
52 # FIXME: somehow libtool installs this with -m 644
53 chmod a+x $RPM_BUILD_ROOT%{_libdir}/libasr.so.*
56 rm -rf $RPM_BUILD_ROOT
58 %post -p /sbin/ldconfig
59 %postun -p /sbin/ldconfig
62 %defattr(644,root,root,755)
63 %doc ChangeLog LICENCE README.md
64 %attr(755,root,root) %{_libdir}/libasr.so.*.*.*
65 %ghost %{_libdir}/libasr.so.0
68 %defattr(644,root,root,755)