1 |
# |
2 |
# This rpm is based on the git tree from: |
3 |
# git://git.kernel.org/pub/scm/linux/kernel/git/dwmw2/linux-firmware.git |
4 |
# version is date of the younger commit |
5 |
# |
6 |
|
7 |
Summary: Extra linux kernel firmware files |
8 |
Name: kernel-firmware-extra |
9 |
Version: 20110310 |
10 |
Release: %mkrel 1 |
11 |
License: Proprietary |
12 |
Group: System/Kernel and hardware |
13 |
URL: http://www.kernel.org/ |
14 |
# kernel-firmware tarball is generated from the git tree mentioned |
15 |
# above, by simply cloning it and doing: |
16 |
# tar --exclude-vcs -Jcf kernel-firmware-extra-version.tar.xz linux-firmware |
17 |
Source: kernel-firmware-extra-%{version}.tar.xz |
18 |
BuildRequires: kernel-firmware >= 20110314 |
19 |
Conflicts: kernel-firmware < 20110314 |
20 |
BuildRoot: %{_tmppath}/%{name}-%{version} |
21 |
BuildArch: noarch |
22 |
|
23 |
%description |
24 |
This package contains extra redistributable etc. firmwares for in-kernel |
25 |
drivers. It is shared for all kernels. |
26 |
|
27 |
%prep |
28 |
%setup -q -n linux-firmware |
29 |
|
30 |
# don't include firmware already in kernel-firmware package |
31 |
for fir in `rpm -ql kernel-firmware | grep '^/lib/firmware/' | \ |
32 |
sed 's|^/lib/firmware/||'`; do |
33 |
[ -f "$fir" ] || continue |
34 |
rm -f "$fir" |
35 |
done |
36 |
for dir in `find . -type d | sed -e 's|^\.||' -e 's|^/||'`; do |
37 |
rmdir -p --ignore-fail-on-non-empty $dir |
38 |
done |
39 |
|
40 |
# remove files provided in iwlwifi-*-ucode* packages |
41 |
rm -f LICENCE.iwlwifi_firmware |
42 |
rm -f iwlwifi-{100-5,1000-3,{3945,4965,5150}-2,5000-{1,2,5},6000-4,6000g2{a,b}-5,6050-{4,5}}.ucode |
43 |
|
44 |
# remove files provided in radeon-rlc-firmware |
45 |
rm -f LICENCE.radeon_rlc |
46 |
rm -f radeon/{BTC,CAYMAN,CEDAR,CYPRESS,JUNIPER,R600,R700,REDWOOD,SUMO}_rlc.bin |
47 |
|
48 |
# remove files provided in rt*-firmware packages |
49 |
rm -f LICENSE.ralink-firmware.txt |
50 |
rm -f rt2561{,s}.bin rt2661.bin rt28{6,7}0.bin rt3090.bin rt73.bin |
51 |
|
52 |
# remove unwanted source files |
53 |
rm -f dsp56k/bootstrap.asm keyspan_pda/*.S |
54 |
# FIXME: usbdux*.bin firmware should be in kernel-firmware or another |
55 |
# separate package (not in non-free), usbdux*.bin is GPL licensed |
56 |
rm -rf usbdux |
57 |
|
58 |
%install |
59 |
rm -rf %{buildroot} |
60 |
mkdir -p %{buildroot}/lib/firmware |
61 |
cp -avf * %{buildroot}/lib/firmware |
62 |
rm -f %{buildroot}/lib/firmware/LICENCE.* |
63 |
|
64 |
%clean |
65 |
rm -rf %{buildroot} |
66 |
|
67 |
%files |
68 |
%defattr(0644,root,root,0755) |
69 |
%doc LICENCE.* |
70 |
/lib/firmware/* |
71 |
|
72 |
|