change configure.sh to macro, change setup to autosetup

This commit is contained in:
halfcyan
2026-01-01 22:24:01 -07:00
parent f54c6ea682
commit 2fce0f882a
+2 -5
View File
@@ -48,10 +48,7 @@ This package contains the OpenZFS kernel modules built using akmods.
kmodtool --target %{_target_cpu} --repo terra.fyralabs.com --kmodname %{modulename} %{?buildforkernels:--%{buildforkernels}} %{?kernels:--for-kernels "%{?kernels}"} 2>/dev/null
%setup -q -c
(cd zfs-%{version}
)
%autosetup
for kernel_version in %{?kernel_versions} ; do
cp -a zfs-%{version} _kmod_build_${kernel_version%%___*}
done
@@ -62,7 +59,7 @@ for kernel_version in %{?kernel_versions} ; do
./autogen.sh
./configure \
%configure% \
--with-config=kernel \
--with-linux=${kernel_version##*___} \
--with-linux-obj=${kernel_version##*___}