File python-foscontrol.spec of Package python-foscontrol
#
# spec file for package python-foscontrol
#
# Copyright (c) 2016, Martin Hauke <mardnh@gmx.de>
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: python-foscontrol
Version: 0.0.0.git1452722191.c5fbb3f
Release: 0
Summary: Python interface to Foscam CGI API
License: GPL-2.0
Group: Development/Languages/Python
Url: https://github.com/MStrecke/pyFosControl
Source: pyFosControl-%{version}.tar.xz
BuildRequires: python-devel
BuildRequires: python-setuptools
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
%description
Python interface to Foscam CGI API for HD models
%prep
%setup -q -n pyFosControl-%{version}
%build
python setup.py build
%install
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
# FIXME: better exaples-handling
mkdir examples
mv camtest.py cam.cfg.example examples/
# FIXME: install lowlevel/
%files
%defattr(-,root,root)
%doc LICENSE README.md
%doc docs/cgi-notes.txt
%doc examples/
%{python_sitelib}/*
%changelog