Update rpm spec for riscv64

Signed-off-by: Jason Montleon <jmontleo@redhat.com>
This commit is contained in:
Jason Montleon 2024-07-29 21:14:07 -04:00
parent a6ca857b8a
commit b02e542e2d
No known key found for this signature in database
GPG Key ID: B9439994459B6518

View File

@ -11,7 +11,7 @@ Version: %{basever}.%{micro}%{?pre:~%{pre}}
# This potentially allows tags like Obsoletes: pypy3 < %%{version}-%%{release}.
# https://bugzilla.redhat.com/2053880
%global baserelease %{autorelease -n}
Release: %{baserelease}.%{pyversion}%{?dist}
Release: %{baserelease}.%{pyversion}.0.riscv64%{?dist}
Summary: Python %{pyversion} implementation with a Just-In-Time compiler
# PyPy is MIT
@ -152,6 +152,7 @@ BuildRequires: bzip2-devel
BuildRequires: ncurses-devel
BuildRequires: expat-devel
BuildRequires: openssl-devel
BuildRequires: openssl-devel-engine
BuildRequires: gdbm-devel
BuildRequires: xz-devel
@ -364,6 +365,10 @@ rm lib-python/3/idlelib/idle.bat
# Top memory usage is about 4.5GB on arm7hf
free
%ifarch riscv64
export PYPY_MULTIARCH=riscv64-linux-gnu
%endif
BuildPyPy() {
ExeName=$1
Options=$2
@ -444,6 +449,9 @@ BuildPyPy() {
--gcrootfinder=shadowstack \
$Options \
targetpypystandalone \
%ifarch riscv64
--withoutmod-_continuation \
%endif
--platlibdir=%{_lib}
echo "--------------------------------------------------------------"