forked from pool/python-bugzilla
- Convert to libalternatives
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-bugzilla?expand=0&rev=66
This commit is contained in:
@@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue Jun 17 09:15:10 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>
|
||||
|
||||
|
||||
@@ -17,6 +17,7 @@
|
||||
|
||||
|
||||
%define oldpython python
|
||||
%bcond_without libalternatives
|
||||
%{?sle15_python_module_pythons}
|
||||
Name: python-bugzilla
|
||||
Version: 3.2.0+git.1726768917.5eedea3
|
||||
@@ -36,11 +37,11 @@ BuildRequires: %{python_module requests}
|
||||
BuildRequires: %{python_module responses}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: %{python_module wheel}
|
||||
BuildRequires: alts
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
Requires: alts
|
||||
Requires: python-requests
|
||||
Requires(post): update-alternatives
|
||||
Requires(postun): update-alternatives
|
||||
Suggests: osc
|
||||
Conflicts: %{oldpython}-bugzillatools
|
||||
Obsoletes: python2-bugzilla
|
||||
@@ -70,11 +71,8 @@ export CFLAGS="%{optflags}"
|
||||
%python_clone -a %{buildroot}%{_mandir}/man1/bugzilla.1
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
%post
|
||||
%{python_install_alternative bugzilla bugzilla.1}
|
||||
|
||||
%postun
|
||||
%python_uninstall_alternative bugzilla
|
||||
%pre
|
||||
%python_libalternatives_reset_alternative bugzilla
|
||||
|
||||
%check
|
||||
%pytest
|
||||
|
||||
Reference in New Issue
Block a user