2021-06-24 14:17:18 +02:00
|
|
|
#
|
|
|
|
# spec file for package wireplumber
|
|
|
|
#
|
2022-01-11 00:01:38 +01:00
|
|
|
# Copyright (c) 2022 SUSE LLC
|
2021-06-24 14:17:18 +02:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
2022-07-07 12:56:34 +02:00
|
|
|
%define pipewire_minimum_version 0.3.52
|
2021-06-24 14:17:18 +02:00
|
|
|
%define apiver 0.4
|
|
|
|
%define apiver_str 0_4
|
|
|
|
%define sover 0
|
|
|
|
%define libwireplumber libwireplumber-%{apiver_str}-%{sover}
|
|
|
|
Name: wireplumber
|
2022-07-07 12:56:34 +02:00
|
|
|
Version: 0.4.11
|
2021-06-24 14:17:18 +02:00
|
|
|
Release: 0
|
|
|
|
Summary: Session / policy manager implementation for PipeWire
|
|
|
|
License: MIT
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
URL: https://gitlab.freedesktop.org/pipewire/wireplumber
|
2021-10-19 10:38:02 +02:00
|
|
|
Source0: wireplumber-%{version}.tar.xz
|
2021-12-09 09:47:20 +01:00
|
|
|
Source1: split-config-file.py
|
Accepting request 976983 from multimedia:libs
- Update to version 0.4.10:
* Changes
- Add i18n support to be able to translate some user-visible
strings.
- wpctl now supports using
@DEFAULT_{AUDIO_,VIDEO_,}{SINK,SOURCE}@ as ID, almost like
pactl. Additionally, it supports a --pid flag for changing
volume and mute state by specifying a process ID, applying
the state to all nodes of a specific client process.
- The Lua engine now supports loading Lua libraries. These can
be placed either in the standard Lua libraries path or in
the "lib" subdirectory of WirePlumber's "scripts" directory
and can be loaded with ``require()``
- The Lua engine's sandbox has been relaxed to allow more
functionality in scripts (the debug & coroutine libraries
and some other previously disabled functions)
- Lua scripts are now wrapped in special WpPlugin objects,
allowing them to load asynchronously and declare when they
have finished their loading
- Add a new script that provides the same functionality as
module-fallback-sink from PipeWire, but also takes endpoints
into account and can be customised more easily. Disabled by
default for now to avoid conflicts.
* Policy
- Add an optional experimental feature that allows filter-like
streams (like echo-cancel or filter-node) to match the
channel layout of the device they connect to, on both sides
of the filter; that means that if, for instance, a sink has
6 channels and the echo-cancel's source stream is linked to
that sink, then the virtual sink presented by echo-cancel
OBS-URL: https://build.opensuse.org/request/show/976983
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/wireplumber?expand=0&rev=12
2022-05-14 22:54:35 +02:00
|
|
|
# PATCH-FIX-OPENSUSE reduce-meson-required-version.patch
|
|
|
|
Patch0: reduce-meson-required-version.patch
|
2021-12-18 20:29:35 +01:00
|
|
|
# docs
|
2021-12-12 21:27:27 +01:00
|
|
|
BuildRequires: doxygen
|
|
|
|
BuildRequires: graphviz
|
2021-12-18 20:29:35 +01:00
|
|
|
# /docs
|
|
|
|
BuildRequires: cmake
|
|
|
|
BuildRequires: fdupes
|
2022-07-07 12:56:34 +02:00
|
|
|
%if 0%{?sle_version} == 150300
|
2021-11-03 14:04:02 +01:00
|
|
|
BuildRequires: meson >= 0.54.0
|
2022-07-07 12:56:34 +02:00
|
|
|
%else
|
|
|
|
BuildRequires: meson >= 0.59.0
|
|
|
|
%endif
|
2021-12-18 20:29:35 +01:00
|
|
|
BuildRequires: pipewire >= %{pipewire_minimum_version}
|
|
|
|
BuildRequires: pipewire-spa-plugins-0_2 >= %{pipewire_minimum_version}
|
2021-06-24 14:17:18 +02:00
|
|
|
BuildRequires: pkgconfig
|
2021-12-18 20:29:35 +01:00
|
|
|
BuildRequires: python3-base
|
|
|
|
BuildRequires: python3-lxml
|
2021-06-24 14:17:18 +02:00
|
|
|
BuildRequires: xmltoman
|
|
|
|
BuildRequires: pkgconfig(dbus-1)
|
|
|
|
BuildRequires: pkgconfig(gio-unix-2.0)
|
2021-07-13 08:33:19 +02:00
|
|
|
BuildRequires: pkgconfig(glib-2.0) >= 2.62.0
|
2021-06-24 14:17:18 +02:00
|
|
|
BuildRequires: pkgconfig(gmodule-2.0)
|
2021-07-13 08:33:19 +02:00
|
|
|
BuildRequires: pkgconfig(gobject-2.0) >= 2.62
|
2021-06-24 14:17:18 +02:00
|
|
|
BuildRequires: pkgconfig(gobject-introspection-1.0)
|
2022-01-11 00:01:38 +01:00
|
|
|
BuildRequires: pkgconfig(libpipewire-0.3) >= %{pipewire_minimum_version}
|
2021-06-24 14:17:18 +02:00
|
|
|
BuildRequires: pkgconfig(libsystemd)
|
2022-02-03 23:16:29 +01:00
|
|
|
BuildRequires: pkgconfig(lua)
|
2021-06-24 14:17:18 +02:00
|
|
|
BuildRequires: pkgconfig(systemd)
|
2022-03-12 17:14:32 +01:00
|
|
|
#!BuildIgnore: pipewire-session-manager
|
|
|
|
# Setup ALSA devices if pipewire handles pulseaudio connections.
|
|
|
|
Requires: (%{name}-audio if pipewire-pulseaudio)
|
2021-12-18 20:29:35 +01:00
|
|
|
Requires: pipewire >= %{pipewire_minimum_version}
|
2022-03-12 17:14:32 +01:00
|
|
|
Provides: pipewire-session-manager
|
2021-06-24 14:17:18 +02:00
|
|
|
%if 0%{?suse_version} <= 1500
|
|
|
|
BuildRequires: gcc9
|
|
|
|
BuildRequires: gcc9-c++
|
|
|
|
%else
|
|
|
|
BuildRequires: gcc-c++
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%description
|
|
|
|
WirePlumber is a modular session / policy manager for PipeWire and
|
|
|
|
a GObject-based high-level library that wraps PipeWire's API,
|
|
|
|
providing convenience for writing the daemon's modules as well as
|
|
|
|
external tools for managing PipeWire.
|
|
|
|
|
Accepting request 976983 from multimedia:libs
- Update to version 0.4.10:
* Changes
- Add i18n support to be able to translate some user-visible
strings.
- wpctl now supports using
@DEFAULT_{AUDIO_,VIDEO_,}{SINK,SOURCE}@ as ID, almost like
pactl. Additionally, it supports a --pid flag for changing
volume and mute state by specifying a process ID, applying
the state to all nodes of a specific client process.
- The Lua engine now supports loading Lua libraries. These can
be placed either in the standard Lua libraries path or in
the "lib" subdirectory of WirePlumber's "scripts" directory
and can be loaded with ``require()``
- The Lua engine's sandbox has been relaxed to allow more
functionality in scripts (the debug & coroutine libraries
and some other previously disabled functions)
- Lua scripts are now wrapped in special WpPlugin objects,
allowing them to load asynchronously and declare when they
have finished their loading
- Add a new script that provides the same functionality as
module-fallback-sink from PipeWire, but also takes endpoints
into account and can be customised more easily. Disabled by
default for now to avoid conflicts.
* Policy
- Add an optional experimental feature that allows filter-like
streams (like echo-cancel or filter-node) to match the
channel layout of the device they connect to, on both sides
of the filter; that means that if, for instance, a sink has
6 channels and the echo-cancel's source stream is linked to
that sink, then the virtual sink presented by echo-cancel
OBS-URL: https://build.opensuse.org/request/show/976983
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/wireplumber?expand=0&rev=12
2022-05-14 22:54:35 +02:00
|
|
|
%lang_package
|
|
|
|
|
2021-12-09 09:47:20 +01:00
|
|
|
%package audio
|
|
|
|
Summary: Session / policy manager implementation for PipeWire (audio support)
|
|
|
|
Group: Development/Libraries/C and C++
|
2021-12-12 21:27:27 +01:00
|
|
|
Requires: %{libwireplumber} = %{version}
|
2021-12-18 20:29:35 +01:00
|
|
|
Requires: %{name} = %{version}
|
2021-12-12 21:27:27 +01:00
|
|
|
Recommends: pipewire-pulseaudio
|
2022-03-12 17:14:32 +01:00
|
|
|
Conflicts: pulseaudio
|
2022-03-28 17:00:07 +02:00
|
|
|
BuildArch: noarch
|
2021-12-09 09:47:20 +01:00
|
|
|
|
|
|
|
%description audio
|
|
|
|
WirePlumber is a modular session / policy manager for PipeWire and
|
|
|
|
a GObject-based high-level library that wraps PipeWire's API,
|
|
|
|
providing convenience for writing the daemon's modules as well as
|
|
|
|
external tools for managing PipeWire.
|
|
|
|
|
|
|
|
This package enables the use of alsa devices in PipeWire.
|
|
|
|
|
2021-06-24 14:17:18 +02:00
|
|
|
%package devel
|
|
|
|
Summary: Session / policy manager implementation for PipeWire
|
|
|
|
Group: Development/Libraries/C and C++
|
2021-12-12 21:27:27 +01:00
|
|
|
Requires: %{libwireplumber} = %{version}
|
2021-12-18 20:29:35 +01:00
|
|
|
Requires: %{name} = %{version}
|
2021-06-24 14:17:18 +02:00
|
|
|
|
|
|
|
%description devel
|
|
|
|
WirePlumber is a modular session / policy manager for PipeWire and
|
|
|
|
a GObject-based high-level library that wraps PipeWire's API,
|
|
|
|
providing convenience for writing the daemon's modules as well as
|
|
|
|
external tools for managing PipeWire.
|
|
|
|
|
|
|
|
This package provides all the necessary files for development with WirePlumber
|
|
|
|
|
|
|
|
%package -n %{libwireplumber}
|
|
|
|
Summary: Session / policy manager implementation for PipeWire
|
|
|
|
Group: System/Libraries
|
|
|
|
|
|
|
|
%description -n %{libwireplumber}
|
|
|
|
WirePlumber is a modular session / policy manager for PipeWire and
|
|
|
|
a GObject-based high-level library that wraps PipeWire's API,
|
|
|
|
providing convenience for writing the daemon's modules as well as
|
|
|
|
external tools for managing PipeWire.
|
|
|
|
|
|
|
|
This package provides the wireplumber shared library.
|
|
|
|
|
|
|
|
%package -n typelib-1_0-Wp-%{apiver_str}
|
|
|
|
Summary: Introspection bindings for libwireplumber
|
|
|
|
Group: System/Libraries
|
|
|
|
|
|
|
|
%description -n typelib-1_0-Wp-%{apiver_str}
|
|
|
|
WirePlumber is a modular session / policy manager for PipeWire and
|
|
|
|
a GObject-based high-level library that wraps PipeWire's API,
|
|
|
|
providing convenience for writing the daemon's modules as well as
|
|
|
|
external tools for managing PipeWire.
|
|
|
|
|
|
|
|
This package provides the GObject Introspection bindings for
|
|
|
|
the wireplumber shared library.
|
|
|
|
|
|
|
|
%prep
|
Accepting request 976983 from multimedia:libs
- Update to version 0.4.10:
* Changes
- Add i18n support to be able to translate some user-visible
strings.
- wpctl now supports using
@DEFAULT_{AUDIO_,VIDEO_,}{SINK,SOURCE}@ as ID, almost like
pactl. Additionally, it supports a --pid flag for changing
volume and mute state by specifying a process ID, applying
the state to all nodes of a specific client process.
- The Lua engine now supports loading Lua libraries. These can
be placed either in the standard Lua libraries path or in
the "lib" subdirectory of WirePlumber's "scripts" directory
and can be loaded with ``require()``
- The Lua engine's sandbox has been relaxed to allow more
functionality in scripts (the debug & coroutine libraries
and some other previously disabled functions)
- Lua scripts are now wrapped in special WpPlugin objects,
allowing them to load asynchronously and declare when they
have finished their loading
- Add a new script that provides the same functionality as
module-fallback-sink from PipeWire, but also takes endpoints
into account and can be customised more easily. Disabled by
default for now to avoid conflicts.
* Policy
- Add an optional experimental feature that allows filter-like
streams (like echo-cancel or filter-node) to match the
channel layout of the device they connect to, on both sides
of the filter; that means that if, for instance, a sink has
6 channels and the echo-cancel's source stream is linked to
that sink, then the virtual sink presented by echo-cancel
OBS-URL: https://build.opensuse.org/request/show/976983
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/wireplumber?expand=0&rev=12
2022-05-14 22:54:35 +02:00
|
|
|
%autosetup -N
|
|
|
|
%if 0%{?sle_version} == 150300
|
|
|
|
%patch0 -p1
|
|
|
|
%endif
|
2021-06-24 14:17:18 +02:00
|
|
|
|
2021-12-09 09:47:20 +01:00
|
|
|
pushd src/config/main.lua.d
|
2021-12-18 20:29:35 +01:00
|
|
|
python3 %{SOURCE1}
|
2021-12-09 09:47:20 +01:00
|
|
|
rm 90-enable-all.lua
|
|
|
|
popd
|
|
|
|
|
2021-06-24 14:17:18 +02:00
|
|
|
%build
|
|
|
|
%if %{pkg_vcmp gcc < 8}
|
|
|
|
export CC=gcc-9
|
|
|
|
%endif
|
2021-10-19 10:38:02 +02:00
|
|
|
%meson -Ddoc=disabled \
|
|
|
|
-Dsystem-lua=true \
|
|
|
|
-Delogind=disabled
|
2021-06-24 14:17:18 +02:00
|
|
|
%meson_build
|
|
|
|
|
|
|
|
%install
|
|
|
|
%meson_install
|
|
|
|
%fdupes -s %{buildroot}/%{_datadir}/doc/pipewire/html
|
Accepting request 976983 from multimedia:libs
- Update to version 0.4.10:
* Changes
- Add i18n support to be able to translate some user-visible
strings.
- wpctl now supports using
@DEFAULT_{AUDIO_,VIDEO_,}{SINK,SOURCE}@ as ID, almost like
pactl. Additionally, it supports a --pid flag for changing
volume and mute state by specifying a process ID, applying
the state to all nodes of a specific client process.
- The Lua engine now supports loading Lua libraries. These can
be placed either in the standard Lua libraries path or in
the "lib" subdirectory of WirePlumber's "scripts" directory
and can be loaded with ``require()``
- The Lua engine's sandbox has been relaxed to allow more
functionality in scripts (the debug & coroutine libraries
and some other previously disabled functions)
- Lua scripts are now wrapped in special WpPlugin objects,
allowing them to load asynchronously and declare when they
have finished their loading
- Add a new script that provides the same functionality as
module-fallback-sink from PipeWire, but also takes endpoints
into account and can be customised more easily. Disabled by
default for now to avoid conflicts.
* Policy
- Add an optional experimental feature that allows filter-like
streams (like echo-cancel or filter-node) to match the
channel layout of the device they connect to, on both sides
of the filter; that means that if, for instance, a sink has
6 channels and the echo-cancel's source stream is linked to
that sink, then the virtual sink presented by echo-cancel
OBS-URL: https://build.opensuse.org/request/show/976983
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/wireplumber?expand=0&rev=12
2022-05-14 22:54:35 +02:00
|
|
|
%find_lang %{name} %{?no_lang_C}
|
2021-06-24 14:17:18 +02:00
|
|
|
|
2021-12-09 11:41:41 +01:00
|
|
|
%ifnarch %ix86 ppc64
|
2021-06-24 14:17:18 +02:00
|
|
|
%check
|
|
|
|
export XDG_RUNTIME_DIR=/tmp
|
|
|
|
%meson_test
|
|
|
|
%endif
|
|
|
|
|
2021-11-03 14:04:02 +01:00
|
|
|
%pre
|
|
|
|
%systemd_user_pre wireplumber.service
|
|
|
|
|
|
|
|
%post
|
|
|
|
%systemd_user_post wireplumber.service
|
|
|
|
|
|
|
|
%preun
|
|
|
|
%systemd_user_preun wireplumber.service
|
|
|
|
|
|
|
|
%postun
|
|
|
|
%systemd_user_postun wireplumber.service
|
|
|
|
|
2021-06-24 14:17:18 +02:00
|
|
|
%post -n %{libwireplumber} -p /sbin/ldconfig
|
|
|
|
%postun -n %{libwireplumber} -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%files
|
|
|
|
%{_bindir}/wireplumber
|
|
|
|
%{_bindir}/wpctl
|
|
|
|
%{_bindir}/wpexec
|
|
|
|
%dir %{_libdir}/wireplumber-%{apiver}
|
|
|
|
%{_libdir}/wireplumber-%{apiver}/libwireplumber-module-default-nodes-api.so
|
|
|
|
%{_libdir}/wireplumber-%{apiver}/libwireplumber-module-default-nodes.so
|
|
|
|
%{_libdir}/wireplumber-%{apiver}/libwireplumber-module-default-profile.so
|
2021-10-19 10:38:02 +02:00
|
|
|
%{_libdir}/wireplumber-%{apiver}/libwireplumber-module-file-monitor-api.so
|
|
|
|
%{_libdir}/wireplumber-%{apiver}/libwireplumber-module-logind.so
|
2021-06-24 14:17:18 +02:00
|
|
|
%{_libdir}/wireplumber-%{apiver}/libwireplumber-module-lua-scripting.so
|
|
|
|
%{_libdir}/wireplumber-%{apiver}/libwireplumber-module-metadata.so
|
|
|
|
%{_libdir}/wireplumber-%{apiver}/libwireplumber-module-mixer-api.so
|
|
|
|
%{_libdir}/wireplumber-%{apiver}/libwireplumber-module-portal-permissionstore.so
|
|
|
|
%{_libdir}/wireplumber-%{apiver}/libwireplumber-module-reserve-device.so
|
|
|
|
%{_libdir}/wireplumber-%{apiver}/libwireplumber-module-si-audio-adapter.so
|
|
|
|
%{_libdir}/wireplumber-%{apiver}/libwireplumber-module-si-audio-endpoint.so
|
|
|
|
%{_libdir}/wireplumber-%{apiver}/libwireplumber-module-si-node.so
|
|
|
|
%{_libdir}/wireplumber-%{apiver}/libwireplumber-module-si-standard-link.so
|
|
|
|
%{_userunitdir}/wireplumber.service
|
|
|
|
%{_userunitdir}/wireplumber@.service
|
|
|
|
%{_datadir}/wireplumber
|
2021-12-09 09:47:20 +01:00
|
|
|
%exclude %{_datadir}/wireplumber/main.lua.d/90-2-1-enable-alsa.lua
|
|
|
|
|
Accepting request 976983 from multimedia:libs
- Update to version 0.4.10:
* Changes
- Add i18n support to be able to translate some user-visible
strings.
- wpctl now supports using
@DEFAULT_{AUDIO_,VIDEO_,}{SINK,SOURCE}@ as ID, almost like
pactl. Additionally, it supports a --pid flag for changing
volume and mute state by specifying a process ID, applying
the state to all nodes of a specific client process.
- The Lua engine now supports loading Lua libraries. These can
be placed either in the standard Lua libraries path or in
the "lib" subdirectory of WirePlumber's "scripts" directory
and can be loaded with ``require()``
- The Lua engine's sandbox has been relaxed to allow more
functionality in scripts (the debug & coroutine libraries
and some other previously disabled functions)
- Lua scripts are now wrapped in special WpPlugin objects,
allowing them to load asynchronously and declare when they
have finished their loading
- Add a new script that provides the same functionality as
module-fallback-sink from PipeWire, but also takes endpoints
into account and can be customised more easily. Disabled by
default for now to avoid conflicts.
* Policy
- Add an optional experimental feature that allows filter-like
streams (like echo-cancel or filter-node) to match the
channel layout of the device they connect to, on both sides
of the filter; that means that if, for instance, a sink has
6 channels and the echo-cancel's source stream is linked to
that sink, then the virtual sink presented by echo-cancel
OBS-URL: https://build.opensuse.org/request/show/976983
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/wireplumber?expand=0&rev=12
2022-05-14 22:54:35 +02:00
|
|
|
%files lang -f %{name}.lang
|
|
|
|
|
2021-12-09 09:47:20 +01:00
|
|
|
%files audio
|
|
|
|
%{_datadir}/wireplumber/main.lua.d/90-2-1-enable-alsa.lua
|
2021-06-24 14:17:18 +02:00
|
|
|
|
|
|
|
%files devel
|
|
|
|
%{_includedir}/wireplumber-%{apiver}
|
|
|
|
%{_libdir}/libwireplumber-%{apiver}.so
|
|
|
|
%{_libdir}/pkgconfig/wireplumber-%{apiver}.pc
|
|
|
|
%{_datadir}/gir-1.0/Wp-%{apiver}.gir
|
|
|
|
|
|
|
|
%files -n typelib-1_0-Wp-%{apiver_str}
|
|
|
|
%{_libdir}/girepository-1.0/Wp-%{apiver}.typelib
|
|
|
|
|
|
|
|
%files -n %{libwireplumber}
|
|
|
|
%{_libdir}/libwireplumber-%{apiver}.so.%{sover}
|
|
|
|
%{_libdir}/libwireplumber-%{apiver}.so.%{sover}.*
|
|
|
|
|
|
|
|
%changelog
|