Fedora contributions by:
Bill Nottingham <notting@fedoraproject.org>
Bohuslav Kabrda <bkabrda@redhat.com>
Charalampos Stratakis <cstratak@redhat.com>
Dan Horák <dan@danny.cz>
David Malcolm <dmalcolm@redhat.com>
Dennis Gilmore <dennis@ausil.us>
Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com>
Igor Gnatenko <ignatenkobrain@fedoraproject.org>
Iryna Shcherbina <ishcherb@redhat.com>
Jakub Čajka <jcajka@redhat.com>
Jesse Keating <jkeating@fedoraproject.org>
John Eckersberg <jeckersb@redhat.com>
Jonathan Wright <jonathan@almalinux.org>
Kalev Lember <klember@redhat.com>
Karolina Surma <ksurma@redhat.com>
Lukáš Zachar <lzachar@redhat.com>
Lumir Balhar <lbalhar@redhat.com>
Mamoru Tasaka <mtasaka@ioa.s.u-tokyo.ac.jp>
Miro Hrončok <mhroncok@redhat.com>
Peter Robinson <pbrobinson@fedoraproject.org>
Petr Viktorin <pviktori@redhat.com>
Robert Kuska <rkuska@redhat.com>
Štěpán Šigut <ssigut@redhat.com>
Tom Callaway <spot@fedoraproject.org>
Troy Dawson <tdawson@redhat.com>
Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
71 lines
1.7 KiB
RPMSpec
71 lines
1.7 KiB
RPMSpec
%global python3_pkgversion 3.14
|
|
|
|
Name: python%{python3_pkgversion}-pyyaml
|
|
Version: 6.0.2
|
|
Release: %autorelease
|
|
Summary: YAML parser and emitter for Python
|
|
|
|
# SPDX
|
|
License: MIT
|
|
URL: https://github.com/yaml/pyyaml
|
|
Source: https://github.com/yaml/pyyaml/archive/%{version}.tar.gz
|
|
|
|
# Drop unneeded build dependency on python3-wheel
|
|
Patch: https://github.com/yaml/pyyaml/pull/823.patch
|
|
|
|
BuildRequires: gcc
|
|
BuildRequires: libyaml-devel
|
|
BuildRequires: python%{python3_pkgversion}-devel
|
|
BuildRequires: python%{python3_pkgversion}-pytest
|
|
|
|
%py_provides python%{python3_pkgversion}-yaml
|
|
%py_provides python%{python3_pkgversion}-PyYAML
|
|
|
|
%global _description\
|
|
YAML is a data serialization format designed for human readability and\
|
|
interaction with scripting languages. PyYAML is a YAML parser and\
|
|
emitter for Python.\
|
|
\
|
|
PyYAML features a complete YAML 1.1 parser, Unicode support, pickle\
|
|
support, capable extension API, and sensible error messages. PyYAML\
|
|
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 persistence.
|
|
|
|
%description %_description
|
|
|
|
|
|
%prep
|
|
%autosetup -p1 -n pyyaml-%{version}
|
|
chmod a-x examples/yaml-highlight/yaml_hl.py
|
|
|
|
# remove pre-generated file
|
|
rm -rf ext/_yaml.c
|
|
|
|
|
|
%generate_buildrequires
|
|
%pyproject_buildrequires
|
|
|
|
|
|
%build
|
|
%pyproject_wheel
|
|
|
|
|
|
%install
|
|
%pyproject_install
|
|
%pyproject_save_files yaml _yaml
|
|
|
|
|
|
%check
|
|
%pytest
|
|
|
|
|
|
%files -n python%{python3_pkgversion}-pyyaml -f %{pyproject_files}
|
|
%doc CHANGES README.md examples
|
|
|
|
|
|
%changelog
|
|
%autochangelog
|