14
0

Accepting request 1286370 from devel:languages:python

- Convert to libalternatives

OBS-URL: https://build.opensuse.org/request/show/1286370
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pycapnp?expand=0&rev=8
This commit is contained in:
2025-06-17 16:23:01 +00:00
committed by Git OBS Bridge
2 changed files with 12 additions and 8 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Tue Jun 17 09:25:58 UTC 2025 - Markéta Machová <mmachova@suse.com>
- Convert to libalternatives
-------------------------------------------------------------------
Mon Dec 16 01:24:52 UTC 2024 - Steve Kowalik <steven.kowalik@suse.com>

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-pycapnp
#
# Copyright (c) 2024 SUSE LLC
# Copyright (c) 2025 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -16,6 +16,7 @@
#
%bcond_without libalternatives
%{?sle15_python_module_pythons}
Name: python-pycapnp
Version: 2.0.0
@@ -33,12 +34,13 @@ BuildRequires: %{python_module pytest-asyncio}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: alts
BuildRequires: fdupes
BuildRequires: gcc-c++
BuildRequires: pkgconfig
BuildRequires: python-rpm-macros
BuildRequires: pkgconfig(capnp)
Requires(post): update-alternatives
Requires(postun): update-alternatives
Requires: alts
%python_subpackages
%description
@@ -65,11 +67,8 @@ mv capnp/ /tmp
%pytest_arch -k 'not (test_ssl_async_example or test_ssl_reconnecting_async_example or test_async_ssl_calculator_example)'
mv /tmp/capnp/ .
%post
%python_install_alternative capnpc-cython
%postun
%python_uninstall_alternative capnpc-cython
%pre
%python_libalternatives_reset_alternative capnpc-cython
%files %{python_files}
%doc CHANGELOG.md README.md