Hello community,

here is the log from the commit of package python-power for openSUSE:Factory 
checked in at 2017-09-09 20:26:34
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-power (Old)
 and      /work/SRC/openSUSE:Factory/.python-power.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-power"

Sat Sep  9 20:26:34 2017 rev:2 rq:522183 version:1.4

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-power/python-power.changes        
2017-08-24 18:36:01.639768301 +0200
+++ /work/SRC/openSUSE:Factory/.python-power.new/python-power.changes   
2017-09-09 20:26:38.481188860 +0200
@@ -1,0 +2,11 @@
+Thu Sep  7 21:36:37 UTC 2017 - toddrme2...@gmail.com
+
+- Implement single-spec version
+- Switch to pypi url.
+
+-------------------------------------------------------------------
+Sat Jul  8 20:28:19 UTC 2017 - jeng...@inai.de
+
+- Trim redundant wording from summary
+
+-------------------------------------------------------------------

Old:
----
  Power-1.4.tar.gz
  python3-power.changes
  python3-power.spec

New:
----
  power-1.4.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-power.spec ++++++
--- /var/tmp/diff_new_pack.sAjCjd/_old  2017-09-09 20:26:39.069105992 +0200
+++ /var/tmp/diff_new_pack.sAjCjd/_new  2017-09-09 20:26:39.073105428 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package python-power
 #
-# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2017 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
@@ -16,33 +16,40 @@
 #
 
 
+%{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:           python-power
 Version:        1.4
 Release:        0
-Summary:        Cross-platform system power status information
+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
+Group:          Development/Languages/Python
+Source:         
https://files.pythonhosted.org/packages/source/p/power/power-%{version}.tar.gz
+BuildRequires:  %{python_module devel}
+BuildRequires:  %{python_module setuptools}
+BuildRequires:  fdupes
+BuildRequires:  python-rpm-macros
 BuildArch:      noarch
 
-BuildRequires:  python-devel
-BuildRequires:  python-setuptools
+%python_subpackages
 
 %description
 Python module that allows you to get power and battery status of the system.
 
 %prep
-%setup -n Power-%{version} 
+%setup -n power-%{version} 
 
 %build
-CFLAGS="$RPM_OPT_FLAGS" %{__python} setup.py build
+export CFLAGS="%{optflags}"
+%python_build
 
 %install
-mkdir -p %{buildroot}%{python_sitelib}
-cp -ar build/lib/power %{buildroot}%{python_sitelib}
+%python_install
+%python_expand %fdupes %{buildroot}%{$python_sitelib}
 
-%files
-%doc docs/*
-%{python_sitelib}/power
+%files %{python_files}
+%defattr(-,root,root,-)
+%{python_sitelib}/power/
+%{python_sitelib}/power-%{version}-py*.egg-info
 
 %changelog


Reply via email to