ipw3945-vl.spec 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. ## %%define build_kmod %{?_with_kmod:1}%{!?_with_kmod:0}
  2. %define build_kmod 1
  3. %define kmod kernel-module
  4. %define name ipw3945
  5. %define ver 1.2.2
  6. %define rel 1%{?_dist_release}
  7. %define kversion %(echo `uname -r`)
  8. %define kver %(echo `uname -r` | sed -e 's/-/_/g')
  9. Summary: Intel PRO/Wireless 3945ABG driver
  10. Summary(ja): Intel PRO/Wireless 3945ABG ドライバ
  11. Name: %{name}
  12. Version: %{ver}
  13. Release: %{rel}
  14. Source0: http://prdownloads.sourceforge.net/ipw3945/%{name}-%{version}.tgz
  15. Patch0: ipw3945-1.2.2-2.6.24.patch
  16. License: GPL2/BSD
  17. Group: System Environment/Base
  18. URL: http://ipw3945.sourceforge.net/
  19. BuildRequires: kernel-devel
  20. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  21. %description
  22. Linux kernel driver for Intel PRO/Wireless 3945ABG Network controller.
  23. %package -n %{kmod}-%{name}
  24. Summary: Linux kernel module for Intel PRO/Wireless 3945ABG drivers (for kerne-%{kversion})
  25. Summary(ja): Intel PRO/Wireless 3945ABG 用の Linux カーネルモジュール (kernel-%{kversion}用)
  26. Version: %{ver}_%{kver}
  27. License: GPL
  28. Group: System Environment/Kernel
  29. Requires: kernel = %{kversion}
  30. Requires: ipw3945-firmware >= 1.14, ipw3945d >= 1.7.22
  31. %description -n %{kmod}-%{name}
  32. This package contains kernel drivers for the Intel PRO/Wireless 3945ABG.
  33. This package is created for kernel-%{kversion}.
  34. %description -l ja -n %{kmod}-%{name}
  35. このパッケージには Intel PRO/Wireless 3945ABG 用のカーネルドライバが含まれてい
  36. ます。
  37. このパッケージは kernel-%{kversion} 用に作成されています。
  38. %prep
  39. %setup -q
  40. %patch0 -p1 -b .2624
  41. perl -pi -e's,/sbin/depmod,:,g' Makefile
  42. %build
  43. %__make
  44. %install
  45. %__rm -rf ${RPM_BUILD_ROOT}
  46. %makeinstall KMISC=%{buildroot}/lib/modules/%{kversion}/kernel/drivers/net/wireless/
  47. %clean
  48. %__rm -rf ${RPM_BUILD_ROOT}
  49. %post -n %{kmod}-%{name}
  50. /sbin/depmod -a
  51. %files -n %{kmod}-%{name}
  52. /lib/modules/%{kversion}/kernel/drivers/net/wireless/*
  53. %changelog
  54. * Wed Mar 26 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 1.2.2-1
  55. - new upstream release
  56. * Tue Oct 30 2007 Daisuke SUZUKI <daisuke@linux.or.jp> 1.2.0-0vl3
  57. - fix Summary and Description.
  58. * Sun May 13 2007 Daisuke SUZUKI <daisuke@linux.or.jp> 1.2.0-0vl2
  59. - fix typo in Group:
  60. * Mon Apr 02 2007 Daisuke SUZUKI <daisuke@linux.or.jp> 1.2.0-0vl1
  61. - initial build for Vine Linux