]>
Commit | Line | Data |
---|---|---|
4df55c66 AM |
1 | Summary: Firmware files used by the Linux kernel |
2 | Name: linux-firmware | |
97406b15 | 3 | Version: 20110518 |
4df55c66 AM |
4 | Release: 1 |
5 | License: GPL+ and GPLv2+ and MIT and Redistributable, no modification permitted | |
6 | Group: Base/Kernel | |
7 | URL: http://www.kernel.org/ | |
8 | Source0: ftp://ftp.kernel.org/pub/linux/kernel/people/dwmw2/firmware/%{name}-%{version}.tar.bz2 | |
97406b15 | 9 | # Source0-md5: 3b215b5ec9a5e8784dd971c039e9b948 |
4df55c66 AM |
10 | Requires: udev |
11 | Provides: kernel-firmware = %{version} | |
12 | BuildArch: noarch | |
13 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
14 | ||
15 | %description | |
16 | Kernel-firmware includes firmware files required for some devices to | |
17 | operate. | |
18 | ||
19 | %prep | |
20 | %setup -q | |
21 | ||
22 | %build | |
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 | ||
28 | # Remove source files we don't need to install | |
29 | rm -f usbdux/*dux */*.asm | |
30 | ||
31 | %install | |
32 | rm -rf $RPM_BUILD_ROOT | |
33 | install -d $RPM_BUILD_ROOT/lib/firmware | |
94471f9c ER |
34 | cp -a . $RPM_BUILD_ROOT/lib/firmware |
35 | %{__rm} $RPM_BUILD_ROOT/lib/firmware/{WHENCE,LICENCE.*} | |
4df55c66 AM |
36 | |
37 | %clean | |
38 | rm -rf $RPM_BUILD_ROOT | |
39 | ||
4df55c66 AM |
40 | %files |
41 | %defattr(644,root,root,755) | |
42 | %doc WHENCE LICENCE.* LICENSE.* | |
43 | /lib/firmware/* |