Compare commits
2 Commits
| Author | SHA256 | Date | |
|---|---|---|---|
| 90b5d5d6d2 | |||
| 2102ff212c |
34
0001-Fix-libsndfile-versioning.patch
Normal file
34
0001-Fix-libsndfile-versioning.patch
Normal file
@@ -0,0 +1,34 @@
|
|||||||
|
From 177f1fa06472f0b384e876a545060da6d4985d9a Mon Sep 17 00:00:00 2001
|
||||||
|
From: yeey <gyee@suse.com>
|
||||||
|
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
|
||||||
|
|
||||||
@@ -1,3 +1,14 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Sun Sep 29 03:20:29 UTC 2024 - Guang Yee <gyee@suse.com>
|
||||||
|
|
||||||
|
- 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 <gyee@suse.com>
|
||||||
|
|
||||||
|
- Enable sle15_python_module_pythons.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Sat Apr 1 11:53:26 UTC 2023 - Ben Greiner <code@bnavigator.de>
|
Sat Apr 1 11:53:26 UTC 2023 - Ben Greiner <code@bnavigator.de>
|
||||||
|
|
||||||
|
|||||||
@@ -16,6 +16,7 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
|
%{?sle15_python_module_pythons}
|
||||||
Name: python-SoundFile
|
Name: python-SoundFile
|
||||||
Version: 0.12.1
|
Version: 0.12.1
|
||||||
Release: 0
|
Release: 0
|
||||||
@@ -24,6 +25,7 @@ License: BSD-3-Clause
|
|||||||
URL: https://github.com/bastibe/python-soundfile
|
URL: https://github.com/bastibe/python-soundfile
|
||||||
Source: https://files.pythonhosted.org/packages/source/s/soundfile/soundfile-%{version}.tar.gz
|
Source: https://files.pythonhosted.org/packages/source/s/soundfile/soundfile-%{version}.tar.gz
|
||||||
Source99: python-SoundFile.rpmlintrc
|
Source99: python-SoundFile.rpmlintrc
|
||||||
|
Patch0: 0001-Fix-libsndfile-versioning.patch
|
||||||
BuildRequires: %{python_module cffi >= 1.0}
|
BuildRequires: %{python_module cffi >= 1.0}
|
||||||
BuildRequires: %{python_module numpy}
|
BuildRequires: %{python_module numpy}
|
||||||
BuildRequires: %{python_module pip}
|
BuildRequires: %{python_module pip}
|
||||||
@@ -53,6 +55,7 @@ represents audio data as NumPy arrays.
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n soundfile-%{version}
|
%setup -q -n soundfile-%{version}
|
||||||
|
%autopatch -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
# force a pure wheel through unknown platform
|
# force a pure wheel through unknown platform
|
||||||
|
|||||||
Reference in New Issue
Block a user