diff --git a/arrow-0.10.0.tar.gz b/arrow-0.10.0.tar.gz new file mode 100644 index 0000000..e9d7049 --- /dev/null +++ b/arrow-0.10.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:805906f09445afc1f0fc80187db8fe07670e3b25cdafa09b8d8ac264a8c0c722 +size 86506 diff --git a/arrow-0.4.4.tar.gz b/arrow-0.4.4.tar.gz deleted file mode 100644 index adfe1bf..0000000 --- a/arrow-0.4.4.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:a280fbd0f1371f54d5b3c09ddc2cd58122ff6a0811500ab237e8ef27fd23b9e9 -size 63466 diff --git a/python-arrow.changes b/python-arrow.changes index d8c2d42..078b647 100644 --- a/python-arrow.changes +++ b/python-arrow.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Sat Jul 15 18:33:22 UTC 2017 - aloisio@gmx.com + +- Update to 0.10.0 (see HISTORY.md) +- Converted to singlespec + ------------------------------------------------------------------- Fri Feb 26 12:54:58 UTC 2016 - tbechtold@suse.com diff --git a/python-arrow.spec b/python-arrow.spec index 4c3c17f..467d2fe 100644 --- a/python-arrow.spec +++ b/python-arrow.spec @@ -1,7 +1,7 @@ # # spec file for package python-arrow # -# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,25 +16,26 @@ # +%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-arrow -Version: 0.4.4 +Version: 0.10.0 Release: 0 Summary: Better dates and times for Python License: Apache-2.0 Group: Development/Languages/Python Url: http://crsmithdev.com/arrow -Source: https://pypi.python.org/packages/source/a/arrow/arrow-%{version}.tar.gz -BuildRequires: python-chai -BuildRequires: python-devel -BuildRequires: python-nose -BuildRequires: python-python-dateutil +Source: https://files.pythonhosted.org/packages/source/a/arrow/arrow-%{version}.tar.gz +BuildRequires: %{python_module chai} +BuildRequires: %{python_module devel} +BuildRequires: %{python_module nose} +BuildRequires: %{python_module python-dateutil} +BuildRequires: %{python_module simplejson} +BuildRequires: fdupes +BuildRequires: python-rpm-macros Requires: python-python-dateutil BuildRoot: %{_tmppath}/%{name}-%{version}-build -%if 0%{?suse_version} && 0%{?suse_version} <= 1110 -%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} -%else BuildArch: noarch -%endif +%python_subpackages %description Arrow is a Python library that offers a sensible, human-friendly @@ -47,22 +48,23 @@ less code. Arrow is heavily inspired by moment.js and requests. - %prep %setup -q -n arrow-%{version} +rm -rf arrow.egg-info %build -python setup.py build +%python_build %install -python setup.py install --prefix=%{_prefix} --root=%{buildroot} +%python_install +%python_expand %fdupes -s %{buildroot}%{$python_sitelib} %check -PYTHONPATH="%{buildroot}%{python_sitelib}:$PYTHONPATH" nosetests +%python_expand PYTHONPATH="%{buildroot}%{$python_sitelib}:$PYTHONPATH" $python %{_bindir}/nosetests -%files +%files %{python_files} %defattr(-,root,root,-) -%doc LICENSE README.md HISTORY.md +%doc LICENSE README.rst HISTORY.md %{python_sitelib}/* %changelog