From f2a9e6ef9e30f1b67defa3de3225bc362da0d8bedf73f94071309530cadb3955 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Thu, 28 May 2020 07:32:04 +0000 Subject: [PATCH] Accepting request 809566 from home:pgajdos:python submit OBS-URL: https://build.opensuse.org/request/show/809566 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-behave?expand=0&rev=5 --- python-behave.changes | 5 +++++ python-behave.spec | 15 ++++++++++++--- 2 files changed, 17 insertions(+), 3 deletions(-) diff --git a/python-behave.changes b/python-behave.changes index 4b1383f..2ff8469 100644 --- a/python-behave.changes +++ b/python-behave.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed May 27 09:36:27 UTC 2020 - Petr Gajdos + +- %python3_only -> %python_alternative + ------------------------------------------------------------------- Sun Mar 24 11:04:29 UTC 2019 - Jan Engelhardt diff --git a/python-behave.spec b/python-behave.spec index f665463..099156e 100644 --- a/python-behave.spec +++ b/python-behave.spec @@ -1,7 +1,7 @@ # # spec file for package python-behave # -# 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 @@ -23,7 +23,7 @@ Release: 0 Summary: Behaviour-driven development, Python style License: BSD-2-Clause Group: Development/Languages/Python -URL: http://github.com/behave/behave +URL: https://github.com/behave/behave Source: https://files.pythonhosted.org/packages/source/b/behave/behave-%{version}.tar.gz BuildRequires: %{python_module devel} BuildRequires: %{python_module setuptools} @@ -32,6 +32,8 @@ BuildRequires: python-rpm-macros Requires: python-parse >= 1.8.2 Requires: python-parse_type >= 0.4.2 Requires: python-six >= 1.11 +Requires(post): update-alternatives +Requires(postun): update-alternatives Suggests: python-argparse Suggests: python-coverage Suggests: python-enum34 @@ -78,14 +80,21 @@ code. %install %python_install +%python_clone -a %{buildroot}%{_bindir}/behave %python_expand %fdupes %{buildroot}%{$python_sitelib} %check +%post +%python_install_alternative behave + +%postun +%python_uninstall_alternative behave + %files %{python_files} %license LICENSE %doc CHANGES.rst README.rst -%python3_only %{_bindir}/behave +%python_alternative %{_bindir}/behave %{python_sitelib}/* %changelog