17
0
Files
python-ruamel.yaml/python-ruamel.yaml.spec
Dirk Mueller 0ebd6e5ef9 - update to 0.18.10:
* implemented changes to the setup.py for Python 3.14 as
    suggested by Miro Hrončok
  * fix issue with roundtripping 0 in YAML 1.1
  * added warning to README.md that PyPI might block updates due
    to breaking changes
  * fixes for README
  * fixes preserving anchor on scalar integer `0`
  * fix for formatting of README suggested by Michael R.
    Crusoe

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ruamel.yaml?expand=0&rev=77
2025-02-24 10:17:10 +00:00

57 lines
1.7 KiB
RPMSpec

#
# spec file for package python-ruamel.yaml
#
# 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
# 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.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%{?sle15_python_module_pythons}
Name: python-ruamel.yaml
Version: 0.18.10
Release: 0
Summary: Python YAML parser
License: MIT
URL: https://sourceforge.net/p/ruamel-yaml
Source: https://files.pythonhosted.org/packages/source/r/ruamel.yaml/ruamel.yaml-%{version}.tar.gz
Patch0: 0000-fix-big-endian-issues.patch
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-ruamel.yaml.clib >= 0.2.0
BuildArch: noarch
%python_subpackages
%description
ruamel.yaml is a YAML parser/emitter that supports roundtrip preservation
of comments, seq/map flow style, and map key order.
%prep
%autosetup -p1 -n ruamel.yaml-%{version}
rm -rf *egg-info
%build
%python_build
%install
%python_install --single-version-externally-managed
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%files %{python_files}
%license LICENSE
%doc CHANGES README.md
%{python_sitelib}/ruamel
%{python_sitelib}/ruamel.yaml-%{version}*-info
%changelog