Blame SPECS/python3.11-pyyaml.spec

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