14
0

Accepting request 1246620 from home:glaubitz:branches:devel:languages:python

- Limit Python files matched in %files section
- Switch package to modern Python Stack on SLE-15
  * Use Python 3.11 on SLE-15 by default
  * Drop support for older Python versions
- Switch build system from setuptools to pyproject.toml
  * Add python-pip and python-wheel to BuildRequires
  * Replace %python_build with %pyproject_wheel
  * Replace %python_install with %pyproject_install

OBS-URL: https://build.opensuse.org/request/show/1246620
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pysndfile?expand=0&rev=16
This commit is contained in:
2025-02-18 11:48:49 +00:00
committed by Git OBS Bridge
parent 7c6ac63981
commit a4f91bffec
2 changed files with 20 additions and 6 deletions

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-pysndfile
#
# Copyright (c) 2022 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,7 @@
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define skip_python36 1
%{?sle15_python_module_pythons}
Name: python-pysndfile
Version: 1.4.4
Release: 0
@@ -30,8 +29,10 @@ Patch0: fix-test-imports.patch
BuildRequires: %{python_module Cython}
BuildRequires: %{python_module devel}
BuildRequires: %{python_module numpy-devel}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: gcc-c++
BuildRequires: libsndfile-devel
@@ -63,10 +64,10 @@ command.
%build
export CFLAGS="%{optflags}"
%python_build
%pyproject_wheel
%install
%python_install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitearch}
%check
@@ -77,6 +78,7 @@ $python tests/pysndfile_test.py
%files %{python_files}
%doc ChangeLog README.md
%license COPYING.LESSER.txt
%{python_sitearch}/*
%{python_sitearch}/pysndfile
%{python_sitearch}/pysndfile-%{version}.dist-info
%changelog