forked from pool/python-flower
- version update to 1.0.0
* no upstream changelog file found
* Remove flower as individual command.
- modified patches
% backport_run_in_executor.patch (refreshed)
- deleted patches
- pr_1021.patch (upstreamed)
- added patches
fix 70b1ae40b4
+ python-flower-new-humanize.patch
OBS-URL: https://build.opensuse.org/request/show/977774
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-flower?expand=0&rev=13
85 lines
2.6 KiB
RPMSpec
85 lines
2.6 KiB
RPMSpec
#
|
|
# spec file for package python-flower
|
|
#
|
|
# Copyright (c) 2022 SUSE LLC
|
|
#
|
|
# All modifications and additions to the file contributed by third parties
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
# upon. The license for this file, and modifications and additions to the
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
# license for the pristine package is not an Open Source License, in which
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
# published by the Open Source Initiative.
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
%bcond_without python2
|
|
Name: python-flower
|
|
Version: 1.0.0
|
|
Release: 0
|
|
Summary: A web frontend for monitoring and administrating Celery clusters
|
|
License: BSD-3-Clause
|
|
Group: Development/Languages/Python
|
|
URL: https://github.com/mher/flower
|
|
Source: https://files.pythonhosted.org/packages/source/f/flower/flower-%{version}.tar.gz
|
|
# Tornado 5+ update blocked by salt, so backport the missing piece
|
|
Patch0: backport_run_in_executor.patch
|
|
# https://github.com/mher/flower/commit/70b1ae40b467a3febab9abef3ef52dea56ca6f12
|
|
Patch1: python-flower-new-humanize.patch
|
|
BuildRequires: %{python_module Babel >= 1.0}
|
|
BuildRequires: %{python_module celery >= 5.0.0}
|
|
BuildRequires: %{python_module certifi}
|
|
BuildRequires: %{python_module humanize}
|
|
BuildRequires: %{python_module kombu}
|
|
BuildRequires: %{python_module mock}
|
|
BuildRequires: %{python_module prometheus_client >= 0.8.0}
|
|
BuildRequires: %{python_module pytest}
|
|
BuildRequires: %{python_module pytz}
|
|
BuildRequires: %{python_module setuptools}
|
|
BuildRequires: %{python_module tornado >= 5.0.0}
|
|
BuildRequires: fdupes
|
|
BuildRequires: python-rpm-macros
|
|
Requires: python-Babel >= 1.0
|
|
Requires: python-celery >= 5.0.0
|
|
Requires: python-certifi
|
|
Requires: python-humanize
|
|
Requires: python-prometheus_client >= 0.8.0
|
|
Requires: python-pytz
|
|
Requires: python-tornado >= 5.0.0
|
|
Requires(post): update-alternatives
|
|
Requires(postun):update-alternatives
|
|
BuildArch: noarch
|
|
%if %{with python2}
|
|
BuildRequires: python-futures
|
|
%endif
|
|
%ifpython2
|
|
Requires: python-futures
|
|
%endif
|
|
%python_subpackages
|
|
|
|
%description
|
|
Flower is a web based tool for monitoring and administrating Celery clusters.
|
|
|
|
%prep
|
|
%autosetup -p1 -n flower-%{version}
|
|
|
|
%build
|
|
%python_build
|
|
|
|
%install
|
|
%python_install
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
%check
|
|
%pytest
|
|
|
|
%files %{python_files}
|
|
%license LICENSE
|
|
%doc README.rst
|
|
%{python_sitelib}/*
|
|
|
|
%changelog
|