2016-05-04 08:19:29 +02:00
|
|
|
#
|
|
|
|
# spec file for package python-osprofiler
|
|
|
|
#
|
|
|
|
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
|
|
|
|
#
|
|
|
|
# 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
|
2016-05-23 16:40:20 +02:00
|
|
|
Version: 1.3.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
|
|
|
|
BuildRequires: python-WebOb >= 1.2.3
|
2016-05-04 08:19:29 +02:00
|
|
|
BuildRequires: python-devel
|
2016-08-01 20:57:20 +02:00
|
|
|
BuildRequires: python-mock >= 1.2
|
|
|
|
BuildRequires: python-oslo.config >= 3.9.0
|
|
|
|
BuildRequires: python-oslo.utils >= 3.5.0
|
|
|
|
BuildRequires: python-python-subunit >= 0.0.18
|
|
|
|
BuildRequires: python-six >= 1.9.0
|
|
|
|
BuildRequires: python-testrepository >= 0.0.18
|
|
|
|
BuildRequires: python-testtools >= 1.4.0
|
2016-05-04 08:19:29 +02:00
|
|
|
Requires: python-WebOb >= 1.2.3
|
2016-08-01 20:57:20 +02:00
|
|
|
Requires: python-oslo.config >= 3.9.0
|
|
|
|
Requires: python-oslo.utils >= 3.5.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
|
|
|
|
BuildRequires: python-oslosphinx >= 2.5.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
|
2016-08-01 20:57:20 +02:00
|
|
|
%setup -q -n %{sname}-%{version}
|
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
|