From 873e3641c02e0a20c58ceaa05bd320425465480762efdc7b459f1cc0feb98e7f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Wed, 27 May 2020 10:09:20 +0000 Subject: [PATCH] Accepting request 809251 from home:pgajdos:python submit OBS-URL: https://build.opensuse.org/request/show/809251 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-extratools?expand=0&rev=9 --- python-extratools.changes | 5 +++++ python-extratools.spec | 23 +++++++++++++++++++---- 2 files changed, 24 insertions(+), 4 deletions(-) diff --git a/python-extratools.changes b/python-extratools.changes index 6924160..8eeb0c9 100644 --- a/python-extratools.changes +++ b/python-extratools.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue May 26 06:34:11 UTC 2020 - Petr Gajdos + +- %python3_only -> %python_alternative + ------------------------------------------------------------------- Mon Mar 11 11:15:07 UTC 2019 - Tomáš Chvátal diff --git a/python-extratools.spec b/python-extratools.spec index df5ffe0..afc93e0 100644 --- a/python-extratools.spec +++ b/python-extratools.spec @@ -1,7 +1,7 @@ # # spec file for package python-extratools # -# 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 @@ -34,6 +34,8 @@ Requires: python-TagStats >= 0.1.2 Requires: python-sh >= 1.12.13 Requires: python-sortedcontainers >= 1.5.10 Requires: python-toolz >= 0.9.0 +Requires(post): update-alternatives +Requires(postun): update-alternatives BuildArch: noarch # SECTION test requirements BuildRequires: %{python_module RegexOrder >= 0.2} @@ -60,14 +62,27 @@ chmod a-x extratools/*/*.js %install %python_install +%python_clone -a %{buildroot}%{_bindir}/extratools-teststats +%python_clone -a %{buildroot}%{_bindir}/extratools-remap +%python_clone -a %{buildroot}%{_bindir}/extratools-flatten %python_expand %fdupes %{buildroot}%{$python_sitelib} +%post +%python_install_alternative extratools-teststats +%python_install_alternative extratools-remap +%python_install_alternative extratools-flatten + +%postun +%python_uninstall_alternative extratools-teststats +%python_uninstall_alternative extratools-remap +%python_uninstall_alternative extratools-flatten + %files %{python_files} %doc README.md %license LICENSE -%python3_only %{_bindir}/extratools-flatten -%python3_only %{_bindir}/extratools-remap -%python3_only %{_bindir}/extratools-teststats +%python_alternative %{_bindir}/extratools-flatten +%python_alternative %{_bindir}/extratools-remap +%python_alternative %{_bindir}/extratools-teststats %{python_sitelib}/* %changelog