mirror of
https://github.com/versity/scoutfs.git
synced 2026-06-03 18:26:21 +00:00
Closer target kernel tracking
- This makes ScoutFS packages more directly tied to a given kernel while still allowing for weak modules usage when possible. - For EL9, this still prevents the installation of kmod packages across minor releases, which no longer have strict kABI gurantees.
This commit is contained in:
@@ -7,6 +7,8 @@
|
||||
# take kernel version or default to uname -r
|
||||
%{!?kversion: %global kversion %(uname -r)}
|
||||
%global kernel_version %{kversion}
|
||||
%
|
||||
%define kernel_version_extra %(sed 's/.*-\\([0-9]\\+\\).*/\\1/' <<< "%{kernel_version}")
|
||||
|
||||
%if 0%{?el7}
|
||||
%global kernel_source() /usr/src/kernels/%{kernel_version}.$(arch)
|
||||
@@ -23,10 +25,12 @@ Name: kmod-%{kmod_name}
|
||||
%endif
|
||||
Summary: %{kmod_name} kernel module
|
||||
Version: %{kmod_version}
|
||||
Release: %{_release}%{?dist}
|
||||
Release: %{_release}.%{kernel_version_extra}%{?dist}
|
||||
License: GPLv2
|
||||
Group: System/Kernel
|
||||
URL: http://scoutfs.org/
|
||||
Requires: kernel-core-uname-r >= %{kernel_version}
|
||||
Requires: kernel-modules-uname-r >= %{kernel_version}
|
||||
|
||||
%if 0%{?el7}
|
||||
BuildRequires: %{kernel_module_package_buildreqs}
|
||||
|
||||
Reference in New Issue
Block a user