- Convert to libalternatives
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-bottle?expand=0&rev=62
This commit is contained in:
@@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue Jun 17 08:43:33 UTC 2025 - Markéta Machová <mmachova@suse.com>
|
||||
|
||||
- Convert to libalternatives
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Jun 15 12:06:40 UTC 2025 - Benoît Monin <benoit.monin@gmx.fr>
|
||||
|
||||
|
@@ -16,6 +16,7 @@
|
||||
#
|
||||
|
||||
|
||||
%bcond_without libalternatives
|
||||
%{?sle15_python_module_pythons}
|
||||
Name: python-bottle
|
||||
Version: 0.13.4
|
||||
@@ -28,10 +29,10 @@ 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
|
||||
Requires(post): update-alternatives
|
||||
Requires(postun): update-alternatives
|
||||
Requires: alts
|
||||
BuildArch: noarch
|
||||
%python_subpackages
|
||||
|
||||
@@ -73,11 +74,8 @@ cp %{SOURCE1} .
|
||||
%check
|
||||
%pyunittest -v
|
||||
|
||||
%post
|
||||
%python_install_alternative bottle.py bottle
|
||||
|
||||
%postun
|
||||
%python_uninstall_alternative bottle.py bottle
|
||||
%pre
|
||||
%python_libalternatives_reset_alternative bottle.py bottle
|
||||
|
||||
%files %{python_files}
|
||||
%license LICENSE
|
||||
|
Reference in New Issue
Block a user