Hello community, here is the log from the commit of package python-spark_parser for openSUSE:Factory checked in at 2020-05-20 18:44:04 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-spark_parser (Old) and /work/SRC/openSUSE:Factory/.python-spark_parser.new.2738 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-spark_parser" Wed May 20 18:44:04 2020 rev:6 rq:807151 version:1.8.9 Changes: -------- --- /work/SRC/openSUSE:Factory/python-spark_parser/python-spark_parser.changes 2019-09-11 10:35:21.911296717 +0200 +++ /work/SRC/openSUSE:Factory/.python-spark_parser.new.2738/python-spark_parser.changes 2020-05-20 18:44:53.901206313 +0200 @@ -1,0 +2,5 @@ +Tue May 19 08:03:00 UTC 2020 - Petr Gajdos <pgaj...@suse.com> + +- %python3_only -> %python_alternative + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-spark_parser.spec ++++++ --- /var/tmp/diff_new_pack.nzM3HD/_old 2020-05-20 18:44:55.061208919 +0200 +++ /var/tmp/diff_new_pack.nzM3HD/_new 2020-05-20 18:44:55.065208928 +0200 @@ -1,7 +1,7 @@ # # spec file for package python-spark_parser # -# 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 @@ -32,6 +32,8 @@ BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-click +Requires(post): update-alternatives +Requires(postun): update-alternatives BuildArch: noarch %python_subpackages @@ -52,15 +54,22 @@ %install %python_install +%python_clone -a %{buildroot}%{_bindir}/spark-parser-coverage %python_expand %fdupes %{buildroot}%{$python_sitelib} %check %pytest test +%post +%python_install_alternative spark-parser-coverage + +%postun +%python_uninstall_alternative spark-parser-coverage + %files %{python_files} %license LICENSE %doc ChangeLog README.rst -%python3_only %{_bindir}/spark-parser-coverage +%python_alternative %{_bindir}/spark-parser-coverage %{python_sitelib}/* %changelog