broadcom-sta/broadcom-sta.spec

189 lines
6.5 KiB
RPMSpec

%define broadcom_sta_ver %(echo %version | tr . _)
Name: broadcom-sta
Version: 6.30.223.248
Epoch: 1
Release: 2mamba
Summary: Broadcom STA driver for BCM4311-,BCM4312-,BCM4313-,BCM4321-,BCM4322-,BCM43224-,BCM43225-,BCM43227-,BCM43228- based hardware
Group: System/Kernel and Hardware/Drivers
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
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
Patch4: broadcom-sta-6.30.223.141-gcc-4.9.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
Broadcom STA driver for BCM4311-, BCM4312-, BCM4313-, BCM4321-, BCM4322-, BCM43224-, and BCM43225-, BCM43227- and BCM43228-based hardware.
%prep
%setup -q -n %{name}-%{version} -c %{name}-%{version} -T
%ifarch x86_64
tar xzf %{SOURCE1}
%else
tar xzf %{SOURCE0}
%endif
#%patch3 -p2
%patch4 -p1
%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.conf << __EOF
blacklist b43
blacklist ssb
blacklist bcma
blacklist brcmsmac
__EOF
mkdir -p %{buildroot}%{_prefix}/lib/modules-load.d/
cat > %{buildroot}%{_prefix}/lib/modules-load.d/wl.conf << __EOF
lib80211_crypt_tkip
__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.conf
%{_prefix}/lib/modules-load.d/wl.conf
%dir %{_prefix}/src/%{name}-%{version}
%{_prefix}/src/%{name}-%{version}/*
%{_docdir}/broadcom-sta-%{broadcom_sta_ver}/LICENSE.txt
%changelog
* Wed Jan 14 2015 Silvan Calarco <silvan.calarco@mambasoft.it> 6.30.223.248-2mamba
- load module lib80211_crypt_tkip to fix problems with some ap
* Thu Oct 30 2014 Silvan Calarco <silvan.calarco@mambasoft.it> 6.30.223.248-1mamba
- update to 6.30.223.248
* Tue Jul 01 2014 Silvan Calarco <silvan.calarco@mambasoft.it> 6.30.223.141-3mamba
- patched against gcc 4.9 and fix uncompressing 64 bit package for x86_64
* Thu Jun 12 2014 Silvan Calarco <silvan.calarco@mambasoft.it> 6.30.223.141-2mamba
- fix modprobe.d blacklist name by removing %{KERNEL_VER}
* Sun Sep 15 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 6.30.223.141-1mamba
- update to 6.30.223.141
- switch to dkms
* Fri Jan 04 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 5.100.82.38-13mamba
- kernel 3.4 rebuild
* Thu Nov 22 2012 Silvan Calarco <silvan.calarco@mambasoft.it> 5.100.82.38-12mamba
- provide kernelwireless-%{KERNEL_TARGET} instead of kernelwireless
* Mon Nov 05 2012 Silvan Calarco <silvan.calarco@mambasoft.it> 5.100.82.38-11mamba
- bump release up for milestone2
* Sat Oct 27 2012 Silvan Calarco <silvan.calarco@mambasoft.it> 5.100.82.38-9mamba
- kernel 3.6 rebuild
* Sat Jun 30 2012 Silvan Calarco <silvan.calarco@mambasoft.it> 5.100.82.38-8mamba
- automatic update by autodist
* Sun Feb 12 2012 Silvan Calarco <silvan.calarco@mambasoft.it> 5.100.82.38-7mamba
- automatic update by autodist
* Wed Jan 25 2012 Silvan Calarco <silvan.calarco@mambasoft.it> 5.100.82.38-6mamba
- automatic update by autodist
* Sun Oct 30 2011 Silvan Calarco <silvan.calarco@mambasoft.it> 5.100.82.38-5mamba
- also blacklist bcma and brcmsmac modules
* Sat Oct 08 2011 Silvan Calarco <silvan.calarco@mambasoft.it> 5.100.82.38-4mamba
- rebuilt after kernel configuration changes (3.0.4-3mamba)
* Sun Sep 04 2011 Silvan Calarco <silvan.calarco@mambasoft.it> 5.100.82.38-3mamba
- automatic update by autodist
* Fri Aug 19 2011 Silvan Calarco <silvan.calarco@mambasoft.it> 5.100.82.38-2mamba
- automatic update by autodist
* Wed Apr 20 2011 Silvan Calarco <silvan.calarco@mambasoft.it> 5.100.82.38-1mamba
- update to 5.100.82.38
* Mon Feb 07 2011 Silvan Calarco <silvan.calarco@mambasoft.it> 5.60.246.6-2mamba
- automatic update by autodist
* Fri Dec 17 2010 Silvan Calarco <silvan.calarco@mambasoft.it> 5.60.246.6-1mamba
- update to 5.60.246.6
* Thu Dec 16 2010 Silvan Calarco <silvan.calarco@mambasoft.it> 5.60.48.36-2mamba
- automatic rebuild by autodist
* Fri Sep 10 2010 Silvan Calarco <silvan.calarco@mambasoft.it> 5.60.48.36-1mamba
- update to 5.60.48.36
* Wed Jun 30 2010 Silvan Calarco <silvan.calarco@mambasoft.it> 5.10.91.9.3-4mamba
- automatic rebuild by autodist
* Sat Dec 26 2009 Silvan Calarco <silvan.calarco@mambasoft.it> 5.10.91.9.3-3mamba
- automatic rebuild by autodist
* Tue Nov 03 2009 Ercole 'ercolinux' Carpanetto <ercole69@gmail.com> 5.10.91.9.3-2mamba
- fixed the specfile to install the module in the correct path
* Sat Oct 31 2009 Silvan Calarco <silvan.calarco@mambasoft.it> 5.10.91.9.3-1mamba
- update to 5.10.91.9.3
- package split from kernel-nongpl