2019-09-30 11:15:43 -04:00
|
|
|
%bcond_without python2
|
|
|
|
|
%bcond_without python3
|
|
|
|
|
|
|
|
|
|
Name: pyyaml
|
2020-05-11 15:16:26 +08:00
|
|
|
Version: 5.3.1
|
2021-06-11 16:03:47 +08:00
|
|
|
Release: 4
|
2019-09-30 11:15:43 -04:00
|
|
|
Summary: YAML parser and emitter for Python
|
|
|
|
|
License: MIT
|
|
|
|
|
URL: https://github.com/yaml/pyyaml
|
2020-09-11 11:29:19 +08:00
|
|
|
Source0: https://github.com/yaml/pyyaml/archive/%{version}.tar.gz
|
2021-06-11 16:03:47 +08:00
|
|
|
Patch0000: CVE-2020-14343.patch
|
2019-09-30 11:15:43 -04:00
|
|
|
|
|
|
|
|
BuildRequires: gcc libyaml-devel
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%if %{with python3}
|
|
|
|
|
BuildRequires: python3-devel python3-setuptools python3-Cython
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%if %{with python3}
|
|
|
|
|
%package -n python3-pyyaml
|
|
|
|
|
Summary: %summary
|
|
|
|
|
Provides: python3-yaml = %{version}-%{release}
|
|
|
|
|
Provides: python3-yaml%{?_isa} = %{version}-%{release}
|
|
|
|
|
%{?python_provide:%python_provide python3-pyyaml}
|
|
|
|
|
Provides: python3-PyYAML = %{version}-%{release}
|
|
|
|
|
Provides: python3-PyYAML%{?_isa} = %{version}-%{release}
|
|
|
|
|
Obsoletes: python3-PyYAML < 4.1-5
|
|
|
|
|
|
|
|
|
|
%description -n python3-pyyaml
|
|
|
|
|
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.
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%setup -q -n %{name}-%{version}
|
2021-06-11 16:03:47 +08:00
|
|
|
%patch0000 -p1
|
2019-09-30 11:15:43 -04:00
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
%if %{with python3}
|
|
|
|
|
%py3_build
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
%if %{with python3}
|
|
|
|
|
%py3_install
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
|
%if %{with python3}
|
|
|
|
|
%{__python3} setup.py test
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%if %{with python3}
|
|
|
|
|
%files -n python3-pyyaml
|
|
|
|
|
%license LICENSE
|
|
|
|
|
%doc CHANGES README examples
|
|
|
|
|
%{python3_sitearch}/*
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%changelog
|
2021-06-11 16:03:47 +08:00
|
|
|
* Fri Jun 11 2021 zhaomengchao <zhaomengchao3@huawei.com> - 5.3.1-4
|
|
|
|
|
* Fix CVE-2020-14343
|
|
|
|
|
|
2020-10-29 16:39:04 +08:00
|
|
|
* Thu Oct 29 2020 tianwei <tianwei12@huawei.com> - 5.3.1-3
|
|
|
|
|
* delete python2
|
|
|
|
|
|
2020-09-11 11:29:19 +08:00
|
|
|
* Fri Sep 11 2020 liuweibo <liuweibo10@huawei.com> - 5.3.1-2
|
|
|
|
|
* Fix Source0
|
|
|
|
|
|
2020-05-11 15:16:26 +08:00
|
|
|
* Fri Apr 24 2020 Bruce <gyl93216@163.com> - 5.3.1-1
|
|
|
|
|
* update upstream to 5.3.1
|
|
|
|
|
|
2019-09-30 11:15:43 -04:00
|
|
|
* Tue Aug 27 2019 openEuler Buildteam <buildteam@openeuler.org> - 5.1.2-1
|
|
|
|
|
- Package init
|