iwlwifi-100-ucode-vl.spec 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. Name: iwlwifi-100-ucode
  2. Version: 39.31.5.1
  3. Release: 1%{?_dist_release}
  4. Summary: Firmware for Intel(R) Wireless WiFi Link 100 Series Adapters
  5. Summary(ja): Intel(R) Wireless WiFi Link 100 シリーズ用ファームウェア
  6. Group: System Environment/Kernel
  7. License: Redistributable, no modification permitted
  8. URL: http://intellinuxwireless.org/
  9. Source0: http://intellinuxwireless.org/iwlwifi/downloads/iwlwifi-100-ucode-%{version}.tgz
  10. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
  11. BuildArch: noarch
  12. Requires: udev
  13. Vendor: Project Vine
  14. Distribution: Vine Linux
  15. Packager: daisuke
  16. %description
  17. This package contains the firmware required by the iwlagn driver
  18. for Linux to support the iwl100 hardware. Usage of the firmware
  19. is subject to the terms and conditions contained inside the provided
  20. LICENSE file. Please read it carefully.
  21. %prep
  22. %setup -c -q
  23. # Change permission
  24. find . -type f -exec chmod 0644 {} ';'
  25. pushd iwlwifi-100-ucode-%{version}
  26. # Change encoding
  27. sed -i 's/\r//' LICENSE.iwlwifi-100-ucode README.iwlwifi-100-ucode
  28. # Rename docs
  29. mv LICENSE.iwlwifi-100-ucode ../LICENSE
  30. mv README.iwlwifi-100-ucode ../README
  31. # Preserve timestamp
  32. touch -r *.ucode ../LICENSE ../README
  33. popd
  34. %build
  35. # Nothing to build
  36. %install
  37. rm -rf $RPM_BUILD_ROOT
  38. mkdir -p $RPM_BUILD_ROOT/lib/firmware
  39. pushd iwlwifi-100-ucode-%{version}
  40. install -pm 0644 *.ucode $RPM_BUILD_ROOT/lib/firmware/
  41. popd
  42. %clean
  43. rm -rf $RPM_BUILD_ROOT
  44. %files
  45. %defattr(-,root,root,-)
  46. %doc LICENSE README
  47. /lib/firmware/*.ucode
  48. %changelog
  49. * Thu Apr 21 2011 Daisuke SUZUKI <daisuke@linux.or.jp> 39.31.5.1-1
  50. - initial build for Vine Linux