From 0668481ca3d47d4ddc589be48955017730b6284a Mon Sep 17 00:00:00 2001 From: root Date: Thu, 29 Oct 2020 14:02:59 +0800 Subject: [PATCH] remove python2 --- python-mimeparse.spec | 23 ++++------------------- 1 file changed, 4 insertions(+), 19 deletions(-) diff --git a/python-mimeparse.spec b/python-mimeparse.spec index 9a648f8..c0b3a73 100644 --- a/python-mimeparse.spec +++ b/python-mimeparse.spec @@ -1,6 +1,6 @@ Name: python-mimeparse Version: 1.6.0 -Release: 8 +Release: 9 Summary: Python module for handling mime-types. License: MIT URL: https://github.com/dbtsai/python-mimeparse @@ -11,16 +11,6 @@ BuildArch: noarch This module provides basic functions for handling mime-types. It can handle matching mime-types against a list of media-ranges. -%package -n python2-mimeparse -Summary: Python2 module for handing mime-type -BuildRequires: python2-devel python2-setuptools -%{?python_provide:%python_provide python2-mimeparse} - -%description -n python2-mimeparse -This module provides basic functions for handling mime-types. -It can handle matching mime-types against a list of media-ranges. - - %package -n python3-mimeparse Summary: Python3 module for handling mime-types. BuildRequires: python3-devel python3-setuptools @@ -34,27 +24,22 @@ It can handle matching mime-types against a list of media-ranges. %autosetup -n %{name}-%{version} %build -%py2_build %py3_build %install -%py2_install %py3_install %check -%{__python2} -m unittest -v mimeparse_test %{__python3} -m unittest -v mimeparse_test -%files -n python2-mimeparse -%license LICENSE -%doc README.rst -%{python2_sitelib}/* - %files -n python3-mimeparse %license LICENSE %doc README.rst %{python3_sitelib}/* %changelog +* Wed Oct 21 2020 Ge Wang - 1.6.0-9 +- remove python2 + * Fri Nov 29 2019 zhujunhao - 1.6.0-8 - Package init