forked from pool/python-python-mpd2
- 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
This commit is contained in:
committed by
Git OBS Bridge
parent
7a1a858dd1
commit
8f0c45b72f
@@ -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
|
||||
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user