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,3 +1,8 @@
-------------------------------------------------------------------
Thu Jun 12 08:21:38 UTC 2025 - Markéta Machová <mmachova@suse.com>
- Convert to pip-based build
------------------------------------------------------------------- -------------------------------------------------------------------
Sun May 9 17:14:26 UTC 2021 - Dirk Müller <dmueller@suse.com> Sun May 9 17:14:26 UTC 2021 - Dirk Müller <dmueller@suse.com>

View File

@@ -1,7 +1,7 @@
# #
# spec file for package python-sane # 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 # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # 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 Name: python-sane
Version: 2.9.1 Version: 2.9.1
Release: 0 Release: 0
@@ -27,7 +25,9 @@ Group: Development/Languages/Python
URL: https://github.com/python-pillow/Sane URL: https://github.com/python-pillow/Sane
Source: https://github.com/python-pillow/Sane/archive/v%{version}.tar.gz Source: https://github.com/python-pillow/Sane/archive/v%{version}.tar.gz
BuildRequires: %{python_module devel} BuildRequires: %{python_module devel}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools} BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: python-rpm-macros BuildRequires: python-rpm-macros
BuildRequires: sane-backends-devel BuildRequires: sane-backends-devel
@@ -41,16 +41,18 @@ The SANE module provides an interface to the SANE scanner and frame grabber inte
%build %build
export CFLAGS="%{optflags}" export CFLAGS="%{optflags}"
%python_build %pyproject_wheel
%install %install
%python_install %pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitearch}/ %python_expand %fdupes %{buildroot}%{$python_sitearch}/
%files %{python_files} %files %{python_files}
%doc README.rst CHANGES.rst %doc README.rst CHANGES.rst
%license COPYING %license COPYING
%{python_sitearch}/* %{python_sitearch}/sane.py
%pycache_only %{python_sitearch}/__pycache__/sane*
%{python_sitearch}/sane-%{version}*-info
%changelog %changelog