Hello community, here is the log from the commit of package python-phply for openSUSE:Factory checked in at 2020-05-28 09:08:11 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-phply (Old) and /work/SRC/openSUSE:Factory/.python-phply.new.3606 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-phply" Thu May 28 09:08:11 2020 rev:3 rq:807654 version:1.2.5 Changes: -------- --- /work/SRC/openSUSE:Factory/python-phply/python-phply.changes 2019-01-21 11:02:07.711137542 +0100 +++ /work/SRC/openSUSE:Factory/.python-phply.new.3606/python-phply.changes 2020-05-28 09:08:14.443864790 +0200 @@ -1,0 +2,5 @@ +Wed May 20 07:26:13 UTC 2020 - Petr Gajdos <pgaj...@suse.com> + +- %python3_only -> %python_alternative + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-phply.spec ++++++ --- /var/tmp/diff_new_pack.Zp18X1/_old 2020-05-28 09:08:15.211866739 +0200 +++ /var/tmp/diff_new_pack.Zp18X1/_new 2020-05-28 09:08:15.211866739 +0200 @@ -1,7 +1,7 @@ # # spec file for package python-phply # -# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2020 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -31,6 +31,8 @@ BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-ply +Requires(post): update-alternatives +Requires(postun): update-alternatives BuildArch: noarch %python_subpackages @@ -45,17 +47,27 @@ %install %python_install +%python_clone -a %{buildroot}%{_bindir}/phpparse +%python_clone -a %{buildroot}%{_bindir}/phplex %python_expand %fdupes %{buildroot}%{$python_sitelib} %python_expand rm -rf %{buildroot}%{$python_sitelib}/tests %check %python_exec setup.py test +%post +%python_install_alternative phpparse +%python_install_alternative phplex + +%postun +%python_uninstall_alternative phpparse +%python_uninstall_alternative phplex + %files %{python_files} %license LICENSE %doc README.md -%python3_only %{_bindir}/phplex -%python3_only %{_bindir}/phpparse +%python_alternative %{_bindir}/phplex +%python_alternative %{_bindir}/phpparse %{python_sitelib}/* %changelog