Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package python-SoundFile for
openSUSE:Factory checked in at 2024-10-27 11:24:48
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-SoundFile (Old)
and /work/SRC/openSUSE:Factory/.python-SoundFile.new.2020 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-SoundFile"
Sun Oct 27 11:24:48 2024 rev:10 rq:1218359 version:0.12.1
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-SoundFile/python-SoundFile.changes
2023-04-03 17:46:49.515303796 +0200
+++
/work/SRC/openSUSE:Factory/.python-SoundFile.new.2020/python-SoundFile.changes
2024-10-27 11:25:01.977802457 +0100
@@ -1,0 +2,11 @@
+Sun Sep 29 03:20:29 UTC 2024 - Guang Yee <[email protected]>
+
+- Add 0001-Fix-libsndfile-versioning.patch
+ * Fix the libsndfile version by stripping the "-exp" postfix.
+
+-------------------------------------------------------------------
+Sat Sep 28 18:17:04 UTC 2024 - Guang Yee <[email protected]>
+
+- Enable sle15_python_module_pythons.
+
+-------------------------------------------------------------------
New:
----
0001-Fix-libsndfile-versioning.patch
BETA DEBUG BEGIN:
New:
- Add 0001-Fix-libsndfile-versioning.patch
* Fix the libsndfile version by stripping the "-exp" postfix.
BETA DEBUG END:
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-SoundFile.spec ++++++
--- /var/tmp/diff_new_pack.3eeYkP/_old 2024-10-27 11:25:03.213853692 +0100
+++ /var/tmp/diff_new_pack.3eeYkP/_new 2024-10-27 11:25:03.217853857 +0100
@@ -16,6 +16,7 @@
#
+%{?sle15_python_module_pythons}
Name: python-SoundFile
Version: 0.12.1
Release: 0
@@ -24,6 +25,7 @@
URL: https://github.com/bastibe/python-soundfile
Source:
https://files.pythonhosted.org/packages/source/s/soundfile/soundfile-%{version}.tar.gz
Source99: python-SoundFile.rpmlintrc
+Patch0: 0001-Fix-libsndfile-versioning.patch
BuildRequires: %{python_module cffi >= 1.0}
BuildRequires: %{python_module numpy}
BuildRequires: %{python_module pip}
@@ -53,6 +55,7 @@
%prep
%setup -q -n soundfile-%{version}
+%autopatch -p1
%build
# force a pure wheel through unknown platform
++++++ 0001-Fix-libsndfile-versioning.patch ++++++
>From 177f1fa06472f0b384e876a545060da6d4985d9a Mon Sep 17 00:00:00 2001
From: yeey <[email protected]>
Date: Sat, 28 Sep 2024 20:14:02 -0700
Subject: [PATCH] Fix libsndfile versioning
Strip the "-exp" from the libsndfile version since _sound_file data
binary build is optional.
---
soundfile.py | 2 ++
1 file changed, 2 insertions(+)
diff --git a/soundfile.py b/soundfile.py
index cc13192..9012d78 100644
--- a/soundfile.py
+++ b/soundfile.py
@@ -10,6 +10,7 @@ For further information, see
https://python-soundfile.readthedocs.io/.
"""
__version__ = "0.12.1"
+import re as _re
import os as _os
import sys as _sys
from os import SEEK_SET, SEEK_CUR, SEEK_END
@@ -194,6 +195,7 @@ except (OSError, ImportError, TypeError):
__libsndfile_version__ = _ffi.string(_snd.sf_version_string()).decode('utf-8',
'replace')
if __libsndfile_version__.startswith('libsndfile-'):
__libsndfile_version__ = __libsndfile_version__[len('libsndfile-'):]
+__libsndfile_version__ = _re.sub('-.*$', '', __libsndfile_version__)
def read(file, frames=-1, start=0, stop=None, dtype='float64', always_2d=False,
--
2.45.2