2016-05-04 08:19:29 +02:00
|
|
|
#
|
|
|
|
# spec file for package python-osprofiler
|
|
|
|
#
|
2017-02-13 09:51:14 +01:00
|
|
|
# Copyright (c) 2017 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.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
2016-08-01 20:57:20 +02:00
|
|
|
%global sname osprofiler
|
2016-05-04 08:19:29 +02:00
|
|
|
Name: python-osprofiler
|
2017-08-07 10:37:52 +02:00
|
|
|
Version: 1.11.0
|
2016-05-04 08:19:29 +02:00
|
|
|
Release: 0
|
|
|
|
Summary: OpenStack Profiler Library
|
|
|
|
License: Apache-2.0
|
|
|
|
Group: Development/Languages/Python
|
2016-08-01 20:57:20 +02:00
|
|
|
Url: https://launchpad.net/osprofiler
|
|
|
|
Source0: https://pypi.io/packages/source/o/%{sname}/%{sname}-%{version}.tar.gz
|
|
|
|
BuildRequires: openstack-macros
|
2017-08-07 10:37:52 +02:00
|
|
|
BuildRequires: python-WebOb >= 1.7.1
|
2016-08-30 17:22:47 +02:00
|
|
|
BuildRequires: python-ceilometerclient >= 2.5.0
|
2017-02-13 09:51:14 +01:00
|
|
|
BuildRequires: python-ddt >= 1.0.1
|
2016-05-04 08:19:29 +02:00
|
|
|
BuildRequires: python-devel
|
2017-02-13 09:51:14 +01:00
|
|
|
BuildRequires: python-elasticsearch >= 2.0.0
|
2016-08-30 17:22:47 +02:00
|
|
|
BuildRequires: python-mock >= 2.0
|
2017-02-13 09:51:14 +01:00
|
|
|
BuildRequires: python-oslo.concurrency >= 3.8.0
|
2017-08-07 10:37:52 +02:00
|
|
|
BuildRequires: python-oslo.config >= 4.0.0
|
|
|
|
BuildRequires: python-oslo.log >= 3.22.0
|
|
|
|
BuildRequires: python-oslo.utils >= 3.20.0
|
2016-08-30 17:22:47 +02:00
|
|
|
BuildRequires: python-pymongo >= 3.0.2
|
2016-08-01 20:57:20 +02:00
|
|
|
BuildRequires: python-python-subunit >= 0.0.18
|
2017-02-13 09:51:14 +01:00
|
|
|
BuildRequires: python-redis >= 2.10.0
|
2016-08-01 20:57:20 +02:00
|
|
|
BuildRequires: python-six >= 1.9.0
|
|
|
|
BuildRequires: python-testrepository >= 0.0.18
|
|
|
|
BuildRequires: python-testtools >= 1.4.0
|
2017-08-07 10:37:52 +02:00
|
|
|
Requires: python-WebOb >= 1.7.1
|
2017-02-13 09:51:14 +01:00
|
|
|
Requires: python-oslo.concurrency >= 3.8.0
|
2017-08-07 10:37:52 +02:00
|
|
|
Requires: python-oslo.config >= 4.0.0
|
|
|
|
Requires: python-oslo.log >= 3.22.0
|
|
|
|
Requires: python-oslo.utils >= 3.20.0
|
2016-05-04 08:19:29 +02:00
|
|
|
Requires: python-six >= 1.9.0
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
%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
|
|
|
|
2016-08-01 20:57:20 +02:00
|
|
|
%package doc
|
|
|
|
Summary: Documentation for OSProfiler
|
|
|
|
Group: Development/Languages/Python
|
|
|
|
BuildRequires: python-Sphinx
|
2017-08-07 10:37:52 +02:00
|
|
|
BuildRequires: python-openstackdocstheme >= 1.11.0
|
2016-05-04 08:19:29 +02:00
|
|
|
|
2016-08-01 20:57:20 +02:00
|
|
|
%description doc
|
|
|
|
Documentation for OSProfiler.
|
2016-05-04 08:19:29 +02:00
|
|
|
|
|
|
|
%prep
|
2017-02-13 09:51:14 +01:00
|
|
|
%autosetup -n %{sname}-%{version}
|
|
|
|
%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
|
2016-08-01 20:57:20 +02:00
|
|
|
%{py2_build}
|
2016-05-04 08:19:29 +02:00
|
|
|
|
|
|
|
%install
|
2016-08-01 20:57:20 +02:00
|
|
|
%{py2_install}
|
|
|
|
|
|
|
|
# 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
|
|
|
|
|
|
|
%check
|
2016-08-01 20:57:20 +02:00
|
|
|
%{__python2} setup.py testr
|
2016-05-04 08:19:29 +02:00
|
|
|
|
|
|
|
%files
|
2016-08-01 20:57:20 +02:00
|
|
|
%license LICENSE
|
|
|
|
%doc README.rst ChangeLog
|
|
|
|
%{python2_sitelib}/osprofiler
|
|
|
|
%{python2_sitelib}/*.egg-info
|
2016-05-04 08:19:29 +02:00
|
|
|
%{_bindir}/osprofiler
|
2016-08-01 20:57:20 +02:00
|
|
|
|
|
|
|
%files doc
|
|
|
|
%license LICENSE
|
|
|
|
%doc doc/build/html
|
2016-05-04 08:19:29 +02:00
|
|
|
|
|
|
|
%changelog
|