15
0
forked from pool/python-blurb

Accepting request 1286292 from devel:languages:python

- Convert to libalternatives

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

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Tue Jun 17 08:09:17 UTC 2025 - Markéta Machová <mmachova@suse.com>
- Convert to libalternatives
-------------------------------------------------------------------
Mon Jan 27 13:55:01 UTC 2025 - Nico Krapp <nico.krapp@suse.com>

View File

@@ -17,6 +17,7 @@
%define skip_python2 1
%bcond_without libalternatives
%{?sle15_python_module_pythons}
Name: python-blurb
Version: 2.0.0
@@ -33,11 +34,11 @@ BuildRequires: %{python_module pyfakefs}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module time-machine}
BuildRequires: %{python_module wheel}
BuildRequires: alts
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: alts
BuildArch: noarch
Requires(post): update-alternatives
Requires(postun): update-alternatives
%python_subpackages
%description
@@ -60,11 +61,8 @@ chmod -x src/blurb/blurb.py
%check
%pytest
%post
%python_install_alternative blurb
%postun
%python_uninstall_alternative blurb
%pre
%python_libalternatives_reset_alternative blurb
%files %{python_files}
%doc README.md