67 lines
1.9 KiB
RPMSpec
67 lines
1.9 KiB
RPMSpec
Name: rtl8192eu
|
|
Version: 0.20190418git
|
|
Release: 2mamba
|
|
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
|
|
## GITSOURCE https://github.com/jeremyb31/rtl8192eu-linux-driver.git master
|
|
Source: https://github.com/jeremyb31/rtl8192eu-linux-driver.git/master/rtl8192eu-linux-driver-%{version}.tar.bz2
|
|
License: GPL
|
|
## AUTOBUILDREQ-BEGIN
|
|
## AUTOBUILDREQ-END
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
|
|
%description
|
|
rtl8192eu chipset for wireless adapters (D-Link DWA-131 rev E1 included!).
|
|
|
|
%prep
|
|
%setup -q -n %{name}-linux-driver-%{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
|
|
* 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
|