Browse Source

* new: self-build-broadcom-wl
* update: ndiswrapper


git-svn-id: http://trac.vinelinux.org/repos/projects/specs@1617 ec354946-7b23-47d6-9f5a-488ba84defc7

shaolin 13 years ago
parent
commit
fc84c67c8a

+ 9 - 3
n/ndiswrapper/ndiswrapper-vl.spec

@@ -8,7 +8,7 @@
 
 %define kmod	kernel-module%{?kflavor:-%{kflavor}}
 %define name	ndiswrapper
-%define ver	1.55
+%define ver	1.56
 %define rel	1%{?_dist_release}
 
 Summary:        Utilities to load and run Windows XP WLAN drivers
@@ -21,6 +21,7 @@ Source10:	%{name}-kmp.spec
 Patch0:		%{name}-1.19-gcc33.patch
 Patch1:		%{name}-1.54-module-init-tools.patch
 Patch2:		%{name}-1.55-2.6.31.patch
+Patch3:		%{name}-2.6.35.patch
 License:	GPL
 Group:		System Environment/Base
 URL:            http://ndiswrapper.sourceforge.net/
@@ -70,8 +71,9 @@ Microsoft Windows 以外の OS 用のドライバを提供していません。
 %prep
 %setup -q
 %patch0 -p1
-%patch1 -p1
-%patch2 -p1
+#%patch1 -p1
+#%patch2 -p1
+%patch3 -p0
 
 %build
 %__make -C utils
@@ -150,6 +152,10 @@ exit 0
 
 
 %changelog
+* Wed Aug 18 2010 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 1.56-1
+- updated to 1.56
+- drop Patch1 and Patch2; add Patch3: fix build on kernel >= 2.6.35
+
 * Fri Sep 25 2009 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 1.55-1
 - updated to 1.55, fixing compilation issues with recent kernels
 - add Patch2: fix one more compilation issue with kernel-2.6.31

+ 116 - 0
nonfree/self-build-broadcom-wl/broadcom-wl.spec

@@ -0,0 +1,116 @@
+%define oname	hybrid-portsrc
+%define over	%(echo %{version} | tr . _)
+%define kname	wl
+
+Summary:	Proprietary driver for Broadcom wireless adapters
+Summary(ja): 	Broadcom ワイヤレスドライバ用プロプライエタリドライバ
+Name:		broadcom-wl
+Version:	##VERSION##
+Release: 	##RELEASE##
+%ifarch %{ix86}
+Source0:	http://www.broadcom.com/docs/linux_sta/%{oname}-x86_32-v%{version}.tar.gz
+%endif
+%ifarch x86_64
+Source0:	http://www.broadcom.com/docs/linux_sta/%{oname}-x86_64-v%{version}.tar.gz
+%endif
+Source1:	blacklist-broadcom.conf
+Source2:	broadcom-wl-mclist-fix.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
+
+%description
+This package contains the proprietary driver for Broadcom wireless adapters
+provided by Broadcom. If installed, it will be used for these cards in
+preference to the third-party open source driver that requires manual
+installation of firmware, or ndiswrapper.
+
+%description -l ja
+このパッケージには、Broadcom ワイヤレスアダプタ用のプロプライエタリドライバが
+収録されています。ファームウェアのインストールを手で行わなければいけない
+オープンソースドライバや ndiswrapper とは異なり、この Broadcom 社製の
+ハイブリッドドライバは単体で動作します。
+
+
+%package -n dkms-%{name}
+Summary:	 Hybrid kernel module f-r Broadcom wireless adapters
+Summary(ja):	 Broadcom ワイヤレスドライバ用ハイブリッドカーネルモジュール
+Group:		 System Environment/Kernel
+Requires(post):	 dkms
+Requires(preun): dkms
+
+%description -n dkms-%{name}
+This package contains the proprietary driver for Broadcom wireless adapters
+provided by Broadcom. If installed, it will be used for these cards in
+preference to the third-party open source driver that requires manual
+installation of firmware, or ndiswrapper.
+
+%description -n dkms-%{name} -l ja
+このパッケージには、Broadcom ワイヤレスアダプタ用のプロプライエタリドライバが
+収録されています。ファームウェアのインストールを手で行わなければいけない
+オープンソースドライバや ndiswrapper とは異なり、この Broadcom 社製の
+ハイブリッドドライバは単体で動作します。
+
+
+%prep
+%setup -q -T -c -a0 %{oname}
+
+
+%install
+%{__rm} -rf %{buildroot}
+
+## DKMS ##
+mkdir -p %{buildroot}%{_usr}/src/%{name}-%{version}-%{release}
+cp -R * %{buildroot}%{_usr}/src/%{name}-%{version}-%{release}/
+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]="broadcom-wl-mclist-fix.patch"
+PATCH_MATCH[0]="^2.6.(3[5-9]|[4-9][0-9])"
+
+MAKE="make -C \$kernel_source_dir M=\\\$(pwd)"
+CLEAN="make -C \$kernel_source_dir M=\\\$(pwd) clean"
+
+AUTOINSTALL="yes"
+EOF
+
+## BLACKLIST ##
+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}
+
+
+%post -n dkms-%{name}
+dkms add     -m %{name} -v %{version}-%{release} --rpm_safe_upgrade
+dkms build   -m %{name} -v %{version}-%{release} --rpm_safe_upgrade
+dkms install -m %{name} -v %{version}-%{release} --rpm_safe_upgrade
+exit 0
+
+%preun -n dkms-%{name}
+dkms remove  -m %{name} -v %{version}-%{release} --rpm_safe_upgrade --all || :
+
+
+%files -n dkms-%{name}
+%defattr(-,root,root)
+%doc lib/LICENSE.txt
+%dir /usr/src/%{name}-%{version}-%{release}
+/usr/src/%{name}-%{version}-%{release}/*
+/etc/modprobe.d/blacklist-broadcom.conf
+
+
+%changelog
+* Tue May 05 2009 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - ##VERSION##-##RELEASE##
+- initial build for Vine Linux

+ 132 - 0
nonfree/self-build-broadcom-wl/self-build-broadcom-wl.spec

@@ -0,0 +1,132 @@
+%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/%{oname}-x86_32-v%{version}.tar.gz
+%endif
+%ifarch x86_64
+%define source0path http://www.broadcom.com/docs/linux_sta/%{oname}-x86_64-v%{version}.tar.gz
+%endif
+
+
+Summary:	Package to automatically build %{pkgname} rpm package
+Summary(ja): 	%{pkgname} の rpm パッケージを自動作成するパッケージ
+Name:		%{name}
+Version:	5.60.48.36
+Release: 	2%{?_dist_release}
+Source0:	%{pkgname}.spec
+Source1:	blacklist-broadcom.conf
+Source2:	broadcom-wl-mclist-fix.patch
+
+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
+* 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