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