1 Summary: Firmware files used by the Linux kernel
5 License: GPL+ and GPLv2+ and MIT and Redistributable, no modification permitted
7 URL: http://git.kernel.org/cgit/linux/kernel/git/firmware/linux-firmware.git/
8 Source0: ftp://ftp.kernel.org/pub/linux/kernel/people/dwmw2/firmware/%{name}-%{version}.tar.gz
9 # Source0-md5: f2df7fead9142d076338700b70ec277b
11 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
14 Kernel-firmware includes firmware files required for some devices to
19 mv linux-firmware-*/* .
20 rmdir linux-firmware-*
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
27 %{__rm} -rf ess korg sb16 yamaha
28 # We have _some_ ralink firmware in separate packages already.
29 %{__rm} rt73.bin rt2561.bin rt2561s.bin rt2661.bin
30 # And _some_ conexant firmware.
31 %{__rm} v4l-cx23418-apu.fw v4l-cx23418-cpu.fw v4l-cx23418-dig.fw v4l-cx25840.fw
33 %{__rm} phanfw.bin LICENCE.phanfw
35 # Remove source files we don't need to install
36 %{__rm} usbdux/*dux */*.asm
39 rm -rf $RPM_BUILD_ROOT
40 install -d $RPM_BUILD_ROOT/lib/firmware
41 cp -a . $RPM_BUILD_ROOT/lib/firmware
42 %{__rm} $RPM_BUILD_ROOT/lib/firmware/{WHENCE,LICENCE.*,LICENSE.*}
45 rm -rf $RPM_BUILD_ROOT
48 %defattr(644,root,root,755)
49 %doc WHENCE LICENCE.* LICENSE.*