[packages/rpm-build-macros] - moved _{host,target}_base_arch macros where they belong (kernel specific) - translate x32 to x86_6

baggins baggins at pld-linux.org
Sat Jan 3 17:36:46 CET 2015


commit d9c557d8ab30eca9467b210845a04bb6fee83671
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Sat Jan 3 17:35:37 2015 +0100

    - moved _{host,target}_base_arch macros where they belong (kernel specific)
    - translate x32 to x86_64 for kernel purposes

 rpm-build-macros.spec | 2 +-
 rpm.macros            | 3 ---
 rpm.macros.kernel     | 3 +++
 3 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/rpm-build-macros.spec b/rpm-build-macros.spec
index cdc8fe3..bc9de94 100644
--- a/rpm-build-macros.spec
+++ b/rpm-build-macros.spec
@@ -1,4 +1,4 @@
-%define		rpm_macros_rev	1.704
+%define		rpm_macros_rev	1.705
 %define		find_lang_rev	1.36
 Summary:	PLD Linux RPM build macros
 Summary(pl.UTF-8):	Makra do budowania pakietów RPM dla Linuksa PLD
diff --git a/rpm.macros b/rpm.macros
index 290c64e..6dbec27 100644
--- a/rpm.macros
+++ b/rpm.macros
@@ -1147,9 +1147,6 @@ fi; \
 %xmms_effect_plugindir		%{expand:%%global xmms_effect_plugindir %(xmms-config --effect-plugin-dir 2>/dev/null || echo ERROR)}%xmms_effect_plugindir
 %xmms_general_plugindir		%{expand:%%global xmms_general_plugindir %(xmms-config --general-plugin-dir 2>/dev/null || echo ERROR)}%xmms_general_plugindir
 
-%_host_base_arch	%{expand:%%global _host_base_arch %(echo %{_host_cpu} | sed 's/i.86/i386/;s/athlon/i386/;s/pentium./i386/;s/amd64/x86_64/;s/ia32e/x86_64/;s/sparcv./sparc/;s/arm.*/arm/')}%_host_base_arch
-%_target_base_arch	%{expand:%%global _target_base_arch %(echo %{_target_cpu} | sed 's/i.86/i386/;s/athlon/i386/;s/pentium./i386/;s/amd64/x86_64/;s/ia32e/x86_64/;s/sparcv./sparc/;s/arm.*/arm/')}%_target_base_arch
-
 # user/group checking macros
 #
 # Usage:
diff --git a/rpm.macros.kernel b/rpm.macros.kernel
index 98b91e5..096067c 100644
--- a/rpm.macros.kernel
+++ b/rpm.macros.kernel
@@ -90,6 +90,9 @@ done)
 # package version to be used in @release field
 %_kernel_ver_str	%(echo %{__kernel_qf %{V}-%{R}} | tr '-' '_')
 
+%_host_base_arch	%{expand:%%global _host_base_arch %(echo %{_host_cpu} | sed 's/i.86/i386/;s/athlon/i386/;s/pentium./i386/;s/amd64/x86_64/;s/ia32e/x86_64/;s/x32/x86_64/;s/sparcv./sparc/;s/arm.*/arm/')}%_host_base_arch
+%_target_base_arch	%{expand:%%global _target_base_arch %(echo %{_target_cpu} | sed 's/i.86/i386/;s/athlon/i386/;s/pentium./i386/;s/amd64/x86_64/;s/ia32e/x86_64/;s/x32/x86_64/;s/sparcv./sparc/;s/arm.*/arm/')}%_target_base_arch
+
 #-----------------------------------------------------------------
 # Find and gzip all kernel modules
 #
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/rpm-build-macros.git/commitdiff/d9c557d8ab30eca9467b210845a04bb6fee83671



More information about the pld-cvs-commit mailing list