From 9a809610e4e557fdb54f9e3f4e509d040bc35ceb Mon Sep 17 00:00:00 2001 From: huangtianhua Date: Wed, 9 Feb 2022 08:39:08 +0000 Subject: [PATCH] Remove python2 support --- python-docutils.spec | 27 +++++---------------------- 1 file changed, 5 insertions(+), 22 deletions(-) diff --git a/python-docutils.spec b/python-docutils.spec index 9d45785..af5e54c 100644 --- a/python-docutils.spec +++ b/python-docutils.spec @@ -4,15 +4,14 @@ Name: python-%{modname} Version: 0.16 -Release: 4 +Release: 5 Summary: Documentation Utilities Written in Python, for General- and Special-Purpose Use License: Public Domain and BSD and Python and GPLv3+ URL: http://docutils.sourceforge.net Source0: http://downloads.sourceforge.net/docutils/docutils-0.16.tar.gz BuildArch: noarch -BuildRequires: python2-devel python2-setuptools -BuildRequires: python3-devel python2-tools +BuildRequires: python3-devel Patch0000: fix-test-error.patch %global _description \ @@ -24,15 +23,6 @@ to use, what-you-see-is-what-you-get plaintext markup language. %description %{_description} -%package -n python2-%{modname} -Summary: %{summary} for python2 -%{?python_provide:%python_provide python2-%{modname}} -Provides: docutils = %{version}-%{release} -Obsoletes: docutils < %{version}-%{release} - -%description -n python2-%{modname} -%{_description} - %package -n python3-%{modname} Summary: %{summary} for python3 @@ -68,14 +58,12 @@ rm -rf test/test_writers/test_odt.py popd %build -%py2_build pushd %{py3dir} %py3_build popd %install -%py2_install rm -rf %{buildroot}%{python3_sitelib}/test mv %{flashfilepath}%{flashfilename} ./%{flashfilename} @@ -92,10 +80,6 @@ done %check -mv %{flashfilename} %{flashfilepath}%{flashfilename} -python2 test/alltests.py -rm %{flashfilepath}%{flashfilename} - pushd %{py3dir} mv %{flashfilename} %{flashfilepath}%{flashfilename} python3 test/alltests.py @@ -103,10 +87,6 @@ rm %{flashfilepath}%{flashfilename} popd -%files -n python2-%{modname} -%license COPYING.txt licenses/*.txt -%{python2_sitelib}/* - %files -n python3-%{modname} %license COPYING.txt licenses/*.txt %{python3_sitelib}/* @@ -117,6 +97,9 @@ popd %doc THANKS.txt docs tools/editors %changelog +* Thur Jan 27 2022 huangtianhua - 0.16-5 +- Remove python2 support + * Thu Sep 10 2020 wangxiao - 0.16-4 - fix rst2odt_prepstyles error -- Gitee