Browse Source

2014-11-19 Ryoichi INAGAKI <ryo1@toki.waseda.jp>

	* self-build-broadcom-wl: updated
	


git-svn-id: http://trac.vinelinux.org/repos/projects/specs@9103 ec354946-7b23-47d6-9f5a-488ba84defc7
inagaki 9 years ago
parent
commit
7de6ea1db8

+ 13 - 19
nonfree/self-build-broadcom-wl/broadcom-wl.spec

@@ -7,18 +7,18 @@ Summary(ja): 	Broadcom ワイヤレスドライバ用プロプライエタリド
 Name:		broadcom-wl
 Version:	##VERSION##
 Release: 	##RELEASE##
+
+License:	Freeware and GPLv2 with exception
+Group:		System Environment/Kernel
+URL:		http://www.broadcom.com/support/802.11/linux_sta.php
+
 %ifarch %{ix86}
-Source0:	http://www.broadcom.com/docs/linux_sta/%{oname}_x86_32-v%{over}.tar.gz
+Source0:	http://www.broadcom.com/docs/linux_sta/hybrid-v35-nodebug-pcoem-%{over}.tar.gz
 %endif
 %ifarch x86_64
-Source0:	http://www.broadcom.com/docs/linux_sta/%{oname}_x86_64-v%{over}.tar.gz
+Source0:	http://www.broadcom.com/docs/linux_sta/hybrid-v35_64-nodebug-pcoem-%{over}.tar.gz
 %endif
 Source1:	blacklist-broadcom.conf
-Source2:	5_100_82_38.patch
-
-License:	Freeware and GPLv2 with exception
-Group:		System Environment/Kernel
-URL:		http://www.broadcom.com/support/802.11/linux_sta.php
 
 BuildRoot:	%{_tmppath}/%{name}-%{version}-root
 
@@ -56,8 +56,7 @@ installation of firmware, or ndiswrapper.
 
 
 %prep
-%setup -q -T -c -a0 %{oname}
-
+%setup -q -T -c -a0
 
 %install
 %{__rm} -rf %{buildroot}
@@ -69,14 +68,12 @@ cat > %{buildroot}%{_usr}/src/%{name}-%{version}-%{release}/dkms.conf << EOF
 PACKAGE_NAME=%{name}
 PACKAGE_VERSION=%{version}-%{release}
 
-BUILT_MODULE_NAME="%{kname}"
-BUILT_MODULE_LOCATION="."
-DEST_MODULE_LOCATION="/extra/broadcom"
-PATCH[0]="5_100_82_38.patch"
-#PATCH_MATCH[0]="^2.6.(3[5-9]|[4-9][0-9])"
+BUILT_MODULE_NAME[0]="%{kname}"
+BUILT_MODULE_LOCATION[0]="."
+DEST_MODULE_LOCATION[0]="/kernel/drivers/net/wireless"
 
-MAKE="make -C \$kernel_source_dir M=\\\$(pwd)"
-CLEAN="make -C \$kernel_source_dir M=\\\$(pwd) clean"
+MAKE[0]="make"
+CLEAN="make clean"
 
 AUTOINSTALL="yes"
 EOF
@@ -85,9 +82,6 @@ EOF
 mkdir -p %{buildroot}/etc/modprobe.d
 install -m 644 %{SOURCE1} %{buildroot}/etc/modprobe.d/
 
-mkdir -p %{buildroot}/usr/src/%{name}-%{version}-%{release}/patches/
-install -m 644 %{SOURCE2} %{buildroot}/usr/src/%{name}-%{version}-%{release}/patches/
-
 
 %clean
 %{__rm} -rf %{buildroot}

+ 149 - 0
nonfree/self-build-broadcom-wl/self-build-broadcom-wl-vl.spec

@@ -0,0 +1,149 @@
+%define pkgname broadcom-wl
+%define name    self-build-%{pkgname}
+
+%define oname   hybrid-portsrc
+%define over    %(echo %{version} | tr . _)
+
+%ifarch %{ix86}
+%define source0path http://www.broadcom.com/docs/linux_sta/hybrid-v35-nodebug-pcoem-%{over}.tar.gz
+%endif
+%ifarch x86_64
+%define source0path http://www.broadcom.com/docs/linux_sta/hybrid-v35_64-nodebug-pcoem-%{over}.tar.gz
+%endif
+
+Summary:	Package to automatically build %{pkgname} rpm package
+Summary(ja): 	%{pkgname} の rpm パッケージを自動作成するパッケージ
+Name:		%{name}
+Version:	6.30.223.248
+Release: 	1%{?_dist_release}
+Source0:	%{pkgname}.spec
+Source1:	blacklist-broadcom.conf
+
+License:	Freeware and GPLv2 with exception
+Group:		Restricted Software
+
+Requires(pre):	self-build-setup >= 0.7-1
+
+BuildRoot:	%{_tmppath}/%{name}-%{version}-root
+ExclusiveArch:	%{ix86} x86_64
+
+
+%description
+Proprietary hybrid driver for Broadcom wireless adapters.
+
+If you install this package, it automaticaly downloads source
+code ,compile it, and create rpm packages of %{pkgname}-%{version}.
+And the created rpm packages are automatically installed
+if installation is executed by apt-get command or synaptic
+package manager.
+
+[Note]
+This package requires many other packages to compile
+targetsoftware. So it consume more disk space than usual.
+Also installation takes logner time because of compilation.
+(This will take a few minutes to quarter or half of an hour,
+depends on building environment)
+
+[About self-build package]
+For some kind of software, distributing of binary package
+may viorate the patent or law. Therefore we chose self-build
+packge, create binary package on your machine, for such kind
+of softwares instead of distributing binary package.
+
+Please obey the national law when you use the created binary
+packages. And if you want to use the softwares using patented 
+thechnology, it may be required to get a permission, make an 
+agreement or purchas a license. Please consider it with your
+purpose or way of use and take appropriate action.
+
+%description -l ja
+Broadcom ワイヤレスアダプタ用のプロプライエタリドライバです。
+
+このパッケージをインストールすると、自動的にソースコードを
+ダウンロードしてコンパイルし、%{pkgname}-%{version}
+の rpm パッケージを作成します。
+また apt-get コマンドや synaptic パッケージマネージャから実行
+した場合は、作成された rpm パッケージのインストールも自動的に
+行います。
+
+[注意]
+コンパイルに必要な多くの関連パッケージを要求するので通常より
+ディスクの領域を多く消費します。
+またインストール時にコンパイルを行うため、通常より時間がかか
+る場合があります。(環境にもよりますが数分から数十分程度)
+
+[self-build パッケージについて]
+ソフトウェアによってはバイナリパッケージの配布が特許や法律に
+違反する可能性があるものがあります。その為、このような問題が
+懸念されるソフトウェアについてはバイナリパッケージを直接配布
+せずに、ユーザの環境でバイナリを作成する self-build パッケー
+ジという方法を採っています。
+
+作成されたバイナリパッケージの利用にあたっては、各ソフトウェ
+アのライセンス、および利用する国の各種法令に従ってください。
+また特許に関連するソフトウェアの場合、利用許諾や契約、ライ
+センスの購入などが必要となる場合がありますので、利用する目的
+や形態に応じて各自で判断し適切な対応を取ってください。
+
+
+%install
+rm -rf %{buildroot}
+install -d %{buildroot}%{_datadir}/%{name}
+install -m 644 %{SOURCE1} %{buildroot}%{_datadir}/%{name}
+#install -m 644 %{SOURCE2} %{buildroot}%{_datadir}/%{name}
+sed -e 's|##VERSION##|%{version}|g' -e 's|##RELEASE##|%{release}|g' \
+	%{SOURCE0} > %{buildroot}%{_datadir}/%{name}/%{pkgname}.spec
+
+
+%clean
+rm -rf %{buildroot}
+
+
+%posttrans
+/usr/lib/rpm/self-build-rpm.sh %{name} %{pkgname}.spec "%{source0path}"
+/usr/lib/rpm/pre-allocate-rpm.sh dkms-%{pkgname}-%{version}-%{release}
+
+
+%files
+%defattr(-,root,root)
+%{_datadir}/%{name}/*
+
+
+%changelog
+* Wed Nov 19 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 6.30.223.248-1
+- new upstream release
+- dropped SOURCE2
+- updated dmks.conf
+
+* Tue May 01 2012 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 5.100.82.112-1
+- new upstream release.
+- dropped an old patch.
+- added SOURCE2 to compile for kernel-3.2.x.
+
+* Tue Oct  4 2011 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 5.100.82.38-3
+- update SOURCE1 (see: http://www.broadcom.com/docs/linux_sta/bcma.txt)
+
+* Sun Aug 14 2011 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 5.100.82.38-2
+- add a patch to fix build failure on linux > 2.6.37
+
+* Sun Jan 01 2011 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 5.100.82.38-1
+- new upstream release
+
+* Tue Aug 17 2010 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 5.60.48.36-2
+- add Source2 to fix build failure on kernel >= 2.6.35
+  (https://bugs.launchpad.net/ubuntu/+source/bcmwl/+bug/590924)
+
+* Tue Aug 17 2010 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 5.60.48.36-1
+- new upstream release
+
+* Wed Sep 23 2009 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 5.10.91.9.3-1
+- new upstream release
+
+* Tue May 05 2009 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 5.10.91.9-3
+- fix to ensure Source0 has correct version/release numbers
+
+* Tue May 05 2009 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 5.10.91.9-2
+- add ExclusiveArch
+
+* Tue May 05 2009 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 5.10.91.9-1
+- initial build for Vine Linux