diff --git a/python-arrow.spec b/python-arrow.spec index a44a894..311a231 100644 --- a/python-arrow.spec +++ b/python-arrow.spec @@ -1,4 +1,3 @@ -%global with_python3 1 %if 0%{?fedora} || 0%{?rhel} >= 8 %{!?python3_pkgversion: %global python3_pkgversion 3} @@ -10,7 +9,7 @@ Name: python-%{modname} Version: 0.14.6 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Better dates and times for Python License: ASL 2.0 @@ -32,54 +31,6 @@ scenarios. Simply put, it helps you work with dates and times with fewer imports and a lot less code. -%package -n python2-%{modname} -Summary: Better dates and times for Python -%{?python_provide:%python_provide python2-%{modname}} - -BuildRequires: python2-devel -BuildRequires: python2-chai - -%if 0%{?fedora} || 0%{?rhel} >= 8 -BuildRequires: python2-setuptools -BuildRequires: python2-dateutil -BuildRequires: python2-pytz -BuildRequires: python2-six -BuildRequires: python2-nose -BuildRequires: python2-simplejson -BuildRequires: python2-backports-functools_lru_cache -BuildRequires: python2-mock -Requires: python2-backports-functools_lru_cache -Requires: python2-dateutil -Requires: python2-six -%else -# EPEL7 versions of the same things. -BuildRequires: python-setuptools -BuildRequires: python-dateutil -BuildRequires: python-pytz -BuildRequires: python-six -BuildRequires: python-nose -BuildRequires: python-simplejson -BuildRequires: python2-backports-functools_lru_cache -BuildRequires: python2-mock -Requires: python2-backports-functools_lru_cache -Requires: python-dateutil -Requires: python-six -%endif - - -%description -n python2-%{modname} -Arrow is a Python library that offers a sensible, human-friendly approach to -creating, manipulating, formatting and converting dates, times, and timestamps. - -It implements and updates the datetime type, plugging gaps in functionality, -and provides an intelligent module API that supports many common creation -scenarios. - -Simply put, it helps you work with dates and times with fewer imports and a lot -less code. - - -%if 0%{?with_python3} %package -n python%{python3_pkgversion}-%{modname} Summary: Better dates and times for Python %{?python_provide:%python_provide python%{python3_pkgversion}-%{modname}} @@ -107,7 +58,6 @@ scenarios. Simply put, it helps you work with dates and times with fewer imports and a lot less code. -%endif %prep %setup -q -n %{modname}-%{version} @@ -119,39 +69,25 @@ less code. rm -rf %{modname}.egg-info %build -%{py2_build} -%if 0%{?with_python3} %{py3_build} -%endif %install -%{py2_install} -%if 0%{?with_python3} %{py3_install} -%endif %check -%if 0%{?with_python3} nosetests-%{python3_version} --all-modules arrow tests -%endif - -nosetests-2 --all-modules arrow tests -%files -n python2-%{modname} -%doc README.rst CHANGELOG.md -%license LICENSE -%{python2_sitelib}/%{modname}/ -%{python2_sitelib}/%{modname}-%{version}* - -%if 0%{?with_python3} %files -n python%{python3_pkgversion}-%{modname} %doc README.rst CHANGELOG.md %license LICENSE %{python3_sitelib}/%{modname}/ %{python3_sitelib}/%{modname}-%{version}-* -%endif %changelog +* Wed Sep 11 2019 Miro HronĨok - 0.14.6-2 +- Subpackage python2-arrow has been removed + See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal + * Mon Sep 02 2019 Kevin Fenzi - 0.14.6-1 - Update to 0.14.6. Fixes bug #1742367