[9103] | 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/hybrid-v35-nodebug-pcoem-%{over}.tar.gz |
---|
| 9 | %endif |
---|
| 10 | %ifarch x86_64 |
---|
| 11 | %define source0path http://www.broadcom.com/docs/linux_sta/hybrid-v35_64-nodebug-pcoem-%{over}.tar.gz |
---|
| 12 | %endif |
---|
| 13 | |
---|
| 14 | Summary: Package to automatically build %{pkgname} rpm package |
---|
| 15 | Summary(ja): %{pkgname} の rpm パッケージを自動作成するパッケージ |
---|
| 16 | Name: %{name} |
---|
[9777] | 17 | Version: 6.30.223.271 |
---|
| 18 | Release: 1%{?_dist_release} |
---|
[9688] | 19 | Source0: %{pkgname}-vl.spec |
---|
[9103] | 20 | Source1: blacklist-broadcom.conf |
---|
| 21 | |
---|
[9688] | 22 | Source100: broadcom-wl-kernel318.patch |
---|
| 23 | |
---|
[9103] | 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' \ |
---|
[9688] | 97 | %{SOURCE0} > %{buildroot}%{_datadir}/%{name}/%{pkgname}-vl.spec |
---|
[9103] | 98 | |
---|
[9688] | 99 | %{__install} -m 644 %{SOURCE100} \ |
---|
| 100 | $RPM_BUILD_ROOT/%{_datadir}/%{name} |
---|
[9103] | 101 | |
---|
[9688] | 102 | |
---|
[9103] | 103 | %clean |
---|
| 104 | rm -rf %{buildroot} |
---|
| 105 | |
---|
| 106 | |
---|
| 107 | %posttrans |
---|
[9688] | 108 | /usr/lib/rpm/self-build-rpm.sh %{name} %{pkgname}-vl.spec "%{source0path}" |
---|
[9103] | 109 | /usr/lib/rpm/pre-allocate-rpm.sh dkms-%{pkgname}-%{version}-%{release} |
---|
| 110 | |
---|
| 111 | |
---|
| 112 | %files |
---|
| 113 | %defattr(-,root,root) |
---|
| 114 | %{_datadir}/%{name}/* |
---|
| 115 | |
---|
| 116 | |
---|
| 117 | %changelog |
---|
[9777] | 118 | * Sat Oct 31 2015 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 6.30.223.271-1 |
---|
| 119 | - new upstream release. |
---|
| 120 | - dropped SOURCE100. |
---|
| 121 | - fixed date of changelog. |
---|
| 122 | |
---|
[9688] | 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 | |
---|
[9103] | 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 01 2012 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 5.100.82.112-1 |
---|
| 132 | - new upstream release. |
---|
| 133 | - dropped an old patch. |
---|
| 134 | - added SOURCE2 to compile for kernel-3.2.x. |
---|
| 135 | |
---|
| 136 | * Tue Oct 4 2011 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 5.100.82.38-3 |
---|
| 137 | - update SOURCE1 (see: http://www.broadcom.com/docs/linux_sta/bcma.txt) |
---|
| 138 | |
---|
| 139 | * Sun Aug 14 2011 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 5.100.82.38-2 |
---|
| 140 | - add a patch to fix build failure on linux > 2.6.37 |
---|
| 141 | |
---|
[9777] | 142 | * Sat Jan 01 2011 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 5.100.82.38-1 |
---|
[9103] | 143 | - new upstream release |
---|
| 144 | |
---|
| 145 | * Tue Aug 17 2010 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 5.60.48.36-2 |
---|
| 146 | - add Source2 to fix build failure on kernel >= 2.6.35 |
---|
| 147 | (https://bugs.launchpad.net/ubuntu/+source/bcmwl/+bug/590924) |
---|
| 148 | |
---|
| 149 | * Tue Aug 17 2010 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 5.60.48.36-1 |
---|
| 150 | - new upstream release |
---|
| 151 | |
---|
| 152 | * Wed Sep 23 2009 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 5.10.91.9.3-1 |
---|
| 153 | - new upstream release |
---|
| 154 | |
---|
| 155 | * Tue May 05 2009 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 5.10.91.9-3 |
---|
| 156 | - fix to ensure Source0 has correct version/release numbers |
---|
| 157 | |
---|
| 158 | * Tue May 05 2009 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 5.10.91.9-2 |
---|
| 159 | - add ExclusiveArch |
---|
| 160 | |
---|
| 161 | * Tue May 05 2009 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 5.10.91.9-1 |
---|
| 162 | - initial build for Vine Linux |
---|