2012-01-31 14:28:26 +01:00
|
|
|
#
|
|
|
|
# spec file for package python-PyYAML
|
|
|
|
#
|
2024-02-26 04:24:04 +01:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
2012-01-31 14:28:26 +01:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
2012-12-19 17:00:45 +01:00
|
|
|
|
2019-01-14 16:25:21 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2012-01-31 14:28:26 +01:00
|
|
|
#
|
|
|
|
|
2012-12-19 17:00:45 +01:00
|
|
|
|
2023-04-21 17:03:23 +02:00
|
|
|
%{?sle15_python_module_pythons}
|
2012-01-31 14:28:26 +01:00
|
|
|
Name: python-PyYAML
|
2023-08-13 20:58:12 +02:00
|
|
|
Version: 6.0.1
|
2012-01-31 14:28:26 +01:00
|
|
|
Release: 0
|
|
|
|
Summary: YAML parser and emitter for Python
|
|
|
|
License: MIT
|
2019-03-14 15:53:39 +01:00
|
|
|
URL: https://github.com/yaml/pyyaml
|
2017-03-06 14:34:20 +01:00
|
|
|
Source: https://files.pythonhosted.org/packages/source/P/PyYAML/PyYAML-%{version}.tar.gz
|
2023-08-13 20:58:12 +02:00
|
|
|
BuildRequires: %{python_module Cython with %python-Cython < 3}
|
2024-02-26 04:24:04 +01:00
|
|
|
BuildRequires: %{python_module pip}
|
2017-02-24 15:34:46 +01:00
|
|
|
BuildRequires: %{python_module setuptools}
|
2024-02-26 04:24:04 +01:00
|
|
|
BuildRequires: %{python_module wheel}
|
2019-03-14 15:53:39 +01:00
|
|
|
BuildRequires: fdupes
|
2012-12-19 17:00:45 +01:00
|
|
|
BuildRequires: libyaml-devel
|
2017-02-24 15:34:46 +01:00
|
|
|
BuildRequires: python-rpm-macros
|
2022-06-15 07:09:36 +02:00
|
|
|
%python_subpackages
|
2012-01-31 14:28:26 +01:00
|
|
|
|
|
|
|
%description
|
|
|
|
YAML is a data serialization format designed for human readability
|
2017-03-06 14:34:20 +01:00
|
|
|
and interaction with scripting languages. PyYAML is a YAML parser
|
2012-01-31 14:28:26 +01:00
|
|
|
and emitter for Python.
|
|
|
|
|
|
|
|
PyYAML features a complete YAML 1.1 parser, Unicode support, pickle
|
2017-03-06 14:34:20 +01:00
|
|
|
support, capable extension API, and sensible error messages. PyYAML
|
2012-01-31 14:28:26 +01:00
|
|
|
supports standard YAML tags and provides Python-specific tags that
|
|
|
|
allow to represent an arbitrary Python object.
|
|
|
|
|
|
|
|
PyYAML is applicable for a broad range of tasks from complex
|
|
|
|
configuration files to object serialization and persistance.
|
|
|
|
|
|
|
|
%prep
|
2024-02-26 04:24:04 +01:00
|
|
|
%autosetup -p1 -n PyYAML-%{version}
|
2012-01-31 14:28:26 +01:00
|
|
|
|
|
|
|
%build
|
2017-02-24 15:34:46 +01:00
|
|
|
export CFLAGS="%{optflags}"
|
2024-02-26 04:24:04 +01:00
|
|
|
%pyproject_wheel
|
2017-03-06 14:34:20 +01:00
|
|
|
# Fix example permissions.
|
|
|
|
find examples/ -type f | xargs chmod a-x
|
2012-01-31 14:28:26 +01:00
|
|
|
|
|
|
|
%install
|
2024-02-26 04:24:04 +01:00
|
|
|
%pyproject_install
|
2019-03-14 15:53:39 +01:00
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitearch}
|
2012-01-31 14:28:26 +01:00
|
|
|
|
|
|
|
%check
|
2017-03-06 14:34:20 +01:00
|
|
|
# Increase file-descriptor-count for ppc to make tests happy.
|
2014-02-05 15:03:45 +01:00
|
|
|
%ifarch ppc ppc64 s390 s390x
|
2017-02-24 15:34:46 +01:00
|
|
|
ulimit -Sn 2048
|
2013-03-08 09:59:51 +01:00
|
|
|
%endif
|
2022-03-11 10:26:36 +01:00
|
|
|
%{python_expand PYTHONPATH=%{buildroot}%{$python_sitearch} $python tests/lib/test_all.py}
|
2012-01-31 14:28:26 +01:00
|
|
|
|
2017-02-24 15:34:46 +01:00
|
|
|
%files %{python_files}
|
2019-01-14 16:25:21 +01:00
|
|
|
%license LICENSE
|
2021-11-23 19:54:16 +01:00
|
|
|
%doc CHANGES README.md examples/
|
2016-09-05 07:25:49 +02:00
|
|
|
%{python_sitearch}/yaml
|
2021-01-24 19:29:14 +01:00
|
|
|
%{python_sitearch}/_yaml
|
2024-02-26 04:24:04 +01:00
|
|
|
%{python_sitearch}/PyYAML-%{version}.dist-info
|
2012-01-31 14:28:26 +01:00
|
|
|
|
|
|
|
%changelog
|