2024-01-05 17:31:40 +01:00
|
|
|
Name: rtl8723bs
|
2024-01-05 17:31:40 +01:00
|
|
|
Version: 20161026git
|
2024-01-05 17:31:40 +01:00
|
|
|
Release: 1mamba
|
|
|
|
Summary: Realtek SDIO Wi-Fi driver
|
|
|
|
Group: System/Kernel and Hardware
|
|
|
|
Vendor: openmamba
|
|
|
|
Distribution: openmamba
|
|
|
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
|
|
|
URL: https://github.com/hadess/rtl8723bs
|
|
|
|
## GITSOURCE https://github.com/hadess/rtl8723bs.git master
|
|
|
|
Source: https://github.com/hadess/rtl8723bs.git/master/rtl8723bs-%{version}.tar.bz2
|
|
|
|
License: GPL
|
|
|
|
## AUTOBUILDREQ-BEGIN
|
|
|
|
## AUTOBUILDREQ-END
|
|
|
|
Requires(post):kernelheaders
|
|
|
|
Requires(post):dkms
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
|
|
|
|
|
|
%description
|
2024-01-05 17:31:40 +01:00
|
|
|
Realtek SDIO Wi-Fi driver.
|
2024-01-05 17:31:40 +01:00
|
|
|
|
|
|
|
Tested on:
|
|
|
|
|
|
|
|
Onda v975w
|
|
|
|
Teclast 3G
|
|
|
|
HP Stream 7
|
|
|
|
Dell Venue 8 3000
|
|
|
|
WinBook TW100 and TW700
|
|
|
|
Acer Aspire Switch 10E
|
|
|
|
Lenovo Miix 3-830
|
|
|
|
Medion Akoya S2217
|
|
|
|
Chuwi Hi12
|
|
|
|
|
|
|
|
%debug_package
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
|
|
|
%install
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
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 KSRC=\"\${kernel_source_dir}\""
|
|
|
|
CLEAN="make KSRC=\"\${kernel_source_dir}\" clean"
|
2024-01-05 17:31:40 +01:00
|
|
|
BUILT_MODULE_NAME=r8723bs
|
2024-01-05 17:31:40 +01:00
|
|
|
BUILT_MODULE_LOCATION=.
|
|
|
|
DEST_MODULE_LOCATION=/extra/drivers/net/wireless/
|
|
|
|
REMAKE_INITRD=no
|
|
|
|
AUTOINSTALL=yes
|
|
|
|
_EOF
|
|
|
|
|
|
|
|
%check
|
|
|
|
for d in /lib/modules/4.*/build; do
|
|
|
|
kver=`echo $d|sed "s|/lib/modules/\(.*\)/build.*|\1|"`
|
|
|
|
%ifnarch arm
|
|
|
|
[ "${kver/arm}" != "${kver}" ] && continue
|
|
|
|
%endif
|
|
|
|
[ "${kver:0:3}" == "4.0" -o "${kver:0:3}" == "4.1" ] && continue
|
|
|
|
rm -f *.ko
|
|
|
|
make KSRC="$d"
|
|
|
|
[ -e r8723bs.ko ] || exit 1
|
|
|
|
done
|
|
|
|
|
|
|
|
%clean
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
|
|
|
|
%preun
|
|
|
|
# erase
|
|
|
|
if [ $1 -eq 0 ]; then
|
|
|
|
dkms remove -q -m %{name} -v %{version} --all
|
|
|
|
fi
|
|
|
|
:
|
|
|
|
|
|
|
|
%post
|
|
|
|
if [ $1 -ge 1 ]; then
|
|
|
|
dkms add -q -m %{name} -v %{version}
|
|
|
|
dkms install -q -m %{name} -v %{version} --force
|
|
|
|
fi
|
|
|
|
:
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%dir %{_prefix}/src/%{name}-%{version}
|
|
|
|
%{_prefix}/src/%{name}-%{version}/*
|
|
|
|
|
|
|
|
%changelog
|
2024-01-05 17:31:40 +01:00
|
|
|
* Wed Oct 26 2016 Silvan Calarco <silvan.calarco@mambasoft.it> 20161026git-1mamba
|
|
|
|
- update to 20161026git
|
|
|
|
|
2024-01-05 17:31:40 +01:00
|
|
|
* Sun Jul 31 2016 Silvan Calarco <silvan.calarco@mambasoft.it> 20160731git-1mamba
|
|
|
|
- package created using the webbuild interface
|