15
0
forked from pool/python-PyYAML

- add build-with-cython3.patch from 6.0.2rc1 to build with

cython3 (needed for python 3.13+)

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-PyYAML?expand=0&rev=59
This commit is contained in:
2024-07-01 10:53:08 +00:00
committed by Git OBS Bridge
parent b69ead11b9
commit d010eb6b7f
3 changed files with 26 additions and 1 deletions

View File

@@ -24,7 +24,8 @@ Summary: YAML parser and emitter for Python
License: MIT
URL: https://github.com/yaml/pyyaml
Source: https://files.pythonhosted.org/packages/source/P/PyYAML/PyYAML-%{version}.tar.gz
BuildRequires: %{python_module Cython with %python-Cython < 3}
Patch1: build-with-cython3.patch
BuildRequires: %{python_module Cython}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
@@ -51,6 +52,7 @@ configuration files to object serialization and persistance.
%build
export CFLAGS="%{optflags}"
export PYYAML_FORCE_CYTHON=1
%pyproject_wheel
# Fix example permissions.
find examples/ -type f | xargs chmod a-x