15
0
2025-06-17 09:16:28 +00:00
committed by Git OBS Bridge
parent 94949f7e78
commit aabc2e20d9
2 changed files with 10 additions and 7 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,10 +36,10 @@ 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
@@ -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