commit 587b096246e2d2d70ef3c030d0b95bd03b73b2195d8bea397d7d0208303409f9 Author: Todd R Date: Fri Sep 8 18:26:05 2017 +0000 Accepting request 522401 from home:TheBlackCat:branches:devel:languages:python singlespec version of python3-python-mpd2 OBS-URL: https://build.opensuse.org/request/show/522401 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-mpd2?expand=0&rev=1 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/python-mpd2-0.5.5.tar.bz2 b/python-mpd2-0.5.5.tar.bz2 new file mode 100644 index 0000000..8ddfc22 --- /dev/null +++ b/python-mpd2-0.5.5.tar.bz2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6a5006886951c07cf19e54696706380fc8c4cac3f627b3bee181d21e8eebd9bd +size 32906 diff --git a/python-python-mpd2.changes b/python-python-mpd2.changes new file mode 100644 index 0000000..f9ab0f1 --- /dev/null +++ b/python-python-mpd2.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Thu Sep 7 22:42:03 UTC 2017 - toddrme2178@gmail.com + +- initial version diff --git a/python-python-mpd2.spec b/python-python-mpd2.spec new file mode 100644 index 0000000..7ec8283 --- /dev/null +++ b/python-python-mpd2.spec @@ -0,0 +1,75 @@ +# +# spec file for package python-python-mpd2 +# +# Copyright (c) 2017 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-%{**}} +%bcond_without test +Name: python-python-mpd2 +Version: 0.5.5 +Release: 0 +License: LGPL-3.0 +Summary: A Python MPD client library +Url: https://github.com/Mic92/python-mpd2 +Group: Development/Languages/Python +Source: https://files.pythonhosted.org/packages/source/p/python-mpd2/python-mpd2-%{version}.tar.bz2 +BuildRequires: fdupes +BuildRequires: python-rpm-macros +BuildRequires: %{python_module devel} +BuildRequires: %{python_module setuptools} +%if %{with test} +BuildRequires: %{python_module tox} +%endif +BuildArch: noarch + +%python_subpackages + +%description +The python-mpd2 package is a Python library which provides +a client interface for the Music Player Daemon. + +python-mpd2 is a fork of python-mpd. While 0.4.x was backwards compatible +with python-mpd, starting with 0.5 provides enhanced features which are *NOT* +backward compatibles with the original python-mpd package. + +%prep +%setup -q -n python-mpd2-%{version} + +%build +%python_build + +%install +%python_install +%{python_expand chmod a+x %{buildroot}%{$python_sitelib}/mpd_test.py +sed -i "s|^#!/usr/bin/env python$|#!%__$python|" %{buildroot}%{$python_sitelib}/mpd_test.py +$python -m compileall -d %{$python_sitelib} %{buildroot}%{$python_sitelib} +$python -O -m compileall -d %{$python_sitelib} %{buildroot}%{$python_sitelib} +%fdupes %{buildroot}%{$python_sitelib} +} + +%if %{with test} +%check +%python_exec setup.py test +%endif + +%files %{python_files} +%defattr(-,root,root,-) +%doc LICENSE.txt README.rst +%{python_sitelib}/mpd.py* +%{python_sitelib}/mpd_test.py* +%{python_sitelib}/python_mpd2-%{version}-py*.egg-info +%pycache_only %{python_sitelib}/__pycache__/mpd*.py* + +%changelog