From d53c965a0ed303ed7999729dc16d4fc771a50f39 Mon Sep 17 00:00:00 2001 From: Zdenek Veleba Date: Fri, 20 Aug 2021 13:51:33 +0200 Subject: [PATCH] Fix spec template for RHEL-9 On RHEL-9 nothing provides kernel-abi-whitelists, now there is kernel-abi-stablelists instead. --- templates/spec | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/templates/spec b/templates/spec index f561083..05d7d58 100644 --- a/templates/spec +++ b/templates/spec @@ -21,7 +21,9 @@ %endif %if "%{kmod_dist_build_deps}" == "" -%if (0%{?rhel} > 7) || (0%{?centos} > 7) +%if (0%{?rhel} > 8) || (0%{?centos} > 8) +%define kmod_dist_build_deps redhat-rpm-config kernel-abi-stablelists elfutils-libelf-devel kernel-rpm-macros kmod +%elif (0%{?rhel} > 7) || (0%{?centos} > 7) %define kmod_dist_build_deps redhat-rpm-config kernel-abi-whitelists elfutils-libelf-devel kernel-rpm-macros kmod %else %define kmod_dist_build_deps redhat-rpm-config kernel-abi-whitelists