%define debug_package %{nil} Name: python3-PyYAML Version: 5.4.1 Release: 2%{?dist} Summary: YAML parser and emitter for Python Group: Development/Libraries License: MIT Vendor: VMware, Inc. Distribution: Photon URL: http://pyyaml.org/ Source0: http://pyyaml.org/download/pyyaml/PyYAML-%{version}.tar.gz %define sha512 PyYAML=359c45d843fd839797572efeab121f17b1947647960dfb062f3618f25f71e1a6bc4bab14a1720b6b67f256089d5d48c452ec5419e3130222765c7ca41db11dad BuildRequires: libyaml-devel BuildRequires: python3-devel BuildRequires: python3-setuptools BuildRequires: cython3 Requires: python3-setuptools Requires: python3 Requires: libyaml Provides: python%{python3_version}dist(pyyaml) %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. %prep %autosetup -p1 -n PyYAML-%{version} %build %py3_build %install rm -rf %{buildroot} mkdir -p %{buildroot}/%{_bindir} %py3_install chmod a-x examples/yaml-highlight/yaml_hl.py %check python3 setup.py test %clean rm -rf %{buildroot} %files %defattr(-,root,root,-) %doc PKG-INFO README LICENSE examples %{python3_sitelib}/* %changelog * Wed Mar 01 2023 Nitesh Kumar 5.4.1-2 - Adding Requires cython3 to build with binding libyaml - as needed by ansible-posix v1.5.1 * Mon Oct 10 2022 Prashant S Chauhan 5.4.1-1 - Update release to compile with python 3.11 * Mon Apr 12 2021 Gerrit Photon 5.3.1-1 - Automatic Version Bump * Wed Jan 27 2021 Tapas Kundu 5.4.1-1 - Update to 5.4.1 * Wed Dec 16 2020 Shreenidhi Shedi 5.3.1-2 - Fix build with new rpm * Wed Jul 29 2020 Gerrit Photon 5.3.1-1 - Automatic Version Bump * Tue Jun 23 2020 Tapas Kundu 3.13-6 - Mass removal python2 * Wed Apr 08 2020 Tapas Kundu 3.13-5 - Fix for CVE-2020-1747 * Sat Mar 07 2020 Tapas Kundu 3.13-4 - Fix for CVE-2019-20477 * Tue Apr 16 2019 Tapas Kundu 3.13-3 - Added lib3 changes for CVE-2017-18342 - change default loader for yaml.add_constructor - Add custom constructors to multiple loaders * Thu Mar 28 2019 Ankit Jain 3.13-2 - Fix for CVE-2017-18342 * Thu Sep 20 2018 Tapas Kundu 3.13-1 - Updated to release 3.13 * Tue May 16 2017 Kumar Kaushik 3.12-2 - Adding python3 support. * Tue Apr 18 2017 Dheeraj Shetty 3.12-1 - Updated version to 3.12 * Tue May 24 2016 Priyesh Padmavilasom 3.11-2 - GA - Bump release of all rpms * Wed Mar 04 2015 Mahmoud Bassiouny - Initial packaging for Photon