iwlwifi-5000-ucode-vl.spec 2.0 KB

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