From 2088865e059227216ff2a56464af0ed4fe77876113028893796109d84bf60a2f Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Wed, 11 Jun 2025 06:32:55 +0000 Subject: [PATCH] - Switch to pyproject macros. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyvips?expand=0&rev=9 --- python-pyvips.changes | 5 +++++ python-pyvips.spec | 11 ++++++----- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/python-pyvips.changes b/python-pyvips.changes index dd07fcd..991fdf7 100644 --- a/python-pyvips.changes +++ b/python-pyvips.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Jun 11 05:49:37 UTC 2025 - Steve Kowalik + +- Switch to pyproject macros. + ------------------------------------------------------------------- Thu Jun 6 20:11:27 UTC 2024 - Dirk Müller diff --git a/python-pyvips.spec b/python-pyvips.spec index c024b86..2c4bc15 100644 --- a/python-pyvips.spec +++ b/python-pyvips.spec @@ -1,7 +1,7 @@ # # spec file for package python-pyvips # -# 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 @@ -16,7 +16,6 @@ # -%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-pyvips Version: 2.2.3 Release: 0 @@ -25,7 +24,9 @@ License: MIT URL: https://github.com/libvips/pyvips Source0: https://pypi.io/packages/source/p/pyvips/pyvips-%{version}.tar.gz BuildRequires: %{python_module cffi >= 1.0.0} +BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-cffi >= 1.0.0 @@ -39,10 +40,10 @@ This package contains the Python bindings for the VIPS library. %autosetup -n pyvips-%{version} %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} # NOTE: tests are not present in the pypi tarball @@ -51,6 +52,6 @@ This package contains the Python bindings for the VIPS library. %doc README.rst %license LICENSE.txt %{python_sitelib}/pyvips -%{python_sitelib}/pyvips-%{version}-py%{python_version}.egg-info +%{python_sitelib}/pyvips-%{version}.dist-info %changelog