[1617] | 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} |
---|
[2433] | 8 | %define source0path http://www.broadcom.com/docs/linux_sta/%{oname}_x86_32-v%{over}.tar.gz |
---|
[1617] | 9 | %endif |
---|
| 10 | %ifarch x86_64 |
---|
[2433] | 11 | %define source0path http://www.broadcom.com/docs/linux_sta/%{oname}_x86_64-v%{over}.tar.gz |
---|
[1617] | 12 | %endif |
---|
| 13 | |
---|
| 14 | |
---|
| 15 | Summary: Package to automatically build %{pkgname} rpm package |
---|
| 16 | Summary(ja): %{pkgname} の rpm パッケージを自動作成するパッケージ |
---|
| 17 | Name: %{name} |
---|
[2433] | 18 | Version: 5.100.82.38 |
---|
[4862] | 19 | Release: 3%{?_dist_release} |
---|
[1617] | 20 | Source0: %{pkgname}.spec |
---|
| 21 | Source1: blacklist-broadcom.conf |
---|
[4607] | 22 | Source2: 5_100_82_38.patch |
---|
[1617] | 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} |
---|
[4607] | 95 | install -m 644 %{SOURCE2} %{buildroot}%{_datadir}/%{name} |
---|
[1617] | 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 |
---|
[4862] | 115 | * Tue Oct 4 2011 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 5.100.82.38-3 |
---|
| 116 | - update SOURCE1 (see: http://www.broadcom.com/docs/linux_sta/bcma.txt) |
---|
| 117 | |
---|
[4607] | 118 | * Sun Aug 14 2011 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 5.100.82.38-2 |
---|
| 119 | - add a patch to fix build failure on linux > 2.6.37 |
---|
| 120 | |
---|
[2433] | 121 | * Sun Jan 01 2011 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 5.100.82.38-1 |
---|
[2218] | 122 | - new upstream release |
---|
| 123 | |
---|
[1617] | 124 | * Tue Aug 17 2010 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 5.60.48.36-2 |
---|
| 125 | - add Source2 to fix build failure on kernel >= 2.6.35 |
---|
| 126 | (https://bugs.launchpad.net/ubuntu/+source/bcmwl/+bug/590924) |
---|
| 127 | |
---|
| 128 | * Tue Aug 17 2010 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 5.60.48.36-1 |
---|
| 129 | - new upstream release |
---|
| 130 | |
---|
| 131 | * Wed Sep 23 2009 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 5.10.91.9.3-1 |
---|
| 132 | - new upstream release |
---|
| 133 | |
---|
| 134 | * Tue May 05 2009 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 5.10.91.9-3 |
---|
| 135 | - fix to ensure Source0 has correct version/release numbers |
---|
| 136 | |
---|
| 137 | * Tue May 05 2009 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 5.10.91.9-2 |
---|
| 138 | - add ExclusiveArch |
---|
| 139 | |
---|
| 140 | * Tue May 05 2009 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 5.10.91.9-1 |
---|
| 141 | - initial build for Vine Linux |
---|