2024-01-05 20:20:53 +01:00
|
|
|
#%global sof_commit 72a04d57d04c2df6e9dbf4eba0a98f40c252ee0b
|
2024-01-05 20:20:53 +01:00
|
|
|
Name: alsa-sof-firmware
|
2024-11-13 09:58:17 +01:00
|
|
|
Version: 2024.09.1
|
2024-08-13 11:17:22 +02:00
|
|
|
Release: 1mamba
|
2024-01-05 20:20:53 +01:00
|
|
|
Summary: Firmware and topology files for Sound Open Firmware project
|
|
|
|
Group: System/Kernel and Hardware
|
|
|
|
Vendor: openmamba
|
|
|
|
Distribution: openmamba
|
|
|
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
|
|
|
URL: https://github.com/thesofproject/sof-bin
|
2024-01-05 20:20:56 +01:00
|
|
|
Source: https://github.com/thesofproject/sof-bin/releases/download/v%{version}/sof-bin-%{version}.tar.gz
|
2024-01-05 20:20:53 +01:00
|
|
|
License: BSD
|
|
|
|
## AUTOBUILDREQ-BEGIN
|
|
|
|
## AUTOBUILDREQ-END
|
|
|
|
|
|
|
|
%description
|
|
|
|
Firmware and topology files for Sound Open Firmware project.
|
|
|
|
|
2024-01-05 20:20:53 +01:00
|
|
|
%package debug
|
2024-01-05 20:20:56 +01:00
|
|
|
Requires: alsa-sof-firmware = %{?epoch:%epoch:}%{version}-%{release}
|
2024-01-05 20:20:53 +01:00
|
|
|
Summary: Debug files for Sound Open Firmware project
|
2024-01-05 20:20:53 +01:00
|
|
|
|
2024-01-05 20:20:53 +01:00
|
|
|
%description debug
|
|
|
|
This package contains the debug files for the Sound Open Firmware project.
|
|
|
|
|
2024-01-05 20:20:56 +01:00
|
|
|
%prep
|
|
|
|
%setup -q -n sof-bin-%{version}
|
2024-01-05 20:20:53 +01:00
|
|
|
|
|
|
|
%build
|
|
|
|
|
|
|
|
%install
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
|
2024-01-05 20:20:56 +01:00
|
|
|
install -d -m0755 %{buildroot}/usr/lib/firmware/intel
|
|
|
|
cp -ar sof* %{buildroot}/usr/lib/firmware/intel/
|
2024-01-05 20:20:53 +01:00
|
|
|
|
|
|
|
FILEDIR=$(pwd)
|
|
|
|
pushd %{buildroot}/usr/lib/firmware
|
|
|
|
find -P . -name "*.ri" | sed -e '/^.$/d' > $FILEDIR/alsa-sof-firmware.files
|
2024-04-15 13:19:46 +02:00
|
|
|
find -P . -name "*.tplg" | sed -e '/^.$/d' >> $FILEDIR/alsa-sof-firmware.files
|
2024-01-05 20:20:53 +01:00
|
|
|
find -P . -name "*.ldc" | sed -e '/^.$/d' > $FILEDIR/alsa-sof-firmware.debug-files
|
|
|
|
find -P . -type d | sed -e '/^.$/d' > $FILEDIR/alsa-sof-firmware.dirs
|
|
|
|
popd
|
|
|
|
|
|
|
|
sed -i -e 's:^./::' alsa-sof-firmware.{files,debug-files,dirs}
|
|
|
|
sed -i -e 's!^!/usr/lib/firmware/!' alsa-sof-firmware.{files,debug-files,dirs}
|
|
|
|
sed -e 's/^/%%dir /' alsa-sof-firmware.dirs >> alsa-sof-firmware.files
|
|
|
|
cat alsa-sof-firmware.files
|
2024-01-05 20:20:53 +01:00
|
|
|
|
|
|
|
%clean
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
|
2024-01-05 20:20:53 +01:00
|
|
|
%pretrans -p <lua>
|
2024-04-15 13:19:46 +02:00
|
|
|
-- allow replacing link with dir
|
2024-01-05 20:20:53 +01:00
|
|
|
path = "/lib/firmware/intel/sof-tplg"
|
|
|
|
st = posix.stat(path)
|
|
|
|
if st and st.type == "link" then
|
|
|
|
os.remove(path)
|
|
|
|
end
|
2024-04-15 13:19:46 +02:00
|
|
|
-- allow replacing dir with symlink
|
|
|
|
path = "/lib/firmware/intel/sof-ace-tplg"
|
|
|
|
st = posix.stat(path)
|
|
|
|
if st and st.type == "directory" then
|
|
|
|
status = os.rename(path, path .. ".rpmmoved")
|
|
|
|
if not status then
|
|
|
|
suffix = 0
|
|
|
|
while not status do
|
|
|
|
suffix = suffix + 1
|
|
|
|
status = os.rename(path .. ".rpmmoved", path .. ".rpmmoved." .. suffix)
|
|
|
|
end
|
|
|
|
os.rename(path, path .. ".rpmmoved")
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
%posttrans
|
|
|
|
# Cleanup after pretrans script above
|
|
|
|
if [ -e /usr/lib/firmware/intel/sof-ace-tplg.rpmmoved ]; then
|
|
|
|
rm -rf /usr/lib/firmware/intel/sof-ace-tplg.rpmmoved
|
|
|
|
fi
|
|
|
|
:
|
2024-01-05 20:20:53 +01:00
|
|
|
|
2024-01-05 20:20:53 +01:00
|
|
|
%files -f alsa-sof-firmware.files
|
2024-01-05 20:20:53 +01:00
|
|
|
%defattr(-,root,root)
|
2024-10-07 09:29:27 +02:00
|
|
|
%dir %{_prefix}/lib/firmware/intel/sof
|
|
|
|
%{_prefix}/lib/firmware/intel/sof-ace-tplg
|
|
|
|
%dir %{_prefix}/lib/firmware/intel/sof-ipc4
|
|
|
|
%dir %{_prefix}/lib/firmware/intel/sof-ipc4-tplg
|
|
|
|
%dir %{_prefix}/lib/firmware/intel/sof-tplg
|
|
|
|
%dir %{_prefix}/lib/firmware/intel/sof-ipc4-lib
|
|
|
|
%{_prefix}/lib/firmware/intel/sof-ipc4-lib/*
|
2024-01-05 20:20:56 +01:00
|
|
|
%doc LICENCE.*
|
|
|
|
|
|
|
|
#%files tools
|
|
|
|
#%defattr(-,root,root)
|
|
|
|
#%{_bindir}/mtrace-reader.py
|
|
|
|
#%{_bindir}/sof-*
|
|
|
|
|
2024-01-05 20:20:53 +01:00
|
|
|
%files debug -f alsa-sof-firmware.debug-files
|
2024-01-05 20:20:56 +01:00
|
|
|
%defattr(-,root,root)
|
2024-01-05 20:20:53 +01:00
|
|
|
|
|
|
|
%changelog
|
2024-11-13 09:58:17 +01:00
|
|
|
* Tue Nov 12 2024 Automatic Build System <autodist@openmamba.org> 2024.09.1-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-10-07 09:29:27 +02:00
|
|
|
* Fri Oct 04 2024 Automatic Build System <autodist@openmamba.org> 2024.09-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-08-13 11:17:22 +02:00
|
|
|
* Mon Aug 12 2024 Silvan Calarco <silvan.calarco@mambasoft.it> 2024.06-1mamba
|
|
|
|
- update to 2024.06
|
|
|
|
|
2024-04-15 13:19:46 +02:00
|
|
|
* Thu Apr 11 2024 Silvan Calarco <silvan.calarco@mambasoft.it> 2024.03-2mamba
|
|
|
|
- add pretrans lua code to replce a dir with symlink on update
|
|
|
|
|
|
|
|
* Thu Apr 11 2024 Automatic Build System <autodist@openmamba.org> 2024.03-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-03-08 21:03:05 +01:00
|
|
|
* Thu Mar 07 2024 Automatic Build System <autodist@openmamba.org> 2023.12.1-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 20:20:57 +01:00
|
|
|
* Thu Dec 21 2023 Automatic Build System <autodist@mambasoft.it> 2023.12-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 20:20:56 +01:00
|
|
|
* Thu Nov 23 2023 Automatic Build System <autodist@mambasoft.it> 2023.09.2-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 20:20:56 +01:00
|
|
|
* Sat Nov 11 2023 Silvan Calarco <silvan.calarco@mambasoft.it> 2023.09.1-2mamba
|
|
|
|
- don't package prebuilt binary tools
|
|
|
|
|
|
|
|
* Sun Nov 05 2023 Silvan Calarco <silvan.calarco@mambasoft.it> 2023.09.1-1mamba
|
|
|
|
- update to 2023.09.1
|
|
|
|
|
2024-01-05 20:20:55 +01:00
|
|
|
* Sat Aug 12 2023 Automatic Build System <autodist@mambasoft.it> 2.2.6-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 20:20:55 +01:00
|
|
|
* Thu May 18 2023 Automatic Build System <autodist@mambasoft.it> 2.2.5-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 20:20:54 +01:00
|
|
|
* Wed Jan 11 2023 Automatic Build System <autodist@mambasoft.it> 2.2.4-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 20:20:53 +01:00
|
|
|
* Thu Dec 08 2022 Automatic Build System <autodist@mambasoft.it> 2.2.3-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 20:20:53 +01:00
|
|
|
* Mon Sep 26 2022 Automatic Build System <autodist@mambasoft.it> 2.2.2-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 20:20:53 +01:00
|
|
|
* Thu May 05 2022 Automatic Build System <autodist@mambasoft.it> 2.1.1-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 20:20:53 +01:00
|
|
|
* Fri Feb 04 2022 Automatic Build System <autodist@mambasoft.it> 2.0-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 20:20:53 +01:00
|
|
|
* Thu Dec 16 2021 Automatic Build System <autodist@mambasoft.it> 1.9.3-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 20:20:53 +01:00
|
|
|
* Thu Nov 25 2021 Automatic Build System <autodist@mambasoft.it> 1.9.2-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 20:20:53 +01:00
|
|
|
* Sat Oct 16 2021 Automatic Build System <autodist@mambasoft.it> 1.9-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 20:20:53 +01:00
|
|
|
* Wed Sep 22 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 1.8-3mamba
|
|
|
|
- remove version for installation paths (based on Fedora specfile)
|
|
|
|
|
2024-01-05 20:20:53 +01:00
|
|
|
* Fri Jun 25 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 1.8-2mamba
|
|
|
|
- remove x86_64 only prebuilt binaries
|
|
|
|
|
|
|
|
* Wed Jun 23 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 1.8-1mamba
|
|
|
|
- update to 1.8
|
|
|
|
|
2024-01-05 20:20:53 +01:00
|
|
|
* Thu Feb 04 2021 Automatic Build System <autodist@mambasoft.it> 1.6.1-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 20:20:53 +01:00
|
|
|
* Sat Nov 14 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 1.6-1mamba
|
|
|
|
- update to 1.6
|
|
|
|
|
2024-01-05 20:20:53 +01:00
|
|
|
* Wed Apr 08 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 1.4.2-1mamba
|
|
|
|
- package created using the webbuild interface
|