forked from pool/python-pydub
- Update to 0.22.1 * Fix pydub.utils.mediainfo_json() to work with newer, backwards-incompatible versions of ffprobe/avprobe - Update to 0.22.0 * Adds support for audio with frame rates (sample rates) of 48k and higher (requires scipy) (PR #262, fixes #134, #237, #209) * Adds support for PEP 519 File Path protocol (PR #252) * Fixes a few places where handles to temporary files are kept open (PR #280) * Add the license file to the python package to aid other packaging projects (PR #279, fixes #274) * Big fix for pydub.silence.detect_silence() (PR #263) * The utilities in `pydub.silence` now accept a OBS-URL: https://build.opensuse.org/request/show/623022 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pydub?expand=0&rev=4
72 lines
2.0 KiB
RPMSpec
72 lines
2.0 KiB
RPMSpec
#
|
|
# spec file for package python-pydub
|
|
#
|
|
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
|
#
|
|
# 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 http://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
|
# Test data missing
|
|
%bcond_with test
|
|
Name: python-pydub
|
|
Version: 0.22.1
|
|
Release: 0
|
|
Summary: Manipulate audio with Python
|
|
License: MIT
|
|
Group: Development/Languages/Python
|
|
Url: https://github.com/jiaaro/pydub
|
|
Source: https://files.pythonhosted.org/packages/source/p/pydub/pydub-%{version}.tar.gz
|
|
Source10: https://raw.githubusercontent.com/jiaaro/pydub/v%{version}/LICENSE
|
|
BuildRequires: %{python_module devel}
|
|
BuildRequires: %{python_module setuptools}
|
|
BuildRequires: fdupes
|
|
BuildRequires: python-rpm-macros
|
|
%if %{with test}
|
|
BuildRequires: %{python_module scipy}
|
|
BuildRequires: ffmpeg
|
|
%endif
|
|
Recommends: python-scipy
|
|
Requires: ffmpeg
|
|
BuildArch: noarch
|
|
|
|
%python_subpackages
|
|
|
|
%description
|
|
Manipulate audio with a high level interface.
|
|
|
|
%prep
|
|
%setup -q -n pydub-%{version}
|
|
cp %{SOURCE10} .
|
|
|
|
%build
|
|
%python_build
|
|
|
|
%install
|
|
%python_install
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
%if %{with test}
|
|
%check
|
|
%{python_expand export PYTHONPATH=%{buildroot}%{$python_sitelib}
|
|
$python test/test.py
|
|
}
|
|
%endif
|
|
|
|
%files %{python_files}
|
|
%defattr(-,root,root,-)
|
|
%license LICENSE
|
|
%{python_sitelib}/*
|
|
|
|
%changelog
|