Blame SPECS/python3.11-pyyaml.spec

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