2018-05-10 00:23:58 +00:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2018-10-31 11:33:12 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2018-05-10 00:23:58 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
|
|
|
# Test data missing
|
|
|
|
%bcond_with test
|
|
|
|
Name: python-pydub
|
2018-10-31 04:52:30 +00:00
|
|
|
Version: 0.23.0
|
2018-05-10 00:23:58 +00:00
|
|
|
Release: 0
|
2018-10-31 11:33:12 +00:00
|
|
|
Summary: Audio manipulation with Python
|
2018-05-10 00:23:58 +00:00
|
|
|
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
|
2018-05-10 03:08:39 +00:00
|
|
|
Source10: https://raw.githubusercontent.com/jiaaro/pydub/v%{version}/LICENSE
|
2018-05-10 00:23:58 +00:00
|
|
|
BuildRequires: %{python_module setuptools}
|
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: python-rpm-macros
|
|
|
|
%if %{with test}
|
|
|
|
BuildRequires: %{python_module scipy}
|
2018-07-16 08:05:37 +00:00
|
|
|
BuildRequires: ffmpeg
|
2018-05-10 00:23:58 +00:00
|
|
|
%endif
|
2018-07-16 08:05:37 +00:00
|
|
|
Recommends: python-scipy
|
2018-10-31 04:52:30 +00:00
|
|
|
Recommends: python-simpleaudio
|
2018-07-16 08:05:37 +00:00
|
|
|
Requires: ffmpeg
|
2018-05-10 00:23:58 +00:00
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
%python_subpackages
|
|
|
|
|
|
|
|
%description
|
2018-10-31 11:33:12 +00:00
|
|
|
A Python module to manipulate audio with a high level interface.
|
2018-05-10 00:23:58 +00:00
|
|
|
|
|
|
|
%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}
|
|
|
|
%license LICENSE
|
|
|
|
%{python_sitelib}/*
|
|
|
|
|
|
|
|
%changelog
|