14
0

Accepting request 1284237 from devel:languages:python

- Convert to libalternatives

OBS-URL: https://build.opensuse.org/request/show/1284237
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pprintpp?expand=0&rev=8
This commit is contained in:
2025-06-10 07:08:27 +00:00
committed by Git OBS Bridge
2 changed files with 10 additions and 7 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Mon Jun 9 15:07:59 UTC 2025 - Markéta Machová <mmachova@suse.com>
- Convert to libalternatives
------------------------------------------------------------------- -------------------------------------------------------------------
Tue Jun 3 12:01:25 UTC 2025 - Markéta Machová <mmachova@suse.com> Tue Jun 3 12:01:25 UTC 2025 - Markéta Machová <mmachova@suse.com>

View File

@@ -16,6 +16,7 @@
# #
%bcond_without libalternatives
Name: python-pprintpp Name: python-pprintpp
Version: 0.4.0 Version: 0.4.0
Release: 0 Release: 0
@@ -35,10 +36,10 @@ BuildRequires: %{python_module pip}
BuildRequires: %{python_module pytest} BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools} BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel} BuildRequires: %{python_module wheel}
BuildRequires: alts
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: python-rpm-macros BuildRequires: python-rpm-macros
Requires(post): alts Requires: alts
Requires(postun): alts
BuildArch: noarch BuildArch: noarch
%python_subpackages %python_subpackages
@@ -62,11 +63,8 @@ export LANG=en_US.utf-8
export LANG=en_US.utf-8 export LANG=en_US.utf-8
%pytest -v test.py %pytest -v test.py
%post %pre
%python_install_alternative pypprint %python_libalternatives_reset_alternative pypprint
%postun
%python_uninstall_alternative pypprint
%files %{python_files} %files %{python_files}
%doc CHANGELOG.txt README.rst %doc CHANGELOG.txt README.rst