commit c1fa7e7ea03d9fd186d54be69e79a17d2ac092a7
Author: Nicolas Chauvet <kwizart(a)gmail.com>
Date: Thu Oct 14 10:23:09 2021 +0200
Fix patch application
wireguard-kmod.spec | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
---
diff --git a/wireguard-kmod.spec b/wireguard-kmod.spec
index 67ddd90..0868ef4 100644
--- a/wireguard-kmod.spec
+++ b/wireguard-kmod.spec
@@ -39,9 +39,12 @@ This package contains the kmod module for WireGuard.
# print kmodtool output for debugging purposes:
kmodtool --target %{_target_cpu} --repo rpmfusion --kmodname %{name}
%{?buildforkernels:--%{buildforkernels}} %{?kernels:--for-kernels "%{?kernels}"}
2>/dev/null
-%autosetup -c -T -a 0 -p 1
+%setup -q -c -T -a 0
for kernel_version in %{?kernel_versions} ; do
+ %patch0 -p1
+ %patch1 -p1
+ %patch2 -p1
cp -a wireguard-linux-compat-%{version} _kmod_build_${kernel_version%%___*}
done