|
|
|
@ -2,17 +2,13 @@
|
|
|
|
|
|
|
|
|
|
Name: python-%{srcname}
|
|
|
|
|
Version: 0.6.0
|
|
|
|
|
Release: 3%{?dist}
|
|
|
|
|
Release: 4%{?dist}
|
|
|
|
|
Summary: An ISO 8601 date/time/duration parser and formatter
|
|
|
|
|
License: BSD
|
|
|
|
|
URL: https://pypi.org/project/isodate/
|
|
|
|
|
Source0: %pypi_source
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
|
|
BuildRequires: python2-devel
|
|
|
|
|
BuildRequires: python2-setuptools
|
|
|
|
|
BuildRequires: python2-six
|
|
|
|
|
|
|
|
|
|
BuildRequires: python3-devel
|
|
|
|
|
BuildRequires: python3-setuptools
|
|
|
|
|
BuildRequires: python3-six
|
|
|
|
@ -40,15 +36,9 @@ nanoseconds it will round it to microseconds.
|
|
|
|
|
%description
|
|
|
|
|
%{_description}
|
|
|
|
|
|
|
|
|
|
%package -n python2-%{srcname}
|
|
|
|
|
Summary: %summary
|
|
|
|
|
%{?python_provide:%python_provide python2-%{srcname}}
|
|
|
|
|
|
|
|
|
|
%description -n python2-%{srcname}
|
|
|
|
|
%{_description}
|
|
|
|
|
|
|
|
|
|
%package -n python3-%{srcname}
|
|
|
|
|
Summary: %summary
|
|
|
|
|
%{?python_provide:%python_provide python3-%{srcname}}
|
|
|
|
|
|
|
|
|
|
%description -n python3-%{srcname}
|
|
|
|
|
%{_description}
|
|
|
|
@ -59,31 +49,27 @@ Summary: %summary
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
%py2_build
|
|
|
|
|
%py3_build
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
%py2_install
|
|
|
|
|
%py3_install
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
|
%{__python2} setup.py test
|
|
|
|
|
%{__python3} setup.py test
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%files -n python2-%{srcname}
|
|
|
|
|
%doc CHANGES.txt README.rst TODO.txt
|
|
|
|
|
%{python2_sitelib}/%{srcname}*.egg-info
|
|
|
|
|
%{python2_sitelib}/%{srcname}
|
|
|
|
|
|
|
|
|
|
%files -n python3-%{srcname}
|
|
|
|
|
%doc CHANGES.txt README.rst TODO.txt
|
|
|
|
|
%{python3_sitelib}/%{srcname}-*.egg-info
|
|
|
|
|
%{python3_sitelib}/%{srcname}
|
|
|
|
|
%{python3_sitelib}/%{srcname}-*.egg-info/
|
|
|
|
|
%{python3_sitelib}/%{srcname}/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Mon Sep 23 2019 Miro Hrončok <mhroncok@redhat.com> - 0.6.0-4
|
|
|
|
|
- Subpackage python2-isodate has been removed
|
|
|
|
|
See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal
|
|
|
|
|
|
|
|
|
|
* Fri Aug 16 2019 Miro Hrončok <mhroncok@redhat.com> - 0.6.0-3
|
|
|
|
|
- Rebuilt for Python 3.8
|
|
|
|
|
|
|
|
|
|