[packages/p11-kit] - allow building on systems without systemd, fixed docs configure option
hawk
hawk at pld-linux.org
Thu Dec 14 21:02:59 CET 2023
commit 8ab1fc1c80e7ae7904f091df707619438882bce5
Author: Marcin Krol <hawk at tld-linux.org>
Date: Thu Dec 14 20:48:05 2023 +0100
- allow building on systems without systemd, fixed docs configure option
p11-kit.spec | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/p11-kit.spec b/p11-kit.spec
index b904bd6..4898417 100644
--- a/p11-kit.spec
+++ b/p11-kit.spec
@@ -1,6 +1,7 @@
#
# Conditional build:
%bcond_without apidocs # do not build and package API docs
+%bcond_without systemd # systemd
#
Summary: Library and proxy module for properly loading and sharing PKCS#11 modules
Summary(pl.UTF-8): Biblioteka i moduł proxy do właściwego wczytywania i współdzielenia modułów PKCS#11
@@ -22,7 +23,7 @@ BuildRequires: pkgconfig >= 1:0.29
BuildRequires: pkgconfig(libffi) >= 3.0.0
BuildRequires: rpm-build >= 4.6
BuildRequires: rpmbuild(macros) >= 2.011
-BuildRequires: systemd-devel >= 1:209
+%{?with_systemd:BuildRequires: systemd-devel >= 1:209}
BuildRequires: tar >= 1:1.22
BuildRequires: xz
Requires(post,preun): systemd-units >= 1:250.1
@@ -88,8 +89,9 @@ Bashowe uzupełnianie parametrów poleceń p11-kit (p11-kit i trust).
%build
%configure \
bashcompdir=%{bash_compdir} \
- %{!?with_apidocs:--disable-gtk-doc} \
+ %{!?with_apidocs:--disable-doc} \
--disable-silent-rules \
+ %{!?with_systemd:--without-systemd} \
--with-html-dir=%{_gtkdocdir} \
--with-trust-paths=/etc/certs/ca-certificates.crt
%{__make}
@@ -140,8 +142,10 @@ rm -rf $RPM_BUILD_ROOT
%dir %{_datadir}/p11-kit
%dir %{_datadir}/p11-kit/modules
%{_datadir}/p11-kit/modules/p11-kit-trust.module
+%if %{with systemd}
%{systemduserunitdir}/p11-kit-server.service
%{systemduserunitdir}/p11-kit-server.socket
+%endif
%files devel
%defattr(644,root,root,755)
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/p11-kit.git/commitdiff/8ab1fc1c80e7ae7904f091df707619438882bce5
More information about the pld-cvs-commit
mailing list