File openstack-gnocchi-doc.spec of Package openstack-gnocchi

#
# spec file for package openstack-gnocchi-doc
#
# 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/
#


%define component gnocchi

%define version_unconverted 2.0.2

Name:           openstack-%{component}-doc
Version:        2.0.2
Release:        0
Summary:        HTTP REST service to store metrics and index resources - Documentation
License:        Apache-2.0
Group:          Documentation/HTML
Url:            https://launchpad.net/gnocchi
Source:         http://tarballs.openstack.org/gnocchi/gnocchi-%{version}.tar.gz
BuildRequires:  openstack-suse-macros
BuildRequires:  postgresql94-devel
BuildRequires:  postgresql94-server
BuildRequires:  python-Jinja2
BuildRequires:  python-PyYAML
BuildRequires:  python-SQLAlchemy
BuildRequires:  python-SQLAlchemy-Utils
BuildRequires:  python-WebTest >= 2.0.16
BuildRequires:  python-alembic
BuildRequires:  python-coverage >= 3.6
BuildRequires:  python-fixtures
BuildRequires:  python-gabbi >= 0.101.2
BuildRequires:  python-keystonemiddleware >= 4.0.0
BuildRequires:  python-lz4
BuildRequires:  python-mock
BuildRequires:  python-msgpack-python
BuildRequires:  python-oslo.db >= 1.8.0
BuildRequires:  python-oslo.policy
BuildRequires:  python-oslosphinx
BuildRequires:  python-oslotest
BuildRequires:  python-overtest >= 0.8.0
BuildRequires:  python-pandas
BuildRequires:  python-pecan
BuildRequires:  python-psycopg2
BuildRequires:  python-python-subunit >= 0.0.18
BuildRequires:  python-pytimeparse
BuildRequires:  python-sphinx
BuildRequires:  python-sphinxcontrib-httpdomain
BuildRequires:  python-tempest-lib >= 0.2.0
BuildRequires:  python-testrepository
BuildRequires:  python-testscenarios
BuildRequires:  python-testtools >= 0.9.38
BuildRequires:  python-tooz
BuildRequires:  python-werkzeug
BuildArch:      noarch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
OpenStack shared file system service.

This package contains documentation files for %{name}.

%prep
%setup -q -n gnocchi-%{version_unconverted}
%openstack_cleanup_prep

%build
export GNOCCHI_TEST_STORAGE_DRIVER=file
export GNOCCHI_TEST_INDEXER_DRIVER=postgresql
source $(which overtest) $GNOCCHI_TEST_INDEXER_DRIVER
export GNOCCHI_INDEXER_URL=${OVERTEST_URL/#mysql:/mysql+pymysql:}
python setup.py build_sphinx
rm doc/build/html/.buildinfo # Remove unneeded files

%install

%files
%defattr(-,root,root,-)
%doc LICENSE doc/build/html

%changelog
openSUSE Build Service is sponsored by