summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSlava Barinov <v.barinov@samsung.com>2023-06-20 14:03:32 +0300
committerDongkyun Son <dongkyun.s@samsung.com>2023-06-28 13:02:03 +0900
commit2f0f06b45ccdfd5409cd13ecabfa262e14847b7e (patch)
tree50e061d88a215a4e8ed59a31881db9abdb90d0f3
parente02449bf7cfbe7335216e6e53c78e2a89a140b82 (diff)
downloadrpm-tizen_8.0_m2_release.tar.gz
rpm-tizen_8.0_m2_release.tar.bz2
rpm-tizen_8.0_m2_release.zip
Change-Id: Iae6213d5dc5d4e3b21c88c142a73b29a59c3122c Signed-off-by: Slava Barinov <v.barinov@samsung.com>
-rw-r--r--packaging/rpm-tizen_macros8
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 ; \