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
|
Tue Mar 28 17:55:07 UTC 2017 - aloisio@gmx.com
|
||||||
|
|
||||||
|
@ -16,28 +16,30 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
%define modname dateutil
|
|
||||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||||
Name: python-python-%{modname}
|
%define oldpython python
|
||||||
|
Name: python-python-dateutil
|
||||||
Version: 2.6.0
|
Version: 2.6.0
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: A Python Datetime Library
|
Summary: A Python Datetime Library
|
||||||
License: BSD-3-Clause
|
License: BSD-3-Clause
|
||||||
Group: Development/Libraries/Python
|
Group: Development/Libraries/Python
|
||||||
Url: https://dateutil.readthedocs.org/en/latest/
|
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 devel}
|
||||||
BuildRequires: %{python_module setuptools} >= 18.0.1
|
BuildRequires: %{python_module setuptools} >= 18.0.1
|
||||||
BuildRequires: %{python_module six} >= 1.9.0
|
BuildRequires: %{python_module six} >= 1.9.0
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
Requires: python-six >= 1.9.0
|
Requires: python-six >= 1.9.0
|
||||||
Provides: python-dateutil = %{version}
|
|
||||||
%define oldpython python
|
|
||||||
%ifpython2
|
%ifpython2
|
||||||
Obsoletes: %{oldpython}-dateutil < %{version}
|
Obsoletes: %{oldpython}-dateutil < %{version}
|
||||||
Provides: %{oldpython}-dateutil = %{version}
|
Provides: %{oldpython}-dateutil = %{version}
|
||||||
%endif
|
%endif
|
||||||
|
%ifpython3
|
||||||
|
Obsoletes: python3-dateutil < %{version}
|
||||||
|
Provides: python3-dateutil = %{version}
|
||||||
|
%endif
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
%python_subpackages
|
%python_subpackages
|
||||||
@ -72,7 +74,7 @@ datetime module.
|
|||||||
Orthodox or Julian algorithms.
|
Orthodox or Julian algorithms.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n python-%{modname}-%{version}
|
%setup -q -n python-dateutil-%{version}
|
||||||
#cleanup and MSdos style end of line separators
|
#cleanup and MSdos style end of line separators
|
||||||
sed -i 's/\r$//' LICENSE NEWS PKG-INFO README.rst
|
sed -i 's/\r$//' LICENSE NEWS PKG-INFO README.rst
|
||||||
rm -f setup.cfg
|
rm -f setup.cfg
|
||||||
@ -90,7 +92,7 @@ rm -f setup.cfg
|
|||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%doc LICENSE NEWS PKG-INFO README.rst
|
%doc LICENSE NEWS PKG-INFO README.rst
|
||||||
%{python_sitelib}/%{modname}/
|
%{python_sitelib}/dateutil/
|
||||||
%{python_sitelib}/python_%{modname}-%{version}-py%{python_version}.egg-info/
|
%{python_sitelib}/python_dateutil-%{version}-py*.egg-info
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
Reference in New Issue
Block a user