[python-power] Initial import (#894881)

Miro Hrončok churchyard at fedoraproject.org
Tue Jan 15 20:00:27 UTC 2013


commit 182c9e5549b89996b3f73671e433467ba61f6c67
Author: Miro Hrončok <miro at hroncok.cz>
Date:   Tue Jan 15 21:00:21 2013 +0100

    Initial import (#894881)

 .gitignore        |    1 +
 python-power.spec |   37 +++++++++++++++++++++++++++++++++++++
 sources           |    1 +
 3 files changed, 39 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..0abfcea 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/python-power-1.1-2cfe611.tar.gz
diff --git a/python-power.spec b/python-power.spec
new file mode 100644
index 0000000..7a8ae34
--- /dev/null
+++ b/python-power.spec
@@ -0,0 +1,37 @@
+%global commit 2cfe611348d84512a1590840a7e0d24bec1d1d93
+%global shortcommit %(c=%{commit}; echo ${c:0:7})
+%global snapshot 20121103git%{shortcommit}
+Name:           python-power
+Version:        1.1
+Release:        2.%{snapshot}%{?dist}
+Summary:        Cross-platform system power status information
+License:        MIT
+URL:            https://github.com/Kentzo/Power
+Source0:        https://github.com/Kentzo/Power/archive/%{commit}/%{name}-%{version}-%{shortcommit}.tar.gz
+BuildArch:      noarch
+BuildRequires:  python2-devel
+BuildRequires:  python-setuptools
+
+%description
+Python module that allows you to get power and battery status of the system.
+
+%prep
+%setup -qn Power-%{commit}
+
+%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
+* Mon Jan 14 2013 Miro Hrončok <mhroncok at redhat.com> - 1.1-2.20121103git2cfe611
+- Added python-setuptools BR
+
+* Sun Jan 13 2013 Miro Hrončok <mhroncok at redhat.com> - 1.1-1.20121103git2cfe611
+- First version
diff --git a/sources b/sources
index e69de29..fa18cba 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+e21271f95c76ec0a9e9001d27aab8b30  python-power-1.1-2cfe611.tar.gz


More information about the scm-commits mailing list