14
0
forked from pool/python-cbor2

- Make the libalternatives transition conditional

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cbor2?expand=0&rev=33
This commit is contained in:
2025-08-12 08:01:34 +00:00
committed by Git OBS Bridge
parent 84de293402
commit 297b04d455
2 changed files with 21 additions and 1 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Tue Aug 12 08:01:01 UTC 2025 - Markéta Machová <mmachova@suse.com>
- Make the libalternatives transition conditional
-------------------------------------------------------------------
Wed Jun 25 11:44:28 UTC 2025 - Markéta Machová <mmachova@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-cbor2
Version: 5.6.5
@@ -32,10 +36,15 @@ BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools >= 61}
BuildRequires: %{python_module setuptools_scm >= 6.4}
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
%python_subpackages
%description
@@ -64,6 +73,12 @@ export LANG=en_US.UTF8
%pre
%python_libalternatives_reset_alternative cbor2
%post
%python_install_alternative cbor2
%postun
%python_uninstall_alternative cbor2
%files %{python_files}
%doc README.rst
%license LICENSE.txt