2023-11-22 07:10:49 +00:00
|
|
|
Name: steamdeck-dsp
|
|
|
|
Version: {{{ git_dir_version }}}
|
|
|
|
Release: 1%{?dist}
|
|
|
|
Summary: Steamdeck Audio Processing
|
|
|
|
License: GPLv2
|
|
|
|
URL: https://github.com/ublue-os/bazzite
|
|
|
|
Source: https://gitlab.com/evlaV/valve-hardware-audio-processing/-/archive/main/valve-hardware-audio-processing-main.tar.gz
|
|
|
|
|
2024-05-09 14:17:22 +00:00
|
|
|
Patch0: fedora.patch
|
|
|
|
Patch1: bazzite.patch
|
2023-11-29 20:21:05 +00:00
|
|
|
|
2023-11-30 00:17:05 +00:00
|
|
|
Requires: pipewire-module-filter-chain-lv2
|
2023-11-29 20:13:06 +00:00
|
|
|
Requires: ladspa-noise-suppression-for-voice
|
2023-11-30 00:17:05 +00:00
|
|
|
Requires: boost
|
2023-11-29 20:13:06 +00:00
|
|
|
|
2023-11-22 07:10:49 +00:00
|
|
|
BuildRequires: make
|
|
|
|
BuildRequires: faust
|
2023-11-23 06:58:09 +00:00
|
|
|
BuildRequires: faust-tools
|
2023-11-22 07:10:49 +00:00
|
|
|
BuildRequires: boost-devel
|
|
|
|
BuildRequires: lv2-devel
|
2023-11-23 06:58:09 +00:00
|
|
|
BuildRequires: g++
|
2024-06-28 00:31:25 +00:00
|
|
|
BuildRequires: qt5-qtbase-devel
|
2023-11-29 20:13:06 +00:00
|
|
|
BuildRequires: ladspa-devel
|
2023-12-17 20:14:48 +00:00
|
|
|
BuildRequires: xz
|
2023-12-17 20:35:42 +00:00
|
|
|
BuildRequires: systemd-rpm-macros
|
2023-11-22 07:10:49 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
Steamdeck Audio Processing
|
|
|
|
|
|
|
|
# Disable debug packages
|
|
|
|
%define debug_package %{nil}
|
|
|
|
|
|
|
|
%prep
|
2024-01-15 03:59:01 +00:00
|
|
|
%autosetup -n valve-hardware-audio-processing-main -p1
|
2023-11-22 07:10:49 +00:00
|
|
|
|
|
|
|
%build
|
|
|
|
%make_build FAUSTINC="/usr/include/faust" FAUSTLIB="/usr/share/faust"
|
|
|
|
|
|
|
|
%install
|
2023-11-29 21:28:12 +00:00
|
|
|
%make_install DEST_DIR="%{buildroot}" LIB_DIR="%{buildroot}%{_libdir}"
|
2023-11-23 18:22:51 +00:00
|
|
|
mkdir -p %{buildroot}%{_datadir}/licenses/%{name}/
|
2023-11-23 06:58:09 +00:00
|
|
|
cp LICENSE %{buildroot}%{_datadir}/licenses/%{name}/LICENSE
|
2023-12-17 20:14:48 +00:00
|
|
|
xz --check=crc32 %{buildroot}%{_prefix}/lib/firmware/amd/sof/*
|
|
|
|
xz --check=crc32 %{buildroot}%{_prefix}/lib/firmware/amd/sof-tplg/*
|
2023-12-17 21:36:54 +00:00
|
|
|
rm -f %{buildroot}%{_unitdir}/multi-user.target.wants/wireplumber-sysconf.service
|
|
|
|
rm -f %{buildroot}%{_sysconfdir}/wireplumber
|
2024-04-19 06:36:15 +00:00
|
|
|
rm -f %{buildroot}%{_unitdir}/multi-user.target.wants/pipewire-sysconf.service
|
|
|
|
rm -f %{buildroot}%{_sysconfdir}/pipewire
|
|
|
|
mkdir -p %{buildroot}%{_libexecdir}/hwsupport
|
|
|
|
mv %{buildroot}%{_datadir}/wireplumber/hardware-profiles/wireplumber-hwconfig %{buildroot}%{_libexecdir}/hwsupport/wireplumber-hwconfig
|
|
|
|
mv %{buildroot}%{_datadir}/pipewire/hardware-profiles/pipewire-hwconfig %{buildroot}%{_libexecdir}/hwsupport/pipewire-hwconfig
|
2024-04-24 21:03:44 +00:00
|
|
|
rm %{buildroot}%{_datadir}/wireplumber/hardware-profiles/default
|
|
|
|
rm %{buildroot}%{_datadir}/pipewire/hardware-profiles/default
|
2023-11-22 07:10:49 +00:00
|
|
|
|
|
|
|
# This lists all the files that are included in the rpm package and that
|
|
|
|
# are going to be installed into target system where the rpm is installed.
|
|
|
|
%files
|
2023-11-23 06:58:09 +00:00
|
|
|
%license LICENSE
|
|
|
|
%{_prefix}/lib/firmware/amd/*
|
2024-04-19 06:36:15 +00:00
|
|
|
%{_libexecdir}/hwsupport/wireplumber-hwconfig
|
|
|
|
%{_libexecdir}/hwsupport/pipewire-hwconfig
|
2023-11-29 21:28:12 +00:00
|
|
|
%{_libdir}/lv2/valve_*
|
2023-11-23 06:58:09 +00:00
|
|
|
%{_datadir}/alsa/ucm2/conf.d/acp5x/*.conf
|
|
|
|
%{_datadir}/alsa/ucm2/conf.d/sof-nau8821-max/*.conf
|
2023-12-17 20:35:42 +00:00
|
|
|
%{_datadir}/wireplumber/hardware-profiles/*
|
2023-11-23 06:58:09 +00:00
|
|
|
%{_datadir}/wireplumber/main.lua.d/*.lua
|
|
|
|
%{_datadir}/wireplumber/scripts/*.lua
|
2023-12-17 20:35:42 +00:00
|
|
|
%{_unitdir}/wireplumber-sysconf.service
|
2024-04-19 06:36:15 +00:00
|
|
|
%{_datadir}/pipewire/hardware-profiles/*
|
|
|
|
%{_unitdir}/pipewire-sysconf.service
|
2023-12-17 20:35:42 +00:00
|
|
|
|
|
|
|
%post
|
|
|
|
%systemd_post wireplumber-sysconf.service
|
2024-05-05 05:02:50 +00:00
|
|
|
%systemd_post pipewire-sysconf.service
|
2023-12-17 20:35:42 +00:00
|
|
|
|
|
|
|
%preun
|
|
|
|
%systemd_preun wireplumber-sysconf.service
|
2024-05-05 05:02:50 +00:00
|
|
|
%systemd_preun pipewire-sysconf.service
|
2023-12-17 20:35:42 +00:00
|
|
|
|
|
|
|
%postun
|
|
|
|
%systemd_postun_with_restart wireplumber-sysconf.service
|
2024-05-05 05:02:50 +00:00
|
|
|
%systemd_postun_with_restart pipewire-sysconf.service
|
2023-11-22 07:10:49 +00:00
|
|
|
|
|
|
|
# Finally, changes from the latest release of your application are generated from
|
|
|
|
# your project's Git history. It will be empty until you make first annotated Git tag.
|
|
|
|
%changelog
|
|
|
|
{{{ git_dir_changelog }}}
|