File pipewire-filter-chain.spec of Package pipewire-filter-chain

#
# spec file for package pipewire-filter-chain
#
# Copyright (c) 2024 SUSE LLC
#
# 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/
#

%global service pipewire-filter-chain@.service

Name:           pipewire-filter-chain
Version:        0.0.1
Release:        0
Summary:        Pipewire filterchain service
License:        AGPL-3.0
URL:            https://nordisch.org/
Source0:        pipewire-filter-chain@.service
Source1:        meeting-output.conf
Source2:        meeting-input.conf
BuildArch:      noarch
BuildRequires:  pkgconfig(systemd)
BuildRequires:  pipewire
Requires:       pipewire
Requires:       wireplumber
#  use my package or the one from multimedia:proaudio
Requires:       (lv2-x42-dpl or x42-plugins)
# those are in tumbleweed
Requires:       lv2-lsp-plugins
Requires:       ladspa-rnnoise

%description
A service to start filter chains as an user

systemctl enable --user --now pipewire-filter-chain@meeting-output.service

%prep

%build

%install
install -D -m 0644 -t %{buildroot}%{_userunitdir}/ %{SOURCE0}
install -D -m 0644 -t %{buildroot}%{_datadir}/pipewire/filter-chain/ %{SOURCE1} %{SOURCE2}

%pre
%systemd_user_pre %{service}

%preun
%systemd_user_preun %{service}

%post
%systemd_user_post %{service}

%postun
%systemd_user_postun %{service}

%files
%{_datadir}/pipewire/filter-chain/meeting-output.conf
%{_datadir}/pipewire/filter-chain/meeting-input.conf
%{_userunitdir}/pipewire-filter-chain@.service

%changelog
openSUSE Build Service is sponsored by