diff --git a/phue-1.0.tar.gz b/phue-1.0.tar.gz deleted file mode 100644 index 910c551..0000000 --- a/phue-1.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:14b8285ece83124a6b0f47b88a62b0a6c4f2901cd1d555e36c5927bfd7417515 -size 10092 diff --git a/phue-1.1.tar.gz b/phue-1.1.tar.gz new file mode 100644 index 0000000..78722f7 --- /dev/null +++ b/phue-1.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:245bc176176a1ceb8d2065a6f07f53754fbe03f2a000dbeb01ab922e50e55d0a +size 18382 diff --git a/python-phue.changes b/python-phue.changes index 0876b1d..e5732a0 100644 --- a/python-phue.changes +++ b/python-phue.changes @@ -1,3 +1,13 @@ +------------------------------------------------------------------- +Mon Mar 25 13:46:59 UTC 2019 - pgajdos@suse.com + +- version update to 1.1 + * Add support for deleting scenes + * Various bug fixes +- use github tarball to: + * package LICENSE and *.md + * run tests + ------------------------------------------------------------------- Tue Dec 4 12:51:29 UTC 2018 - Matej Cepl diff --git a/python-phue.spec b/python-phue.spec index 8a73631..952d031 100644 --- a/python-phue.spec +++ b/python-phue.spec @@ -1,7 +1,7 @@ # # spec file for package python-phue # -# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2019 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 @@ -18,16 +18,22 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-phue -Version: 1.0 +Version: 1.1 Release: 0 Summary: Philips Hue Python library License: MIT Group: Development/Languages/Python Url: https://github.com/studioimaginaire/phue -Source: https://files.pythonhosted.org/packages/source/p/phue/phue-%{version}.tar.gz +# https://github.com/studioimaginaire/phue/issues/152 +Source0: https://github.com/studioimaginaire/phue/archive/1.1.tar.gz#/phue-%{version}.tar.gz BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros +# SECTION test requirements +BuildRequires: %{python_module fixtures} +BuildRequires: %{python_module mock} +BuildRequires: %{python_module pytest} +# /SECTION BuildArch: noarch %python_subpackages @@ -41,6 +47,9 @@ Full featured Python library to control the Philips Hue lighting system. %build %python_build +%check +%pytest + %install %python_install %{python_expand chmod a+x %{buildroot}%{$python_sitelib}/phue.py @@ -52,6 +61,8 @@ $python -O -m compileall -d %{$python_sitelib} %{buildroot}%{$python_sitelib} %files %{python_files} %defattr(-,root,root,-) +%doc *.md +%license LICENSE %{python_sitelib}/phue.py* %{python_sitelib}/phue-%{version}-py*.egg-info %pycache_only %{python_sitelib}/__pycache__/phue*.py*