forked from pool/python-audioread
- Update to 3.1.0
* add support for os.PathLike filenames in macca.py
* Version bump/changelog: 3.0.2
* include license in pyproject.toml
* Modernize package setup
* Add release workflow
* Increment version to 3.1.0a1
* Try using proper pypi repo
* Remove legacy url
* Add standard-aifc and standard-sunau as dependencies for python
3.13 and above. Python core removed these modules in 3.13 as part
of PEP-594. The standard-* modules are forks of the modules that
had previously been in the python core. Fixes #144
* run tests on python 3.12 and 3.13
* Increment version to 3.1.0
- Drop support-python-313.patch, merged upstream
- Update BuildRequires from pyproject.toml
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-audioread?expand=0&rev=33
This commit is contained in:
78
python-audioread.spec
Normal file
78
python-audioread.spec
Normal file
@@ -0,0 +1,78 @@
|
||||
#
|
||||
# spec file for package python-audioread
|
||||
#
|
||||
# Copyright (c) 2024 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
# upon. The license for this file, and modifications and additions to the
|
||||
# file, is the same license as for the pristine package itself (unless the
|
||||
# license for the pristine package is not an Open Source License, in which
|
||||
# case the license is the MIT License). An "Open Source License" is a
|
||||
# license that conforms to the Open Source Definition (Version 1.9)
|
||||
# published by the Open Source Initiative.
|
||||
|
||||
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
%{?sle15_python_module_pythons}
|
||||
Name: python-audioread
|
||||
Version: 3.1.0
|
||||
Release: 0
|
||||
Summary: Wrapper for audio decoding via selectable backends
|
||||
License: MIT
|
||||
URL: https://github.com/beetbox/audioread
|
||||
Source0: https://github.com/beetbox/audioread/archive/v%{version}.tar.gz
|
||||
BuildRequires: %{ffmpeg_pref}
|
||||
BuildRequires: %{python_module base}
|
||||
BuildRequires: %{python_module pip}
|
||||
BuildRequires: %{python_module poetry-core}
|
||||
BuildRequires: %{python_module pytest}
|
||||
BuildRequires: %{python_module standard-aifc if %python-base >= 3.13}
|
||||
BuildRequires: %{python_module standard-sunau if %python-base >= 3.13}
|
||||
BuildRequires: %{python_module wheel}
|
||||
BuildRequires: fdupes
|
||||
BuildConflicts: %{ffmpeg_pref}-mini-libs
|
||||
BuildRequires: python-rpm-macros
|
||||
BuildArch: noarch
|
||||
%if 0%{?python_version_nodots} >= 313
|
||||
Requires: python-standard-aifc
|
||||
Requires: python-standard-sunau
|
||||
%endif
|
||||
Recommends: /usr/bin/ffmpeg
|
||||
Recommends: python-gobject
|
||||
Recommends: python-pymad
|
||||
Recommends: typelib(Gst) = 1.0
|
||||
|
||||
%python_subpackages
|
||||
|
||||
%description
|
||||
Decode audio files using whichever backend is available. The library
|
||||
currently supports:
|
||||
|
||||
- Gstreamer via PyGObject.
|
||||
- MAD via the pymad bindings.
|
||||
- FFmpeg or Libav via its command-line interface.
|
||||
- The standard library wave, aifc, and sunau modules (for
|
||||
uncompressed audio formats).
|
||||
|
||||
%prep
|
||||
%autosetup -p1 -n audioread-%{version}
|
||||
|
||||
%build
|
||||
%pyproject_wheel
|
||||
|
||||
%install
|
||||
%pyproject_install
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
%check
|
||||
%pytest
|
||||
|
||||
%files %{python_files}
|
||||
%doc README.rst
|
||||
%license LICENSE
|
||||
%{python_sitelib}/audioread
|
||||
%{python_sitelib}/audioread-%{version}.dist-info
|
||||
|
||||
%changelog
|
||||
Reference in New Issue
Block a user