From a4f91bffec967f59a4f70edab96c92b2d26aeb4518244eb8f7b166d1cbab4d1e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Tue, 18 Feb 2025 11:48:49 +0000 Subject: [PATCH] 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 --- python-pysndfile.changes | 12 ++++++++++++ python-pysndfile.spec | 14 ++++++++------ 2 files changed, 20 insertions(+), 6 deletions(-) diff --git a/python-pysndfile.changes b/python-pysndfile.changes index 4be58d3..1a6df07 100644 --- a/python-pysndfile.changes +++ b/python-pysndfile.changes @@ -1,3 +1,15 @@ +------------------------------------------------------------------- +Tue Feb 18 10:00:54 UTC 2025 - John Paul Adrian Glaubitz + +- 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 + ------------------------------------------------------------------- Thu Oct 6 22:07:46 UTC 2022 - Yogalakshmi Arunachalam diff --git a/python-pysndfile.spec b/python-pysndfile.spec index 1d0a08d..7414fa0 100644 --- a/python-pysndfile.spec +++ b/python-pysndfile.spec @@ -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