%global modname immudb Name: python-%{modname} Version: 1.4.0 Release: 3%{?dist} Summary: Immudb client for Python License: Apache-2.0 URL: https://github.com/codenotary/immudb-py Source0: https://github.com/codenotary/immudb-py/archive/v%{immudb_version}/immudb-py-%{version}.tar.gz Patch1: 0001-Remove-dataclasses-from-setup-for-python39.patch Patch2: 0002-Remove-google_api-from-setup.patch BuildArch: noarch BuildRequires: python%{python3_pkgversion}-devel BuildRequires: python%{python3_pkgversion}-pip BuildRequires: python%{python3_pkgversion}-wheel BuildRequires: pyproject-rpm-macros %description %{summary}. %package -n python%{python3_pkgversion}-%{modname} Summary: %{summary} %{?python_provide:%python_provide python%{python3_pkgversion}-%{modname}} Requires: python%{python3_pkgversion}-immudb = 1.4.0 %description -n python%{python3_pkgversion}-%{modname} %{summary}. Python %{python3_pkgversion} version. %generate_buildrequires %pyproject_buildrequires %prep %setup -n immudb-py-%{version} %if 0%{?rhel} > 8 %patch1 -p1 -b .remove-dataclasses %endif %patch2 -p1 -b .remove-google-api %build %pyproject_wheel %install %pyproject_install %pyproject_save_files %{modname} %files -n python%{python3_pkgversion}-%{modname} -f %{pyproject_files} %doc README.md %license LICENSE %changelog * Thu Jul 10 2025 Eduard Abdullin - 1.4.0-3 - Remove google-api from setup.py * Thu Jul 10 2025 Eduard Abdullin - 1.4.0-2 - Remove dataclasses from setup.py for AlmaLinux 9 and later * Mon May 12 2025 Eduard Abdullin - 1.4.0-1 - Initial release