diff --git a/python-jira.changes b/python-jira.changes index f23a0c0..3615201 100644 --- a/python-jira.changes +++ b/python-jira.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Wed Jun 11 20:43:07 UTC 2025 - Lubos Kocman + +- Packaging sanity + * Use libalternatives on > 1500 + * Add sle15_python_module_pythons + ------------------------------------------------------------------- Wed Apr 3 07:24:10 UTC 2024 - Dirk Müller diff --git a/python-jira.spec b/python-jira.spec index 7eda087..2c301ac 100644 --- a/python-jira.spec +++ b/python-jira.spec @@ -1,7 +1,7 @@ # # spec file for package python-jira # -# Copyright (c) 2024 SUSE LLC +# Copyright (c) 2025 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,6 +16,12 @@ # +%if 0%{?suse_version} > 1500 +%bcond_without libalternatives +%else +%bcond_with libalternatives +%endif +%{?sle15_python_module_pythons} Name: python-jira Version: 3.8.0 Release: 0 @@ -41,14 +47,22 @@ Requires: python-requests >= 2.10.0 Requires: python-requests-oauthlib >= 0.6.1 Requires: python-requests-toolbelt Requires: python-typing_extensions >= 3.7.4.2 +%if %{with libalternatives} +Requires: alts +BuildRequires: alts +%else Requires(post): update-alternatives Requires(postun): update-alternatives +%endif BuildArch: noarch %python_subpackages %description This library eases the use of the JIRA REST API from Python. +%pre +%python_libalternatives_reset_alternative jirashell + %prep %setup -q -n jira-%{version}