mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2025-01-14 04:00:31 +03:00
Minor spec file cleanup for srpm case.
Ensure kdevpkg is defined is srpm case before using it to define the devel_requires macro. Interestingly this is not an issue for rpm-4.7.1-4 but it is for rpm-4.4.2.3-18.
This commit is contained in:
parent
de7cc34821
commit
99879b257c
@ -22,7 +22,7 @@
|
|||||||
%define kobj %{require_kobj}
|
%define kobj %{require_kobj}
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
# SLES 10, SLES 11:
|
# SLES:
|
||||||
%if %{defined suse_version}
|
%if %{defined suse_version}
|
||||||
%if %{undefined kver}
|
%if %{undefined kver}
|
||||||
%ifarch ppc64
|
%ifarch ppc64
|
||||||
@ -104,7 +104,7 @@
|
|||||||
%endif
|
%endif
|
||||||
%else
|
%else
|
||||||
|
|
||||||
# Fedora 11:
|
# Fedora:
|
||||||
%if %{defined fedora}
|
%if %{defined fedora}
|
||||||
%if %{undefined kver}
|
%if %{undefined kver}
|
||||||
%define klnk %{_usrsrc}/kernels/*/include/config
|
%define klnk %{_usrsrc}/kernels/*/include/config
|
||||||
@ -152,7 +152,9 @@
|
|||||||
%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}
|
||||||
|
%if %{defined kdevpkg}
|
||||||
%define devel_requires %{kdevpkg}
|
%define devel_requires %{kdevpkg}
|
||||||
|
%endif
|
||||||
%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}
|
||||||
|
Loading…
Reference in New Issue
Block a user