From 8f0c45b72fc2f04b5589c20e107fa28bd5466d5095ee33648abcfc3e084635ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Wed, 29 Aug 2018 11:05:59 +0000 Subject: [PATCH] - Update to release 1.0.0: * asyncio support * Various tweaks for python3 - Make sure to run tests OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-mpd2?expand=0&rev=3 --- python-mpd2-0.5.5.tar.bz2 | 3 --- python-mpd2-1.0.0.tar.bz2 | 3 +++ python-python-mpd2.changes | 8 ++++++++ python-python-mpd2.spec | 39 ++++++++++++++------------------------ 4 files changed, 25 insertions(+), 28 deletions(-) delete mode 100644 python-mpd2-0.5.5.tar.bz2 create mode 100644 python-mpd2-1.0.0.tar.bz2 diff --git a/python-mpd2-0.5.5.tar.bz2 b/python-mpd2-0.5.5.tar.bz2 deleted file mode 100644 index 8ddfc22..0000000 --- a/python-mpd2-0.5.5.tar.bz2 +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:6a5006886951c07cf19e54696706380fc8c4cac3f627b3bee181d21e8eebd9bd -size 32906 diff --git a/python-mpd2-1.0.0.tar.bz2 b/python-mpd2-1.0.0.tar.bz2 new file mode 100644 index 0000000..2c6ca85 --- /dev/null +++ b/python-mpd2-1.0.0.tar.bz2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:772fa6861273bb9f363a97987c2c45ca3965eb770570f1f02566efec9c89fc5f +size 42827 diff --git a/python-python-mpd2.changes b/python-python-mpd2.changes index f9ab0f1..dce489e 100644 --- a/python-python-mpd2.changes +++ b/python-python-mpd2.changes @@ -1,3 +1,11 @@ +------------------------------------------------------------------- +Wed Aug 29 10:58:41 UTC 2018 - tchvatal@suse.com + +- Update to release 1.0.0: + * asyncio support + * Various tweaks for python3 +- Make sure to run tests + ------------------------------------------------------------------- Thu Sep 7 22:42:03 UTC 2017 - toddrme2178@gmail.com diff --git a/python-python-mpd2.spec b/python-python-mpd2.spec index 7ec8283..9a6617f 100644 --- a/python-python-mpd2.spec +++ b/python-python-mpd2.spec @@ -1,7 +1,7 @@ # # spec file for package python-python-mpd2 # -# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. +# 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 @@ -13,27 +13,25 @@ # 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 +Version: 1.0.0 Release: 0 -License: LGPL-3.0 Summary: A Python MPD client library -Url: https://github.com/Mic92/python-mpd2 +License: LGPL-3.0-only Group: Development/Languages/Python +URL: https://github.com/Mic92/python-mpd2 Source: https://files.pythonhosted.org/packages/source/p/python-mpd2/python-mpd2-%{version}.tar.bz2 +BuildRequires: %{python_module Twisted} +BuildRequires: %{python_module mock} +BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros -BuildRequires: %{python_module devel} -BuildRequires: %{python_module setuptools} -%if %{with test} -BuildRequires: %{python_module tox} -%endif +Requires: python-Twisted BuildArch: noarch - %python_subpackages %description @@ -52,24 +50,15 @@ backward compatibles with the original python-mpd package. %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} -} +%python_expand %fdupes %{buildroot}%{$python_sitelib} -%if %{with test} %check -%python_exec setup.py test -%endif +%python_expand PYTHON_SITEPATH=%{buildroot}%{$python_sitelib} $python -m unittest mpd.tests %files %{python_files} -%defattr(-,root,root,-) -%doc LICENSE.txt README.rst -%{python_sitelib}/mpd.py* -%{python_sitelib}/mpd_test.py* +%license LICENSE.txt +%doc README.rst %{python_sitelib}/python_mpd2-%{version}-py*.egg-info -%pycache_only %{python_sitelib}/__pycache__/mpd*.py* +%{python_sitelib}/mpd %changelog