|
|
9bda489 |
%global with_python3 1
|
|
|
7f970e4 |
|
|
|
7f970e4 |
%if 0%{?fedora}
|
|
|
7f970e4 |
%{!?python3_pkgversion: %global python3_pkgversion 3}
|
|
|
7f970e4 |
%else
|
|
|
7f970e4 |
%{!?python3_pkgversion: %global python3_pkgversion 34}
|
|
|
9bda489 |
%endif
|
|
|
9bda489 |
|
|
|
9bda489 |
%global modname arrow
|
|
|
9bda489 |
|
|
|
9bda489 |
Name: python-%{modname}
|
|
|
5794caf |
Version: 0.10.0
|
|
|
5794caf |
Release: 1%{?dist}
|
|
|
9bda489 |
Summary: Better dates and times for Python
|
|
|
9bda489 |
|
|
|
9bda489 |
Group: Development/Libraries
|
|
|
9bda489 |
License: ASL 2.0
|
|
|
b0ef630 |
URL: https://pypi.io/project/arrow
|
|
|
b0ef630 |
Source0: https://pypi.io/packages/source/a/%{modname}/%{modname}-%{version}.tar.gz
|
|
|
cd76032 |
# This lets us drop a hard to port dep for py3 on epel7.
|
|
|
cd76032 |
Patch0: python-arrow-remove-simplejson-test.patch
|
|
|
9bda489 |
|
|
|
9bda489 |
BuildArch: noarch
|
|
|
49de29b |
|
|
|
a3ecc72 |
%description
|
|
|
a3ecc72 |
Arrow is a Python library that offers a sensible, human-friendly approach to
|
|
|
a3ecc72 |
creating, manipulating, formatting and converting dates, times, and timestamps.
|
|
|
9bda489 |
|
|
|
a3ecc72 |
It implements and updates the datetime type, plugging gaps in functionality,
|
|
|
a3ecc72 |
and provides an intelligent module API that supports many common creation
|
|
|
a3ecc72 |
scenarios.
|
|
|
9bda489 |
|
|
|
a3ecc72 |
Simply put, it helps you work with dates and times with fewer imports and a lot
|
|
|
a3ecc72 |
less code.
|
|
|
a3ecc72 |
|
|
|
a3ecc72 |
%package -n python2-%{modname}
|
|
|
a3ecc72 |
Summary: Better dates and times for Python
|
|
|
a3ecc72 |
Group: Development/Libraries
|
|
|
a3ecc72 |
%{?python_provide:%python_provide python2-%{modname}}
|
|
|
a3ecc72 |
|
|
|
a3ecc72 |
BuildRequires: python2-devel
|
|
|
a3ecc72 |
BuildRequires: python2-chai
|
|
|
f77e48d |
|
|
|
f77e48d |
%if 0%{?fedora}
|
|
|
f77e48d |
BuildRequires: python2-setuptools
|
|
|
a3ecc72 |
BuildRequires: python2-dateutil
|
|
|
a3ecc72 |
BuildRequires: python2-six
|
|
|
a3ecc72 |
BuildRequires: python2-nose
|
|
|
1ff1991 |
BuildRequires: python2-simplejson
|
|
|
a3ecc72 |
Requires: python2-dateutil
|
|
|
a3ecc72 |
Requires: python2-six
|
|
|
f77e48d |
%else
|
|
|
f77e48d |
# EPEL7 versions of the same things.
|
|
|
f77e48d |
BuildRequires: python-setuptools
|
|
|
f77e48d |
BuildRequires: python-dateutil
|
|
|
f77e48d |
BuildRequires: python-six
|
|
|
f77e48d |
BuildRequires: python-nose
|
|
|
1ff1991 |
BuildRequires: python-simplejson
|
|
|
f77e48d |
Requires: python-dateutil
|
|
|
f77e48d |
Requires: python-six
|
|
|
f77e48d |
%endif
|
|
|
f77e48d |
|
|
|
a3ecc72 |
|
|
|
1b9c7e8 |
%description -n python2-%{modname}
|
|
|
9bda489 |
Arrow is a Python library that offers a sensible, human-friendly approach to
|
|
|
9bda489 |
creating, manipulating, formatting and converting dates, times, and timestamps.
|
|
|
a3ecc72 |
|
|
|
9bda489 |
It implements and updates the datetime type, plugging gaps in functionality,
|
|
|
9bda489 |
and provides an intelligent module API that supports many common creation
|
|
|
9bda489 |
scenarios.
|
|
|
a3ecc72 |
|
|
|
9bda489 |
Simply put, it helps you work with dates and times with fewer imports and a lot
|
|
|
9bda489 |
less code.
|
|
|
9bda489 |
|
|
|
9bda489 |
|
|
|
9bda489 |
%if 0%{?with_python3}
|
|
|
7f970e4 |
%package -n python%{python3_pkgversion}-%{modname}
|
|
|
9bda489 |
Summary: Better dates and times for Python
|
|
|
9bda489 |
Group: Development/Libraries
|
|
|
a3ecc72 |
%{?python_provide:%python_provide python%{python3_pkgversion}-%{modname}}
|
|
|
a3ecc72 |
|
|
|
a3ecc72 |
BuildRequires: python%{python3_pkgversion}-devel
|
|
|
a3ecc72 |
BuildRequires: python%{python3_pkgversion}-setuptools
|
|
|
a3ecc72 |
BuildRequires: python%{python3_pkgversion}-chai
|
|
|
a3ecc72 |
BuildRequires: python%{python3_pkgversion}-dateutil
|
|
|
a3ecc72 |
BuildRequires: python%{python3_pkgversion}-six
|
|
|
a3ecc72 |
BuildRequires: python%{python3_pkgversion}-nose
|
|
|
1ff1991 |
BuildRequires: python%{python3_pkgversion}-simplejson
|
|
|
a3ecc72 |
|
|
|
7f970e4 |
Requires: python%{python3_pkgversion}-dateutil
|
|
|
7f970e4 |
Requires: python%{python3_pkgversion}-six
|
|
|
9bda489 |
|
|
|
1b9c7e8 |
%description -n python%{python3_pkgversion}-%{modname}
|
|
|
9bda489 |
Arrow is a Python library that offers a sensible, human-friendly approach to
|
|
|
9bda489 |
creating, manipulating, formatting and converting dates, times, and timestamps.
|
|
|
a3ecc72 |
|
|
|
9bda489 |
It implements and updates the datetime type, plugging gaps in functionality,
|
|
|
9bda489 |
and provides an intelligent module API that supports many common creation
|
|
|
9bda489 |
scenarios.
|
|
|
a3ecc72 |
|
|
|
9bda489 |
Simply put, it helps you work with dates and times with fewer imports and a lot
|
|
|
9bda489 |
less code.
|
|
|
9bda489 |
%endif
|
|
|
9bda489 |
|
|
|
9bda489 |
%prep
|
|
|
9bda489 |
%setup -q -n %{modname}-%{version}
|
|
|
9bda489 |
|
|
|
9a8debe |
#%patch0 -p1
|
|
|
a3ecc72 |
|
|
|
9bda489 |
# Remove bundled egg-info in case it exists
|
|
|
9bda489 |
rm -rf %{modname}.egg-info
|
|
|
9bda489 |
|
|
|
9bda489 |
%build
|
|
|
1b9c7e8 |
%{py2_build}
|
|
|
9bda489 |
%if 0%{?with_python3}
|
|
|
1b9c7e8 |
%{py3_build}
|
|
|
9bda489 |
%endif
|
|
|
9bda489 |
|
|
|
9bda489 |
%install
|
|
|
1b9c7e8 |
%{py2_install}
|
|
|
9bda489 |
%if 0%{?with_python3}
|
|
|
1b9c7e8 |
%{py3_install}
|
|
|
9bda489 |
%endif
|
|
|
9bda489 |
|
|
|
b7c99dc |
%check
|
|
|
fe11f53 |
%if 0%{?with_python3}
|
|
|
49de29b |
nosetests-%{python3_version} --all-modules arrow tests
|
|
|
fe11f53 |
%endif
|
|
|
b7c99dc |
|
|
|
49de29b |
nosetests --all-modules arrow tests
|
|
|
b7c99dc |
|
|
|
1b9c7e8 |
%files -n python2-%{modname}
|
|
|
49de29b |
%doc README.rst HISTORY.md
|
|
|
49de29b |
%license LICENSE
|
|
|
9bda489 |
%{python_sitelib}/%{modname}/
|
|
|
9bda489 |
%{python_sitelib}/%{modname}-%{version}*
|
|
|
9bda489 |
|
|
|
9bda489 |
%if 0%{?with_python3}
|
|
|
7f970e4 |
%files -n python%{python3_pkgversion}-%{modname}
|
|
|
49de29b |
%doc README.rst HISTORY.md
|
|
|
49de29b |
%license LICENSE
|
|
|
9bda489 |
%{python3_sitelib}/%{modname}/
|
|
|
9bda489 |
%{python3_sitelib}/%{modname}-%{version}-*
|
|
|
9bda489 |
%endif
|
|
|
9bda489 |
|
|
|
9bda489 |
%changelog
|
|
|
5794caf |
* Fri Jan 20 2017 Pierre-Yves Chibon <pingou@pingoured.fr> - 0.10.0-1
|
|
|
5794caf |
- Update to 0.10.0
|
|
|
5794caf |
|
|
|
b9750aa |
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 0.8.0-4
|
|
|
b9750aa |
- Rebuild for Python 3.6
|
|
|
b9750aa |
|
|
|
a3ecc72 |
* Wed Jul 27 2016 Ralph Bean <rbean@redhat.com> - 0.8.0-3
|
|
|
a3ecc72 |
- Get things ready to work with py34 on epel7, someday.
|
|
|
a3ecc72 |
- Explicit python2 subpackage.
|
|
|
a3ecc72 |
|
|
|
bfd1184 |
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.0-2
|
|
|
bfd1184 |
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
|
|
|
bfd1184 |
|
|
|
b0ef630 |
* Wed Jun 15 2016 Ralph Bean <rbean@redhat.com> - 0.8.0-1
|
|
|
b0ef630 |
- new version
|
|
|
b0ef630 |
|
|
|
af477a8 |
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.0-3
|
|
|
af477a8 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
af477a8 |
|
|
|
32d749f |
* Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.0-2
|
|
|
32d749f |
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
|
|
|
32d749f |
|
|
|
4994bf8 |
* Sat Oct 24 2015 Ralph Bean <rbean@redhat.com> - 0.7.0-1
|
|
|
4994bf8 |
- new version
|
|
|
4994bf8 |
|
|
|
49de29b |
* Wed Sep 16 2015 Ralph Bean <rbean@redhat.com> - 0.6.0-1
|
|
|
49de29b |
- new version
|
|
|
49de29b |
- Include license file, now shipped by upstream
|
|
|
49de29b |
- Run tests the way upstream does in their Makefile.
|
|
|
49de29b |
|
|
|
a7d5e7e |
* Tue Sep 15 2015 Ralph Bean <rbean@redhat.com> - 0.5.0-3
|
|
|
7f970e4 |
- Get ready for Python34 on EPEL7.
|
|
|
7f970e4 |
|
|
|
3cde9a6 |
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.0-2
|
|
|
3cde9a6 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
3cde9a6 |
|
|
|
898786e |
* Thu Jan 22 2015 Pierre-Yves Chibon <pingou@pingoured.fr> - 0.5.0-1
|
|
|
898786e |
- Update to 0.5.0
|
|
|
898786e |
|
|
|
fe11f53 |
* Wed Jan 21 2015 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 0.4.4-1
|
|
|
fe11f53 |
- Update to version 0.4.4
|
|
|
fe11f53 |
- Enable tests (#1183352)
|
|
|
fe11f53 |
|
|
|
57ba408 |
* Wed Jul 09 2014 Ralph Bean <rbean@redhat.com> - 0.4.2-5
|
|
|
57ba408 |
- Modernize python3 macro definition.
|
|
|
57ba408 |
|
|
|
63b476b |
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.2-4
|
|
|
63b476b |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
63b476b |
|
|
|
4cc2532 |
* Wed May 14 2014 Bohuslav Kabrda <bkabrda@redhat.com> - 0.4.2-3
|
|
|
4cc2532 |
- Rebuilt for https://fedoraproject.org/wiki/Changes/Python_3.4
|
|
|
4cc2532 |
|
|
|
d078327 |
* Tue Dec 17 2013 Pierre-Yves Chibon <pingou@pingoured.fr> - 0.4.2-1
|
|
|
d078327 |
- Add python-six and python-dateutil as Requires
|
|
|
d078327 |
|
|
|
d078327 |
* Wed Nov 27 2013 Pierre-Yves Chibon <pingou@pingoured.fr> - 0.4.2-1
|
|
|
b7c99dc |
- Update to 0.4.2
|
|
|
b7c99dc |
- Prepare for when the tests will be included in the releases
|
|
|
b7c99dc |
- Add BR to python-chai, python-dateutil and python-six
|
|
|
b7c99dc |
|
|
|
d078327 |
* Mon Oct 28 2013 Pierre-Yves Chibon <pingou@pingoured.fr> - 0.4.1-1
|
|
|
9bda489 |
- initial package for Fedora
|