chore: Move executable to libexec from usr/share/

This commit is contained in:
Kyle Gospodnetich 2023-12-17 13:36:54 -08:00
parent 3d5a4fd004
commit 419639944e
2 changed files with 17 additions and 1 deletions

View File

@ -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

View File

@ -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
@ -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