From a34c48fb018a79a209fc7fa18a4f1bc7e27bf568 Mon Sep 17 00:00:00 2001 From: jinzhimin369 Date: Thu, 29 Oct 2020 16:39:04 +0800 Subject: [PATCH] delete python2 --- PyYAML.spec | 48 ++++-------------------------------------------- 1 file changed, 4 insertions(+), 44 deletions(-) diff --git a/PyYAML.spec b/PyYAML.spec index 9b73bd0..864dbc0 100644 --- a/PyYAML.spec +++ b/PyYAML.spec @@ -3,7 +3,7 @@ Name: pyyaml Version: 5.3.1 -Release: 2 +Release: 3 Summary: YAML parser and emitter for Python License: MIT URL: https://github.com/yaml/pyyaml @@ -11,9 +11,6 @@ Source0: https://github.com/yaml/pyyaml/archive/%{version}.tar.gz BuildRequires: gcc libyaml-devel -%if %{with python2} -BuildRequires: python2-devel python2-setuptools python2-Cython -%endif %if %{with python3} BuildRequires: python3-devel python3-setuptools python3-Cython @@ -32,31 +29,6 @@ arbitrary Python object. PyYAML is applicable for a broad range of tasks from complex configuration files to object serialization and persistence. -%if %{with python2} -%package -n python2-pyyaml -Summary: %summary -Provides: python-yaml = %{version}-%{release} -Provides: python-yaml%{?_isa} = %{version}-%{release} -Provides: python2-yaml = %{version}-%{release} -Provides: python2-yaml%{?_isa} = %{version}-%{release} -%{?python_provide:%python_provide python2-pyyaml} -Provides: PyYAML = %{version}-%{release} -Provides: PyYAML%{?_isa} = %{version}-%{release} -Obsoletes: PyYAML < %{version}-%{release} - -%description -n python2-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 %if %{with python3} %package -n python3-pyyaml @@ -86,35 +58,20 @@ files to object serialization and persistence. %setup -q -n %{name}-%{version} %build -%if %{with python2} -%py2_build -%endif %if %{with python3} %py3_build %endif %install -%if %{with python2} -%py2_install -%endif %if %{with python3} %py3_install %endif %check -%if %{with python2} -%{__python2} setup.py test -%endif %if %{with python3} %{__python3} setup.py test %endif -%if %{with python2} -%files -n python2-pyyaml -%license LICENSE -%doc CHANGES README examples -%{python2_sitearch}/* -%endif %if %{with python3} %files -n python3-pyyaml @@ -124,6 +81,9 @@ files to object serialization and persistence. %endif %changelog +* Thu Oct 29 2020 tianwei - 5.3.1-3 +* delete python2 + * Fri Sep 11 2020 liuweibo - 5.3.1-2 * Fix Source0 -- Gitee