[packages/pipewire-wireplumber] - handle elogind

qboosh qboosh at pld-linux.org
Sat Feb 8 10:22:55 CET 2025


commit c056d539e36a08325a18f2900db8bc961424a7a1
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sat Feb 8 09:15:17 2025 +0100

    - handle elogind

 pipewire-wireplumber.spec | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/pipewire-wireplumber.spec b/pipewire-wireplumber.spec
index cf5afac..46a202e 100644
--- a/pipewire-wireplumber.spec
+++ b/pipewire-wireplumber.spec
@@ -1,6 +1,7 @@
 #
 # Conditional build:
 %bcond_without	apidocs		# API documentation
+%bcond_with	elogind		# elogind instead of systemd
 %bcond_without	static_libs	# static_library
 
 Summary:	Session / policy manager implementation for PipeWire
@@ -16,6 +17,7 @@ Source0:	https://gitlab.freedesktop.org/pipewire/wireplumber/-/archive/%{version
 URL:		https://pipewire.org/
 # required for both docs and introspection
 BuildRequires:	doxygen >= 1.8.0
+%{?with_elogind:BuildRequires:	elogind-devel}
 BuildRequires:	gettext-tools
 BuildRequires:	glib2-devel >= 1:2.68
 BuildRequires:	gobject-introspection-devel
@@ -30,7 +32,7 @@ BuildRequires:	python3-lxml
 BuildRequires:	python3-modules
 BuildRequires:	rpm-build >= 4.6
 BuildRequires:	rpmbuild(macros) >= 2.042
-BuildRequires:	systemd-devel
+%{!?with_elogind:BuildRequires:	systemd-devel}
 %if %{with apidocs}
 BuildRequires:	python3-Sphinx
 BuildRequires:	python3-breathe
@@ -116,8 +118,10 @@ Dokumentacja API PipeWire WirePlumber.
 %meson \
 	%{!?with_static_libs:--default-library=shared} \
 	-Ddoc=%{__enabled_disabled apidocs} \
+	-Delogind=%{__enabled_disabled elogind} \
 	-Dintrospection=enabled \
-	-Dsystem-lua=true
+	-Dsystem-lua=true \
+	-Dsystemd=%{__enabled_disabled_not elogind}
 
 %meson_build
 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/pipewire-wireplumber.git/commitdiff/c056d539e36a08325a18f2900db8bc961424a7a1



More information about the pld-cvs-commit mailing list