From 11b11a816795b2447f6414a611dae596cf304079122f71692b37ea5d2aa421a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Mon, 25 May 2020 13:31:38 +0000 Subject: [PATCH] Accepting request 808765 from home:pgajdos:python submit OBS-URL: https://build.opensuse.org/request/show/808765 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-jira?expand=0&rev=10 --- python-jira.changes | 5 +++++ python-jira.spec | 13 +++++++++++-- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/python-jira.changes b/python-jira.changes index 54bffce..9518f39 100644 --- a/python-jira.changes +++ b/python-jira.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon May 25 10:59:32 UTC 2020 - Petr Gajdos + +- %python3_only -> %python_alternative + ------------------------------------------------------------------- Thu Dec 20 18:38:38 UTC 2018 - astieger@suse.com diff --git a/python-jira.spec b/python-jira.spec index e3d4627..7c28cc9 100644 --- a/python-jira.spec +++ b/python-jira.spec @@ -1,7 +1,7 @@ # # spec file for package python-jira # -# Copyright (c) 2018 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 @@ -39,6 +39,8 @@ Requires: python-requests-oauthlib >= 0.6.1 Requires: python-requests-toolbelt Requires: python-setuptools >= 20.10.1 Requires: python-six >= 1.10.0 +Requires(post): update-alternatives +Requires(postun): update-alternatives BuildArch: noarch %python_subpackages @@ -55,12 +57,19 @@ export LANG=en_US.UTF-8 %install export LANG=en_US.UTF-8 %python_install +%python_clone -a %{buildroot}%{_bindir}/jirashell %python_expand %fdupes %{buildroot}%{$python_sitelib} +%post +%python_install_alternative jirashell + +%postun +%python_uninstall_alternative jirashell + %files %{python_files} %doc AUTHORS ChangeLog README.rst %license LICENSE -%python3_only %{_bindir}/jirashell +%python_alternative %{_bindir}/jirashell %{python_sitelib}/* %changelog