From decee4dda18f00dff0dea946d4c9adc491d84255139a6165895d792fbc15bc7a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Tue, 3 Jun 2025 12:29:26 +0000 Subject: [PATCH] - Convert to pip-based build OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-psycopg2cffi?expand=0&rev=11 --- python-psycopg2cffi.changes | 5 +++++ python-psycopg2cffi.spec | 12 +++++++----- 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/python-psycopg2cffi.changes b/python-psycopg2cffi.changes index d684cb5..c88ca64 100644 --- a/python-psycopg2cffi.changes +++ b/python-psycopg2cffi.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Jun 3 12:29:11 UTC 2025 - Markéta Machová + +- Convert to pip-based build + ------------------------------------------------------------------- Sun Jun 11 13:17:51 UTC 2023 - ecsos diff --git a/python-psycopg2cffi.spec b/python-psycopg2cffi.spec index 443e763..2c153b5 100644 --- a/python-psycopg2cffi.spec +++ b/python-psycopg2cffi.spec @@ -1,7 +1,7 @@ # # spec file for package python-psycopg2cffi # -# Copyright (c) 2023 SUSE LLC +# Copyright (c) 2025 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -25,9 +25,11 @@ License: LGPL-3.0-or-later URL: https://github.com/chtd/psycopg2cffi Source: https://files.pythonhosted.org/packages/source/p/psycopg2cffi/psycopg2cffi-%{version}.tar.gz # PATCH-FEATURE-OPENSUSE allow-rc-versions.patch to allow 15rc2 pg version -Patch: allow-rc-versions.patch +Patch0: allow-rc-versions.patch BuildRequires: %{python_module devel >= 3.5} +BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: postgresql-server-devel BuildRequires: python-rpm-macros @@ -48,10 +50,10 @@ This is a implementation of the psycopg2 module using cffi. %build export CFLAGS="%{optflags}" -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand rm -r %{buildroot}%{$python_sitearch}/psycopg2cffi/tests %python_expand %fdupes %{buildroot}%{$python_sitearch} @@ -63,6 +65,6 @@ rm psycopg2cffi/tests/__init__.py %doc README.rst %license LICENSE %{python_sitearch}/psycopg2cffi -%{python_sitearch}/psycopg2cffi-%{version}-py*.egg-info +%{python_sitearch}/psycopg2cffi-%{version}*-info %changelog