1 | %define pkgname broadcom-wl |
---|
2 | %define name self-build-%{pkgname} |
---|
3 | |
---|
4 | %define oname hybrid-portsrc |
---|
5 | %define over %(echo %{version} | tr . _) |
---|
6 | |
---|
7 | %ifarch %{ix86} |
---|
8 | %define source0path http://www.broadcom.com/docs/linux_sta/%{oname}-x86_32-v%{version}.tar.gz |
---|
9 | %endif |
---|
10 | %ifarch x86_64 |
---|
11 | %define source0path http://www.broadcom.com/docs/linux_sta/%{oname}-x86_64-v%{version}.tar.gz |
---|
12 | %endif |
---|
13 | |
---|
14 | |
---|
15 | Summary: Package to automatically build %{pkgname} rpm package |
---|
16 | Summary(ja): %{pkgname} の rpm パッケージを自動作成するパッケージ |
---|
17 | Name: %{name} |
---|
18 | Version: 5.60.48.36 |
---|
19 | Release: 2%{?_dist_release} |
---|
20 | Source0: %{pkgname}.spec |
---|
21 | Source1: blacklist-broadcom.conf |
---|
22 | Source2: broadcom-wl-mclist-fix.patch |
---|
23 | |
---|
24 | License: Freeware and GPLv2 with exception |
---|
25 | Group: Restricted Software |
---|
26 | |
---|
27 | Requires(pre): self-build-setup >= 0.7-1 |
---|
28 | |
---|
29 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
30 | ExclusiveArch: %{ix86} x86_64 |
---|
31 | |
---|
32 | |
---|
33 | %description |
---|
34 | Proprietary hybrid driver for Broadcom wireless adapters. |
---|
35 | |
---|
36 | If you install this package, it automaticaly downloads source |
---|
37 | code ,compile it, and create rpm packages of %{pkgname}-%{version}. |
---|
38 | And the created rpm packages are automatically installed |
---|
39 | if installation is executed by apt-get command or synaptic |
---|
40 | package manager. |
---|
41 | |
---|
42 | [Note] |
---|
43 | This package requires many other packages to compile |
---|
44 | targetsoftware. So it consume more disk space than usual. |
---|
45 | Also installation takes logner time because of compilation. |
---|
46 | (This will take a few minutes to quarter or half of an hour, |
---|
47 | depends on building environment) |
---|
48 | |
---|
49 | [About self-build package] |
---|
50 | For some kind of software, distributing of binary package |
---|
51 | may viorate the patent or law. Therefore we chose self-build |
---|
52 | packge, create binary package on your machine, for such kind |
---|
53 | of softwares instead of distributing binary package. |
---|
54 | |
---|
55 | Please obey the national law when you use the created binary |
---|
56 | packages. And if you want to use the softwares using patented |
---|
57 | thechnology, it may be required to get a permission, make an |
---|
58 | agreement or purchas a license. Please consider it with your |
---|
59 | purpose or way of use and take appropriate action. |
---|
60 | |
---|
61 | %description -l ja |
---|
62 | Broadcom ワイヤレスアダプタ用のプロプライエタリドライバです。 |
---|
63 | |
---|
64 | このパッケージをインストールすると、自動的にソースコードを |
---|
65 | ダウンロードしてコンパイルし、%{pkgname}-%{version} |
---|
66 | の rpm パッケージを作成します。 |
---|
67 | また apt-get コマンドや synaptic パッケージマネージャから実行 |
---|
68 | した場合は、作成された rpm パッケージのインストールも自動的に |
---|
69 | 行います。 |
---|
70 | |
---|
71 | [注意] |
---|
72 | コンパイルに必要な多くの関連パッケージを要求するので通常より |
---|
73 | ディスクの領域を多く消費します。 |
---|
74 | またインストール時にコンパイルを行うため、通常より時間がかか |
---|
75 | る場合があります。(環境にもよりますが数分から数十分程度) |
---|
76 | |
---|
77 | [self-build パッケージについて] |
---|
78 | ソフトウェアによってはバイナリパッケージの配布が特許や法律に |
---|
79 | 違反する可能性があるものがあります。その為、このような問題が |
---|
80 | 懸念されるソフトウェアについてはバイナリパッケージを直接配布 |
---|
81 | せずに、ユーザの環境でバイナリを作成する self-build パッケー |
---|
82 | ジという方法を採っています。 |
---|
83 | |
---|
84 | 作成されたバイナリパッケージの利用にあたっては、各ソフトウェ |
---|
85 | アのライセンス、および利用する国の各種法令に従ってください。 |
---|
86 | また特許に関連するソフトウェアの場合、利用許諾や契約、ライ |
---|
87 | センスの購入などが必要となる場合がありますので、利用する目的 |
---|
88 | や形態に応じて各自で判断し適切な対応を取ってください。 |
---|
89 | |
---|
90 | |
---|
91 | %install |
---|
92 | rm -rf %{buildroot} |
---|
93 | install -d %{buildroot}%{_datadir}/%{name} |
---|
94 | install -m 644 %{SOURCE1} %{buildroot}%{_datadir}/%{name} |
---|
95 | install -m 644 %{SOURCE2} %{buildroot}%{_datadir}/%{name} |
---|
96 | sed -e 's|##VERSION##|%{version}|g' -e 's|##RELEASE##|%{release}|g' \ |
---|
97 | %{SOURCE0} > %{buildroot}%{_datadir}/%{name}/%{pkgname}.spec |
---|
98 | |
---|
99 | |
---|
100 | %clean |
---|
101 | rm -rf %{buildroot} |
---|
102 | |
---|
103 | |
---|
104 | %posttrans |
---|
105 | /usr/lib/rpm/self-build-rpm.sh %{name} %{pkgname}.spec "%{source0path}" |
---|
106 | /usr/lib/rpm/pre-allocate-rpm.sh dkms-%{pkgname}-%{version}-%{release} |
---|
107 | |
---|
108 | |
---|
109 | %files |
---|
110 | %defattr(-,root,root) |
---|
111 | %{_datadir}/%{name}/* |
---|
112 | |
---|
113 | |
---|
114 | %changelog |
---|
115 | * Tue Aug 17 2010 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 5.60.48.36-2 |
---|
116 | - add Source2 to fix build failure on kernel >= 2.6.35 |
---|
117 | (https://bugs.launchpad.net/ubuntu/+source/bcmwl/+bug/590924) |
---|
118 | |
---|
119 | * Tue Aug 17 2010 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 5.60.48.36-1 |
---|
120 | - new upstream release |
---|
121 | |
---|
122 | * Wed Sep 23 2009 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 5.10.91.9.3-1 |
---|
123 | - new upstream release |
---|
124 | |
---|
125 | * Tue May 05 2009 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 5.10.91.9-3 |
---|
126 | - fix to ensure Source0 has correct version/release numbers |
---|
127 | |
---|
128 | * Tue May 05 2009 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 5.10.91.9-2 |
---|
129 | - add ExclusiveArch |
---|
130 | |
---|
131 | * Tue May 05 2009 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 5.10.91.9-1 |
---|
132 | - initial build for Vine Linux |
---|