Hello community, here is the log from the commit of package python-PyMeta3 for openSUSE:Factory checked in at 2020-05-26 17:18:45 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-PyMeta3 (Old) and /work/SRC/openSUSE:Factory/.python-PyMeta3.new.2738 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-PyMeta3" Tue May 26 17:18:45 2020 rev:3 rq:807687 version:0.5.1 Changes: -------- --- /work/SRC/openSUSE:Factory/python-PyMeta3/python-PyMeta3.changes 2019-11-08 15:25:14.946964483 +0100 +++ /work/SRC/openSUSE:Factory/.python-PyMeta3.new.2738/python-PyMeta3.changes 2020-05-26 17:19:07.739950124 +0200 @@ -1,0 +2,5 @@ +Wed May 20 07:26:35 UTC 2020 - Petr Gajdos <[email protected]> + +- %python3_only -> %python_alternative + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-PyMeta3.spec ++++++ --- /var/tmp/diff_new_pack.MK5Gjx/_old 2020-05-26 17:19:08.475951706 +0200 +++ /var/tmp/diff_new_pack.MK5Gjx/_new 2020-05-26 17:19:08.479951715 +0200 @@ -1,7 +1,7 @@ # # spec file for package python-PyMeta3 # -# 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 @@ -27,6 +27,8 @@ BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros +Requires(post): update-alternatives +Requires(postun): update-alternatives BuildArch: noarch %python_subpackages @@ -51,11 +53,18 @@ %python_expand %fdupes %{buildroot}%{$python_sitelib} install -D -m0755 bin/generate_parser %{buildroot}%{_bindir}/generate_parser sed -i -e 's/env python$/python3/' %{buildroot}%{_bindir}/generate_parser +%python_clone -a %{buildroot}%{_bindir}/generate_parser + +%post +%python_install_alternative generate_parser + +%postun +%python_uninstall_alternative generate_parser %files %{python_files} %license LICENSE %doc NEWS README %{python_sitelib}/* -%python3_only %{_bindir}/generate_parser +%python_alternative %{_bindir}/generate_parser %changelog
