149 lines
4.6 KiB
RPMSpec
149 lines
4.6 KiB
RPMSpec
%define _binaries_in_noarch_packages_terminate_build 0
|
|
|
|
%global release 1
|
|
%global _lib_path /usr/lib/firmware
|
|
%global _license_path /usr/share/licenses
|
|
|
|
Name: linux-firmware
|
|
Version: 20250509
|
|
Release: %{release}
|
|
Summary: Firmware files used by the Linux kernel
|
|
License: GPL+ and GPLv2+ and MIT and Redistributable, no modification permitted
|
|
URL: http://www.kernel.org/
|
|
BuildArch: noarch
|
|
|
|
Source0: https://mirrors.edge.kernel.org/pub/linux/kernel/firmware/%{name}-%{version}.tar.xz
|
|
|
|
Provides: kernel-firmware = %{version} xorg-x11-drv-ati-firmware = 7.0
|
|
Provides: iwl100-firmware = 39.31.5.1-87
|
|
Provides: iwl105-firmware = 18.168.6.1-87
|
|
Provides: iwl135-firmware = 18.168.6.1-87
|
|
Provides: iwl1000-firmware = 1:39.31.5.1-87
|
|
Provides: iwl2000-firmware = 18.168.6.1-87
|
|
Provides: iwl2030-firmware = 18.168.6.1-87
|
|
Provides: iwl3160-firmware = 1:25.30.13.0-87
|
|
Provides: iwl3945-firmware = 15.32.2.9-87
|
|
Provides: iwl4965-firmware = 228.61.2.24-87
|
|
Provides: iwl5000-firmware = 8.83.5.1_1-87
|
|
Provides: iwl5150-firmware = 8.24.2.2-87
|
|
Provides: iwl6000-firmware = 9.221.4.1-87
|
|
Provides: iwl6000g2a-firmware = 18.168.6.1-87
|
|
Provides: iwl6000g2b-firmware = 18.168.6.1-87
|
|
Provides: iwl6050-firmware = 41.28.5.1-87
|
|
Provides: iwl7260-firmware = 1:25.30.13.0-87
|
|
Provides: libertas-usb8388-firmware = 2:%{version}-%{release}
|
|
Provides: libertas-usb8388-olpc-firmware = %{version}-%{release}
|
|
Provides: libertas-sd8686-firmware = %{version}-%{release}
|
|
Provides: libertas-sd8787-firmware = %{version}-%{release}
|
|
|
|
Obsoletes: iwl100-firmware
|
|
Obsoletes: iwl1000-firmware
|
|
Obsoletes: iwl3160-firmware
|
|
Obsoletes: iwl3945-firmware
|
|
Obsoletes: iwl4965-firmware
|
|
Obsoletes: iwl5000-firmware
|
|
Obsoletes: iwl5150-firmware
|
|
Obsoletes: iwl6000-firmware
|
|
Obsoletes: iwl6000g2a-firmware
|
|
Obsoletes: iwl6000g2b-firmware
|
|
Obsoletes: iwl6050-firmware
|
|
Obsoletes: iwl7260-firmware
|
|
Obsoletes: libertas-usb8388-firmware
|
|
Obsoletes: libertas-sd8686-firmware
|
|
Obsoletes: libertas-sd8787-firmware
|
|
|
|
Obsoletes: kernel-firmware < %{version} xorg-x11-drv-ati-firmware < 6.13.0-0.22
|
|
Obsoletes: ueagle-atm4-firmware < 1.0-5
|
|
Obsoletes: netxen-firmware < 4.0.534-9
|
|
Obsoletes: ql2100-firmware < 1.19.38-8
|
|
Obsoletes: ql2200-firmware < 2.02.08-8
|
|
Obsoletes: ql23xx-firmware < 3.03.28-6
|
|
Obsoletes: ql2400-firmware < 5.08.00-2
|
|
Obsoletes: ql2500-firmware < 5.08.00-2
|
|
Obsoletes: rt61pci-firmware < 1.2-11
|
|
Obsoletes: rt73usb-firmware < 1.8-11
|
|
Obsoletes: cx18-firmware < 20080628-10
|
|
Conflicts: microcode_ctl < 2.1-0
|
|
|
|
BuildRequires: git
|
|
BuildRequires: python3
|
|
|
|
%description
|
|
This package contains firmware images required by some devices.
|
|
|
|
%prep
|
|
%autosetup -p1 -S git
|
|
|
|
# collect all the license, and delete those will be put into sub packages
|
|
mkdir -p LICENCES
|
|
cp LICENCE.* LICENSE.* LICENCES/
|
|
pushd LICENCES
|
|
rm -f LICENCE.atheros_firmware
|
|
rm -f LICENCE.iwlwifi_firmware
|
|
rm -f LICENCE.Marvell
|
|
rm -f LICENCE.OLPC
|
|
rm -f LICENCE.mediatek
|
|
rm -f LICENCE.ralink_a_mediatek_company_firmware
|
|
rm -f LICENCE.Marvell
|
|
rm -f LICENCE.Netronome
|
|
rm -f LICENCE.cypress
|
|
rm -f LICENCE.ti-connectivity
|
|
popd
|
|
|
|
%build
|
|
|
|
%install
|
|
mkdir -p %{buildroot}/%{_lib_path}/updates
|
|
make DESTDIR=%{buildroot} FIRMWAREDIR=%{_lib_path} install-zst
|
|
|
|
pushd %{buildroot}/%{_lib_path}
|
|
rm -f usbdux/*dux */*.asm
|
|
rm -rf carl9170fw
|
|
rm -f Makefile README configure
|
|
rm -rf check_whence.py copy-firmware.sh
|
|
rm -rf build_packages.py contrib
|
|
popd
|
|
|
|
%files
|
|
%license WHENCE
|
|
%license LICENCES/*
|
|
%{_lib_path}/*
|
|
|
|
%changelog
|
|
* Sat May 10 2025 Funda Wang <fundawang@yeah.net> - 20250509-1
|
|
- update to 20250509
|
|
|
|
* Tue Mar 18 2025 Funda Wang <fundawang@yeah.net> - 20250311-1
|
|
- update to 20250311
|
|
|
|
* Fri Oct 18 2024 Funda Wang <fundawang@yeah.net> - 20241017-1
|
|
- update to 20241017
|
|
|
|
* 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
|
|
|
|
* Mon Jul 25 2022 Liu Yuntao <liuyuntao10@huawei.com> - 20211027-1
|
|
- update to 20211027
|
|
|
|
* Tue Dec 15 2020 xinghe <xinghe1@huawei.com> - 20200817-2
|
|
- remove Obsoletes relationship error
|
|
|
|
* Wed Aug 26 2020 xinghe <xinghe1@huawei.com> - 20200817-1
|
|
- update to 20200817
|
|
|
|
* Fri Feb 21 2020 wangbin <wangbin224@huawei.com> - 20190815-4
|
|
- change python script shebang to python3
|
|
|
|
* Thu Jan 9 2020 wangbin <wangbin224@huawei.com> - 20190815-3
|
|
- Remove some patches
|
|
|
|
* Thu Dec 19 2019 openEuler Buildteam <buildteam@openeuler.org> - 20190815-2
|
|
- Fix upgrade problem
|
|
|
|
* Mon Sep 2 2019 openEuler Buildteam <buildteam@openeuler.org> - 20190815-1
|
|
- Package init
|