Hello community, here is the log from the commit of package python-power for openSUSE:Leap:15.2 checked in at 2020-02-19 18:48:57 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Leap:15.2/python-power (Old) and /work/SRC/openSUSE:Leap:15.2/.python-power.new.26092 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-power" Wed Feb 19 18:48:57 2020 rev:12 rq:776927 version:1.4 Changes: -------- --- /work/SRC/openSUSE:Leap:15.2/python-power/python-power.changes 2020-01-15 15:51:39.711536637 +0100 +++ /work/SRC/openSUSE:Leap:15.2/.python-power.new.26092/python-power.changes 2020-02-19 18:48:57.803047306 +0100 @@ -1,0 +2,9 @@ +Sun Oct 20 02:54:52 UTC 2019 - John Vandenberg <[email protected]> + +- Remove unnecessary dependency on python-devel +- Remove runtime code for Darwin, FreeBSD and Windows +- Remove test suite from runtime package +- Run spec-cleaner +- Activate test suite + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-power.spec ++++++ --- /var/tmp/diff_new_pack.pmYBy0/_old 2020-02-19 18:48:58.075047596 +0100 +++ /var/tmp/diff_new_pack.pmYBy0/_new 2020-02-19 18:48:58.079047600 +0100 @@ -1,7 +1,7 @@ # # spec file for package python-power # -# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2019 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 @@ -12,7 +12,7 @@ # 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/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ # @@ -22,33 +22,37 @@ Release: 0 Summary: System power status information in Python License: MIT -Url: https://github.com/Kentzo/Power Group: Development/Languages/Python +URL: https://github.com/Kentzo/Power 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 - %python_subpackages %description Python module that allows you to get power and battery status of the system. %prep -%setup -n power-%{version} +%setup -q -n power-%{version} +rm power/darwin.py power/freebsd.py power/win32.py +mkdir tests +mv power/tests.py tests/ %build -export CFLAGS="%{optflags}" %python_build %install %python_install %python_expand %fdupes %{buildroot}%{$python_sitelib} +%check +# tests.py can be run directly, but those tests expect user to alter power state during tests +cd tests +%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib}:. $python -m unittest tests + %files %{python_files} -%defattr(-,root,root,-) %{python_sitelib}/power/ %{python_sitelib}/power-%{version}-py*.egg-info
