need use copy-firmware.sh, modify the process of build and install

This commit is contained in:
wangxiao65 2024-09-20 08:35:26 +00:00
parent af43e66892
commit 73a12243b0

View File

@ -1,6 +1,6 @@
%define _binaries_in_noarch_packages_terminate_build 0
%global release 1
%global release 2
%global _lib_path /usr/lib/firmware
%global _license_path /usr/share/licenses
@ -72,8 +72,6 @@ This package contains firmware images required by some devices.
%autosetup -p1
%build
rm -f usbdux/*dux */*.asm
rm -rf carl9170fw
%install
mkdir -p %{buildroot}/%{_lib_path}
@ -81,6 +79,12 @@ mkdir -p %{buildroot}/%{_license_path}
cp -r * %{buildroot}/%{_lib_path}
cp -r WHENCE LICENCE.* %{buildroot}/%{_license_path}
rm %{buildroot}/%{_lib_path}/{WHENCE,LICENCE.*,LICENSE.*}
make COPYOPTS="--ignore-duplicates" DESTDIR=%{buildroot} FIRMWAREDIR=%{_lib_path} install
pushd %{buildroot}/%{_lib_path}
rm -f usbdux/*dux */*.asm
rm -rf carl9170fw
popd
%files
%dir %{_lib_path}
@ -90,6 +94,9 @@ rm %{buildroot}/%{_lib_path}/{WHENCE,LICENCE.*,LICENSE.*}
%{_lib_path}/*
%changelog
* Thu Sep 19 2024 wangxiao <wangxiao184@h-partners.com> - 20240811-2
- need use copy-firmware.sh, modify the process of build and install
* Fri Aug 30 2024 wangxiao <wangxiao184@h-partners.com> - 20240811-1
- update to 20240811
- linux-firmware has changed python to python3, so remove this patch