14
0

Accepting request 1246650 from devel:languages:python

OBS-URL: https://build.opensuse.org/request/show/1246650
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pysndfile?expand=0&rev=8
This commit is contained in:
2025-02-18 18:12:47 +00:00
committed by Git OBS Bridge
2 changed files with 20 additions and 6 deletions

View File

@@ -1,3 +1,15 @@
-------------------------------------------------------------------
Tue Feb 18 10:00:54 UTC 2025 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
- 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 <yarunachalam@suse.com> Thu Oct 6 22:07:46 UTC 2022 - Yogalakshmi Arunachalam <yarunachalam@suse.com>

View File

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