From de8ae5bc5ce3c38d829ff88ce438807aec7cd650 Mon Sep 17 00:00:00 2001 From: lei_ju <983277505@qq.com> Date: Thu, 29 Oct 2020 10:40:35 +0800 Subject: [PATCH] remove python2 subpackage --- python-hyperlink.spec | 21 ++++----------------- 1 file changed, 4 insertions(+), 17 deletions(-) diff --git a/python-hyperlink.spec b/python-hyperlink.spec index 8f2f1a6..7c9cc44 100644 --- a/python-hyperlink.spec +++ b/python-hyperlink.spec @@ -1,25 +1,17 @@ Name: python-hyperlink Version: 18.0.0 -Release: 8 +Release: 9 Summary: A pure-Python implementation of immutable URLs License: MIT and BSD and OFL URL: https://github.com/python-hyper/hyperlink Source0: https://files.pythonhosted.org/packages/source/h/hyperlink/hyperlink-%{version}.tar.gz BuildArch: noarch -BuildRequires: python2-devel python2dist(idna) >= 2.5 python2dist(setuptools) python2dist(unittest2) BuildRequires: python3dist(sphinx) fontawesome-fonts %{?python_enable_dependency_generator} %description Hyperlink is a featureful, pure-Python implementation of the URL, with an emphasis on correctness. -%package -n python2-hyperlink -Summary: A pure-Python implementation of immutable URLs -%python_provide python2-hyperlink - -%description -n python2-hyperlink -Hyperlink is a featureful, pure-Python implementation of the URL, with an emphasis on correctness. - %package -n python3-hyperlink Summary: A pure-Python implementation of immutable URLs %python_provide python3-hyperlink @@ -41,7 +33,6 @@ Files for help with python-hyperlink. rm -rf hyperlink.egg-info %build -%py2_build %py3_build PYTHONPATH=${PWD} sphinx-build-3 docs html rm -rf html/.{doctrees,buildinfo} html/_static/underscore*.js html/_static/jquery*.js @@ -57,18 +48,11 @@ ln -s /usr/share/javascript/jquery/3.2.1/jquery.min.js html/_static/jquery.js ln -s /usr/share/javascript/jquery/3.2.1/jquery.js html/_static/jquery-3.2.1.js %install -%py2_install %py3_install %check -%{__python2} -m unittest %{__python3} -m unittest -%files -n python2-hyperlink -%doc LICENSE -%{python2_sitelib}/hyperlink -%{python2_sitelib}/hyperlink-%{version}-py?.?.egg-info - %files -n python3-hyperlink %doc LICENSE %{python3_sitelib}/hyperlink @@ -78,6 +62,9 @@ ln -s /usr/share/javascript/jquery/3.2.1/jquery.js html/_static/jquery-3.2.1.js %doc README.md html %changelog +* Wed Oct 21 2020 leiju - 18.0.0-9 +- remove python2 subpackage + * Fri Mar 13 2020 gulining - 18.0.0-8 - Remove useless requires