Skip to content

Commit

Permalink
chore: Move executable to libexec from usr/share/
Browse files Browse the repository at this point in the history
  • Loading branch information
KyleGospo committed Dec 17, 2023
1 parent 3d5a4fd commit 4196399
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
12 changes: 12 additions & 0 deletions spec_files/steamdeck-dsp/fedora.patch
Original file line number Diff line number Diff line change
Expand Up @@ -83,3 +83,15 @@ index 48412ee..f0c5b82 100644
}
ConflictingDevice [
]
diff -Naur a/wireplumber/systemd/system/wireplumber-sysconf.service b/wireplumber/systemd/system/wireplumber-sysconf.service
--- a/wireplumber/systemd/system/wireplumber-sysconf.service
+++ b/wireplumber/systemd/system/wireplumber-sysconf.service
@@ -17,7 +17,7 @@
[Service]
Type=oneshot
RemainAfterExit=yes
-ExecStart=/usr/share/wireplumber/hardware-profiles/wireplumber-hwconfig
+ExecStart=/usr/libexec/wireplumber-hwconfig

[Install]
WantedBy=multi-user.target
6 changes: 5 additions & 1 deletion spec_files/steamdeck-dsp/steamdeck-dsp.spec
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,17 @@ 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

# 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
%{_libdir}/lv2/svg/valve_deck_*
%{_libdir}/lv2/valve_*
%{_datadir}/alsa/ucm2/conf.d/acp5x/*.conf
Expand All @@ -56,7 +61,6 @@ xz --check=crc32 %{buildroot}%{_prefix}/lib/firmware/amd/sof-tplg/*
%{_datadir}/wireplumber/main.lua.d/*.lua
%{_datadir}/wireplumber/scripts/*.lua
%{_unitdir}/wireplumber-sysconf.service
%{_unitdir}/multi-user.target.wants/wireplumber-sysconf.service

%post
%systemd_post wireplumber-sysconf.service
Expand Down

0 comments on commit 4196399

Please sign in to comment.