From c10a55204b456b79443a45c97ba81027a44c7b1f Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: Sat, 18 Feb 2023 00:42:52 +0000 Subject: [PATCH] Auto sync2gitlab import of python3.11-pyyaml-6.0-1.el8.src.rpm --- .gitignore | 1 + EMPTY | 1 - python3.11-pyyaml.spec | 94 ++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 4 files changed, 96 insertions(+), 1 deletion(-) create mode 100644 .gitignore delete mode 100644 EMPTY create mode 100644 python3.11-pyyaml.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..8611a60 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/6.0.tar.gz diff --git a/EMPTY b/EMPTY deleted file mode 100644 index 0519ecb..0000000 --- a/EMPTY +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/python3.11-pyyaml.spec b/python3.11-pyyaml.spec new file mode 100644 index 0000000..6c9a11c --- /dev/null +++ b/python3.11-pyyaml.spec @@ -0,0 +1,94 @@ +%global __python3 /usr/bin/python3.11 +%global python3_pkgversion 3.11 + +Name: python%{python3_pkgversion}-pyyaml +Version: 6.0 +Release: 1%{?dist} +%global uversion %{version} +Summary: YAML parser and emitter for Python + +License: MIT +URL: https://github.com/yaml/pyyaml +Source0: https://github.com/yaml/pyyaml/archive/%{uversion}.tar.gz + +BuildRequires: gcc +BuildRequires: libyaml-devel + +BuildRequires: python%{python3_pkgversion}-devel +BuildRequires: python%{python3_pkgversion}-rpm-macros +BuildRequires: python%{python3_pkgversion}-setuptools +BuildRequires: python%{python3_pkgversion}-Cython + +%py_provides python%{python3_pkgversion}-yaml +%py_provides python%{python3_pkgversion}-yaml%{?_isa} +%py_provides python%{python3_pkgversion}-PyYAML +%py_provides python%{python3_pkgversion}-PyYAML%{?_isa} + +%global _description\ +YAML is a data serialization format designed for human readability and\ +interaction with scripting languages. PyYAML is a YAML parser and\ +emitter for Python.\ +\ +PyYAML features a complete YAML 1.1 parser, Unicode support, pickle\ +support, capable extension API, and sensible error messages. PyYAML\ +supports standard YAML tags and provides Python-specific tags that\ +allow to represent an arbitrary Python object.\ +\ +PyYAML is applicable for a broad range of tasks from complex\ +configuration files to object serialization and persistence. + +%description %_description + +%prep +%setup -q -n pyyaml-%{uversion} +chmod a-x examples/yaml-highlight/yaml_hl.py + +# remove pre-generated file +rm -rf ext/_yaml.c + + +%build +%py3_build + + +%install +%py3_install + + +%check +%{__python3} setup.py test + + +%files -n python%{python3_pkgversion}-pyyaml +%license LICENSE +%doc CHANGES README.md examples +%{python3_sitearch}/* + + +%changelog +* Mon Nov 14 2022 Charalampos Stratakis - 6.0-1 +- Initial package +- Fedora contributions by: + Bill Nottingham + Charalampos Stratakis + Dan Horák + David Malcolm + Dennis Gilmore + dmalcolm + Ignacio Vazquez-Abrams + Igor Gnatenko + Iryna Shcherbina + Jakub Čajka + Jesse Keating + John Eckersberg + Kalev Lember + Lumir Balhar + Mamoru Tasaka + Miro Hrončok + Peter Robinson + Petr Viktorin + Robert Kuska + Slavek Kabrda + Tom Callaway + Troy Dawson + Zbigniew Jędrzejewski-Szmek diff --git a/sources b/sources new file mode 100644 index 0000000..915b17b --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (6.0.tar.gz) = cbcacc3560a035e2082867e93a9733f8660ea4c7f60573d07642f33a5453dcdc88d67299c3bcb97c27b843202a45d40de7444eb5e815bd4955129c9fc8ae04ad