forked from pool/python-phue
Accepting request 522158 from home:TheBlackCat:branches:devel:languages:python
- Implement single-spec version. - Update to version 1.0.0 * Misc bug fixes * Better support for schedules OBS-URL: https://build.opensuse.org/request/show/522158 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-phue?expand=0&rev=3
This commit is contained in:
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:58b75475fdd3267b2708549f4185f4eee2658e72728dcc4b239439c7918a2cd7
|
||||
size 9951
|
||||
3
phue-1.0.tar.gz
Normal file
3
phue-1.0.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:14b8285ece83124a6b0f47b88a62b0a6c4f2901cd1d555e36c5927bfd7417515
|
||||
size 10092
|
||||
@@ -1,3 +1,11 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu Sep 7 20:06:56 UTC 2017 - toddrme2178@gmail.com
|
||||
|
||||
- Implement single-spec version.
|
||||
- Update to version 1.0.0
|
||||
* Misc bug fixes
|
||||
* Better support for schedules
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Jan 31 14:49:58 UTC 2017 - dmueller@suse.com
|
||||
|
||||
|
||||
@@ -16,50 +16,45 @@
|
||||
#
|
||||
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
Name: python-phue
|
||||
Version: 0.9
|
||||
Version: 1.0
|
||||
Release: 0
|
||||
Summary: A Philips Hue Python library
|
||||
Summary: Philips Hue Python library
|
||||
License: MIT
|
||||
Group: Development/Languages/Python
|
||||
Url: https://github.com/studioimaginaire/phue
|
||||
Source: https://pypi.io/packages/source/p/phue/phue-%{version}.tar.gz
|
||||
BuildRequires: python-devel
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
|
||||
%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
|
||||
%else
|
||||
Source: https://files.pythonhosted.org/packages/source/p/phue/phue-%{version}.tar.gz
|
||||
BuildRequires: %{python_module devel}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
BuildArch: noarch
|
||||
%endif
|
||||
|
||||
%python_subpackages
|
||||
|
||||
%description
|
||||
Full featured Python library to control the Philips Hue lighting system
|
||||
|
||||
Features:
|
||||
|
||||
- Compliant with the Philips Hue API 1.0
|
||||
- Support for Lights
|
||||
- Support for Groups
|
||||
- Support for Schedules
|
||||
- Support for Scenes
|
||||
- Support for Sensors
|
||||
- Compatible with Python 2.6.x and upwards
|
||||
- Compatible with Python 3
|
||||
- No dependencies
|
||||
- Simple structure, single phue.py file
|
||||
- Work in a procedural way or object oriented way
|
||||
Full featured Python library to control the Philips Hue lighting system.
|
||||
|
||||
%prep
|
||||
%setup -q -n phue-%{version}
|
||||
|
||||
%build
|
||||
python setup.py build
|
||||
%python_build
|
||||
|
||||
%install
|
||||
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
||||
%python_install
|
||||
%{python_expand chmod a+x %{buildroot}%{$python_sitelib}/phue.py
|
||||
sed -i "s|^#!/usr/bin/python$|#!%__$python|" %{buildroot}%{$python_sitelib}/phue.py
|
||||
$python -m compileall -d %{$python_sitelib} %{buildroot}%{$python_sitelib}
|
||||
$python -O -m compileall -d %{$python_sitelib} %{buildroot}%{$python_sitelib}
|
||||
%fdupes %{buildroot}%{$python_sitelib}
|
||||
}
|
||||
|
||||
%files
|
||||
%files %{python_files}
|
||||
%defattr(-,root,root,-)
|
||||
%{python_sitelib}/*
|
||||
%{python_sitelib}/phue.py*
|
||||
%{python_sitelib}/phue-%{version}-py*.egg-info
|
||||
%pycache_only %{python_sitelib}/__pycache__/phue*.py*
|
||||
|
||||
%changelog
|
||||
|
||||
Reference in New Issue
Block a user