mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-12-26 11:19:32 +03:00
Fix definitions for the unknown distro/installation
If the distro/installation really is unsupported (i.e. unknown) we should not make it look like a known distribution (i.e. RHEL) complete with dependencies on other RPMs and trying to find kenrel source in the RH standard location. Additionally add 'k' prefix for kernel requires for consistency.
This commit is contained in:
parent
534c4e38cb
commit
3cce0f1365
@ -125,14 +125,11 @@
|
|||||||
|
|
||||||
# Unsupported distro:
|
# Unsupported distro:
|
||||||
%if %{undefined kver}
|
%if %{undefined kver}
|
||||||
%define kver X
|
%define kver %(uname -r)
|
||||||
%endif
|
%endif
|
||||||
%define kpkg kernel
|
|
||||||
%define kdevpkg kernel-devel
|
|
||||||
%define kverpkg %{kver}
|
%define kverpkg %{kver}
|
||||||
%define koppkg =
|
|
||||||
%if %{undefined kdir}
|
%if %{undefined kdir}
|
||||||
%define kdir %{_usrsrc}/kernels/%{kver}
|
%define kdir /lib/modules/%{kver}/build
|
||||||
%endif
|
%endif
|
||||||
%if %{undefined kobj}
|
%if %{undefined kobj}
|
||||||
%define kobj %{kdir}
|
%define kobj %{kdir}
|
||||||
@ -159,9 +156,13 @@
|
|||||||
%else
|
%else
|
||||||
%define relext %(echo %{kverpkg} | %{__sed} -e 's/-/_/g')
|
%define relext %(echo %{kverpkg} | %{__sed} -e 's/-/_/g')
|
||||||
%define release @SPL_META_RELEASE@_%{relext}
|
%define release @SPL_META_RELEASE@_%{relext}
|
||||||
%define requires %{kpkg} %{koppkg} %{kverpkg}
|
%if %{defined kpkg}
|
||||||
|
%define krequires %{kpkg} %{koppkg} %{kverpkg}
|
||||||
|
%endif
|
||||||
|
%if %{defined kdevpkg}
|
||||||
%define devel_requires %{kdevpkg} %{koppkg} %{kverpkg}
|
%define devel_requires %{kdevpkg} %{koppkg} %{kverpkg}
|
||||||
%endif
|
%endif
|
||||||
|
%endif
|
||||||
|
|
||||||
Summary: Solaris Porting Layer Modules
|
Summary: Solaris Porting Layer Modules
|
||||||
Group: Utilities/System
|
Group: Utilities/System
|
||||||
@ -172,8 +173,12 @@ License: @LICENSE@
|
|||||||
URL: git://eris.llnl.gov/spl.git
|
URL: git://eris.llnl.gov/spl.git
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-%(%{__id} -un)
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-%(%{__id} -un)
|
||||||
Source: @PACKAGE@-%{version}.tar.gz
|
Source: @PACKAGE@-%{version}.tar.gz
|
||||||
Requires: %{requires}
|
%if %{defined krequires}
|
||||||
|
Requires: %{krequires}
|
||||||
|
%endif
|
||||||
|
%if %{defined kdevpkg}
|
||||||
BuildRequires: %{kdevpkg}
|
BuildRequires: %{kdevpkg}
|
||||||
|
%endif
|
||||||
|
|
||||||
%description
|
%description
|
||||||
The %{name} package contains kernel modules for emulating Solaris style
|
The %{name} package contains kernel modules for emulating Solaris style
|
||||||
@ -184,8 +189,12 @@ taskq, thread, time, and vnode APIs.
|
|||||||
%package devel
|
%package devel
|
||||||
Summary: Solaris Porting Layer Headers and Symbols
|
Summary: Solaris Porting Layer Headers and Symbols
|
||||||
Group: Development/Libraries
|
Group: Development/Libraries
|
||||||
|
%if %{defined devel_requires}
|
||||||
Requires: %{devel_requires}
|
Requires: %{devel_requires}
|
||||||
|
%endif
|
||||||
|
%if %{defined kdevpkg}
|
||||||
BuildRequires: %{kdevpkg}
|
BuildRequires: %{kdevpkg}
|
||||||
|
%endif
|
||||||
|
|
||||||
%description devel
|
%description devel
|
||||||
The %{name}-devel package contains the header files and Module{s}.symvers
|
The %{name}-devel package contains the header files and Module{s}.symvers
|
||||||
|
Loading…
Reference in New Issue
Block a user