diff --git a/SOURCES/0001-Remove-dataclasses-from-setup-for-python39.patch b/SOURCES/0001-Remove-dataclasses-from-setup-for-python39.patch new file mode 100644 index 0000000..36eaf45 --- /dev/null +++ b/SOURCES/0001-Remove-dataclasses-from-setup-for-python39.patch @@ -0,0 +1,24 @@ +From dd7c59da2309f974c3d530590c33a75f553bfc2e Mon Sep 17 00:00:00 2001 +From: eabdullin +Date: Thu, 10 Jul 2025 11:52:16 +0300 +Subject: [PATCH] Remove dataclasses from setup for python39 + +--- + setup.py | 1 - + 1 file changed, 1 deletion(-) + +diff --git a/setup.py b/setup.py +index 4568112..c3b0d83 100644 +--- a/setup.py ++++ b/setup.py +@@ -31,7 +31,6 @@ setup(name='immudb-py', + keywords=['immudb', 'immutable'], + install_requires=[ + 'grpcio>=1.31.0', +- 'dataclasses>=0.6', + 'protobuf>=3.13.0,<4.0.0', + 'google-api>=0.1.12', + 'google-api-core>=1.22.1', +-- +2.39.5 (Apple Git-154) + diff --git a/SPECS/immudb.spec b/SPECS/immudb.spec index 37c277c..ac4b83b 100644 --- a/SPECS/immudb.spec +++ b/SPECS/immudb.spec @@ -9,10 +9,12 @@ 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 + BuildArch: noarch -BuildRequires: python3-devel -BuildRequires: python3-pip -BuildRequires: python3-wheel +BuildRequires: python%{python3_pkgversion}-devel +BuildRequires: python%{python3_pkgversion}-pip +BuildRequires: python%{python3_pkgversion}-wheel BuildRequires: pyproject-rpm-macros %description @@ -21,7 +23,7 @@ BuildRequires: pyproject-rpm-macros %package -n python%{python3_pkgversion}-%{modname} Summary: %{summary} %{?python_provide:%python_provide python%{python3_pkgversion}-%{modname}} -Requires: python3-immudb = 1.4.0 +Requires: python%{python3_pkgversion}-immudb = 1.4.0 %description -n python%{python3_pkgversion}-%{modname} %{summary}. @@ -31,7 +33,10 @@ Python %{python3_pkgversion} version. %pyproject_buildrequires %prep -%autosetup -n immudb-py-%{version} +%setup -n immudb-py-%{version} +%if 0%{?rhel} > 8 +%patch1 -p1 -b .remove-dataclasses +%endif %build %pyproject_wheel @@ -40,10 +45,13 @@ Python %{python3_pkgversion} version. %pyproject_install %pyproject_save_files %{modname} -%files -n python3-%{modname} -f %{pyproject_files} +%files -n python%{python3_pkgversion}-%{modname} -f %{pyproject_files} %doc README.md %license LICENSE %changelog +* 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