diff --git a/PyYAML.spec b/PyYAML.spec index 7e86c2e..ca695c7 100644 --- a/PyYAML.spec +++ b/PyYAML.spec @@ -1,10 +1,3 @@ -# Python 2 removal, RHBZ#1775075 -%if 0%{?fedora} >= 32 || 0%{?rhel} >= 9 -%bcond_with python2 -%else -%bcond_without python2 -%endif - Name: PyYAML Version: 6.0.1 Release: 4%{?dist} @@ -22,11 +15,6 @@ Patch: https://github.com/yaml/pyyaml/pull/731.patch BuildRequires: gcc BuildRequires: libyaml-devel -%if %{with python2} -BuildRequires: python2-devel -BuildRequires: python2-setuptools -%endif - BuildRequires: python3-devel BuildRequires: python3-setuptools BuildRequires: python3-cython @@ -48,20 +36,6 @@ configuration files to object serialization and persistence. %description %_description -%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} -Provides: PyYAML = %{version}-%{release} -Provides: PyYAML%{?_isa} = %{version}-%{release} -%{?python_provide:%python_provide python2-pyyaml} - -%description -n python2-pyyaml %_description -%endif - %package -n python3-pyyaml Summary: %summary %py_provides python3-yaml @@ -81,33 +55,15 @@ rm -rf ext/_yaml.c %build %py3_build -%if %{with python2} -# py2_build reuses Cython output from py3_build -%py2_build -%endif - %install -%if %{with python2} -%py2_install -%endif %py3_install %check -%if %{with python2} -%{__python2} setup.py test -%endif %{__python3} setup.py test -%if %{with python2} -%files -n python2-pyyaml -%license LICENSE -%doc CHANGES README.md examples -%{python2_sitearch}/* -%endif - %files -n python3-pyyaml %license LICENSE %doc CHANGES README.md examples