From 90765d26dbb267e45530d23624ac3aa7920ecac43fbe8a0a354e5bc774735e9b Mon Sep 17 00:00:00 2001 From: Todd R Date: Thu, 10 May 2018 00:23:58 +0000 Subject: [PATCH] Accepting request 605990 from devel:languages:python:misc Manipulate audio with Python OBS-URL: https://build.opensuse.org/request/show/605990 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pydub?expand=0&rev=1 --- .gitattributes | 23 +++++++++++++++ .gitignore | 1 + LICENSE | 20 +++++++++++++ pydub-0.21.0.tar.gz | 3 ++ python-pydub.changes | 43 +++++++++++++++++++++++++++ python-pydub.spec | 70 ++++++++++++++++++++++++++++++++++++++++++++ 6 files changed, 160 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 LICENSE create mode 100644 pydub-0.21.0.tar.gz create mode 100644 python-pydub.changes create mode 100644 python-pydub.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..f9a8d1e --- /dev/null +++ b/LICENSE @@ -0,0 +1,20 @@ +Copyright (c) 2011 James Robert, http://jiaaro.com + +Permission is hereby granted, free of charge, to any person obtaining +a copy of this software and associated documentation files (the +"Software"), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, sublicense, and/or sell copies of the Software, and to +permit persons to whom the Software is furnished to do so, subject to +the following conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. \ No newline at end of file diff --git a/pydub-0.21.0.tar.gz b/pydub-0.21.0.tar.gz new file mode 100644 index 0000000..cca8d06 --- /dev/null +++ b/pydub-0.21.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:27acc5977b0f5220682175d44fda737bbf818143b0832c0c3863b5dde38e197a +size 29946 diff --git a/python-pydub.changes b/python-pydub.changes new file mode 100644 index 0000000..3e827c1 --- /dev/null +++ b/python-pydub.changes @@ -0,0 +1,43 @@ +------------------------------------------------------------------- +Thu May 10 00:03:10 UTC 2018 - toddrme2178@gmail.com + +- Update to 0.21.0 + * NOTE: Semi-counterintuitive change: using the a stride when + slicing AudioSegment instances (for example, `sound[::5000]`) + will return chunks of 5000ms (not 1ms chunks every 5000ms) + (#222) + * Debug output from ffmpeg/avlib is no longer printed to the + console unless you set up logging (see README for how to set + up logging for your converter) (#223) + * All pydub exceptions are now subclasses of + `pydub.exceptions.PydubException` + * The utilities in `pydub.silence` now accept a + `seek_step` argument which can optionally be passed to + improve the performance of silence detection (#211) + * Fix to `pydub.silence` utilities which allow you to detect + perfect silence (#233) + * Fix a bug where threaded code screws up your terminal session + due to ffmpeg inheriting the stdin from the parent process. + (#231) + * Fix a bug where a crashing programs using pydub would leave + behind their temporary files (#206) +- Use license tag + +------------------------------------------------------------------- +Wed Oct 18 16:45:45 UTC 2017 - toddrme2178@gmail.com + +- Implement single-spec version +- Update to version 0.20.0 + * See changelog at https://github.com/jiaaro/pydub/blob/v0.20.0/CHANGELOG.md + +------------------------------------------------------------------- +Sat Oct 1 18:05:47 UTC 2016 - mardnh@gmx.de + +- Update to version 0.16.5 + - upstream does not provide a changelog + +------------------------------------------------------------------- +Mon Jul 14 11:35:14 UTC 2014 - toddrme2178@gmail.com + +- - Initial version + diff --git a/python-pydub.spec b/python-pydub.spec new file mode 100644 index 0000000..02dd6f3 --- /dev/null +++ b/python-pydub.spec @@ -0,0 +1,70 @@ +# +# 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.21.0 +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/%{version}/LICENSE +BuildRequires: %{python_module devel} +BuildRequires: %{python_module setuptools} +BuildRequires: fdupes +BuildRequires: ffmpeg +BuildRequires: python-rpm-macros +%if %{with test} +BuildRequires: %{python_module scipy} +%endif +Recommends: python-scipt +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