forked from pool/python-bashate
Accepting request 1282837 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1282837 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-bashate?expand=0&rev=12
This commit is contained in:
@@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Jun 4 15:10:04 UTC 2025 - Felix Stegmeier <felix.stegmeier@suse.com>
|
||||
|
||||
- fix usage of libalternatives
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue May 13 16:19:58 UTC 2025 - Markéta Machová <mmachova@suse.com>
|
||||
|
||||
|
||||
@@ -16,6 +16,7 @@
|
||||
#
|
||||
|
||||
|
||||
%bcond_without libalternatives
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
%global skip_python2 1
|
||||
Name: python-bashate
|
||||
@@ -32,14 +33,14 @@ BuildRequires: %{python_module pip}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: %{python_module testtools}
|
||||
BuildRequires: %{python_module wheel}
|
||||
BuildRequires: alts
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
# OpenStack package: stestr is only available for primary python3, only test on this flavor
|
||||
BuildRequires: python3-stestr
|
||||
Requires: alts
|
||||
Requires: python-Babel >= 0.9.6
|
||||
Requires: python-pbr
|
||||
Requires(post): alts
|
||||
Requires(postun): alts
|
||||
BuildArch: noarch
|
||||
%ifpython2
|
||||
Requires: python-argparse
|
||||
@@ -77,11 +78,9 @@ sed -i -e '/^#!\//, 1d' %{buildroot}%{$python_sitelib}/bashate/bashate.py
|
||||
%check
|
||||
python3 -m stestr.cli run
|
||||
|
||||
%post
|
||||
%python_install_alternative bashate
|
||||
|
||||
%postun
|
||||
%python_uninstall_alternative bashate
|
||||
%pre
|
||||
# Removing old update-alternatives entries.
|
||||
%python_libalternatives_reset_alternative bashate
|
||||
|
||||
%files %{python_files}
|
||||
%license LICENSE
|
||||
|
||||
Reference in New Issue
Block a user