forked from pool/python-python-mpd2
Accepting request 632138 from devel:languages:python
- Update to release 1.0.0: * asyncio support * Various tweaks for python3 - Make sure to run tests OBS-URL: https://build.opensuse.org/request/show/632138 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-python-mpd2?expand=0&rev=2
This commit is contained in:
@@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:6a5006886951c07cf19e54696706380fc8c4cac3f627b3bee181d21e8eebd9bd
|
|
||||||
size 32906
|
|
3
python-mpd2-1.0.0.tar.bz2
Normal file
3
python-mpd2-1.0.0.tar.bz2
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:772fa6861273bb9f363a97987c2c45ca3965eb770570f1f02566efec9c89fc5f
|
||||||
|
size 42827
|
@@ -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
|
Thu Sep 7 22:42:03 UTC 2017 - toddrme2178@gmail.com
|
||||||
|
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-python-mpd2
|
# 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
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@@ -13,27 +13,25 @@
|
|||||||
# published by the Open Source Initiative.
|
# published by the Open Source Initiative.
|
||||||
|
|
||||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||||
|
#
|
||||||
|
|
||||||
|
|
||||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||||
%bcond_without test
|
|
||||||
Name: python-python-mpd2
|
Name: python-python-mpd2
|
||||||
Version: 0.5.5
|
Version: 1.0.0
|
||||||
Release: 0
|
Release: 0
|
||||||
License: LGPL-3.0
|
|
||||||
Summary: A Python MPD client library
|
Summary: A Python MPD client library
|
||||||
Url: https://github.com/Mic92/python-mpd2
|
License: LGPL-3.0-only
|
||||||
Group: Development/Languages/Python
|
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
|
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: fdupes
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
BuildRequires: %{python_module devel}
|
Requires: python-Twisted
|
||||||
BuildRequires: %{python_module setuptools}
|
|
||||||
%if %{with test}
|
|
||||||
BuildRequires: %{python_module tox}
|
|
||||||
%endif
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
|
||||||
%python_subpackages
|
%python_subpackages
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@@ -52,24 +50,15 @@ backward compatibles with the original python-mpd package.
|
|||||||
|
|
||||||
%install
|
%install
|
||||||
%python_install
|
%python_install
|
||||||
%{python_expand chmod a+x %{buildroot}%{$python_sitelib}/mpd_test.py
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||||
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
|
%check
|
||||||
%python_exec setup.py test
|
%python_expand PYTHON_SITEPATH=%{buildroot}%{$python_sitelib} $python -m unittest mpd.tests
|
||||||
%endif
|
|
||||||
|
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%defattr(-,root,root,-)
|
%license LICENSE.txt
|
||||||
%doc LICENSE.txt README.rst
|
%doc README.rst
|
||||||
%{python_sitelib}/mpd.py*
|
|
||||||
%{python_sitelib}/mpd_test.py*
|
|
||||||
%{python_sitelib}/python_mpd2-%{version}-py*.egg-info
|
%{python_sitelib}/python_mpd2-%{version}-py*.egg-info
|
||||||
%pycache_only %{python_sitelib}/__pycache__/mpd*.py*
|
%{python_sitelib}/mpd
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Reference in New Issue
Block a user