Move the conditional the top to clarify its scope

This conditional impacts the whole spec, and generally these things
are at the top of the spec to make it clear and avoid random scoping
issues at spec parse time.
This commit is contained in:
Neal Gompa 2021-06-08 06:27:02 -04:00
parent 629ab3ccc2
commit 59975932b8

View File

@ -1,3 +1,12 @@
# Fedora does not support CONFIG_MODVERSIONS. Without kabi support
# weak-modules is useless at best, and can be actively harmful.
%if 0%{?fedora}
%define with_weak_modules 0
%else
%define with_weak_modules 1
%endif
Name: kmod Name: kmod
Version: 29 Version: 29
Release: 2%{?dist} Release: 2%{?dist}
@ -44,14 +53,6 @@ Requires: %{name}-libs%{?_isa} = %{version}-%{release}
The kmod-devel package provides header files used for development of The kmod-devel package provides header files used for development of
applications that wish to load or unload Linux kernel modules. applications that wish to load or unload Linux kernel modules.
# Fedora does not support CONFIG_MODVERSIONS. Without kabi support
# weak-modules is useless at best, and can be actively harmful.
%if 0%{?fedora}
%define with_weak_modules 0
%else
%define with_weak_modules 1
%endif
%prep %prep
%autosetup -p1 %autosetup -p1