From bea82efb7223e34167a049e43d8b277c12b3a1de Mon Sep 17 00:00:00 2001 From: lei_ju <983277505@qq.com> Date: Thu, 29 Oct 2020 10:43:46 +0800 Subject: [PATCH] remove python2 subpackage --- python-iso8601.spec | 22 ++++------------------ 1 file changed, 4 insertions(+), 18 deletions(-) diff --git a/python-iso8601.spec b/python-iso8601.spec index 8619d82..32cfddd 100644 --- a/python-iso8601.spec +++ b/python-iso8601.spec @@ -1,6 +1,6 @@ Name: python-iso8601 Version: 0.1.11 -Release: 3 +Release: 4 Summary: Simple module to parse ISO 8601 dates License: MIT URL: https://pypi.org/project/iso8601/ @@ -12,17 +12,6 @@ BuildArch: noarch This module parses the most common forms of ISO 8601 date strings (e.g. 2007-01-14T20:34:22+00:00) into datetime objects. -%package -n python2-iso8601 -Summary: Simple module to parse ISO 8601 dates -%{?python_provide:%python_provide python2-iso8601} -Provides: python-iso8601 = %{version}-%{release} -Obsoletes: python-iso8601 < 0.1.10-6 -BuildRequires: python2-devel python-setuptools - -%description -n python2-iso8601 -The package parses the most common forms of ISO 8601 date strings -(e.g. 2007-01-14T20:34:22+00:00) into datetime objects. - %package -n python3-iso8601 Summary: Simple module to parse ISO 8601 dates %{?python_provide:%python_provide python3-iso8601} @@ -36,22 +25,19 @@ The package parses the most common forms of ISO 8601 date strings %autosetup -n iso8601-%{version} -p1 %build -%{__python2} setup.py build %{__python3} setup.py build %install -%{__python2} setup.py install -O1 --skip-build --root %{buildroot} %{__python3} setup.py install --skip-build --root %{buildroot} -%files -n python2-iso8601 -%doc LICENSE README.rst -%{python2_sitelib}/* - %files -n python3-iso8601 %doc LICENSE README.rst %{python3_sitelib}/* %changelog +* Wed Oct 21 2020 leiju - 0.1.11-4 +- remove python2 subpackage + * Tue Sep 29 2020 liuweibo - 0.1.11-3 - Fix Source0 -- Gitee