From 7eaae69a60cc38a92d1bee78350ed4fd71c974d7d7debae02e76fae7edb19935 Mon Sep 17 00:00:00 2001 From: Daniel Garcia Date: Thu, 9 May 2024 10:45:22 +0000 Subject: [PATCH] - Disable experimental_jit for i586 - Remove _pyrepl from base OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:Factory/python313?expand=0&rev=14 --- python313.spec | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/python313.spec b/python313.spec index 8a3f3e4..a38d41f 100644 --- a/python313.spec +++ b/python313.spec @@ -36,7 +36,11 @@ %bcond_without general %endif +%ifnarch %ix86 %bcond_without experimental_jit +%else +%bcond_with experimental_jit +%endif %define python_pkg_name python313 %if "%{python_pkg_name}" == "%{primary_python}" @@ -197,6 +201,12 @@ BuildRequires: python3-Sphinx >= 4.0.0 BuildRequires: python3-python-docs-theme >= 2022.1 %endif %endif + +%if %{with experimental_jit} +BuildRequires: clang => 18 +BuildRequires: llvm => 18 +%endif + %if %{with general} # required for idle3 (.desktop and .appdata.xml files) BuildRequires: appstream-glib @@ -210,10 +220,6 @@ BuildRequires: update-desktop-files BuildRequires: pkgconfig(ncurses) BuildRequires: pkgconfig(tk) BuildRequires: pkgconfig(x11) -%if %{with experimental_jit} -BuildRequires: clang => 18 -BuildRequires: llvm => 18 -%endif Requires: %{python_pkg_name}-base = %{version} Provides: %{python_pkg_name}-readline Provides: %{python_pkg_name}-sqlite3 @@ -690,7 +696,7 @@ install -d -m 755 %{buildroot}%{sitedir}/site-packages/__pycache__ mkdir -p %{buildroot}%{_prefix}/lib/python%{python_version}/site-packages/__pycache__ # cleanup parts that don't belong -for dir in curses dbm sqlite3 pathlib tkinter idlelib; do +for dir in curses dbm sqlite3 _pyrepl pathlib tkinter idlelib; do find "%{buildroot}/%{sitedir}/$dir"/* -maxdepth 0 -name "test" -o -exec rm -rf {} + done