14
0
forked from pool/python-bottle

- Make the libalternatives transition conditional

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-bottle?expand=0&rev=67
This commit is contained in:
2025-08-11 14:02:07 +00:00
committed by Git OBS Bridge
parent 2ace1bf37b
commit bcad03e2b4
2 changed files with 22 additions and 1 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Mon Aug 11 14:01:21 UTC 2025 - Markéta Machová <mmachova@suse.com>
- Make the libalternatives transition conditional
-------------------------------------------------------------------
Tue Jul 15 06:52:35 UTC 2025 - Daniel Garcia <daniel.garcia@suse.com>

View File

@@ -16,7 +16,11 @@
#
%if 0%{?suse_version} > 1500
%bcond_without libalternatives
%else
%bcond_with libalternatives
%endif
%{?sle15_python_module_pythons}
Name: python-bottle
Version: 0.13.4
@@ -29,10 +33,15 @@ Source1: http://bottlepy.org/docs/0.12/bottle-docs.pdf
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: alts
BuildRequires: fdupes
BuildRequires: python-rpm-macros
%if %{with libalternatives}
BuildRequires: alts
Requires: alts
%else
Requires(post): update-alternatives
Requires(postun): update-alternatives
%endif
BuildArch: noarch
%python_subpackages
@@ -80,6 +89,13 @@ rm -rf %{buildroot}%{_bindir}/bottle.py
%python_libalternatives_reset_alternative bottle.py
%python_libalternatives_reset_alternative bottle
%post
%python_install_alternative bottle
%postun
%python_uninstall_alternative bottle.py
%python_uninstall_alternative bottle
%files %{python_files}
%license LICENSE
%doc README.rst