From 886b36b6f48420952b52edf1081ffe368e3d35f156969619ea03a5ef1266a49d Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Tue, 2 Feb 2021 13:43:03 +0000 Subject: [PATCH] - update-alternatives for multi-python3 builds OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Pweave?expand=0&rev=11 --- python-Pweave.changes | 5 +++++ python-Pweave.spec | 26 +++++++++++++++++++++----- 2 files changed, 26 insertions(+), 5 deletions(-) diff --git a/python-Pweave.changes b/python-Pweave.changes index b4a7ef1..80aad71 100644 --- a/python-Pweave.changes +++ b/python-Pweave.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Feb 2 13:42:49 UTC 2021 - Dirk Müller + +- update-alternatives for multi-python3 builds + ------------------------------------------------------------------- Mon Jun 8 07:55:03 UTC 2020 - Tomáš Chvátal diff --git a/python-Pweave.spec b/python-Pweave.spec index 3bbd4ba..e55341c 100644 --- a/python-Pweave.spec +++ b/python-Pweave.spec @@ -1,7 +1,7 @@ # # spec file for package python-Pweave # -# Copyright (c) 2020 SUSE LLC +# Copyright (c) 2021 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -76,6 +76,22 @@ with e.g. Sphinx or rest2web. %install %python_install %python_expand %fdupes %{buildroot}%{$python_sitelib} +%python_clone -a %{buildroot}%{_bindir}/pweave +%python_clone -a %{buildroot}%{_bindir}/ptangle +%python_clone -a %{buildroot}%{_bindir}/pypublish +%python_clone -a %{buildroot}%{_bindir}/pweave-convert + +%post +%python_install_alternative pweave +%python_install_alternative ptangle +%python_install_alternative pypublish +%python_install_alternative pweave-convert + +%postun +%python_uninstall_alternative pweave +%python_uninstall_alternative ptangle +%python_uninstall_alternative pypublish +%python_uninstall_alternative pweave-convert %check # tests.test_readers.test_url - online @@ -85,10 +101,10 @@ with e.g. Sphinx or rest2web. %files %{python_files} %doc CHANGELOG.txt README.rst %license LICENSE.txt -%{_bindir}/pweave -%{_bindir}/ptangle -%{_bindir}/pypublish -%{_bindir}/pweave-convert +%python_alternative %{_bindir}/pweave +%python_alternative %{_bindir}/ptangle +%python_alternative %{_bindir}/pypublish +%python_alternative %{_bindir}/pweave-convert %{python_sitelib}/* %changelog