commit bb4cc37bf6099f8d257766fe5dd174e0912ef84b Author: tubalu Date: Tue Nov 26 10:40:06 2019 +0800 package init diff --git a/iso8601-0.1.11.tar.gz b/iso8601-0.1.11.tar.gz new file mode 100644 index 0000000..a137e83 Binary files /dev/null and b/iso8601-0.1.11.tar.gz differ diff --git a/python-iso8601.spec b/python-iso8601.spec new file mode 100644 index 0000000..7896c1c --- /dev/null +++ b/python-iso8601.spec @@ -0,0 +1,56 @@ +Name: python-iso8601 +Version: 0.1.11 +Release: 2 +Summary: Simple module to parse ISO 8601 dates +License: MIT +URL: https://pypi.org/project/iso8601/ +Source: http://pypi.python.org/packages/source/i/iso8601/iso8601-%{version}.tar.gz + +BuildArch: noarch + +%description +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} +BuildRequires: python3-devel python3-setuptools + +%description -n python3-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. + +%prep +%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 Nov 13 2019 openEuler Buildteam - 0.1.11-2 +- Package init