From ee27ccab7be35eb4a86b5ab5d874aeddd6c9e4e659262d9852e3ffb5b1408c14 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Tue, 27 May 2025 14:01:13 +0000 Subject: [PATCH] - Convert to pip-based build OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-genfire?expand=0&rev=12 --- python-genfire.changes | 5 +++++ python-genfire.spec | 12 +++++++----- 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/python-genfire.changes b/python-genfire.changes index c2f0d19..8cd04c1 100644 --- a/python-genfire.changes +++ b/python-genfire.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue May 27 14:01:01 UTC 2025 - Markéta Machová + +- Convert to pip-based build + ------------------------------------------------------------------- Fri Nov 4 10:06:29 UTC 2022 - pgajdos@suse.com diff --git a/python-genfire.spec b/python-genfire.spec index aec57c7..0010e8b 100644 --- a/python-genfire.spec +++ b/python-genfire.spec @@ -1,7 +1,7 @@ # # spec file for package python-genfire # -# Copyright (c) 2022 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 @@ -28,10 +28,12 @@ BuildRequires: %{python_module Pillow >= 4.1.1} BuildRequires: %{python_module PyQt5 >= 5.5.0} BuildRequires: %{python_module matplotlib >= 2.0.2} BuildRequires: %{python_module numpy >= 1.12.1} +BuildRequires: %{python_module pip} BuildRequires: %{python_module pyFFTW} BuildRequires: %{python_module pyparsing >= 2.2.0} BuildRequires: %{python_module scipy >= 0.19.0} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-Pillow >= 4.1.1 @@ -41,9 +43,9 @@ Requires: python-pyFFTW Requires: python-pyparsing >= 2.2.0 Requires: python-scipy >= 0.19.0 Requires: python-setuptools +Requires(post): alts +Requires(postun): alts BuildArch: noarch -Requires(post): update-alternatives -Requires(postun):update-alternatives %python_subpackages %description @@ -55,10 +57,10 @@ oriented projection images %setup -q -n %{packagename}-%{version} %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %python_clone -a %{buildroot}%{_bindir}/genfire