]> git.pld-linux.org Git - packages/libasr.git/blame - libasr.spec
- updated to 1.0.4
[packages/libasr.git] / libasr.spec
CommitLineData
bd6152be
JB
1#
2# Conditional build:
3%bcond_without static_libs # static library
4
e48cff68 5Summary: Free, simple and portable asynchronous resolver library
bd6152be 6Summary(pl.UTF-8): Wolnodostępna, prosta i przenośna biblioteka asynchronicznego rozwiązywania nazw
e48cff68 7Name: libasr
b94abb72 8Version: 1.0.4
20877221 9Release: 1
bd6152be 10License: ISC, BSD
e48cff68
ER
11Group: Libraries
12Source0: https://www.opensmtpd.org/archives/%{name}-%{version}.tar.gz
b94abb72 13# Source0-md5: ad76b488a19de962efd2e1c57e45a13a
e48cff68 14URL: https://github.com/OpenSMTPD/libasr
bd6152be 15# <openssl/opensslv.h> used in openbsd-compat layer
e48cff68
ER
16BuildRequires: openssl-devel
17BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18
19%description
20Libasr allows to run DNS queries and perform hostname resolutions in a
21fully asynchronous fashion. The implementation is thread-less,
22fork-less, and does not make use of signals or other "tricks" that
23might get in the developer's way. The API was initially developed for
24the OpenBSD operating system, where it is natively supported.
25
26This library is intended to bring this interface to other systems. It
27is originally provided as a support library for the portable version
28of the OpenSMTPD daemon, but it can be used in any other contexts.
29
bd6152be
JB
30%description -l pl.UTF-8
31Libasr pozwala na wykonywanie zapytań DNS i rozwiązywanie nazw hostów
32w sposób całkowicie asynchroniczny. Implementacja jest bezwątkowa, nie
33tworzy nowych procesów i nie wykorzystuje sygnałów ani innych
34"sztuczek", mogących przeszkadzać programistom. API było początkowo
35projektowane dla systemu OpenBSD i tam jest obsługiwane natywnie.
36
37Biblitoteka ma na celu dostarczenie tego interfejsu dla innych
38systemów. Pierwotnie powstała jako biblioteka wspierająca dla
39przenośnej wersji demona OpenSMTPD, ale może być używana także w
40innych zastosowaniach.
41
e48cff68 42%package devel
bd6152be
JB
43Summary: Development files for libasr library
44Summary(pl.UTF-8): Pliki programistyczne biblioteki libasr
e48cff68
ER
45Group: Development/Libraries
46Requires: %{name} = %{version}-%{release}
47
48%description devel
bd6152be
JB
49This package contains the header file for developing with libasr.
50
51%description devel -l pl.UTF-8
52Ten pakiet zawiera pliki nagłówkowe do tworzenia programów z
53wykorzystaniem libasr.
54
55%package static
56Summary: Static libasr library
57Summary(pl.UTF-8): Statyczna biblioteka libasr
58Group: Development/Libraries
59Requires: %{name}-devel = %{version}-%{release}
60
61%description static
62Static libasr library.
63
64%description static -l pl.UTF-8
65Statyczna biblioteka libasr.
e48cff68
ER
66
67%prep
68%setup -q
69
70%build
71%configure \
bd6152be 72 %{!?with_static_libs:--disable-static} \
e48cff68
ER
73 --with-mantype=man
74
75%{__make}
76
77%install
78rm -rf $RPM_BUILD_ROOT
bd6152be 79
e48cff68
ER
80%{__make} install \
81 DESTDIR=$RPM_BUILD_ROOT
82
bd6152be 83%{__rm} $RPM_BUILD_ROOT%{_libdir}/libasr.la
e48cff68 84
b94abb72
JB
85# not installed as of 1.0.4
86install -d $RPM_BUILD_ROOT%{_mandir}/man3
87cp -p src/asr_run.3 $RPM_BUILD_ROOT%{_mandir}/man3
e48cff68
ER
88
89%clean
90rm -rf $RPM_BUILD_ROOT
91
92%post -p /sbin/ldconfig
93%postun -p /sbin/ldconfig
94
95%files
96%defattr(644,root,root,755)
97%doc ChangeLog LICENCE README.md
98%attr(755,root,root) %{_libdir}/libasr.so.*.*.*
bd6152be 99%attr(755,root,root) %ghost %{_libdir}/libasr.so.0
e48cff68
ER
100
101%files devel
102%defattr(644,root,root,755)
bd6152be 103%attr(755,root,root) %{_libdir}/libasr.so
e48cff68 104%{_includedir}/asr.h
20877221 105%{_mandir}/man3/asr_run.3*
bd6152be
JB
106
107%if %{with static_libs}
108%files static
109%defattr(644,root,root,755)
110%{_libdir}/libasr.a
111%endif
This page took 0.092233 seconds and 5 git commands to generate.