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