mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-12-27 03:19:35 +03:00
Simplify the kernel depenency logic
This commit is contained in:
parent
af971a8594
commit
ac12b26284
33
spl.spec.in
33
spl.spec.in
@ -88,28 +88,23 @@
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
# Distro agnostic:
|
# Distro agnostic:
|
||||||
%define debug_package %{nil}
|
%define name @PACKAGE@
|
||||||
|
%define version @VERSION@
|
||||||
|
%define debug_package %{nil}
|
||||||
|
|
||||||
%define name @PACKAGE@
|
# The kernel version should only be appended to a binary RPM. When
|
||||||
%define version @VERSION@
|
# building a source RPM it must be kernel version agnostic. This means
|
||||||
|
# the source RPM must never specify a required kernel version, but the
|
||||||
# The kernel version should only be appended to a binary RPM.
|
# final RPM should be keyed to the kernel version it was built against.
|
||||||
# When building a source RPM it must be kernel version agnostic.
|
|
||||||
%if %{defined build_src_rpm}
|
%if %{defined build_src_rpm}
|
||||||
%define release @SPL_META_RELEASE@
|
%define release @SPL_META_RELEASE@
|
||||||
|
%define requires %{kpkg}
|
||||||
|
%define buildrequires %{kdevpkg}
|
||||||
%else
|
%else
|
||||||
%define release @SPL_META_RELEASE@_%(echo %{kverpkg} | %{__sed} -e 's/-/_/g')
|
%define release @SPL_META_RELEASE@_%(echo %{kverpkg} |
|
||||||
%endif
|
%{__sed} -e 's/-/_/g')
|
||||||
|
%define requires %{kpkg} = %{kverpkg}
|
||||||
# Required by mock to ensure valid 'Requires' and 'BuildRequires' fields
|
%define buildrequires %{kdevpkg} = %{kverpkg}
|
||||||
# are set even when a specific kernel version was not requested. This is
|
|
||||||
# used when mock is attempting to rebuild the srpm for the latest kernel.
|
|
||||||
%if %{defined require_kver}
|
|
||||||
%define requires %{kpkg}=%{kverpkg}
|
|
||||||
%define buildrequires %{kdevpkg}=%{kverpkg}
|
|
||||||
%else
|
|
||||||
%define requires %{kpkg}
|
|
||||||
%define buildrequires %{kdevpkg}
|
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
Summary: Solaris Porting Layer
|
Summary: Solaris Porting Layer
|
||||||
|
Loading…
Reference in New Issue
Block a user