Blame SPECS/python3.11-pyyaml.spec

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