- Switch to _multibuild to not create buildcycle
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-dateutil?expand=0&rev=18
This commit is contained in:
parent
96fadf1edb
commit
2515ba7977
3
_multibuild
Normal file
3
_multibuild
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
<multibuild>
|
||||||
|
<package>test</package>
|
||||||
|
</multibuild>
|
@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Feb 25 12:05:09 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
|
||||||
|
|
||||||
|
- Switch to _multibuild to not create buildcycle
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu Feb 21 11:00:12 UTC 2019 - Hans-Peter Jansen <hpj@urpla.net>
|
Thu Feb 21 11:00:12 UTC 2019 - Hans-Peter Jansen <hpj@urpla.net>
|
||||||
|
|
||||||
|
@ -18,25 +18,35 @@
|
|||||||
|
|
||||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||||
%define oldpython python
|
%define oldpython python
|
||||||
Name: python-python-dateutil
|
%global flavor @BUILD_FLAVOR@%{nil}
|
||||||
|
%if "%{flavor}" == "test"
|
||||||
|
%define psuffix -test
|
||||||
|
%bcond_without test
|
||||||
|
%else
|
||||||
|
%define psuffix %{nil}
|
||||||
|
%bcond_with test
|
||||||
|
%endif
|
||||||
|
Name: python-python-dateutil%{psuffix}
|
||||||
Version: 2.8.0
|
Version: 2.8.0
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: A Python Datetime Library
|
Summary: A Python Datetime Library
|
||||||
License: BSD-3-Clause OR Apache-2.0
|
License: BSD-3-Clause OR Apache-2.0
|
||||||
Group: Development/Libraries/Python
|
Group: Development/Libraries/Python
|
||||||
Url: https://dateutil.readthedocs.org/en/latest/
|
URL: https://dateutil.readthedocs.org/en/latest/
|
||||||
Source0: https://files.pythonhosted.org/packages/source/p/python-dateutil/python-dateutil-%{version}.tar.gz
|
Source0: https://files.pythonhosted.org/packages/source/p/python-dateutil/python-dateutil-%{version}.tar.gz
|
||||||
BuildRequires: %{python_module setuptools >= 18.0.1}
|
BuildRequires: %{python_module setuptools >= 18.0.1}
|
||||||
BuildRequires: %{python_module setuptools_scm}
|
BuildRequires: %{python_module setuptools_scm}
|
||||||
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
|
||||||
# testing requirements
|
Requires: python-six >= 1.9.0
|
||||||
|
BuildArch: noarch
|
||||||
|
%if %{with test}
|
||||||
BuildRequires: %{python_module freezegun}
|
BuildRequires: %{python_module freezegun}
|
||||||
BuildRequires: %{python_module hypothesis}
|
BuildRequires: %{python_module hypothesis}
|
||||||
BuildRequires: %{python_module pytest}
|
BuildRequires: %{python_module pytest}
|
||||||
BuildRequires: timezone
|
BuildRequires: timezone
|
||||||
Requires: python-six >= 1.9.0
|
%endif
|
||||||
%ifpython2
|
%ifpython2
|
||||||
Obsoletes: %{oldpython}-dateutil < %{version}
|
Obsoletes: %{oldpython}-dateutil < %{version}
|
||||||
Provides: %{oldpython}-dateutil = %{version}
|
Provides: %{oldpython}-dateutil = %{version}
|
||||||
@ -45,7 +55,6 @@ Provides: %{oldpython}-dateutil = %{version}
|
|||||||
Obsoletes: python3-dateutil < %{version}
|
Obsoletes: python3-dateutil < %{version}
|
||||||
Provides: python3-dateutil = %{version}
|
Provides: python3-dateutil = %{version}
|
||||||
%endif
|
%endif
|
||||||
BuildArch: noarch
|
|
||||||
%python_subpackages
|
%python_subpackages
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -65,7 +74,7 @@ datetime module.
|
|||||||
* Generic parsing of dates in almost any string format.
|
* Generic parsing of dates in almost any string format.
|
||||||
|
|
||||||
* Timezone (tzinfo) implementations for tzfile(5) format files
|
* Timezone (tzinfo) implementations for tzfile(5) format files
|
||||||
(/etc/localtime, /usr/share/zoneinfo, etc.), TZ environment
|
(%{_sysconfdir}/localtime, %{_datadir}/zoneinfo, etc.), TZ environment
|
||||||
string (in all known formats), iCalendar format files, given
|
string (in all known formats), iCalendar format files, given
|
||||||
ranges (with help from relative deltas), local machine timezone,
|
ranges (with help from relative deltas), local machine timezone,
|
||||||
fixed offset timezone, UTC timezone, and Windows registry-based
|
fixed offset timezone, UTC timezone, and Windows registry-based
|
||||||
@ -87,19 +96,24 @@ rm -f setup.cfg
|
|||||||
%python_build
|
%python_build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
|
%if !%{with test}
|
||||||
%python_install
|
%python_install
|
||||||
%python_expand %fdupes -s %{buildroot}%{$python_sitelib}
|
%python_expand %fdupes -s %{buildroot}%{$python_sitelib}
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%if %{with test}
|
||||||
%check
|
%check
|
||||||
export LANG=en_US.UTF-8
|
export LANG=en_US.UTF-8
|
||||||
%{python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} \
|
%{python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} \
|
||||||
py.test-%{$python_bin_suffix} dateutil/test}
|
py.test-%{$python_bin_suffix} dateutil/test}
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%if !%{with test}
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%defattr(-,root,root)
|
|
||||||
%doc NEWS PKG-INFO README.rst
|
%doc NEWS PKG-INFO README.rst
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
%{python_sitelib}/dateutil/
|
%{python_sitelib}/dateutil/
|
||||||
%{python_sitelib}/python_dateutil-%{version}-py*.egg-info
|
%{python_sitelib}/python_dateutil-%{version}-py*.egg-info
|
||||||
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
Reference in New Issue
Block a user