- 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>
|
||||
|
||||
|
@ -18,25 +18,35 @@
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
%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
|
||||
Release: 0
|
||||
Summary: A Python Datetime Library
|
||||
License: BSD-3-Clause OR Apache-2.0
|
||||
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
|
||||
BuildRequires: %{python_module setuptools >= 18.0.1}
|
||||
BuildRequires: %{python_module setuptools_scm}
|
||||
BuildRequires: %{python_module six >= 1.9.0}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
# testing requirements
|
||||
Requires: python-six >= 1.9.0
|
||||
BuildArch: noarch
|
||||
%if %{with test}
|
||||
BuildRequires: %{python_module freezegun}
|
||||
BuildRequires: %{python_module hypothesis}
|
||||
BuildRequires: %{python_module pytest}
|
||||
BuildRequires: timezone
|
||||
Requires: python-six >= 1.9.0
|
||||
%endif
|
||||
%ifpython2
|
||||
Obsoletes: %{oldpython}-dateutil < %{version}
|
||||
Provides: %{oldpython}-dateutil = %{version}
|
||||
@ -45,7 +55,6 @@ Provides: %{oldpython}-dateutil = %{version}
|
||||
Obsoletes: python3-dateutil < %{version}
|
||||
Provides: python3-dateutil = %{version}
|
||||
%endif
|
||||
BuildArch: noarch
|
||||
%python_subpackages
|
||||
|
||||
%description
|
||||
@ -65,7 +74,7 @@ datetime module.
|
||||
* Generic parsing of dates in almost any string format.
|
||||
|
||||
* 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
|
||||
ranges (with help from relative deltas), local machine timezone,
|
||||
fixed offset timezone, UTC timezone, and Windows registry-based
|
||||
@ -87,19 +96,24 @@ rm -f setup.cfg
|
||||
%python_build
|
||||
|
||||
%install
|
||||
%if !%{with test}
|
||||
%python_install
|
||||
%python_expand %fdupes -s %{buildroot}%{$python_sitelib}
|
||||
%endif
|
||||
|
||||
%if %{with test}
|
||||
%check
|
||||
export LANG=en_US.UTF-8
|
||||
%{python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} \
|
||||
py.test-%{$python_bin_suffix} dateutil/test}
|
||||
%endif
|
||||
|
||||
%if !%{with test}
|
||||
%files %{python_files}
|
||||
%defattr(-,root,root)
|
||||
%doc NEWS PKG-INFO README.rst
|
||||
%license LICENSE
|
||||
%{python_sitelib}/dateutil/
|
||||
%{python_sitelib}/python_dateutil-%{version}-py*.egg-info
|
||||
%endif
|
||||
|
||||
%changelog
|
||||
|
Loading…
Reference in New Issue
Block a user