From f153f0f1c172dae7c6e6e1939b5a1387b25ce8f7 Mon Sep 17 00:00:00 2001 From: jinzhimin369 Date: Wed, 15 Jul 2020 20:28:16 +0800 Subject: [PATCH 1/3] delete python2 dependencies --- python-html5lib.spec | 35 +++++++++++++++++++++-------------- 1 file changed, 21 insertions(+), 14 deletions(-) diff --git a/python-html5lib.spec b/python-html5lib.spec index 442e4b5..7932991 100644 --- a/python-html5lib.spec +++ b/python-html5lib.spec @@ -1,6 +1,6 @@ Name: python-html5lib Version: 1.0.1 -Release: 5 +Release: 6 Epoch: 1 Summary: HTML parser based on the WHAT-WG Web Applications 1 License: MIT @@ -16,14 +16,15 @@ BuildArch: noarch Html5lib is a pure-python library for parsing HTML. It is designed to conform to the WHATWG HTML specification, as is implemented by all major web browsers. -%package -n python2-html5lib -Summary: python2 package for html5lib -BuildRequires: python2-devel python2-setuptools python2-mock python2-pytest python2-six -BuildRequires: python2-webencodings python2-chardet python2-genshi python2-lxml -%{?python_provide:%python_provide python2-html5lib} +#%%package -n python2-html5lib +#Summary: python2 package for html5lib +#BuildRequires: python2-devel python2-setuptools python2-mock python2-pytest python2-six +#BuildRequires: python2-webencodings python2-chardet python2-genshi python2-lxml +#%%{?python_provide:%python_provide python2-html5lib} + +#%%description -n python2-html5lib +#python2 package for html5lib. -%description -n python2-html5lib -python2 package for html5lib. %package -n python3-html5lib Summary: python3 package for html5lib @@ -40,17 +41,17 @@ python3 package for html5lib. %autosetup -n html5lib-python-%{version} -p1 %build -%py2_build +#%%py2_build %py3_build %install -%py2_install +#%%py2_install %py3_install -%files -n python2-html5lib -%defattr(-,root,root) -%license LICENSE -%{python2_sitelib}/* +#%files -n python2-html5lib +#%defattr(-,root,root) +#%license LICENSE +#%{python2_sitelib}/* %files -n python3-html5lib %defattr(-,root,root) @@ -62,6 +63,12 @@ python3 package for html5lib. %doc CHANGES.rst README.rst %changelog +* Wed Jul 15 2020 zhouhaibo - 1.0.1-6 +- Type:bugfix +- Id:NA +- SUG:NA +- DESC:delete python2 dependencies + * Sat Mar 21 2020 openEuler Buildteam - 1.0.1-5 - Type:bugfix - Id:NA From 8c72aec1a80373095125f62e1567adfb81ace599 Mon Sep 17 00:00:00 2001 From: zhouhaibo055 Date: Thu, 16 Jul 2020 11:04:16 +0800 Subject: [PATCH 2/3] delete python2 dependencies --- python-html5lib.spec | 1 + 1 file changed, 1 insertion(+) diff --git a/python-html5lib.spec b/python-html5lib.spec index 7932991..c83f7d4 100644 --- a/python-html5lib.spec +++ b/python-html5lib.spec @@ -16,6 +16,7 @@ BuildArch: noarch Html5lib is a pure-python library for parsing HTML. It is designed to conform to the WHATWG HTML specification, as is implemented by all major web browsers. + #%%package -n python2-html5lib #Summary: python2 package for html5lib #BuildRequires: python2-devel python2-setuptools python2-mock python2-pytest python2-six From dde47a3f5dbc49960f6d7dad40847556670793a9 Mon Sep 17 00:00:00 2001 From: zhouhaibo055 Date: Fri, 17 Jul 2020 09:20:18 +0800 Subject: [PATCH 3/3] delete python2 dependencies --- python-html5lib.spec | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/python-html5lib.spec b/python-html5lib.spec index c83f7d4..1b1e5d4 100644 --- a/python-html5lib.spec +++ b/python-html5lib.spec @@ -17,16 +17,6 @@ Html5lib is a pure-python library for parsing HTML. It is designed to conform to the WHATWG HTML specification, as is implemented by all major web browsers. -#%%package -n python2-html5lib -#Summary: python2 package for html5lib -#BuildRequires: python2-devel python2-setuptools python2-mock python2-pytest python2-six -#BuildRequires: python2-webencodings python2-chardet python2-genshi python2-lxml -#%%{?python_provide:%python_provide python2-html5lib} - -#%%description -n python2-html5lib -#python2 package for html5lib. - - %package -n python3-html5lib Summary: python3 package for html5lib BuildRequires: python3-devel python3-setuptools python3-mock python3-pytest python3-pytest-expect @@ -42,18 +32,11 @@ python3 package for html5lib. %autosetup -n html5lib-python-%{version} -p1 %build -#%%py2_build %py3_build %install -#%%py2_install %py3_install -#%files -n python2-html5lib -#%defattr(-,root,root) -#%license LICENSE -#%{python2_sitelib}/* - %files -n python3-html5lib %defattr(-,root,root) %license LICENSE