From c340afcbf891fdb1fd087198a0878fe1af196abec22758578cfae536a1372cbc Mon Sep 17 00:00:00 2001 From: Todd R Date: Sat, 6 May 2017 04:25:58 +0000 Subject: [PATCH] Accepting request 493124 from home:TheBlackCat:branches:devel:languages:python Don't provide python2-dateutil, singlespec packages should use correct name. OBS-URL: https://build.opensuse.org/request/show/493124 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-dateutil?expand=0&rev=9 --- python-python-dateutil.changes | 6 ++++++ python-python-dateutil.spec | 22 ++++++++++++---------- 2 files changed, 18 insertions(+), 10 deletions(-) diff --git a/python-python-dateutil.changes b/python-python-dateutil.changes index d1d9e76..c3c02c4 100644 --- a/python-python-dateutil.changes +++ b/python-python-dateutil.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Sat May 6 03:31:54 UTC 2017 - toddrme2178@gmail.com + +- Don't provide python2-dateutil, singlespec packages should use + correct name. + ------------------------------------------------------------------- Tue Mar 28 17:55:07 UTC 2017 - aloisio@gmx.com diff --git a/python-python-dateutil.spec b/python-python-dateutil.spec index c749720..bf38db4 100644 --- a/python-python-dateutil.spec +++ b/python-python-dateutil.spec @@ -16,27 +16,29 @@ # -%define modname dateutil %{?!python_module:%define python_module() python-%{**} python3-%{**}} -Name: python-python-%{modname} +%define oldpython python +Name: python-python-dateutil Version: 2.6.0 Release: 0 Summary: A Python Datetime Library License: BSD-3-Clause Group: Development/Libraries/Python Url: https://dateutil.readthedocs.org/en/latest/ -Source0: https://pypi.io/packages/source/p/python-%{modname}/python-%{modname}-%{version}.tar.gz +Source0: https://pypi.io/packages/source/p/python-dateutil/python-dateutil-%{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 -Provides: python-dateutil = %{version} -%define oldpython python %ifpython2 -Obsoletes: %{oldpython}-dateutil < %{version} -Provides: %{oldpython}-dateutil = %{version} +Obsoletes: %{oldpython}-dateutil < %{version} +Provides: %{oldpython}-dateutil = %{version} +%endif +%ifpython3 +Obsoletes: python3-dateutil < %{version} +Provides: python3-dateutil = %{version} %endif BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildArch: noarch @@ -72,7 +74,7 @@ datetime module. Orthodox or Julian algorithms. %prep -%setup -q -n python-%{modname}-%{version} +%setup -q -n python-dateutil-%{version} #cleanup and MSdos style end of line separators sed -i 's/\r$//' LICENSE NEWS PKG-INFO README.rst rm -f setup.cfg @@ -90,7 +92,7 @@ rm -f setup.cfg %files %{python_files} %defattr(-,root,root) %doc LICENSE NEWS PKG-INFO README.rst -%{python_sitelib}/%{modname}/ -%{python_sitelib}/python_%{modname}-%{version}-py%{python_version}.egg-info/ +%{python_sitelib}/dateutil/ +%{python_sitelib}/python_dateutil-%{version}-py*.egg-info %changelog