Hello community, here is the log from the commit of package python-pingparsing for openSUSE:Factory checked in at 2020-05-26 17:17:11 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-pingparsing (Old) and /work/SRC/openSUSE:Factory/.python-pingparsing.new.2738 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-pingparsing" Tue May 26 17:17:11 2020 rev:6 rq:807655 version:1.0.3 Changes: -------- --- /work/SRC/openSUSE:Factory/python-pingparsing/python-pingparsing.changes 2020-04-27 23:37:03.587368842 +0200 +++ /work/SRC/openSUSE:Factory/.python-pingparsing.new.2738/python-pingparsing.changes 2020-05-26 17:18:08.111821933 +0200 @@ -1,0 +2,5 @@ +Wed May 20 07:26:14 UTC 2020 - Petr Gajdos <[email protected]> + +- %python3_only -> %python_alternative + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-pingparsing.spec ++++++ --- /var/tmp/diff_new_pack.MVuGBk/_old 2020-05-26 17:18:08.767823343 +0200 +++ /var/tmp/diff_new_pack.MVuGBk/_new 2020-05-26 17:18:08.771823352 +0200 @@ -29,14 +29,6 @@ BuildRequires: %{python_module setuptools >= 38.3.0} BuildRequires: fdupes BuildRequires: python-rpm-macros -# SECTION test requirements -BuildRequires: %{python_module humanreadable >= 0.1.0} -BuildRequires: %{python_module pyparsing >= 2.0.3} -BuildRequires: %{python_module pytest} -BuildRequires: %{python_module simplejson} -BuildRequires: %{python_module subprocrunner >= 1.2.1} -BuildRequires: %{python_module typepy >= 1.1.0} -# /SECTION Requires: python-humanreadable >= 0.1.0 Requires: python-loguru >= 0.4.1 Requires: python-pyparsing >= 2.0.3 @@ -44,7 +36,17 @@ Requires: python-simplejson Requires: python-subprocrunner >= 1.2.1 Requires: python-typepy >= 1.1.0 +Requires(post): update-alternatives +Requires(postun): update-alternatives BuildArch: noarch +# SECTION test requirements +BuildRequires: %{python_module humanreadable >= 0.1.0} +BuildRequires: %{python_module pyparsing >= 2.0.3} +BuildRequires: %{python_module pytest} +BuildRequires: %{python_module simplejson} +BuildRequires: %{python_module subprocrunner >= 1.2.1} +BuildRequires: %{python_module typepy >= 1.1.0} +# /SECTION %python_subpackages %description @@ -59,16 +61,23 @@ %install %python_install +%python_clone -a %{buildroot}%{_bindir}/pingparsing %python_expand rm -rf %{buildroot}%{$python_sitelib}/examples %python_expand %fdupes %{buildroot}%{$python_sitelib} %check %pytest +%post +%python_install_alternative pingparsing + +%postun +%python_uninstall_alternative pingparsing + %files %{python_files} %license LICENSE %doc README.rst -%python3_only %{_bindir}/pingparsing +%python_alternative %{_bindir}/pingparsing %{python_sitelib}/pingparsing* %changelog
