| 1 | %define iwl5000_v1 5.4.A.11 |
|---|
| 2 | %define iwl5000_v2 8.24.2.12 |
|---|
| 3 | %define iwl5000_v5 8.83.5.1 |
|---|
| 4 | %define iwl5000_list %{iwl5000_v1} %{iwl5000_v2} %{iwl5000_v5} |
|---|
| 5 | |
|---|
| 6 | Summary: Microcode for the Intel PRO/Wireless 5000 A/G/N network adaptors |
|---|
| 7 | Summary(ja): Intel PRO/Wireless 5000 A/G/N ドライバ用マイクロコード |
|---|
| 8 | Name: iwlwifi-5000-ucode |
|---|
| 9 | Version: %{iwl5000_v5} |
|---|
| 10 | Release: 1%{?_dist_release} |
|---|
| 11 | License: distributable, no modification permitted |
|---|
| 12 | Group: System Environment/Kernel |
|---|
| 13 | URL: http://intellinuxwireless.org/ |
|---|
| 14 | |
|---|
| 15 | Source0: http://intellinuxwireless.org/iwlwifi/downloads/iwlwifi-5000-ucode-%{iwl5000_v1}.tar.gz |
|---|
| 16 | Source1: http://intellinuxwireless.org/iwlwifi/downloads/iwlwifi-5000-ucode-%{iwl5000_v2}.tgz |
|---|
| 17 | Source2: http://intellinuxwireless.org/iwlwifi/downloads/iwlwifi-5000-ucode-%{iwl5000_v5}-1.tgz |
|---|
| 18 | |
|---|
| 19 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot |
|---|
| 20 | BuildArch: noarch |
|---|
| 21 | |
|---|
| 22 | Vendor: Project Vine |
|---|
| 23 | Distribution: Vine Linux |
|---|
| 24 | Packager: daisuke |
|---|
| 25 | |
|---|
| 26 | %description |
|---|
| 27 | This package contains the firmware required by the iwlwifi/iwlagn |
|---|
| 28 | driver for Linux. |
|---|
| 29 | |
|---|
| 30 | %prep |
|---|
| 31 | %setup -c -q |
|---|
| 32 | %setup -c -q -D -T -a 1 -a 2 |
|---|
| 33 | |
|---|
| 34 | pushd iwlwifi-5000-ucode-%{version} |
|---|
| 35 | # Change encoding |
|---|
| 36 | sed -i 's/\r//' LICENSE.iwlwifi-5000-ucode README.iwlwifi-5000-ucode |
|---|
| 37 | # Rename docs |
|---|
| 38 | mv LICENSE.iwlwifi-5000-ucode ../LICENSE |
|---|
| 39 | mv README.iwlwifi-5000-ucode ../README |
|---|
| 40 | # Preserve timestamp |
|---|
| 41 | touch -r *.ucode ../LICENSE ../README |
|---|
| 42 | popd |
|---|
| 43 | |
|---|
| 44 | %install |
|---|
| 45 | rm -rf %{buildroot} |
|---|
| 46 | mkdir -p %{buildroot}/lib/firmware |
|---|
| 47 | for f in %{iwl5000_list} ; do |
|---|
| 48 | pushd iwlwifi-5000-ucode-$f |
|---|
| 49 | install -pm 0644 *.ucode $RPM_BUILD_ROOT/lib/firmware/ |
|---|
| 50 | popd |
|---|
| 51 | done |
|---|
| 52 | |
|---|
| 53 | |
|---|
| 54 | %clean |
|---|
| 55 | rm -rf %{buildroot} |
|---|
| 56 | |
|---|
| 57 | %files |
|---|
| 58 | %defattr(-,root,root,-) |
|---|
| 59 | %doc LICENSE* README* |
|---|
| 60 | /lib/firmware/*.ucode |
|---|
| 61 | |
|---|
| 62 | %changelog |
|---|
| 63 | * Thu Apr 21 2011 Daisuke SUZUKI <daisuke@linux.or.jp> 8.83.5.1-1 |
|---|
| 64 | - add iwlwifi-5000-3.ucode (8.83.5.1-1) |
|---|
| 65 | |
|---|
| 66 | * Thu May 28 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 8.24.2.12-1 |
|---|
| 67 | - add iwlwifi-5000-2.ucode (8.24.2.12) |
|---|
| 68 | |
|---|
| 69 | * Tue Dec 30 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 5.4.A.11-1 |
|---|
| 70 | - initial build |
|---|
| 71 | |
|---|