84 lines
2.4 KiB
RPMSpec
84 lines
2.4 KiB
RPMSpec
%define gittag %(echo %version | cut -d. -f5)
|
|
Name: rtl88x2bu
|
|
Epoch: 1
|
|
Version: 5.13.1.20230711git.12cfcd8
|
|
Release: 1mamba
|
|
Summary: Kernel module for Realtek rtl88x2bu WiFi chipset
|
|
Group: System/Kernel and Hardware
|
|
Vendor: openmamba
|
|
Distribution: openmamba
|
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
|
URL: https://github.com/RinCat/RTL88x2BU-Linux-Driver
|
|
Source: https://github.com/RinCat/RTL88x2BU-Linux-Driver.git/master@%{gittag}/RTL88x2BU-Linux-Driver-%{version}.tar.bz2
|
|
License: GPL
|
|
## AUTOBUILDREQ-BEGIN
|
|
## AUTOBUILDREQ-END
|
|
Requires(post): kernelheaders
|
|
Requires(post): dkms
|
|
Requires(post): bc
|
|
Obsoletes: 88x2bu <= 5.8.7.4
|
|
|
|
%description
|
|
Kernel module for Realtek rtl88x2bu WiFi chipset.
|
|
|
|
%prep
|
|
%setup -q -n RTL88x2BU-Linux-Driver-%{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/@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
|
|
* Thu Aug 17 2023 Silvan Calarco <silvan.calarco@mambasoft.it> 5.13.1.20230711git.12cfcd8-1mamba
|
|
- update to 5.13.1.20230711git.12cfcd8
|
|
|
|
* Sun Mar 12 2023 Silvan Calarco <silvan.calarco@mambasoft.it> 5.13.1.20221213git.a2ac3b2-1mamba
|
|
- update to 5.13.1.20221213git.a2ac3b2
|
|
|
|
* Tue Jun 14 2022 Silvan Calarco <silvan.calarco@mambasoft.it> 2202.05.29-1mamba
|
|
- update to 2202.05.29
|
|
|
|
* Sat Apr 30 2022 Automatic Build System <autodist@mambasoft.it> 2022.03.03-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Tue Jan 04 2022 Automatic Build System <autodist@mambasoft.it> 2021.12.04-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Fri Jul 09 2021 Automatic Build System <autodist@mambasoft.it> 2021.05.26-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Thu Jul 08 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 5.8.7.2.20210708git-1mamba
|
|
- package created using the webbuild interface
|