mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-12-27 19:39:35 +03:00
Additional tuning to get the BuildRequires right for all cases.
pl.spec~
This commit is contained in:
parent
ac12b26284
commit
155189d4a7
19
spl.spec.in
19
spl.spec.in
@ -18,7 +18,7 @@
|
|||||||
%if %{defined sles_version}
|
%if %{defined sles_version}
|
||||||
%if %{undefined kver}
|
%if %{undefined kver}
|
||||||
%define klnk %{_usrsrc}/linux-obj/%{_target_cpu}/%{_target_cpu}
|
%define klnk %{_usrsrc}/linux-obj/%{_target_cpu}/%{_target_cpu}
|
||||||
%define kver %((echo unknown; %{__cat} %{klnk}/.kernelrelease
|
%define kver %((echo X; %{__cat} %{klnk}/.kernelrelease
|
||||||
2>/dev/null) | tail -1)
|
2>/dev/null) | tail -1)
|
||||||
%endif
|
%endif
|
||||||
%define kpkg kernel-%{_target_cpu}
|
%define kpkg kernel-%{_target_cpu}
|
||||||
@ -36,7 +36,7 @@
|
|||||||
%if %{defined ch4}
|
%if %{defined ch4}
|
||||||
%if %{undefined kver}
|
%if %{undefined kver}
|
||||||
%define klnk %{_usrsrc}/kernels/*/include/config
|
%define klnk %{_usrsrc}/kernels/*/include/config
|
||||||
%define kver %((echo unknown; %{__cat} %{klnk}/kernel.release
|
%define kver %((echo X; %{__cat} %{klnk}/kernel.release
|
||||||
2>/dev/null) | tail -1)
|
2>/dev/null) | tail -1)
|
||||||
%endif
|
%endif
|
||||||
%define kpkg chaos-kernel
|
%define kpkg chaos-kernel
|
||||||
@ -54,7 +54,7 @@
|
|||||||
%if %{defined fedora} || %{defined rhel}
|
%if %{defined fedora} || %{defined rhel}
|
||||||
%if %{undefined kver}
|
%if %{undefined kver}
|
||||||
%define klnk %{_usrsrc}/kernels/*/include/config
|
%define klnk %{_usrsrc}/kernels/*/include/config
|
||||||
%define kver %((echo unknown; %{__cat} %{klnk}/kernel.release
|
%define kver %((echo X; %{__cat} %{klnk}/kernel.release
|
||||||
2>/dev/null) | tail -1)
|
2>/dev/null) | tail -1)
|
||||||
%endif
|
%endif
|
||||||
%define kpkg kernel
|
%define kpkg kernel
|
||||||
@ -71,7 +71,7 @@
|
|||||||
|
|
||||||
# Unsupported distro:
|
# Unsupported distro:
|
||||||
%if %{undefined kver}
|
%if %{undefined kver}
|
||||||
%define kver unknown
|
%define kver X
|
||||||
%endif
|
%endif
|
||||||
%define kpkg kernel
|
%define kpkg kernel
|
||||||
%define kdevpkg kernel-devel
|
%define kdevpkg kernel-devel
|
||||||
@ -92,6 +92,7 @@
|
|||||||
%define version @VERSION@
|
%define version @VERSION@
|
||||||
%define debug_package %{nil}
|
%define debug_package %{nil}
|
||||||
|
|
||||||
|
|
||||||
# The kernel version should only be appended to a binary RPM. When
|
# The kernel version should only be appended to a binary RPM. When
|
||||||
# building a source RPM it must be kernel version agnostic. This means
|
# 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 source RPM must never specify a required kernel version, but the
|
||||||
@ -99,12 +100,10 @@
|
|||||||
%if %{defined build_src_rpm}
|
%if %{defined build_src_rpm}
|
||||||
%define release @SPL_META_RELEASE@
|
%define release @SPL_META_RELEASE@
|
||||||
%define requires %{kpkg}
|
%define requires %{kpkg}
|
||||||
%define buildrequires %{kdevpkg}
|
|
||||||
%else
|
%else
|
||||||
%define release @SPL_META_RELEASE@_%(echo %{kverpkg} |
|
%define relext %(echo %{kverpkg} | %{__sed} -e 's/-/_/g')
|
||||||
%{__sed} -e 's/-/_/g')
|
%define release @SPL_META_RELEASE@_%{relext}
|
||||||
%define requires %{kpkg} = %{kverpkg}
|
%define requires %{kpkg} = %{kverpkg}
|
||||||
%define buildrequires %{kdevpkg} = %{kverpkg}
|
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
Summary: Solaris Porting Layer
|
Summary: Solaris Porting Layer
|
||||||
@ -117,7 +116,7 @@ URL: git://eris.llnl.gov/spl.git
|
|||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-%(%{__id_u} -n)
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-%(%{__id_u} -n)
|
||||||
Source: %{name}-%{version}.tar.gz
|
Source: %{name}-%{version}.tar.gz
|
||||||
Requires: %{requires}
|
Requires: %{requires}
|
||||||
BuildRequires: %{buildrequires}
|
BuildRequires: %{kdevpkg}
|
||||||
|
|
||||||
%description
|
%description
|
||||||
The %{name} package contains kernel modules and support utilities for
|
The %{name} package contains kernel modules and support utilities for
|
||||||
@ -129,7 +128,7 @@ kstat, mutex, rwlock, taskq, thread, time, and vnode APIs.
|
|||||||
Summary: Solaris Porting Layer Headers and Symbols
|
Summary: Solaris Porting Layer Headers and Symbols
|
||||||
Group: Development/Libraries
|
Group: Development/Libraries
|
||||||
Requires: %{requires}
|
Requires: %{requires}
|
||||||
BuildRequires: %{buildrequires}
|
BuildRequires: %{kdevpkg}
|
||||||
|
|
||||||
%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