62 lines
1.7 KiB
RPMSpec
62 lines
1.7 KiB
RPMSpec
%define git_commit %(echo %version | cut -d. -f5)
|
|
Name: rtl8812au
|
|
Version: 5.13.6.20240603git.b350eb8
|
|
Release: 1mamba
|
|
Summary: Linux Driver for USB WiFi Adapters that are based on the RTL8812AU Chipset
|
|
Group: System/Kernel and Hardware
|
|
Vendor: openmamba
|
|
Distribution: openmamba
|
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
|
URL: https://github.com/morrownr/8812au-20210820
|
|
Source: https://github.com/morrownr/8812au-20210820.git/main@%{git_commit}/8812au-20210820-%{version}.tar.bz2
|
|
License: GPL
|
|
## AUTOBUILDREQ-BEGIN
|
|
## AUTOBUILDREQ-END
|
|
Requires(post): kernelheaders
|
|
Requires(post): dkms
|
|
|
|
%description
|
|
Linux Driver for USB WiFi Adapters that are based on the RTL8812AU Chipset.
|
|
|
|
%prep
|
|
%setup -q -n 8812au-20210820-%{version}
|
|
|
|
%build
|
|
|
|
%install
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
install -d -m0755 %{buildroot}%{_prefix}/src/%{name}-%{version}
|
|
cp -a * %{buildroot}%{_prefix}/src/%{name}-%{version}
|
|
sed -i "s/@_PKGBASE@/%{name}/" %{buildroot}%{_prefix}/src/%{name}-%{version}/dkms.conf
|
|
sed -i "s/@PKGVER@/%{version}/" %{buildroot}%{_prefix}/src/%{name}-%{version}/dkms.conf
|
|
|
|
%check
|
|
make
|
|
|
|
%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}/*
|
|
%doc LICENSE
|
|
|
|
%changelog
|
|
* Mon Jun 03 2024 Silvan Calarco <silvan.calarco@mambasoft.it> 5.13.6.20240603git.b350eb8-1mamba
|
|
- package created using the webbuild interface
|