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:
parent
629ab3ccc2
commit
59975932b8
17
kmod.spec
17
kmod.spec
@ -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
|
||||
Version: 29
|
||||
Release: 2%{?dist}
|
||||
@ -44,14 +53,6 @@ Requires: %{name}-libs%{?_isa} = %{version}-%{release}
|
||||
The kmod-devel package provides header files used for development of
|
||||
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
|
||||
%autosetup -p1
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user