1 Summary: Firmware files used by the Linux kernel
5 License: GPL+ and GPLv2+ and MIT and Redistributable, no modification permitted
7 URL: http://www.kernel.org/
8 Source0: ftp://ftp.kernel.org/pub/linux/kernel/people/dwmw2/firmware/%{name}-%{version}.tar.bz2
9 # Source0-md5: d4cfb7d359d8ef6dd50e69225ac6c82b
11 Provides: kernel-firmware = %{version}
13 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
16 Kernel-firmware includes firmware files required for some devices to
23 # Remove firmware shipped in separate packages already
24 # Perhaps these should be built as subpackages of linux-firmware?
25 rm ql2???_fw.bin LICENCE.qla2xxx
26 rm iwlwifi-*.ucode LICENCE.iwlwifi_firmware
28 # Remove source files we don't need to install
29 rm -f usbdux/*dux */*.asm
32 rm -rf $RPM_BUILD_ROOT
33 install -d $RPM_BUILD_ROOT/lib/firmware
34 cp -r * $RPM_BUILD_ROOT/lib/firmware
35 rm $RPM_BUILD_ROOT/lib/firmware/{WHENCE,LICENCE.*}
38 rm -rf $RPM_BUILD_ROOT
42 %defattr(644,root,root,755)
43 %doc WHENCE LICENCE.* LICENSE.*