bazzite/spec_files/steamdeck-dsp/steamdeck-dsp.spec

77 lines
2.5 KiB
RPMSpec
Raw Normal View History

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
Patch0: fedora.patch
Patch1: bazzite.patch
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
BuildRequires: faust-tools
2023-11-22 07:10:49 +00:00
BuildRequires: boost-devel
BuildRequires: lv2-devel
BuildRequires: g++
2023-11-29 20:13:06 +00:00
BuildRequires: ladspa-devel
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}"
mkdir -p %{buildroot}%{_datadir}/licenses/%{name}/
cp LICENSE %{buildroot}%{_datadir}/licenses/%{name}/LICENSE
xz --check=crc32 %{buildroot}%{_prefix}/lib/firmware/amd/sof/*
xz --check=crc32 %{buildroot}%{_prefix}/lib/firmware/amd/sof-tplg/*
rm -f %{buildroot}%{_unitdir}/multi-user.target.wants/wireplumber-sysconf.service
rm -f %{buildroot}%{_sysconfdir}/wireplumber
mkdir -p %{buildroot}%{_libexecdir}
mv %{buildroot}%{_datadir}/wireplumber/hardware-profiles/wireplumber-hwconfig %{buildroot}%{_libexecdir}/wireplumber-hwconfig
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
%license LICENSE
%{_prefix}/lib/firmware/amd/*
%{_libexecdir}/wireplumber-hwconfig
2023-11-29 21:28:12 +00:00
%{_libdir}/lv2/svg/valve_deck_*
%{_libdir}/lv2/valve_*
%{_datadir}/alsa/ucm2/conf.d/acp5x/*.conf
%{_datadir}/alsa/ucm2/conf.d/sof-nau8821-max/*.conf
%{_datadir}/pipewire/pipewire.conf.d/*.conf
2023-12-17 20:35:42 +00:00
%{_datadir}/wireplumber/hardware-profiles/*
%{_datadir}/wireplumber/main.lua.d/*.lua
%{_datadir}/wireplumber/scripts/*.lua
2023-12-17 20:35:42 +00:00
%{_unitdir}/wireplumber-sysconf.service
%post
%systemd_post wireplumber-sysconf.service
%preun
%systemd_preun wireplumber-sysconf.service
%postun
%systemd_postun_with_restart wireplumber-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 }}}