package created using the webbuild interface [release 5.2.20240517git.980fff2-1mamba;Wed Jun 05 2024]
This commit is contained in:
parent
6de9ff504e
commit
0cfcc4e93b
@ -1,2 +1,3 @@
|
||||
# rtl8812au-openhd
|
||||
|
||||
Patched rtl88xxau drivers for wifibroadcast.
|
||||
|
64
rtl8812au-openhd.spec
Normal file
64
rtl8812au-openhd.spec
Normal file
@ -0,0 +1,64 @@
|
||||
%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
|
Loading…
Reference in New Issue
Block a user