%define broadcom_sta_ver %(echo %version | tr . _) Name: broadcom-sta Version: 6.30.223.141 Epoch: 1 Release: 1mamba Summary: Brooadcom STA driver for BCM4311-, BCM4312-, BCM4321-, and BCM4322- based wireless hardware Group: System/Kernel and Hardware/Drivers Vendor: openmamba Distribution: openmamba Packager: Silvan Calarco URL: http://www.broadcom.com/support/802.11/linux_sta.php Source: http://www.broadcom.com/docs/linux_sta/hybrid-v35-nodebug-pcoem-%{broadcom_sta_ver}.tar.gz Source1: http://www.broadcom.com/docs/linux_sta/hybrid-v35_64-nodebug-pcoem-%{broadcom_sta_ver}.tar.gz Patch0: %{name}-5.100.82.38-kernel-2.6.38.patch Patch1: %{name}-5.100.82.38-kernel-3.2.patch Patch2: %{name}-5.100.82.38-kernel-3.4.patch Patch3: broadcom-sta-6.30.223.141-kernel-3.10.patch License: no OSI Approved ## AUTOBUILDREQ-BEGIN ## AUTOBUILDREQ-END Requires(post):dkms Obsoletes: kernel-mamba-64GB-nongpl-wl Obsoletes: kernel-mamba-64GB-rt-nongpl-wl Obsoletes: kernel-mamba-nongpl-wl Obsoletes: kernel-mamba-rt-nongpl-wl Provides: kernelwireless BuildRoot: %{_tmppath}/%{name}-%{version}-root %description Brooadcom STA driver for BCM4311-, BCM4312-, BCM4321-, and BCM4322- based wireless hardware (http://www.broadcom.com/support/802.11/linux_sta.php). %prep %setup -q -n %{name}-%{version} -c %{name}-%{version} -T %if "%{target_cpu}" == "x86_64" tar xzf %{SOURCE1} %else tar xzf %{SOURCE0} %endif %patch3 -p2 %build ## ## build for KERNEL_TARGET ## #BUILD_OPTS="CC=%{BUILD_CC} CXX=%{BUILD_CXX} %{_smp_mflags}" ## ## build Broadcom STA driver module (wl.ko) ## #make -C /usr/src/linux-%{KERNEL_VER}%{?KERNEL_TARGET} M=`pwd` %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" # dkms install -d -m0755 %{buildroot}%{_prefix}/src/%{name}-%{version} cp -a * %{buildroot}%{_prefix}/src/%{name}-%{version} cat > %{buildroot}%{_prefix}/src/%{name}-%{version}/dkms.conf << _EOF PACKAGE_NAME=%{name} PACKAGE_VERSION=%{version} MAKE="make -C \${kernel_source_dir} SUBDIRS=\${dkms_tree}/\${PACKAGE_NAME}/\${PACKAGE_VERSION}/build modules" CLEAN="make -C \${kernel_source_dir} SUBDIRS=\${dkms_tree}/\${PACKAGE_NAME}/\${PACKAGE_VERSION}/build clean" BUILT_MODULE_NAME=wl BUILT_MODULE_LOCATION=. DEST_MODULE_LOCATION=/extra/drivers/net/ REMAKE_INITRD=no AUTOINSTALL=yes _EOF install -D -m0644 lib/LICENSE.txt %{buildroot}%{_docdir}/broadcom-sta-%{broadcom_sta_ver}/LICENSE.txt mkdir -p %{buildroot}%{_sysconfdir}/modprobe.d/ cat > %{buildroot}%{_sysconfdir}/modprobe.d/wl-%{KERNEL_VER}.conf << __EOF blacklist b43 blacklist ssb blacklist bcma blacklist brcmsmac __EOF %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %preun dkms remove -q -m %{name} -v %{version} --all --rpm_safe_upgrade : %posttrans if [ $1 -ge 1 ]; then # clean any legacy alternatives symlink dkms remove -q -m %{name} -v %{version} --all --rpm_safe_upgrade dkms add -q -m %{name} -v %{version} dkms install -q -m %{name} -v %{version} fi : %files %defattr(-,root,root) %{_sysconfdir}/modprobe.d/wl-%{KERNEL_VER}.conf %dir %{_prefix}/src/%{name}-%{version} %{_prefix}/src/%{name}-%{version}/* %{_docdir}/broadcom-sta-%{broadcom_sta_ver}/LICENSE.txt %changelog * Sun Sep 15 2013 Silvan Calarco 6.30.223.141-1mamba - update to 6.30.223.141 - switch to dkms * Fri Jan 04 2013 Silvan Calarco 5.100.82.38-13mamba - kernel 3.4 rebuild * Thu Nov 22 2012 Silvan Calarco 5.100.82.38-12mamba - provide kernelwireless-%{KERNEL_TARGET} instead of kernelwireless * Mon Nov 05 2012 Silvan Calarco 5.100.82.38-11mamba - bump release up for milestone2 * Sat Oct 27 2012 Silvan Calarco 5.100.82.38-9mamba - kernel 3.6 rebuild * Sat Jun 30 2012 Silvan Calarco 5.100.82.38-8mamba - automatic update by autodist * Sun Feb 12 2012 Silvan Calarco 5.100.82.38-7mamba - automatic update by autodist * Wed Jan 25 2012 Silvan Calarco 5.100.82.38-6mamba - automatic update by autodist * Sun Oct 30 2011 Silvan Calarco 5.100.82.38-5mamba - also blacklist bcma and brcmsmac modules * Sat Oct 08 2011 Silvan Calarco 5.100.82.38-4mamba - rebuilt after kernel configuration changes (3.0.4-3mamba) * Sun Sep 04 2011 Silvan Calarco 5.100.82.38-3mamba - automatic update by autodist * Fri Aug 19 2011 Silvan Calarco 5.100.82.38-2mamba - automatic update by autodist * Wed Apr 20 2011 Silvan Calarco 5.100.82.38-1mamba - update to 5.100.82.38 * Mon Feb 07 2011 Silvan Calarco 5.60.246.6-2mamba - automatic update by autodist * Fri Dec 17 2010 Silvan Calarco 5.60.246.6-1mamba - update to 5.60.246.6 * Thu Dec 16 2010 Silvan Calarco 5.60.48.36-2mamba - automatic rebuild by autodist * Fri Sep 10 2010 Silvan Calarco 5.60.48.36-1mamba - update to 5.60.48.36 * Wed Jun 30 2010 Silvan Calarco 5.10.91.9.3-4mamba - automatic rebuild by autodist * Sat Dec 26 2009 Silvan Calarco 5.10.91.9.3-3mamba - automatic rebuild by autodist * Tue Nov 03 2009 Ercole 'ercolinux' Carpanetto 5.10.91.9.3-2mamba - fixed the specfile to install the module in the correct path * Sat Oct 31 2009 Silvan Calarco 5.10.91.9.3-1mamba - update to 5.10.91.9.3 - package split from kernel-nongpl