iwlwifi-1000-ucode-vl.spec 2.3 KB

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