2016-05-04 08:19:29 +02:00
|
|
|
#
|
|
|
|
# spec file for package python-osprofiler
|
|
|
|
#
|
2019-03-12 10:57:18 +01:00
|
|
|
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
2016-05-04 08:19:29 +02:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2019-03-12 10:57:18 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2016-05-04 08:19:29 +02:00
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: python-osprofiler
|
2018-09-03 11:52:41 +02:00
|
|
|
Version: 2.3.0
|
2016-05-04 08:19:29 +02:00
|
|
|
Release: 0
|
|
|
|
Summary: OpenStack Profiler Library
|
|
|
|
License: Apache-2.0
|
|
|
|
Group: Development/Languages/Python
|
2018-09-03 11:52:41 +02:00
|
|
|
URL: https://launchpad.net/osprofiler
|
|
|
|
Source0: https://files.pythonhosted.org/packages/source/o/osprofiler/osprofiler-2.3.0.tar.gz
|
2019-03-12 10:57:18 +01:00
|
|
|
# backport sql collector -- https://github.com/openstack/osprofiler/commit/032a21861854c5f63a039c997a58b4a979e62750
|
|
|
|
Patch0: 0001-Add-sqlalchemy-collector.patch
|
|
|
|
# https://review.openstack.org/#/c/642407/
|
|
|
|
Patch1: 0001-Don-t-fail-if-sqlalchemy-driver-fails-to-initialize.patch
|
2016-08-01 20:57:20 +02:00
|
|
|
BuildRequires: openstack-macros
|
2016-05-04 08:19:29 +02:00
|
|
|
BuildRequires: python-devel
|
2018-09-03 11:52:41 +02:00
|
|
|
BuildRequires: python2-PrettyTable >= 0.7.2
|
2018-01-15 13:04:16 +01:00
|
|
|
BuildRequires: python2-WebOb >= 1.7.1
|
2018-09-03 11:52:41 +02:00
|
|
|
BuildRequires: python2-ddt
|
|
|
|
BuildRequires: python2-elasticsearch
|
|
|
|
BuildRequires: python2-mock
|
|
|
|
BuildRequires: python2-oslo.concurrency >= 3.26.0
|
|
|
|
BuildRequires: python2-oslo.config
|
|
|
|
BuildRequires: python2-oslo.log
|
2018-02-23 14:31:24 +01:00
|
|
|
BuildRequires: python2-oslo.utils >= 3.33.0
|
2018-09-03 11:52:41 +02:00
|
|
|
BuildRequires: python2-pymongo
|
|
|
|
BuildRequires: python2-python-subunit
|
|
|
|
BuildRequires: python2-redis
|
2018-01-15 13:04:16 +01:00
|
|
|
BuildRequires: python2-six >= 1.10.0
|
2018-09-03 11:52:41 +02:00
|
|
|
BuildRequires: python2-testrepository
|
|
|
|
BuildRequires: python2-testtools
|
|
|
|
BuildRequires: python3-PrettyTable >= 0.7.2
|
2018-01-15 13:04:16 +01:00
|
|
|
BuildRequires: python3-WebOb >= 1.7.1
|
2018-09-03 11:52:41 +02:00
|
|
|
BuildRequires: python3-ddt
|
2018-01-15 13:04:16 +01:00
|
|
|
BuildRequires: python3-devel
|
2018-09-03 11:52:41 +02:00
|
|
|
BuildRequires: python3-elasticsearch
|
|
|
|
BuildRequires: python3-mock
|
|
|
|
BuildRequires: python3-oslo.concurrency >= 3.26.0
|
|
|
|
BuildRequires: python3-oslo.config
|
|
|
|
BuildRequires: python3-oslo.log
|
2018-02-23 14:31:24 +01:00
|
|
|
BuildRequires: python3-oslo.utils >= 3.33.0
|
2018-09-03 11:52:41 +02:00
|
|
|
BuildRequires: python3-pymongo
|
|
|
|
BuildRequires: python3-python-subunit
|
|
|
|
BuildRequires: python3-redis
|
2018-01-15 13:04:16 +01:00
|
|
|
BuildRequires: python3-six >= 1.10.0
|
2018-09-03 11:52:41 +02:00
|
|
|
BuildRequires: python3-testrepository
|
|
|
|
BuildRequires: python3-testtools
|
|
|
|
Requires: python-PrettyTable >= 0.7.2
|
2017-08-07 10:37:52 +02:00
|
|
|
Requires: python-WebOb >= 1.7.1
|
2018-09-03 11:52:41 +02:00
|
|
|
Requires: python-oslo.concurrency >= 3.26.0
|
|
|
|
Requires: python-oslo.config
|
|
|
|
Requires: python-oslo.log
|
2018-02-23 14:31:24 +01:00
|
|
|
Requires: python-oslo.utils >= 3.33.0
|
2018-01-15 13:04:16 +01:00
|
|
|
Requires: python-six >= 1.10.0
|
2016-05-04 08:19:29 +02:00
|
|
|
BuildArch: noarch
|
2018-01-15 13:04:16 +01:00
|
|
|
%if 0%{?suse_version}
|
|
|
|
Requires(post): update-alternatives
|
|
|
|
Requires(postun): update-alternatives
|
|
|
|
%else
|
|
|
|
# on RDO, update-alternatives is in chkconfig
|
|
|
|
Requires(post): chkconfig
|
|
|
|
Requires(postun): chkconfig
|
|
|
|
%endif
|
|
|
|
%python_subpackages
|
2016-05-04 08:19:29 +02:00
|
|
|
|
|
|
|
%description
|
2016-08-01 20:57:20 +02:00
|
|
|
OSProfiler provides a tiny but powerful library that is used by
|
|
|
|
most (soon to be all) OpenStack projects and their python clients. It
|
|
|
|
provides functionality to be able to generate 1 trace per request, that goes
|
|
|
|
through all involved services. This trace can then be extracted and used
|
|
|
|
to build a tree of calls which can be quite handy for a variety of
|
|
|
|
reasons (for example in isolating cross-project performance issues).
|
2016-05-04 08:19:29 +02:00
|
|
|
|
2018-01-15 13:04:16 +01:00
|
|
|
%package -n python-osprofiler-doc
|
2016-08-01 20:57:20 +02:00
|
|
|
Summary: Documentation for OSProfiler
|
|
|
|
Group: Development/Languages/Python
|
|
|
|
BuildRequires: python-Sphinx
|
2018-09-03 11:52:41 +02:00
|
|
|
BuildRequires: python-openstackdocstheme
|
2016-05-04 08:19:29 +02:00
|
|
|
|
2018-01-15 13:04:16 +01:00
|
|
|
%description -n python-osprofiler-doc
|
2016-08-01 20:57:20 +02:00
|
|
|
Documentation for OSProfiler.
|
2016-05-04 08:19:29 +02:00
|
|
|
|
|
|
|
%prep
|
2018-09-03 11:52:41 +02:00
|
|
|
%autosetup -p1 -n osprofiler-2.3.0
|
2017-02-13 09:51:14 +01:00
|
|
|
%py_req_cleanup
|
2017-08-07 10:37:52 +02:00
|
|
|
sed -i 's/^warning-is-error.*/warning-is-error = 0/g' setup.cfg
|
2016-05-04 08:19:29 +02:00
|
|
|
|
|
|
|
%build
|
2018-01-15 13:04:16 +01:00
|
|
|
%{python_build}
|
2016-05-04 08:19:29 +02:00
|
|
|
|
|
|
|
%install
|
2018-01-15 13:04:16 +01:00
|
|
|
%{python_install}
|
|
|
|
%python_clone -a %{buildroot}%{_bindir}/osprofiler
|
2016-08-01 20:57:20 +02:00
|
|
|
|
|
|
|
# generate html docs
|
|
|
|
%{__python2} setup.py build_sphinx
|
|
|
|
# remove the sphinx-build leftovers
|
|
|
|
rm -rf doc/build/html/.{doctrees,buildinfo}
|
2016-05-04 08:19:29 +02:00
|
|
|
|
2018-01-15 13:04:16 +01:00
|
|
|
%post
|
|
|
|
%python_install_alternative osprofiler
|
|
|
|
|
|
|
|
%postun
|
|
|
|
%python_uninstall_alternative osprofiler
|
|
|
|
|
2016-05-04 08:19:29 +02:00
|
|
|
%check
|
2018-01-15 13:04:16 +01:00
|
|
|
%{python_expand rm -rf .testrepository
|
2018-09-03 11:52:41 +02:00
|
|
|
$python setup.py testr --testr-args '(?!^osprofiler.tests.unit.drivers.test_jaeger.JaegerTestCase.*$)(^.*$)'
|
2018-01-15 13:04:16 +01:00
|
|
|
}
|
2016-05-04 08:19:29 +02:00
|
|
|
|
2018-01-15 13:04:16 +01:00
|
|
|
%files %{python_files}
|
2016-08-01 20:57:20 +02:00
|
|
|
%license LICENSE
|
|
|
|
%doc README.rst ChangeLog
|
2018-01-15 13:04:16 +01:00
|
|
|
%{python_sitelib}/osprofiler
|
|
|
|
%{python_sitelib}/*.egg-info
|
|
|
|
%python_alternative %{_bindir}/osprofiler
|
2016-08-01 20:57:20 +02:00
|
|
|
|
2018-01-15 13:04:16 +01:00
|
|
|
%files -n python-osprofiler-doc
|
2016-08-01 20:57:20 +02:00
|
|
|
%license LICENSE
|
|
|
|
%doc doc/build/html
|
2016-05-04 08:19:29 +02:00
|
|
|
|
|
|
|
%changelog
|