From fc7a7f8ff3fc8ad7e3a22fe113c323ff10e0e5c68d9effcb42c08fe876a0135b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Tue, 10 Jun 2025 12:21:22 +0000 Subject: [PATCH] - Convert to pip-based build OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyprel?expand=0&rev=11 --- python-pyprel.changes | 5 +++++ python-pyprel.spec | 14 +++++++------- 2 files changed, 12 insertions(+), 7 deletions(-) diff --git a/python-pyprel.changes b/python-pyprel.changes index aff555d..f6e4e57 100644 --- a/python-pyprel.changes +++ b/python-pyprel.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Jun 10 12:20:03 UTC 2025 - Markéta Machová + +- Convert to pip-based build + ------------------------------------------------------------------- Sat Feb 13 10:29:18 UTC 2021 - Dirk Müller diff --git a/python-pyprel.spec b/python-pyprel.spec index a5c9337..0bce443 100644 --- a/python-pyprel.spec +++ b/python-pyprel.spec @@ -1,7 +1,7 @@ # # spec file for package python-pyprel # -# Copyright (c) 2021 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 @@ -16,9 +16,6 @@ # -%{?!python_module:%define python_module() python-%{**} python3-%{**}} -%define skip_python2 1 -%define skip_python36 1 Name: python-pyprel Version: 2018.9.14.1501 Release: 0 @@ -28,7 +25,9 @@ Group: Development/Languages/Python URL: https://github.com/wdbm/pyprel Source0: https://files.pythonhosted.org/packages/source/p/pyprel/pyprel-%{version}.tar.gz Source10: https://raw.githubusercontent.com/wdbm/pyprel/master/LICENSE +BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-Pillow @@ -60,10 +59,10 @@ extend them and save images of them. cp %{SOURCE10} . %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %check @@ -72,6 +71,7 @@ cp %{SOURCE10} . %files %{python_files} %doc README.md %license LICENSE -%{python_sitelib}/* +%{python_sitelib}/pyprel +%{python_sitelib}/pyprel-%{version}*-info %changelog