don't package prebuilt binary tools [release 2023.09.1-2mamba;Sat Nov 11 2023]

This commit is contained in:
Silvan Calarco 2024-01-05 20:20:56 +01:00
parent c3c70732af
commit e0d5f8c2ec

View File

@ -1,14 +1,14 @@
#%global sof_commit 72a04d57d04c2df6e9dbf4eba0a98f40c252ee0b #%global sof_commit 72a04d57d04c2df6e9dbf4eba0a98f40c252ee0b
Name: alsa-sof-firmware Name: alsa-sof-firmware
Version: 2.2.6 Version: 2023.09.1
Release: 1mamba Release: 2mamba
Summary: Firmware and topology files for Sound Open Firmware project Summary: Firmware and topology files for Sound Open Firmware project
Group: System/Kernel and Hardware Group: System/Kernel and Hardware
Vendor: openmamba Vendor: openmamba
Distribution: openmamba Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it> Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://github.com/thesofproject/sof-bin URL: https://github.com/thesofproject/sof-bin
Source: https://github.com/thesofproject/sof-bin/releases/download/v%{version}/sof-bin-v%{version}.tar.gz 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 #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 #Source1: https://github.com/thesofproject/sof.git/v%{version}/sof-%{version}.tar.bz2
License: BSD License: BSD
@ -19,41 +19,29 @@ License: BSD
Firmware and topology files for Sound Open Firmware project. Firmware and topology files for Sound Open Firmware project.
%package debug %package debug
Requires: alsa-sof-firmware Requires: alsa-sof-firmware = %{?epoch:%epoch:}%{version}-%{release}
Summary: Debug files for Sound Open Firmware project Summary: Debug files for Sound Open Firmware project
License: BSD
%description debug %description debug
This package contains the debug files for the Sound Open Firmware project. 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 %prep
%setup -q -n sof-bin-v%{version} %setup -q -n sof-bin-%{version}
mkdir -p firmware/intel/sof
# we have the version in the package name
mv sof-v%{version}/* firmware/intel/sof
# move topology files
mv sof-tplg-v%{version} firmware/intel/sof-tplg
# remove NXP firmware files
rm LICENCE.NXP
rm -rf firmware/intel/sof-tplg/sof-imx8*
%build %build
#%ifarch x86_64 aarch64
#cd firmware/intel/sof/tools
#% cmake -d build
#
#% make
#%endif
%install %install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" [ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
install -d -m0755 %{buildroot}/usr/lib/firmware install -d -m0755 %{buildroot}/usr/lib/firmware/intel
cp -ra firmware/* %{buildroot}/usr/lib/firmware/ cp -ar sof* %{buildroot}/usr/lib/firmware/intel/
FILEDIR=$(pwd) FILEDIR=$(pwd)
pushd %{buildroot}/usr/lib/firmware pushd %{buildroot}/usr/lib/firmware
@ -68,6 +56,9 @@ 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 sed -e 's/^/%%dir /' alsa-sof-firmware.dirs >> alsa-sof-firmware.files
cat alsa-sof-firmware.files cat alsa-sof-firmware.files
#install -d -m0755 %{buildroot}%{_bindir}
#cp -a tools/* %{buildroot}%{_bindir}/
%clean %clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" [ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
@ -82,11 +73,25 @@ end
%defattr(-,root,root) %defattr(-,root,root)
%dir /usr/lib/firmware/intel/sof-tplg %dir /usr/lib/firmware/intel/sof-tplg
/usr/lib/firmware/intel/sof-tplg/* /usr/lib/firmware/intel/sof-tplg/*
%doc LICENCE.Intel %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 %files debug -f alsa-sof-firmware.debug-files
%defattr(-,root,root)
%changelog %changelog
* 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
* Sat Aug 12 2023 Automatic Build System <autodist@mambasoft.it> 2.2.6-1mamba * Sat Aug 12 2023 Automatic Build System <autodist@mambasoft.it> 2.2.6-1mamba
- automatic version update by autodist - automatic version update by autodist