]> git.pld-linux.org Git - packages/libasr.git/blob - libasr.spec
cf704f77889fda1901268034d39401017658e89d
[packages/libasr.git] / libasr.spec
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
10 BuildRequires:  libevent-devel
11 BuildRequires:  openssl-devel
12 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
13
14 %description
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.
20
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.
24
25 %package devel
26 Summary:        Development files for %{name}
27 Group:          Development/Libraries
28 Requires:       %{name} = %{version}-%{release}
29
30 %description devel
31 This package contains the header files and libraries for developing
32 with %{name}.
33
34 %prep
35 %setup -q
36
37 %build
38 %configure \
39         --enable-shared \
40         --disable-static \
41         --with-mantype=man
42
43 %{__make}
44
45 %install
46 rm -rf $RPM_BUILD_ROOT
47 %{__make} install \
48         DESTDIR=$RPM_BUILD_ROOT
49
50 rm $RPM_BUILD_ROOT%{_libdir}/libasr.la
51
52 # FIXME: somehow libtool installs this with -m 644
53 chmod a+x $RPM_BUILD_ROOT%{_libdir}/libasr.so.*
54
55 %clean
56 rm -rf $RPM_BUILD_ROOT
57
58 %post   -p /sbin/ldconfig
59 %postun -p /sbin/ldconfig
60
61 %files
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
66
67 %files devel
68 %defattr(644,root,root,755)
69 %{_includedir}/asr.h
70 %{_libdir}/libasr.so
This page took 0.058292 seconds and 2 git commands to generate.