65 lines
1.6 KiB
RPMSpec
65 lines
1.6 KiB
RPMSpec
|
%define modname rtl8812au_ohd
|
||
|
Name: rtl8812au-openhd
|
||
|
Version: 5.2.20240517git.980fff2
|
||
|
Release: 1mamba
|
||
|
Summary: Patched rtl88xxau drivers for wifibroadcast
|
||
|
Group: System/Kernel and Hardware
|
||
|
Vendor: openmamba
|
||
|
Distribution: openmamba
|
||
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
||
|
URL: https://github.com/OpenHD/rtl8812au
|
||
|
Source: https://github.com/OpenHD/rtl8812au.git/v5.2.20@980fff2/rtl8812au-%{version}.tar.bz2
|
||
|
License: GPL
|
||
|
## AUTOBUILDREQ-BEGIN
|
||
|
## AUTOBUILDREQ-END
|
||
|
Requires(post): bc
|
||
|
Requires(post): dkms
|
||
|
Requires(post): kernelheaders
|
||
|
|
||
|
%description
|
||
|
Patched rtl88xxau drivers for wifibroadcast.
|
||
|
|
||
|
#% debug_package
|
||
|
|
||
|
%prep
|
||
|
%setup -q -n rtl8812au-%{version}
|
||
|
sed -i "s|\(PACKAGE_NAME=\).*|\1\"%{modname}\"|" dkms.conf
|
||
|
sed -i "s|\(PACKAGE_VERSION=\).*|\1%{version}|" dkms.conf
|
||
|
|
||
|
%build
|
||
|
|
||
|
%install
|
||
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
||
|
install -d -m0755 %{buildroot}%{_prefix}/src/%{modname}-%{version}
|
||
|
cp -a * %{buildroot}%{_prefix}/src/%{modname}-%{version}
|
||
|
|
||
|
%check
|
||
|
%make
|
||
|
|
||
|
%clean
|
||
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
||
|
|
||
|
%preun
|
||
|
# erase
|
||
|
if [ $1 -eq 0 ]; then
|
||
|
dkms remove -q -m %{modname} -v %{version} --all
|
||
|
fi
|
||
|
:
|
||
|
|
||
|
%post
|
||
|
if [ $1 -ge 1 ]; then
|
||
|
dkms add -q -m %{modname} -v %{version}
|
||
|
dkms install -q -m %{modname} -v %{version} --force
|
||
|
fi
|
||
|
:
|
||
|
|
||
|
%files
|
||
|
%defattr(-,root,root)
|
||
|
%dir %{_prefix}/src/%{modname}-%{version}
|
||
|
%{_prefix}/src/%{modname}-%{version}/*
|
||
|
%doc LICENSE
|
||
|
|
||
|
%changelog
|
||
|
* Wed Jun 05 2024 Silvan Calarco <silvan.calarco@mambasoft.it> 5.2.20240517git.980fff2-1mamba
|
||
|
- package created using the webbuild interface
|