commit python-power for openSUSE:Factory
Hello community, here is the log from the commit of package python-power for openSUSE:Factory checked in at 2019-10-31 22:45:23 Comparing /work/SRC/openSUSE:Factory/python-power (Old) and /work/SRC/openSUSE:Factory/.python-power.new.2990 (New) Package is "python-power" Thu Oct 31 22:45:23 2019 rev:3 rq:744500 version:1.4 Changes: --- /work/SRC/openSUSE:Factory/python-power/python-power.changes 2017-09-09 20:26:38.481188860 +0200 +++ /work/SRC/openSUSE:Factory/.python-power.new.2990/python-power.changes 2019-10-31 22:45:28.673861040 +0100 @@ -1,0 +2,9 @@ +Sun Oct 20 02:54:52 UTC 2019 - John Vandenberg + +- 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.BBnVAD/_old 2019-10-31 22:45:30.201862938 +0100 +++ /var/tmp/diff_new_pack.BBnVAD/_new 2019-10-31 22:45:30.241862987 +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
commit python-power for openSUSE:Factory
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