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