File python-os-api-ref.spec of Package python-os-api-ref
#
# spec file for package python-os-api-ref
#
# Copyright (c) 2018 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/
#
%global sname os-api-ref
Name: python-os-api-ref
Version: 1.5.0
Release: 0
Summary: Sphinx Extensions to support API reference sites in OpenStack
License: Apache-2.0
Group: Development/Languages/Python
URL: https://launchpad.net/%{sname}
Source0: https://files.pythonhosted.org/packages/source/o/%{sname}/%{sname}-%{version}.tar.gz
BuildRequires: openstack-macros
BuildRequires: python-PyYAML >= 3.12
BuildRequires: python-Sphinx
BuildRequires: python-beautifulsoup4
BuildRequires: python-docutils
BuildRequires: python-openstackdocstheme >= 1.18.1
BuildRequires: python-oslosphinx
BuildRequires: python-pbr >= 2.0.0
BuildRequires: python-python-subunit
BuildRequires: python-sphinx-testing
BuildRequires: python-testrepository
BuildRequires: python-testtools
Requires: python-PyYAML >= 3.12
Requires: python-Sphinx
Requires: python-docutils
Requires: python-openstackdocstheme >= 1.18.1
Requires: python-pbr >= 2.0.0
BuildArch: noarch
%description
This project is a collection of sphinx stanzas that assist in building an API
Reference site for an OpenStack project in RST. RST is great for
unstructured English, but displaying semi structured (and repetitive) data
in tables is not it's strength. This provides tooling to insert semi-structured
data describing request and response parameters, and turn those into nice
tables.
The project also includes a set of styling (and javascript) that is expected
to layer on top of an openstackdocstheme theme base. This provides a nice set
of collapsing sections for REST methods and javascript controls to
expand / collapse all sections.
%prep
%autosetup -n %{sname}-%{version}
%py_req_cleanup
%build
%{py2_build}
%install
%{py2_install}
%check
%{__python2} setup.py testr
%files
%license LICENSE
%doc README.rst ChangeLog
%{python2_sitelib}/os_api_ref
%{python2_sitelib}/*.egg-info
%changelog