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,