Accepting request 1291263 from devel:languages:python

- Convert to libalternatives

OBS-URL: https://build.opensuse.org/request/show/1291263
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-CacheControl?expand=0&rev=19
This commit is contained in:
2025-07-09 15:26:07 +00:00
committed by Git OBS Bridge
2 changed files with 11 additions and 8 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Tue Jul 8 12:38:22 UTC 2025 - Markéta Machová <mmachova@suse.com>
- Convert to libalternatives
-------------------------------------------------------------------
Tue May 6 08:53:17 UTC 2025 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>

View File

@@ -16,6 +16,7 @@
#
%bcond_without libalternatives
%{?sle15_python_module_pythons}
Name: python-CacheControl
Version: 0.14.3
@@ -29,14 +30,14 @@ BuildRequires: %{python_module flit-core >= 3.11}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: alts
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: alts
Requires: python-msgpack >= 0.5.2
Requires: python-requests >= 2.16.0
Provides: python-cachecontrol = %{version}-%{release}
Requires(post): update-alternatives
Requires(postun): update-alternatives
Recommends: python-filelock >= 3.8.0
Provides: python-cachecontrol = %{version}-%{release}
BuildArch: noarch
# SECTION test requirements
BuildRequires: %{python_module CherryPy}
@@ -70,11 +71,8 @@ requests session object.
# test_file_cache_recognizes_consumed_file_handle uses httpbin.org directly
%pytest -v -k 'not test_file_cache_recognizes_consumed_file_handle'
%post
%python_install_alternative doesitcache
%postun
%python_uninstall_alternative doesitcache
%pre
%python_libalternatives_reset_alternative doesitcache
%files %{python_files}
%license LICENSE.txt