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