From 1484b416de1d0f24c3f9a01f206d42c70f6fe142 Mon Sep 17 00:00:00 2001 From: zhaoxiaohu Date: Thu, 8 Aug 2024 11:55:23 +0800 Subject: [PATCH] fix %install need use copy-firmware.sh ice Intel(R) E810 Series intel/ice/ddp/ice.pkg -> ice-1.3.26.0.pkg Signed-off-by: zhaoxiaohu Signed-off-by: yuwang --- linux-firmware.spec | 24 +++++++++++++++--------- 1 file changed, 15 insertions(+), 9 deletions(-) diff --git a/linux-firmware.spec b/linux-firmware.spec index 3aafee2..2263537 100644 --- a/linux-firmware.spec +++ b/linux-firmware.spec @@ -1,6 +1,6 @@ %define _binaries_in_noarch_packages_terminate_build 0 -%global release 2 +%global release 3 %global _lib_path /usr/lib/firmware %global _license_path /usr/share/licenses @@ -123,17 +123,20 @@ This package contains firmware images required by some devices. %autosetup -p1 %build -rm -f usbdux/*dux */*.asm -rm -rf carl9170fw -rm -f Makefile README configure -rm -rf check_whence.py copy-firmware.sh %install mkdir -p %{buildroot}/%{_lib_path} mkdir -p %{buildroot}/%{_license_path} -cp -r * %{buildroot}/%{_lib_path} +mkdir -p %{buildroot}/%{_lib_path}/updates cp -r WHENCE LICENCE.* %{buildroot}/%{_license_path} -rm %{buildroot}/%{_lib_path}/{WHENCE,LICENCE.*,LICENSE.*} +make DESTDIR=%{buildroot} FIRMWAREDIR=%{_lib_path} install + +pushd %{buildroot}/%{_lib_path} +rm -f usbdux/*dux */*.asm +rm -rf carl9170fw +rm -f Makefile README configure +rm -f check_whence.py copy-firmware.sh +popd %files %dir %{_lib_path} @@ -176,7 +179,10 @@ rm %{buildroot}/%{_lib_path}/{WHENCE,LICENCE.*,LICENSE.*} %changelog -* Wen Feb 23 2022 zhouwenpei - 20211027-2 +* Wed Aug 7 2024 zhaoxiaohu - 20211027-3 +- fix build install need use copy-firmware.sh ice Intel(R) E810 Series intel/ice/ddp/ice.pkg -> ice-1.3.26.0.pkg + +* Wed Feb 23 2022 zhouwenpei - 20211027-2 - Split Linux-firmware by firmware vendor * Fri Dec 10 2021 zhouwenpei - 20211027-1 @@ -191,7 +197,7 @@ rm %{buildroot}/%{_lib_path}/{WHENCE,LICENCE.*,LICENSE.*} * Tue Dec 15 2020 xinghe - 20200817-3 - remove Obsoletes relationship error -* Mon AUg 31 2020 xinghe - 20200817-2 +* Mon Aug 31 2020 xinghe - 20200817-2 - fix source url * Wed Aug 25 2020 xinghe - 20200817-1 -- Gitee