rtl8192eu/rtl8192eu.spec

69 lines
2.0 KiB
RPMSpec
Raw Normal View History

Name: rtl8192eu
Version: 5.2.19.1.20210418git
Release: 1mamba
Summary: rtl8192eu chipset for wireless adapters (D-Link DWA-131 rev E1 included!)
Group: System/Kernel and Hardware
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://github.com/jeremyb31/rtl8192eu-linux-driver
Source: https://github.com/clnhub/rtl8192eu-linux.git/master/rtl8192eu-linux-%{version}.tar.bz2
#Source: https://github.com/jeremyb31/rtl8192eu-linux-driver.git/master/rtl8192eu-linux-driver-%{version}.tar.bz2
License: GPL
## AUTOBUILDREQ-BEGIN
## AUTOBUILDREQ-END
%description
rtl8192eu chipset for wireless adapters (D-Link DWA-131 rev E1 included!).
%prep
%setup -q -n %{name}-linux-%{version}
%build
%check
%make
:
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
install -d -m0755 %{buildroot}%{_prefix}/src/%{name}-%{version}
cp -a * %{buildroot}%{_prefix}/src/%{name}-%{version}
install -d -m0755 %{buildroot}%{_modprobedir}
cat > %{buildroot}%{_modprobedir}/%{name}.conf << _EOF
blacklist rtl8xxxu
_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)
%{_modprobedir}/%{name}.conf
%dir %{_prefix}/src/rtl8192eu-%{version}
%{_prefix}/src/rtl8192eu-%{version}/*
%changelog
* Sun Apr 18 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 5.2.19.1.20210418git-1mamba
- update to 5.2.19.1.20210418git
* Thu Apr 18 2019 Silvan Calarco <silvan.calarco@mambasoft.it> 0.20190418git-2mamba
- blacklist rtl8xxxu in modprobe file
* Thu Apr 18 2019 Silvan Calarco <silvan.calarco@mambasoft.it> 0.20190418git-1mamba
- package created using the webbuild interface