From d900ee19cb3fc19309c34c129624d86e1565f9d2 Mon Sep 17 00:00:00 2001 From: lei_ju <983277505@qq.com> Date: Thu, 29 Oct 2020 10:38:18 +0800 Subject: [PATCH] remove python2 subpackage --- python-httplib2.spec | 32 +++++++++----------------------- 1 file changed, 9 insertions(+), 23 deletions(-) diff --git a/python-httplib2.spec b/python-httplib2.spec index 6fc0d29..7dfbb59 100644 --- a/python-httplib2.spec +++ b/python-httplib2.spec @@ -1,13 +1,11 @@ -Name: python-httplib2 -Version: 0.13.1 -Release: 5 -Summary: Small, fast HTTP client library for Python. -License: MIT +Name: python-httplib2 +Version: 0.13.1 +Release: 6 +Summary: Small, fast HTTP client library for Python. +License: MIT URL: https://github.com/httplib2/httplib2 -Source0: https://files.pythonhosted.org/packages/78/23/bb9606e87a66fd8c72a2b1a75b049d3859a122bc2648915be845bc44e04f/httplib2-0.13.1.tar.gz +Source0: https://files.pythonhosted.org/packages/78/23/bb9606e87a66fd8c72a2b1a75b049d3859a122bc2648915be845bc44e04f/httplib2-0.13.1.tar.gz Patch0001: CVE-2020-11078.patch - -BuildRequires: python2-setuptools python2-devel %if 0%{?with_python3} BuildRequires: python3-setuptools python3-devel @@ -19,13 +17,6 @@ BuildArch: noarch httplib2 is a comprehensive HTTP client library, httplib2.py supports many features left out of other HTTP libraries. -%package -n python2-httplib2 -Summary: Small, fast HTTP client library for Python. -%{?python_provide:%python_provide python2-httplib2} - -%description -n python2-httplib2 -Small, fast HTTP client library for Python. - %if 0%{?with_python3} %package -n python3-httplib2 Summary: Small, fast HTTP client library for Python. @@ -44,8 +35,6 @@ find %{py3dir} -name '*.py' | xargs sed -i '1s|^#!/usr/bin/python|#!%{__python3} %endif %build -%{__python2} setup.py build - %if 0%{?with_python3} pushd %{py3dir} %{__python3} setup.py build @@ -53,18 +42,12 @@ popd %endif %install -%py2_install - %if 0%{?with_python3} pushd %{py3dir} %py3_install popd %endif -%files -n python2-httplib2 -%defattr(-,root,root) -%{python2_sitelib}/* - %if 0%{?with_python3} %files -n python3-httplib2 %defattr(-,root,root) @@ -72,6 +55,9 @@ popd %endif %changelog +* Wed Oct 21 2020 leiju - 0.13.1-6 +- remove python2 subpackage + * Mon Jul 20 2020 wangxiao - 0.13.1-5 - fix CVE-2020-11078