15
0

Accepting request 1302910 from devel:languages:python

- Convert to libalternatives

OBS-URL: https://build.opensuse.org/request/show/1302910
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-bugzillatools?expand=0&rev=11
This commit is contained in:
2025-09-05 19:44:18 +00:00
committed by Git OBS Bridge
2 changed files with 12 additions and 9 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Tue Jun 17 09:16:04 UTC 2025 - Markéta Machová <mmachova@suse.com>
- Convert to libalternatives
-------------------------------------------------------------------
Fri Jun 6 05:30:56 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>

View File

@@ -17,6 +17,7 @@
%define oldpython python
%bcond_without libalternatives
Name: python-bugzillatools
Version: 0.5.5
Release: 0
@@ -35,16 +36,16 @@ Patch2: python312.patch
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: alts
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires(post): update-alternatives
Requires(postun): update-alternatives
Requires: alts
# We want to conflict even package literally called python-bugzilla
# without the python version number
Conflicts: %{oldpython}-bugzilla
#Recommends: bzr
# File conflict for /usr/bin/bugzilla:
Conflicts: python-bugzilla
# File conflict for /usr/bin/bugzilla with all lang flavours:
Conflicts: %{python_module bugzilla}
BuildArch: noarch
%python_subpackages
@@ -69,11 +70,8 @@ sed -i "/.bugzillarc.sample/d" setup.py
%check
%pyunittest
%post
%python_install_alternative bugzilla
%postun
%python_uninstall_alternative bugzilla
%pre
%python_libalternatives_reset_alternative bugzilla
%files %{python_files}
%doc CHANGES README.rst gpl-3.0.txt