Fix the pretrans script for symlink swap (sof-ace-tplg <-> sof-ipc4-tplg)

Resolves: RHEL-86911

Signed-off-by: Jaroslav Kysela <jkysela@redhat.com>
This commit is contained in:
Jaroslav Kysela 2025-04-11 14:53:22 +02:00
parent cf16b3a474
commit 514bee30f2

View File

@ -18,7 +18,7 @@
Summary: Firmware and topology files for Sound Open Firmware project
Name: alsa-sof-firmware
Version: %{sof_ver}
Release: 2%{?sof_ver_rel}%{?dist}
Release: 3%{?sof_ver_rel}%{?dist}
# See later in the spec for a breakdown of licensing
License: BSD-3-Clause
URL: https://github.com/thesofproject/sof-bin
@ -158,10 +158,15 @@ path1 = "%{_firmwarepath}/intel/sof-ace-tplg"
path2 = "%{_firmwarepath}/intel/sof-ipc4-tplg"
st = posix.stat(path1)
if st and st.type == "directory" then
os.rename(path2, path2 .. ".tmp")
os.rename(path1, path2)
os.rename(path2 .. ".tmp", path1)
end
%changelog
* Mon Apr 14 2025 Jaroslav Kysela <perex@perex.cz> - 2024.09.2-3
- fix the pretrans script for symlink swap (sof-ace-tplg <-> sof-ipc4-tplg)
* Wed Dec 18 2024 Jaroslav Kysela <perex@perex.cz> - 2024.09.2-2
- Add sof-ipc4-lib directory