]> git.pld-linux.org Git - packages/libasr.git/blame - libasr.spec
libasr 1.0.2 (2015/06/03)
[packages/libasr.git] / libasr.spec
CommitLineData
e48cff68
ER
1Summary: Free, simple and portable asynchronous resolver library
2Name: libasr
20877221
ER
3Version: 1.0.2
4Release: 1
e48cff68
ER
5License: BSD
6Group: Libraries
7Source0: https://www.opensmtpd.org/archives/%{name}-%{version}.tar.gz
20877221 8# Source0-md5: 2a2832e8c25683bd17f4ce8b37ba940a
e48cff68 9URL: https://github.com/OpenSMTPD/libasr
e48cff68
ER
10BuildRequires: openssl-devel
11BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
12
13%description
14Libasr allows to run DNS queries and perform hostname resolutions in a
15fully asynchronous fashion. The implementation is thread-less,
16fork-less, and does not make use of signals or other "tricks" that
17might get in the developer's way. The API was initially developed for
18the OpenBSD operating system, where it is natively supported.
19
20This library is intended to bring this interface to other systems. It
21is originally provided as a support library for the portable version
22of the OpenSMTPD daemon, but it can be used in any other contexts.
23
24%package devel
25Summary: Development files for %{name}
26Group: Development/Libraries
27Requires: %{name} = %{version}-%{release}
28
29%description devel
30This package contains the header files and libraries for developing
31with %{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
45rm -rf $RPM_BUILD_ROOT
46%{__make} install \
47 DESTDIR=$RPM_BUILD_ROOT
48
49rm $RPM_BUILD_ROOT%{_libdir}/libasr.la
50
51# FIXME: somehow libtool installs this with -m 644
52chmod a+x $RPM_BUILD_ROOT%{_libdir}/libasr.so.*
53
54%clean
55rm -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
20877221 70%{_mandir}/man3/asr_run.3*
This page took 0.10193 seconds and 4 git commands to generate.