[packages/corosync] - allow building without systemd

hawk hawk at pld-linux.org
Thu Sep 11 18:08:35 CEST 2025


commit d5014e8373e061d338da9c9549cb53625d9a9c6d
Author: Marcin Krol <hawk at tld-linux.org>
Date:   Thu Sep 11 18:08:09 2025 +0200

    - allow building without systemd

 corosync.spec | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/corosync.spec b/corosync.spec
index 74d4c24..12931c4 100644
--- a/corosync.spec
+++ b/corosync.spec
@@ -10,6 +10,7 @@
 %bcond_without	monitoring	# resource monitoring
 %bcond_without	xmlconf		# XML configuration support
 %bcond_without	static_libs	# static libraries
+%bcond_without	systemd		# systemd
 #
 Summary:	Corosync - OSI Certified implementation of a complete cluster engine
 Summary(pl.UTF-8):	Corosync - implementacja silnika klastrowego certyfikowana przez OSI
@@ -40,7 +41,7 @@ BuildRequires:	pkgconfig
 %{?with_vqsim:BuildRequires:	readline-devel}
 BuildRequires:	rpm-build >= 4.6
 BuildRequires:	rpmbuild(macros) >= 1.644
-BuildRequires:	systemd-devel >= 1:209
+%{?with_systemd:BuildRequires:	systemd-devel >= 1:209}
 # only for cpghum test program
 #BuildRequires:	zlib-devel
 %{?with_xmlconf:Requires:	libxslt-progs}
@@ -144,7 +145,7 @@ Dane SNMP MIB dla Corosync.
 	%{?with_nozzle:--enable-nozzle} \
 	--disable-silent-rules \
 	%{?with_snmp:--enable-snmp} \
-	--enable-systemd \
+	%{__enable_disable systemd} \
 	%{?with_vqsim:--enable-vqsim} \
 	%{?with_watchdog:--enable-watchdog} \
 	%{?with_xmlconf:--enable-xmlconf} \
@@ -214,8 +215,10 @@ fi
 %dir %{_sysconfdir}/corosync
 %dir %{_sysconfdir}/corosync/service.d
 %dir %{_sysconfdir}/corosync/uidgid.d
+%if %{with systemd}
 %{systemdunitdir}/corosync.service
 %{systemdunitdir}/corosync-notifyd.service
+%endif
 %verify(not md5 mtime size) %config(noreplace) %{_sysconfdir}/corosync/corosync.conf
 %attr(755,root,root) %{_bindir}/corosync-blackbox
 %attr(755,root,root) %{_sbindir}/corosync
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/corosync.git/commitdiff/d5014e8373e061d338da9c9549cb53625d9a9c6d



More information about the pld-cvs-commit mailing list