File python-power.spec of Package python3-power

#
# spec file for package python-power
#
# Copyright (c) 2015 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
# 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:           python3-power
Version:        1.4
Release:        0
Summary:        Cross-platform system power status information
License:        MIT
Url:            https://github.com/Kentzo/Power
Source0:        https://github.com/Kentzo/Power/archive/v%{version}/Power-%{version}.tar.gz
BuildArch:      noarch

BuildRequires:  python3-devel
BuildRequires:  python3-setuptools

%description
Python module that allows you to get power and battery status of the system.

%prep
%setup -n Power-%{version} 

%build
CFLAGS="%{optflags}" python3 setup.py build

%install
python3 setup.py install --root="%{buildroot}" --prefix="%{_prefix}"

%files
%doc README.md docs/*
%{python3_sitelib}/power-%{version}-py*.egg-info
%{python3_sitelib}/power

%changelog
openSUSE Build Service is sponsored by