From 71b1cf9e3bce5ae62f5f0c7cb666ac3981852f89 Mon Sep 17 00:00:00 2001 From: Nils Philippsen Date: Sun, 11 Feb 2024 18:26:11 +0100 Subject: [PATCH] =?UTF-8?q?Don=E2=80=99t=20build=20asyncmy=20extra=20packa?= =?UTF-8?q?ge=20on=20x86=20(32bit)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Nils Philippsen --- python-sqlalchemy.spec | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/python-sqlalchemy.spec b/python-sqlalchemy.spec index 4d2b48d..93b2e6e 100644 --- a/python-sqlalchemy.spec +++ b/python-sqlalchemy.spec @@ -1,5 +1,13 @@ # Mypy plugin is deprecated in 2.0. mypy is not in RHEL. %bcond mypy %{undefined rhel} + +# The asyncmy Python package isn’t available in x86 (32bit) +%ifnarch %ix86 +%bcond asyncmy 1 +%else +%bcond asyncmy 0 +%endif + # Tests crash when being run by pytest-xdist %bcond xdist 0 @@ -20,7 +28,7 @@ aiomysql \ aioodbc \ aiosqlite \ - asyncmy + %{?with_asyncmy:asyncmy} Name: python-%{canonicalname} Version: 2.0.26 @@ -57,6 +65,9 @@ domain. %package -n python3-sqlalchemy Summary: %{summary} +%if %{without asyncmy} +Obsoletes: python3-sqlalchemy+asyncmy < %{version}-%{release} +%endif %description -n python3-sqlalchemy SQLAlchemy is an Object Relational Mapper (ORM) that provides a flexible,