broadcom-wl-vl.spec 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  1. %define oname hybrid-portsrc
  2. %define over %(echo %{version} | tr . _)
  3. %define kname wl
  4. Summary: Proprietary driver for Broadcom wireless adapters
  5. Summary(ja): Broadcom ワイヤレスドライバ用プロプライエタリドライバ
  6. Name: broadcom-wl
  7. Version: ##VERSION##
  8. Release: ##RELEASE##
  9. License: Freeware and GPLv2 with exception
  10. Group: System Environment/Kernel
  11. URL: http://www.broadcom.com/support/802.11/linux_sta.php
  12. %ifarch %{ix86}
  13. Source0: http://www.broadcom.com/docs/linux_sta/hybrid-v35-nodebug-pcoem-%{over}.tar.gz
  14. %endif
  15. %ifarch x86_64
  16. Source0: http://www.broadcom.com/docs/linux_sta/hybrid-v35_64-nodebug-pcoem-%{over}.tar.gz
  17. %endif
  18. Source1: blacklist-broadcom.conf
  19. #Patch100: broadcom-wl-kernel318.patch
  20. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  21. %description
  22. This package contains the proprietary driver for Broadcom wireless adapters
  23. provided by Broadcom. If installed, it will be used for these cards in
  24. preference to the third-party open source driver that requires manual
  25. installation of firmware, or ndiswrapper.
  26. %description -l ja
  27. このパッケージには、Broadcom ワイヤレスアダプタ用のプロプライエタリドライバが
  28. 収録されています。ファームウェアのインストールを手で行わなければいけない
  29. オープンソースドライバや ndiswrapper とは異なり、この Broadcom 社製の
  30. ハイブリッドドライバは単体で動作します。
  31. %package -n dkms-%{name}
  32. Summary: Hybrid kernel module f-r Broadcom wireless adapters
  33. Summary(ja): Broadcom ワイヤレスドライバ用ハイブリッドカーネルモジュール
  34. Group: System Environment/Kernel
  35. Requires(post): dkms
  36. Requires(preun): dkms
  37. %description -n dkms-%{name}
  38. This package contains the proprietary driver for Broadcom wireless adapters
  39. provided by Broadcom. If installed, it will be used for these cards in
  40. preference to the third-party open source driver that requires manual
  41. installation of firmware, or ndiswrapper.
  42. %description -n dkms-%{name} -l ja
  43. このパッケージには、Broadcom ワイヤレスアダプタ用のプロプライエタリドライバが
  44. 収録されています。ファームウェアのインストールを手で行わなければいけない
  45. オープンソースドライバや ndiswrapper とは異なり、この Broadcom 社製の
  46. ハイブリッドドライバは単体で動作します。
  47. %prep
  48. %setup -q -T -c -a0
  49. #%patch100 -p0 -b .kernel318
  50. %install
  51. %{__rm} -rf %{buildroot}
  52. ## DKMS ##
  53. mkdir -p %{buildroot}%{_usr}/src/%{name}-%{version}-%{release}
  54. cp -R * %{buildroot}%{_usr}/src/%{name}-%{version}-%{release}/
  55. cat > %{buildroot}%{_usr}/src/%{name}-%{version}-%{release}/dkms.conf << EOF
  56. PACKAGE_NAME=%{name}
  57. PACKAGE_VERSION=%{version}-%{release}
  58. BUILT_MODULE_NAME[0]="%{kname}"
  59. BUILT_MODULE_LOCATION[0]="."
  60. DEST_MODULE_LOCATION[0]="/kernel/drivers/net/wireless"
  61. MAKE[0]="make"
  62. CLEAN="make clean"
  63. AUTOINSTALL="yes"
  64. EOF
  65. ## BLACKLIST ##
  66. mkdir -p %{buildroot}/etc/modprobe.d
  67. install -m 644 %{SOURCE1} %{buildroot}/etc/modprobe.d/
  68. %clean
  69. %{__rm} -rf %{buildroot}
  70. %post -n dkms-%{name}
  71. dkms add -m %{name} -v %{version}-%{release} --rpm_safe_upgrade
  72. dkms build -m %{name} -v %{version}-%{release} --rpm_safe_upgrade
  73. dkms install -m %{name} -v %{version}-%{release} --rpm_safe_upgrade
  74. exit 0
  75. %preun -n dkms-%{name}
  76. dkms remove -m %{name} -v %{version}-%{release} --rpm_safe_upgrade --all || :
  77. %files -n dkms-%{name}
  78. %defattr(-,root,root)
  79. %doc lib/LICENSE.txt
  80. %dir /usr/src/%{name}-%{version}-%{release}
  81. /usr/src/%{name}-%{version}-%{release}/*
  82. /etc/modprobe.d/blacklist-broadcom.conf
  83. %changelog
  84. * Sat Oct 31 2015 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 6.30.223.271-1
  85. - dropped patch100.
  86. - new upstream release.
  87. * Sun Aug 2 2015 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 6.30.223.248-2
  88. - added Source100 to build with kernel 3.18
  89. * Wed Nov 19 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 6.30.223.248-1
  90. - new upstream release
  91. - dropped SOURCE2
  92. - updated dmks.conf
  93. * Tue May 05 2009 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 5.10.91.9-1
  94. - initial build for Vine Linux