Hardcoding target cpu in _target_platform macro breaks noarch packages
and makes them unusable on hosts that do not support x86_64-... platform
(e.g. i686).
RPM redefines _target_cpu while building noarch packages, so this change
sets _target_cpu for x32 and makes _target_platform use _target_cpu.
# Multilibs
%_multilibno 1
%_multilibpatt (/%{_lib}|/usr/%{_lib}(|/gconv)|/usr/local/%{_lib}|/usr/X11R6/%{_lib}|/opt/%{_lib})/[^/]*\\.([oa]|la|so[0-9.]*)$
-/668 0 0 0 644 1091 `
+/668 0 0 0 644 1120 `
# Per-platform rpm configuration file.
#==============================================================================
%_arch x32
%_os linux
%_gnu -gnux32
-%_target_platform x86_64-%{_target_vendor}-%{_target_os}%{?_gnu}
+%_target_cpu x86_64
+%_target_platform %{_target_cpu}-%{_target_vendor}-%{_target_os}%{?_gnu}
%optflags %{?__common_cflags_with_ssp:%{__common_cflags_with_ssp} -fPIC}%{!?__common_cflags_with_ssp:-O2 -g} -mtune=generic -march=x86-64 %{!?nospecflags:%{?specflags_x32}}
#==============================================================================
# ---- 0x1 - x86, 0x2 - x86_64 (rpm default), 0x4 - x32
%_prefer_color 0x4
-
/686 0 0 0 644 725 `
# Per-platform rpm configuration file.
Summary(uk.UTF-8): Менеджер пакетів від RPM
Name: rpm
Version: 5.4.15
-Release: 15
+Release: 16
License: LGPL v2.1
Group: Base
# http://rpm5.org/files/rpm/rpm-5.4/rpm-5.4.15-0.20140824.src.rpm