- 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
This commit is contained in:
2024-05-09 10:45:22 +00:00
committed by Git OBS Bridge
parent a4dc42ba84
commit 7eaae69a60

View File

@@ -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