Files
python-power/python-power.spec

49 lines
1.4 KiB
RPMSpec

#
# 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: python-power
Version: 1.4
Release: 0
Summary: System power status information in Python
License: MIT
Url: https://github.com/Kentzo/Power
Source0: https://github.com/Kentzo/Power/archive/v%{version}/Power-%{version}.tar.gz
BuildArch: noarch
BuildRequires: python-devel
BuildRequires: python-setuptools
%description
Python module that allows you to get power and battery status of the system.
%prep
%setup -n Power-%{version}
%build
CFLAGS="$RPM_OPT_FLAGS" %{__python} setup.py build
%install
mkdir -p %{buildroot}%{python_sitelib}
cp -ar build/lib/power %{buildroot}%{python_sitelib}
%files
%doc docs/*
%{python_sitelib}/power
%changelog