From 5cd583a2afa8ec41f3c46e890538628797cdcf4210c217e5aa3132012af31de6 Mon Sep 17 00:00:00 2001 From: Thomas Bechtold Date: Mon, 6 Feb 2017 13:13:47 +0000 Subject: [PATCH] Accepting request 454957 from home:alarrosa:branches:devel:languages:python New package python-pyacoustid OBS-URL: https://build.opensuse.org/request/show/454957 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyacoustid?expand=0&rev=1 --- .gitattributes | 23 +++++++++++++++ .gitignore | 1 + pyacoustid-1.1.4.tar.gz | 3 ++ python-pyacoustid.changes | 56 +++++++++++++++++++++++++++++++++++ python-pyacoustid.spec | 61 +++++++++++++++++++++++++++++++++++++++ 5 files changed, 144 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 pyacoustid-1.1.4.tar.gz create mode 100644 python-pyacoustid.changes create mode 100644 python-pyacoustid.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/pyacoustid-1.1.4.tar.gz b/pyacoustid-1.1.4.tar.gz new file mode 100644 index 0000000..59ad268 --- /dev/null +++ b/pyacoustid-1.1.4.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b54bc803e936e49170f01febcf89621dda4a1ebb3d407e04e9ead290fa3a6cf3 +size 11710 diff --git a/python-pyacoustid.changes b/python-pyacoustid.changes new file mode 100644 index 0000000..50adec8 --- /dev/null +++ b/python-pyacoustid.changes @@ -0,0 +1,56 @@ +------------------------------------------------------------------- +Wed Jan 18 12:24:31 UTC 2017 - alarrosa@suse.com + +- Initial package release + + 1.1.4 + Fix an error on versions of the `fpcalc` tool that report the duration as a + fractional number. + + 1.1.3 + Accept `bytearray` objects in addition to other bytes-like types. + + 1.1.2 + Fix a possible crash on Unicode text in Python 2 in a non-Unicode locale. + Look for version "1" of the Chromaprint shared library file. + + 1.1.1 + Fix a possible setup error on Python 3 (thanks to Simon Chopin). + + 1.1.0 + Include ``fpcalc.py`` script in source distributions. + Add Python 3 support (thanks to Igor Tsarev). + + 1.0.0 + Include ``fpcalc.py``, a script mimicking the ``fpcalc`` program from the + Chromaprint package. + Handle a ``UnicodeDecodeError`` raised when using the ``fpcalc`` backend on + Windows with Unicode filenames. + Standard error output from ``fpcalc`` is suppressed. + + 0.7 + Properly encode Unicode parameters (resolves a ``UnicodeEncodeError`` + in fingerprint submission). + Parse all recordings for each Acoustid lookup result. + + 0.6 + Add a new function, ``fingerprint_file``, that automatically selects a + backend for fingerprinting a single file. + + 0.5 + Fix response parsing when recording has no artists or title. + Fix compatibility with Python < 2.7. + Add specific ``NoBackendError`` exception. + + 0.4 + Fingerprinting can now fall back to using the ``fpcalc`` command-line tool + instead of the Chromaprint dynamic library so the library can be used with + the binary distributions (thanks to Lukas Lalinsky). + Fingerprint submission (thanks to Alastair Porter). + Data chunks can now be buffers as well as bytestrings (fixes compatibility + with pymad). + + 0.3 + Configurable API base URL. + Result parser now generates all results instead of returning just one. + diff --git a/python-pyacoustid.spec b/python-pyacoustid.spec new file mode 100644 index 0000000..169c5aa --- /dev/null +++ b/python-pyacoustid.spec @@ -0,0 +1,61 @@ +# +# spec file for package python-pyacoustid +# +# Copyright (c) 2017 SUSE LINUX Products 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/ + + +Name: python-pyacoustid +Version: 1.1.4 +Release: 0 +License: MIT +Summary: bindings for Chromaprint acoustic fingerprinting and the Acoustid API +Url: https://github.com/sampsyo/pyacoustid +Group: Development/Languages/Python +Source: https://files.pythonhosted.org/packages/source/p/pyacoustid/pyacoustid-%{version}.tar.gz +BuildRequires: python-devel +BuildRequires: python-audioread +BuildRequires: python-requests +BuildRequires: python-setuptools +Requires: python-audioread +Requires: python-requests +BuildRoot: %{_tmppath}/%{name}-%{version}-build +%if 0%{?suse_version} && 0%{?suse_version} <= 1110 +%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} +%else +BuildArch: noarch +%endif + +%description +Chromaprint and Acoustid for Python + +Chromaprint and its associated Acoustid Web service make up a +high-quality, open-source acoustic fingerprinting system. This package provides +Python bindings for both the fingerprinting algorithm library, which is written +in C but portable, and the Web service, which provides fingerprint lookups. + +%prep +%setup -q -n pyacoustid-%{version} + +%build +python setup.py build + +%install +python setup.py install --prefix=%{_prefix} --root=%{buildroot} + +%files +%defattr(-,root,root,-) +%doc README.rst +%{python_sitelib}/* + +%changelog