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