commit e4bd453126cc27b3fcaddd2ae75b92f3b90d164b
Author: Leigh Scott <leigh123linux(a)gmail.com>
Date: Tue Jul 27 14:14:11 2021 +0100
Manually install .ko files
xtables-addons-kmod.spec | 19 ++++++++-----------
1 file changed, 8 insertions(+), 11 deletions(-)
---
diff --git a/xtables-addons-kmod.spec b/xtables-addons-kmod.spec
index 1912ccf..c8ba2d9 100644
--- a/xtables-addons-kmod.spec
+++ b/xtables-addons-kmod.spec
@@ -11,7 +11,7 @@
Name: xtables-addons-kmod
Summary: Kernel module (kmod) for xtables-addons
Version: 3.18
-Release: 2%{?dist}
+Release: 3%{?dist}
License: GPLv2
URL:
https://inai.de/projects/xtables-addons/
Source0:
https://inai.de/files/xtables-addons/xtables-addons-%{version}.tar.xz
@@ -54,20 +54,17 @@ done
%install
-for kernel_version in %{?kernel_versions} ; do
- export XA_ABSTOPSRCDIR=${PWD}/_kmod_build_${kernel_version%%___*}
- make %{?_smp_mflags} V=1 -C "${kernel_version##*___}" \
- M=${PWD}/_kmod_build_${kernel_version%%___*}/extensions _emodinst_ \
-%if 0%{?fedora} < 33 || 0%{?rhel}
- INSTALL_MOD_PATH=%{buildroot}%{_prefix} \
-%else
- INSTALL_MOD_PATH=%{buildroot} \
-%endif
- ext-mod-dir=%{kmodinstdir_postfix}
+for kernel_version in %{?kernel_versions}; do
+ mkdir -p
$RPM_BUILD_ROOT/%{kmodinstdir_prefix}/${kernel_version%%___*}/%{kmodinstdir_postfix}/
+ install -D -m 0755 _kmod_build_${kernel_version%%___*}/extensions/*.ko \
+
$RPM_BUILD_ROOT/%{kmodinstdir_prefix}/${kernel_version%%___*}/%{kmodinstdir_postfix}/
done
%{?akmod_install}
%changelog
+* Tue Jul 27 2021 Leigh Scott <leigh123linux(a)gmail.com> - 3.18-3
+- Manually install .ko files
+
* Tue Jun 08 2021 Nicolas Chauvet <kwizart(a)gmail.com> - 3.18-2
- rebuilt