[packages/rdma-core] - allow building on systems w/o systemd

hawk hawk at pld-linux.org
Tue Apr 5 23:45:01 CEST 2022


commit 33c4ab72f7555f7a13794728de37c768fdfee077
Author: Marcin Krol <hawk at tld-linux.org>
Date:   Tue Apr 5 21:44:35 2022 +0000

    - allow building on systems w/o systemd

 rdma-core.spec | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/rdma-core.spec b/rdma-core.spec
index 25575c3..711f96b 100644
--- a/rdma-core.spec
+++ b/rdma-core.spec
@@ -2,6 +2,7 @@
 #
 # Conditional build:
 %bcond_without	static_libs	# static libraries
+%bcond_without	systemd		# systemd
 
 Summary:	RDMA Core Userspace Libraries and Daemons
 Summary(pl.UTF-8):	RDMA Core - biblioteki i demony przestrzeni użytkownika
@@ -40,7 +41,7 @@ BuildRequires:	python3-devel >= 1:3.2
 %endif
 BuildRequires:	rpmbuild(macros) >= 1.605
 BuildRequires:	udev-devel
-BuildRequires:	systemd-devel
+%{?with_systemd:BuildRequires:	systemd-devel}
 Requires:	ibacm = %{version}-%{release}
 Requires:	iwpmd = %{version}-%{release}
 Requires:	rdma-boot = %{version}-%{release}
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/rdma-core.git/commitdiff/33c4ab72f7555f7a13794728de37c768fdfee077



More information about the pld-cvs-commit mailing list