forked from pool/python-pydub
Accepting request 677638 from home:alarrosa:branches:devel:languages:python
- Enable tests. Changed source to the github release, which also removes the need to provide a copy of the LICENSE file. - Add 0001-Skip-tests-that-use-unavailable-codecs.patch to skip tests that use codecs not supported by the official ffmpeg package - Update to 0.23.1 * Fix bug in passing ffmpeg/avconv parameters for pydub.AudioSegment.from_mp3(), pydub.AudioSegment.from_flv(), pydub.AudioSegment.from_ogg() and pydub.AudioSegment.from_wav() * Fix logic bug in pydub.effects.strip_silence() OBS-URL: https://build.opensuse.org/request/show/677638 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pydub?expand=0&rev=11
This commit is contained in:
committed by
Git OBS Bridge
parent
f6b9b82748
commit
261b3349b9
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-pydub
|
||||
#
|
||||
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2019 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
|
||||
@@ -17,24 +17,21 @@
|
||||
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
# Test data missing
|
||||
%bcond_with test
|
||||
Name: python-pydub
|
||||
Version: 0.23.0
|
||||
Version: 0.23.1
|
||||
Release: 0
|
||||
Summary: Audio manipulation 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
|
||||
Source: https://github.com/jiaaro/pydub/archive/v%{version}.tar.gz#/pydub-%{version}.tar.gz
|
||||
# PATCH-FIX-UPSTREAM
|
||||
Patch0: 0001-Skip-tests-that-use-unavailable-codecs.patch
|
||||
BuildRequires: %{python_module scipy}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
%if %{with test}
|
||||
BuildRequires: %{python_module scipy}
|
||||
BuildRequires: ffmpeg
|
||||
%endif
|
||||
BuildRequires: python-rpm-macros
|
||||
Recommends: python-scipy
|
||||
Recommends: python-simpleaudio
|
||||
Requires: ffmpeg
|
||||
@@ -47,7 +44,7 @@ A Python module to manipulate audio with a high level interface.
|
||||
|
||||
%prep
|
||||
%setup -q -n pydub-%{version}
|
||||
cp %{SOURCE10} .
|
||||
%patch0 -p1
|
||||
|
||||
%build
|
||||
%python_build
|
||||
@@ -56,12 +53,8 @@ cp %{SOURCE10} .
|
||||
%python_install
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
%if %{with test}
|
||||
%check
|
||||
%{python_expand export PYTHONPATH=%{buildroot}%{$python_sitelib}
|
||||
$python test/test.py
|
||||
}
|
||||
%endif
|
||||
%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} $python test/test.py
|
||||
|
||||
%files %{python_files}
|
||||
%license LICENSE
|
||||
|
Reference in New Issue
Block a user