15
0
forked from pool/python-celery

- Switch to multibuild in order to not pull moto everywhere

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-celery?expand=0&rev=119
This commit is contained in:
Tomáš Chvátal
2019-07-24 10:51:03 +00:00
committed by Git OBS Bridge
parent 6ce21c9090
commit 00f77ad6bf
3 changed files with 42 additions and 18 deletions

3
_multibuild Normal file
View File

@@ -0,0 +1,3 @@
<multibuild>
<package>test</package>
</multibuild>

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Wed Jul 24 10:50:33 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
- Switch to multibuild in order to not pull moto everywhere
-------------------------------------------------------------------
Fri Jul 19 12:48:17 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>

View File

@@ -17,7 +17,15 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-celery
%global flavor @BUILD_FLAVOR@%{nil}
%if "%{flavor}" == "test"
%define psuffix -test
%bcond_without test
%else
%define psuffix %{nil}
%bcond_with test
%endif
Name: python-celery%{psuffix}
Version: 4.3.0
Release: 0
Summary: Distributed Task Queue module for Python
@@ -26,6 +34,24 @@ Group: Development/Languages/Python
URL: http://celeryproject.org
Source: https://files.pythonhosted.org/packages/source/c/celery/celery-%{version}.tar.gz
Patch2: unpin-pytest.patch
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: netcfg
BuildRequires: python-rpm-macros
Requires: python-billiard >= 3.6.0
Requires: python-kombu >= 4.4.0
Requires: python-python-dateutil
Requires: python-pytz >= 2016.7
Requires: python-vine >= 1.3.0
Recommends: python-curses
Recommends: python-pyOpenSSL
Suggests: python-eventlet
Suggests: python-gevent
Suggests: python-pymongo
Suggests: python-python-daemon
Suggests: python-pytyrant
BuildArch: noarch
%if %{with test}
BuildRequires: %{python_module SQLAlchemy}
BuildRequires: %{python_module billiard >= 3.6.0}
BuildRequires: %{python_module boto3 >= 1.9.125}
@@ -39,27 +65,11 @@ BuildRequires: %{python_module pyOpenSSL}
BuildRequires: %{python_module pytest >= 4.3.1}
BuildRequires: %{python_module python-dateutil}
BuildRequires: %{python_module pytz >= 2016.7}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module vine >= 1.3.0}
BuildRequires: fdupes
BuildRequires: netcfg
BuildRequires: python-rpm-macros
Requires: python-billiard >= 3.6.0
Requires: python-kombu >= 4.4.0
Requires: python-python-dateutil
Requires: python-pytz >= 2016.7
Requires: python-vine >= 1.3.0
%endif
%ifpython3
Requires: python3-dbm
%endif
Recommends: python-curses
Recommends: python-pyOpenSSL
Suggests: python-eventlet
Suggests: python-gevent
Suggests: python-pymongo
Suggests: python-python-daemon
Suggests: python-pytyrant
BuildArch: noarch
%python_subpackages
%description
@@ -77,16 +87,22 @@ sed -i -e 's:==:>=:g' requirements/*.txt
%python_build
%install
%if !%{with test}
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%endif
%check
%if %{with test}
%python_exec setup.py test
%endif
%if !%{with test}
%files %{python_files}
%{python_sitelib}/*
%license LICENSE
%doc Changelog README.rst TODO
%python3_only %{_bindir}/celery*
%endif
%changelog