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