|
|
823a9b |
%global __python3 /usr/bin/python3.11
|
|
|
823a9b |
%global python3_pkgversion 3.11
|
|
|
823a9b |
|
|
|
823a9b |
Name: python%{python3_pkgversion}-pyyaml
|
|
|
823a9b |
Version: 6.0
|
|
|
823a9b |
Release: 1%{?dist}
|
|
|
823a9b |
%global uversion %{version}
|
|
|
823a9b |
Summary: YAML parser and emitter for Python
|
|
|
823a9b |
|
|
|
823a9b |
License: MIT
|
|
|
823a9b |
URL: https://github.com/yaml/pyyaml
|
|
|
823a9b |
Source0: https://github.com/yaml/pyyaml/archive/%{uversion}.tar.gz
|
|
|
823a9b |
|
|
|
823a9b |
BuildRequires: gcc
|
|
|
823a9b |
BuildRequires: libyaml-devel
|
|
|
823a9b |
|
|
|
823a9b |
BuildRequires: python%{python3_pkgversion}-devel
|
|
|
823a9b |
BuildRequires: python%{python3_pkgversion}-rpm-macros
|
|
|
823a9b |
BuildRequires: python%{python3_pkgversion}-setuptools
|
|
|
823a9b |
BuildRequires: python%{python3_pkgversion}-Cython
|
|
|
823a9b |
|
|
|
823a9b |
%py_provides python%{python3_pkgversion}-yaml
|
|
|
823a9b |
%py_provides python%{python3_pkgversion}-yaml%{?_isa}
|
|
|
823a9b |
%py_provides python%{python3_pkgversion}-PyYAML
|
|
|
823a9b |
%py_provides python%{python3_pkgversion}-PyYAML%{?_isa}
|
|
|
823a9b |
|
|
|
823a9b |
%global _description\
|
|
|
823a9b |
YAML is a data serialization format designed for human readability and\
|
|
|
823a9b |
interaction with scripting languages. PyYAML is a YAML parser and\
|
|
|
823a9b |
emitter for Python.\
|
|
|
823a9b |
\
|
|
|
823a9b |
PyYAML features a complete YAML 1.1 parser, Unicode support, pickle\
|
|
|
823a9b |
support, capable extension API, and sensible error messages. PyYAML\
|
|
|
823a9b |
supports standard YAML tags and provides Python-specific tags that\
|
|
|
823a9b |
allow to represent an arbitrary Python object.\
|
|
|
823a9b |
\
|
|
|
823a9b |
PyYAML is applicable for a broad range of tasks from complex\
|
|
|
823a9b |
configuration files to object serialization and persistence.
|
|
|
823a9b |
|
|
|
823a9b |
%description %_description
|
|
|
823a9b |
|
|
|
823a9b |
%prep
|
|
|
823a9b |
%setup -q -n pyyaml-%{uversion}
|
|
|
823a9b |
chmod a-x examples/yaml-highlight/yaml_hl.py
|
|
|
823a9b |
|
|
|
823a9b |
# remove pre-generated file
|
|
|
823a9b |
rm -rf ext/_yaml.c
|
|
|
823a9b |
|
|
|
823a9b |
|
|
|
823a9b |
%build
|
|
|
823a9b |
%py3_build
|
|
|
823a9b |
|
|
|
823a9b |
|
|
|
823a9b |
%install
|
|
|
823a9b |
%py3_install
|
|
|
823a9b |
|
|
|
823a9b |
|
|
|
823a9b |
%check
|
|
|
823a9b |
%{__python3} setup.py test
|
|
|
823a9b |
|
|
|
823a9b |
|
|
|
823a9b |
%files -n python%{python3_pkgversion}-pyyaml
|
|
|
823a9b |
%license LICENSE
|
|
|
823a9b |
%doc CHANGES README.md examples
|
|
|
823a9b |
%{python3_sitearch}/*
|
|
|
823a9b |
|
|
|
823a9b |
|
|
|
823a9b |
%changelog
|
|
|
823a9b |
* Mon Nov 14 2022 Charalampos Stratakis <cstratak@redhat.com> - 6.0-1
|
|
|
823a9b |
- Initial package
|
|
|
823a9b |
- Fedora contributions by:
|
|
|
823a9b |
Bill Nottingham <notting@fedoraproject.org>
|
|
|
823a9b |
Charalampos Stratakis <cstratak@redhat.com>
|
|
|
823a9b |
Dan Horák <dan@danny.cz>
|
|
|
823a9b |
David Malcolm <dmalcolm@redhat.com>
|
|
|
823a9b |
Dennis Gilmore <ausil@fedoraproject.org>
|
|
|
823a9b |
dmalcolm <dmalcolm@fedoraproject.org>
|
|
|
823a9b |
Ignacio Vazquez-Abrams <ivazquez@fedoraproject.org>
|
|
|
823a9b |
Igor Gnatenko <ignatenkobrain@fedoraproject.org>
|
|
|
823a9b |
Iryna Shcherbina <shcherbina.iryna@gmail.com>
|
|
|
823a9b |
Jakub Čajka <jcajka@redhat.com>
|
|
|
823a9b |
Jesse Keating <jkeating@fedoraproject.org>
|
|
|
823a9b |
John Eckersberg <jeckersb@fedoraproject.org>
|
|
|
823a9b |
Kalev Lember <klember@redhat.com>
|
|
|
823a9b |
Lumir Balhar <lbalhar@redhat.com>
|
|
|
823a9b |
Mamoru Tasaka <mtasaka@fedoraproject.org>
|
|
|
823a9b |
Miro Hrončok <miro@hroncok.cz>
|
|
|
823a9b |
Peter Robinson <pbrobinson@fedoraproject.org>
|
|
|
823a9b |
Petr Viktorin <pviktori@redhat.com>
|
|
|
823a9b |
Robert Kuska <rkuska@redhat.com>
|
|
|
823a9b |
Slavek Kabrda <bkabrda@redhat.com>
|
|
|
823a9b |
Tom Callaway <spot@fedoraproject.org>
|
|
|
823a9b |
Troy Dawson <tdawson@redhat.com>
|
|
|
823a9b |
Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
|