From 88d73826e7d3f2c501c466a1700d1390207835f424c14896323ce0dbdfa14816 Mon Sep 17 00:00:00 2001 From: Todd R Date: Sat, 3 Nov 2018 03:04:07 +0000 Subject: [PATCH] Python module for audio and music processing. Also used by some other python audio packages. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-librosa?expand=0&rev=1 --- .gitattributes | 23 +++++++++++++ .gitignore | 1 + LICENSE.md | 15 ++++++++ librosa-0.6.2.tar.gz | 3 ++ python-librosa.changes | 4 +++ python-librosa.spec | 78 ++++++++++++++++++++++++++++++++++++++++++ 6 files changed, 124 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 LICENSE.md create mode 100644 librosa-0.6.2.tar.gz create mode 100644 python-librosa.changes create mode 100644 python-librosa.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.md b/LICENSE.md new file mode 100644 index 0000000..992ab74 --- /dev/null +++ b/LICENSE.md @@ -0,0 +1,15 @@ +## ISC License + +Copyright (c) 2013--2017, librosa development team. + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted, provided that the above +copyright notice and this permission notice appear in all copies. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES +WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR +ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES +WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN +ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF +OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. diff --git a/librosa-0.6.2.tar.gz b/librosa-0.6.2.tar.gz new file mode 100644 index 0000000..53d1821 --- /dev/null +++ b/librosa-0.6.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2aa868b8aade749b9904eeb7034fcf44115601c367969b6d01f5e1b4b9b6031d +size 1553825 diff --git a/python-librosa.changes b/python-librosa.changes new file mode 100644 index 0000000..18317da --- /dev/null +++ b/python-librosa.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Fri Nov 2 04:48:42 UTC 2018 - Todd R + +- Initial version diff --git a/python-librosa.spec b/python-librosa.spec new file mode 100644 index 0000000..5290b29 --- /dev/null +++ b/python-librosa.spec @@ -0,0 +1,78 @@ +# +# spec file for package python-librosa +# +# 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-%{**}} +Name: python-librosa +Version: 0.6.2 +Release: 0 +License: ISC +Summary: Python module for audio and music processing +Url: http://github.com/librosa/librosa +Group: Development/Languages/Python +Source0: https://files.pythonhosted.org/packages/source/l/librosa/librosa-%{version}.tar.gz +Source10: https://raw.githubusercontent.com/librosa/librosa/%{version}/LICENSE.md +BuildRequires: %{python_module setuptools} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +# SECTION test requirements +BuildRequires: %{python_module audioread >= 2.0.0} +BuildRequires: %{python_module decorator >= 3.0.0} +BuildRequires: %{python_module joblib >= 0.12} +BuildRequires: %{python_module numba >= 0.38.0} +BuildRequires: %{python_module numpy >= 1.8.0} +BuildRequires: %{python_module resampy >= 0.2.0} +BuildRequires: %{python_module scikit-learn >= 0.14.0} +BuildRequires: %{python_module scipy >= 0.14.0} +BuildRequires: %{python_module six >= 1.3} +# /SECTION +Requires: python-audioread >= 2.0.0 +Requires: python-decorator >= 3.0.0 +Requires: python-joblib >= 0.12 +Requires: python-numba >= 0.38.0 +Requires: python-numpy >= 1.8.0 +Requires: python-resampy >= 0.2.0 +Requires: python-scikit-learn >= 0.14.0 +Requires: python-scipy >= 0.14.0 +Requires: python-six >= 1.3 +BuildArch: noarch + +%python_subpackages + +%description +LibROSA is a python package for music and audio analysis. It provides +the building blocks necessary to create music information retrieval +systems. + +%prep +%setup -q -n librosa-%{version} +cp %{SOURCE10} . +# Remove unneeded shebangs +find librosa -name "*.py" -exec sed -i -e '/^#!\//, 1d' {} \; + +%build +%python_build + +%install +%python_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%files %{python_files} +%doc README.md +%license LICENSE.md +%{python_sitelib}/* + +%changelog