mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-12-26 03:09:34 +03:00
Fix rebuildable RPMs for el6/ch5
When rebuilding the source RPM under el5 you need to append the target_cpu. However, under el6/ch5 things are packaged correctly and the arch is already part of kver. For this reason it also needs to be stripped from kver when setting kverpkg.
This commit is contained in:
parent
a40c3fca6f
commit
96cdefab84
@ -94,15 +94,19 @@
|
|||||||
%endif
|
%endif
|
||||||
%define kpkg kernel
|
%define kpkg kernel
|
||||||
%define kdevpkg kernel-devel
|
%define kdevpkg kernel-devel
|
||||||
%if %{defined el6}
|
%if %{defined el6} || %{defined ch5}
|
||||||
%define kverpkg %(echo %{kver} | %{__sed} -e 's/.%{_target_cpu}//g')
|
%define kverpkg %(echo %{kver} | %{__sed} -e 's/.%{_target_cpu}//g')
|
||||||
%else
|
%else
|
||||||
%define kverpkg %{kver}
|
%define kverpkg %{kver}
|
||||||
%endif
|
%endif
|
||||||
%define koppkg =
|
%define koppkg =
|
||||||
%if %{undefined kdir}
|
%if %{undefined kdir}
|
||||||
|
%if %{defined el6} || %{defined ch5}
|
||||||
|
%define kdir %{_usrsrc}/kernels/%{kver}
|
||||||
|
%else
|
||||||
%define kdir %{_usrsrc}/kernels/%{kver}-%{_target_cpu}
|
%define kdir %{_usrsrc}/kernels/%{kver}-%{_target_cpu}
|
||||||
%endif
|
%endif
|
||||||
|
%endif
|
||||||
%if %{undefined kobj}
|
%if %{undefined kobj}
|
||||||
%define kobj %{kdir}
|
%define kobj %{kdir}
|
||||||
%endif
|
%endif
|
||||||
|
Loading…
Reference in New Issue
Block a user