From c536d5d78e54a7c11e146a32a1bc22a2cf29378929de4ad573e7a2a7923c26be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Thu, 12 Jun 2025 08:22:00 +0000 Subject: [PATCH] - Convert to pip-based build OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-sane?expand=0&rev=7 --- python-sane.changes | 5 +++++ python-sane.spec | 14 ++++++++------ 2 files changed, 13 insertions(+), 6 deletions(-) diff --git a/python-sane.changes b/python-sane.changes index 9bd16d6..05d8122 100644 --- a/python-sane.changes +++ b/python-sane.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Jun 12 08:21:38 UTC 2025 - Markéta Machová + +- Convert to pip-based build + ------------------------------------------------------------------- Sun May 9 17:14:26 UTC 2021 - Dirk Müller diff --git a/python-sane.spec b/python-sane.spec index ac55b5d..e084a3c 100644 --- a/python-sane.spec +++ b/python-sane.spec @@ -1,7 +1,7 @@ # # spec file for package python-sane # -# 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,8 +16,6 @@ # -%{?!python_module:%define python_module() python-%{**} python3-%{**}} -%global skip_python2 1 Name: python-sane Version: 2.9.1 Release: 0 @@ -27,7 +25,9 @@ Group: Development/Languages/Python URL: https://github.com/python-pillow/Sane Source: https://github.com/python-pillow/Sane/archive/v%{version}.tar.gz BuildRequires: %{python_module devel} +BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros BuildRequires: sane-backends-devel @@ -41,16 +41,18 @@ The SANE module provides an interface to the SANE scanner and frame grabber inte %build export CFLAGS="%{optflags}" -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitearch}/ %files %{python_files} %doc README.rst CHANGES.rst %license COPYING -%{python_sitearch}/* +%{python_sitearch}/sane.py +%pycache_only %{python_sitearch}/__pycache__/sane* +%{python_sitearch}/sane-%{version}*-info %changelog