diff --git a/python-spark_parser.changes b/python-spark_parser.changes index ddb280e..f54db9a 100644 --- a/python-spark_parser.changes +++ b/python-spark_parser.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue May 19 08:03:00 UTC 2020 - Petr Gajdos + +- %python3_only -> %python_alternative + ------------------------------------------------------------------- Tue Sep 10 10:10:05 UTC 2019 - Tomáš Chvátal diff --git a/python-spark_parser.spec b/python-spark_parser.spec index 0bb78ee..c0e7613 100644 --- a/python-spark_parser.spec +++ b/python-spark_parser.spec @@ -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: %{python_module setuptools} 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 @@ grammar. These are grammars which are left-recursive. %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