#%global sof_commit 72a04d57d04c2df6e9dbf4eba0a98f40c252ee0b Name: alsa-sof-firmware Version: 2023.12.1 Release: 1mamba Summary: Firmware and topology files for Sound Open Firmware project Group: System/Kernel and Hardware Vendor: openmamba Distribution: openmamba Packager: Silvan Calarco URL: https://github.com/thesofproject/sof-bin Source: https://github.com/thesofproject/sof-bin/releases/download/v%{version}/sof-bin-%{version}.tar.gz #Source: https://github.com/thesofproject/sof-bin.git/v%{version}/sof-bin-%{version}.tar.bz2 #Source1: https://github.com/thesofproject/sof.git/v%{version}/sof-%{version}.tar.bz2 License: BSD ## AUTOBUILDREQ-BEGIN ## AUTOBUILDREQ-END %description Firmware and topology files for Sound Open Firmware project. %package debug Requires: alsa-sof-firmware = %{?epoch:%epoch:}%{version}-%{release} Summary: Debug files for Sound Open Firmware project %description debug This package contains the debug files for the Sound Open Firmware project. #%package tools #Requires: alsa-sof-firmware = %{?epoch:%epoch:}%{version}-%{release} #Summary: Tools provided with the Sound Open Firmware project # #%description tools #This package contains the tools provided with the Sound Open Firmware project. %prep %setup -q -n sof-bin-%{version} %build %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" install -d -m0755 %{buildroot}/usr/lib/firmware/intel cp -ar sof* %{buildroot}/usr/lib/firmware/intel/ FILEDIR=$(pwd) pushd %{buildroot}/usr/lib/firmware find -P . -name "*.ri" | sed -e '/^.$/d' > $FILEDIR/alsa-sof-firmware.files #find -P . -name "*.tplg" | sed -e '/^.$/d' >> $FILEDIR/alsa-sof-firmware.files 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 #install -d -m0755 %{buildroot}%{_bindir} #cp -a tools/* %{buildroot}%{_bindir}/ %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %pretrans -p path = "/lib/firmware/intel/sof-tplg" st = posix.stat(path) if st and st.type == "link" then os.remove(path) end %files -f alsa-sof-firmware.files %defattr(-,root,root) %dir /usr/lib/firmware/intel/sof-tplg /usr/lib/firmware/intel/sof-tplg/* %dir /usr/lib/firmware/intel/sof-ace-tplg /usr/lib/firmware/intel/sof-ace-tplg/* %doc LICENCE.* #%files tools #%defattr(-,root,root) #%{_bindir}/mtrace-reader.py #%{_bindir}/sof-* %files debug -f alsa-sof-firmware.debug-files %defattr(-,root,root) %changelog * Thu Mar 07 2024 Automatic Build System 2023.12.1-1mamba - automatic version update by autodist * Thu Dec 21 2023 Automatic Build System 2023.12-1mamba - automatic version update by autodist * Thu Nov 23 2023 Automatic Build System 2023.09.2-1mamba - automatic version update by autodist * Sat Nov 11 2023 Silvan Calarco 2023.09.1-2mamba - don't package prebuilt binary tools * Sun Nov 05 2023 Silvan Calarco 2023.09.1-1mamba - update to 2023.09.1 * Sat Aug 12 2023 Automatic Build System 2.2.6-1mamba - automatic version update by autodist * Thu May 18 2023 Automatic Build System 2.2.5-1mamba - automatic version update by autodist * Wed Jan 11 2023 Automatic Build System 2.2.4-1mamba - automatic version update by autodist * Thu Dec 08 2022 Automatic Build System 2.2.3-1mamba - automatic version update by autodist * Mon Sep 26 2022 Automatic Build System 2.2.2-1mamba - automatic version update by autodist * Thu May 05 2022 Automatic Build System 2.1.1-1mamba - automatic version update by autodist * Fri Feb 04 2022 Automatic Build System 2.0-1mamba - automatic version update by autodist * Thu Dec 16 2021 Automatic Build System 1.9.3-1mamba - automatic version update by autodist * Thu Nov 25 2021 Automatic Build System 1.9.2-1mamba - automatic version update by autodist * Sat Oct 16 2021 Automatic Build System 1.9-1mamba - automatic version update by autodist * Wed Sep 22 2021 Silvan Calarco 1.8-3mamba - remove version for installation paths (based on Fedora specfile) * Fri Jun 25 2021 Silvan Calarco 1.8-2mamba - remove x86_64 only prebuilt binaries * Wed Jun 23 2021 Silvan Calarco 1.8-1mamba - update to 1.8 * Thu Feb 04 2021 Automatic Build System 1.6.1-1mamba - automatic version update by autodist * Sat Nov 14 2020 Silvan Calarco 1.6-1mamba - update to 1.6 * Wed Apr 08 2020 Silvan Calarco 1.4.2-1mamba - package created using the webbuild interface