14
0
forked from pool/python-sane

- Convert to pip-based build

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-sane?expand=0&rev=7
This commit is contained in:
2025-06-12 08:22:00 +00:00
committed by Git OBS Bridge
parent 696cb7299a
commit c536d5d78e
2 changed files with 13 additions and 6 deletions

View File

@@ -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