Hello community, here is the log from the commit of package python-python-dateutil for openSUSE:Factory checked in at 2017-04-19 18:06:10 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-python-dateutil (Old) and /work/SRC/openSUSE:Factory/.python-python-dateutil.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-python-dateutil" Wed Apr 19 18:06:10 2017 rev:3 rq:483978 version:2.6.0 Changes: -------- --- /work/SRC/openSUSE:Factory/python-python-dateutil/python-python-dateutil.changes 2016-11-10 13:14:12.000000000 +0100 +++ /work/SRC/openSUSE:Factory/.python-python-dateutil.new/python-python-dateutil.changes 2017-04-19 18:06:15.920547462 +0200 @@ -1,0 +2,7 @@ +Tue Mar 28 17:55:07 UTC 2017 - aloi...@gmx.com + +- Converted to single-spec +- Enabled tests +- Spec cleanup + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-python-dateutil.spec ++++++ --- /var/tmp/diff_new_pack.SOrYR3/_old 2017-04-19 18:06:17.580312681 +0200 +++ /var/tmp/diff_new_pack.SOrYR3/_new 2017-04-19 18:06:17.588311549 +0200 @@ -1,7 +1,7 @@ # # spec file for package python-python-dateutil # -# 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 @@ -17,28 +17,30 @@ %define modname dateutil +%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-python-%{modname} +Version: 2.6.0 +Release: 0 Summary: A Python Datetime Library License: BSD-3-Clause Group: Development/Libraries/Python -Version: 2.6.0 -Release: 0 -Source0: https://pypi.io/packages/source/p/python-%{modname}/python-%{modname}-%{version}.tar.gz -BuildRoot: %{_tmppath}/%{name}-%{version}-build Url: https://dateutil.readthedocs.org/en/latest/ -BuildRequires: python-devel -BuildRequires: python-setuptools >= 18.0.1 -BuildRequires: python-six >= 1.9.0 +Source0: https://pypi.io/packages/source/p/python-%{modname}/python-%{modname}-%{version}.tar.gz +BuildRequires: %{python_module devel} +BuildRequires: %{python_module setuptools} >= 18.0.1 +BuildRequires: %{python_module six} >= 1.9.0 +BuildRequires: fdupes +BuildRequires: python-rpm-macros Requires: python-six >= 1.9.0 -%if 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 -%py_requires -%endif Provides: python-dateutil = %{version} -# Remove "=" of Obsoletes tag when upgrading -Obsoletes: python-dateutil <= %{version} +%define oldpython python +%ifpython2 +Obsoletes: %{oldpython}-dateutil < %{version} +Provides: %{oldpython}-dateutil = %{version} +%endif +BuildRoot: %{_tmppath}/%{name}-%{version}-build +BuildArch: noarch +%python_subpackages %description The python dateutil module provides powerful extensions to the standard @@ -73,21 +75,22 @@ %setup -q -n python-%{modname}-%{version} #cleanup and MSdos style end of line separators sed -i 's/\r$//' LICENSE NEWS PKG-INFO README.rst +rm -f setup.cfg %build -rm setup.cfg -CFLAGS="%{optflags}" python setup.py build +%python_build %install -python setup.py install --prefix=%{_prefix} --root=%{buildroot} +%python_install +%python_expand %fdupes -s %{buildroot}%{$python_sitelib} -%clean -rm -rf %{buildroot} +%check +%python_exec setup.py test -%files +%files %{python_files} %defattr(-,root,root) %doc LICENSE NEWS PKG-INFO README.rst %{python_sitelib}/%{modname}/ -%{python_sitelib}/python_%{modname}-%{version}-py%{py_ver}.egg-info/ +%{python_sitelib}/python_%{modname}-%{version}-py%{python_version}.egg-info/ %changelog