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
This commit is contained in:
parent
3c872fbdba
commit
c340afcbf8
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user