diff options
-rw-r--r-- | packaging/rpm-tizen_macros | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/packaging/rpm-tizen_macros b/packaging/rpm-tizen_macros index dbedbf7eb..fcb1a3cc7 100644 --- a/packaging/rpm-tizen_macros +++ b/packaging/rpm-tizen_macros @@ -16,6 +16,13 @@ %rb_arch %(echo %{_host_cpu}-linux | sed -e "s/i686/i586/" -e "s/armv5tel/armv4l/" -e "s/hppa2.0/hppa/") %rb_ver %(/usr/bin/ruby -e 'puts VERSION.sub(/\\\.\\\d$/, "")') +# Update config.sub file for packages not supporting current platform +%maybe_update_configsub \ +%ifarch riscv64 \ +[[ -e config.sub ]] && install -m 0755 $(automake --print-libdir)/config.sub config.sub \ +%endif \ +%{nil} + # external kernel module helper macro(s) %kernel_devel_uname_r %(/bin/rpm -q --provides $(/bin/rpm -q --whatprovides kernel-devel-uname-r) | sed -ne 's,kernel-devel-uname-r = ,, p') %kernel_release %(/bin/rpm -q --queryformat '%{RPMTAG_VERSION}-%{RPMTAG_RELEASE}' $(/bin/rpm -q --whatprovides kernel)) @@ -94,6 +101,7 @@ # Tizen # %configure \ + %maybe_update_configsub \ AR="%__ar"; export AR ; \ NM="%__nm"; export NM ; \ RANLIB="%__ranlib"; export RANLIB ; \ |