1 | %define iwl1000_v3 128.50.3.1 |
---|
2 | %define iwl1000_v5 39.31.5.1 |
---|
3 | %define iwl1000_list %{iwl1000_v3} %{iwl1000_v5} |
---|
4 | |
---|
5 | Name: iwlwifi-1000-ucode |
---|
6 | Epoch: 1 |
---|
7 | Version: %{iwl1000_v5} |
---|
8 | Release: 1%{?_dist_release} |
---|
9 | Summary: Firmware for Intel® PRO/Wireless 1000 B/G/N network adaptors |
---|
10 | Summary(ja): Intel® PRO/Wireless 1000 B/G/N ネットワークアダプタ用ファームウェア |
---|
11 | |
---|
12 | Group: System Environment/Kernel |
---|
13 | License: Redistributable, no modification permitted |
---|
14 | URL: http://intellinuxwireless.org/ |
---|
15 | |
---|
16 | Source0: http://intellinuxwireless.org/iwlwifi/downloads/iwlwifi-1000-ucode-%{iwl1000_v5}.tgz |
---|
17 | Source1: http://intellinuxwireless.org/iwlwifi/downloads/iwlwifi-1000-ucode-%{iwl1000_v3}.tgz |
---|
18 | |
---|
19 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root |
---|
20 | BuildArch: noarch |
---|
21 | Requires: udev |
---|
22 | |
---|
23 | Vendor: Project Vine |
---|
24 | Distribution: Vine Linux |
---|
25 | Packager: daisuke |
---|
26 | |
---|
27 | %description |
---|
28 | This package contains the firmware required by the iwlagn driver |
---|
29 | for Linux to support the iwl1000 hardware. Usage of the firmware |
---|
30 | is subject to the terms and conditions contained inside the provided |
---|
31 | LICENSE file. Please read it carefully. |
---|
32 | |
---|
33 | %prep |
---|
34 | %setup -c -q |
---|
35 | %setup -c -q -D -T -a 1 |
---|
36 | |
---|
37 | pushd iwlwifi-1000-ucode-%{version} |
---|
38 | # Change encoding |
---|
39 | sed -i 's/\r//' LICENSE.iwlwifi-1000-ucode README.iwlwifi-1000-ucode |
---|
40 | # Rename docs |
---|
41 | mv LICENSE.iwlwifi-1000-ucode ../LICENSE |
---|
42 | mv README.iwlwifi-1000-ucode ../README |
---|
43 | # Preserve timestamp |
---|
44 | touch -r *.ucode ../LICENSE ../README |
---|
45 | popd |
---|
46 | |
---|
47 | |
---|
48 | %build |
---|
49 | # Nothing to build |
---|
50 | |
---|
51 | |
---|
52 | %install |
---|
53 | rm -rf $RPM_BUILD_ROOT |
---|
54 | mkdir -p $RPM_BUILD_ROOT/lib/firmware |
---|
55 | for f in %{iwl1000_list} ; do |
---|
56 | pushd iwlwifi-1000-ucode-$f |
---|
57 | install -pm 0644 *.ucode $RPM_BUILD_ROOT/lib/firmware/ |
---|
58 | popd |
---|
59 | done |
---|
60 | |
---|
61 | |
---|
62 | %clean |
---|
63 | rm -rf $RPM_BUILD_ROOT |
---|
64 | |
---|
65 | |
---|
66 | %files |
---|
67 | %defattr(-,root,root,-) |
---|
68 | %doc LICENSE README |
---|
69 | /lib/firmware/*.ucode |
---|
70 | |
---|
71 | |
---|
72 | %changelog |
---|
73 | * Thu Apr 21 2011 Daisuke SUZUKI <daisuke@linux.or.jp> 1:39:31.5.1-1 |
---|
74 | - update to upstream version 39.31.5.1 |
---|
75 | - add logic to preserve version 128.50.3.1 for older kernels |
---|
76 | - add Epoch: to account for Intel's bizarre release numbering |
---|
77 | |
---|
78 | * Mon Oct 25 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 128.50.3.1-1 |
---|
79 | - initial build for Vine Linux |
---|
80 | |
---|
81 | * Tue Nov 10 2009 John W. Linville <linville@tuxdriver.com> - 128.50.3.1-2 |
---|
82 | - Add Requires for udev |
---|
83 | |
---|
84 | * Wed Sep 16 2009 John W. Linville <linville@tuxdriver.com> - 128.50.3.1-1 |
---|
85 | - Initial import |
---|