forked from pool/python-pprintpp
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:
@@ -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>
|
||||
|
||||
|
@@ -16,6 +16,7 @@
|
||||
#
|
||||
|
||||
|
||||
%bcond_without libalternatives
|
||||
Name: python-pprintpp
|
||||
Version: 0.4.0
|
||||
Release: 0
|
||||
@@ -35,10 +36,10 @@ BuildRequires: %{python_module pip}
|
||||
BuildRequires: %{python_module pytest}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: %{python_module wheel}
|
||||
BuildRequires: alts
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
Requires(post): alts
|
||||
Requires(postun): alts
|
||||
Requires: alts
|
||||
BuildArch: noarch
|
||||
%python_subpackages
|
||||
|
||||
@@ -62,11 +63,8 @@ export LANG=en_US.utf-8
|
||||
export LANG=en_US.utf-8
|
||||
%pytest -v test.py
|
||||
|
||||
%post
|
||||
%python_install_alternative pypprint
|
||||
|
||||
%postun
|
||||
%python_uninstall_alternative pypprint
|
||||
%pre
|
||||
%python_libalternatives_reset_alternative pypprint
|
||||
|
||||
%files %{python_files}
|
||||
%doc CHANGELOG.txt README.rst
|
||||
|
Reference in New Issue
Block a user