14
0

- fix usage of libalternatives

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-blockdiag?expand=0&rev=28
This commit is contained in:
2025-06-04 14:59:01 +00:00
committed by Git OBS Bridge
parent 27c161a513
commit f32c79236e
2 changed files with 12 additions and 6 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Wed Jun 4 14:58:34 UTC 2025 - Nico Krapp <nico.krapp@suse.com>
- fix usage of libalternatives
-------------------------------------------------------------------
Wed May 14 12:28:44 UTC 2025 - Markéta Machová <mmachova@suse.com>

View File

@@ -16,6 +16,7 @@
#
%bcond_without libalternatives
%{?sle15_python_module_pythons}
Name: python-blockdiag
Version: 3.0.0
@@ -37,14 +38,14 @@ BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module webcolors}
BuildRequires: %{python_module wheel}
BuildRequires: alts
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: alts
Requires: python-Pillow >= 3
Requires: python-funcparserlib >= 1.0.0~a0
Requires: python-setuptools
Requires: python-webcolors
Requires(post): alts
Requires(preun): alts
BuildArch: noarch
# SECTION test requirements
BuildRequires: %{python_module docutils}
@@ -73,11 +74,11 @@ from spec-text files.
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%python_clone -a %{buildroot}%{_bindir}/blockdiag
%post
%python_install_alternative blockdiag
%pre
# If libalternatives is used: Removing old update-alternatives entries.
%python_libalternatives_reset_alternative blockdiag
%postun
%python_uninstall_alternative blockdiag
# post and postun macro call is not needed with only libalternatives
%check
pushd src