From 51222bc69108a27249c8a2ddfada42892685f58e4e3b27af10b0d3ae0a5ad8b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Tue, 3 Jun 2025 09:14:18 +0000 Subject: [PATCH] - Convert to pip-based build OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-patiencediff?expand=0&rev=24 --- python-patiencediff.changes | 5 +++++ python-patiencediff.spec | 12 +++++++----- 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/python-patiencediff.changes b/python-patiencediff.changes index 5de254c..94fa4a7 100644 --- a/python-patiencediff.changes +++ b/python-patiencediff.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Jun 3 09:13:27 UTC 2025 - Markéta Machová + +- Convert to pip-based build + ------------------------------------------------------------------- Tue May 7 13:17:58 UTC 2024 - Dirk Müller diff --git a/python-patiencediff.spec b/python-patiencediff.spec index fda98ec..c2d4ae5 100644 --- a/python-patiencediff.spec +++ b/python-patiencediff.spec @@ -1,7 +1,7 @@ # # spec file for package python-patiencediff # -# Copyright (c) 2024 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,12 +25,14 @@ Group: Development/Languages/Python URL: https://github.com/breezy-team/patiencediff Source: https://files.pythonhosted.org/packages/source/p/patiencediff/patiencediff-%{version}.tar.gz BuildRequires: %{python_module devel >= 3.7} +BuildRequires: %{python_module pip} BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros -Requires(post): update-alternatives -Requires(preun): update-alternatives +Requires(post): alts +Requires(preun): alts %python_subpackages %description @@ -41,10 +43,10 @@ Python implementation of the patiencediff algorithm. %build export CFLAGS="%{optflags}" -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitearch} %python_clone -a %{buildroot}%{_bindir}/patiencediff