2016-09-07 11:57:14 +00:00
|
|
|
#
|
|
|
|
|
# spec file for package python-os-api-ref
|
|
|
|
|
#
|
2019-04-08 13:55:11 +00:00
|
|
|
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
2016-09-07 11:57:14 +00: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-04-08 13:55:11 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2016-09-07 11:57:14 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Name: python-os-api-ref
|
2019-10-09 12:50:05 +00:00
|
|
|
Version: 1.6.2
|
2016-09-07 11:57:14 +00:00
|
|
|
Release: 0
|
|
|
|
|
Summary: Sphinx Extensions to support API reference sites in OpenStack
|
|
|
|
|
License: Apache-2.0
|
|
|
|
|
Group: Development/Languages/Python
|
2018-09-03 13:08:32 +00:00
|
|
|
URL: https://launchpad.net/%{sname}
|
2019-10-09 12:50:05 +00:00
|
|
|
Source0: https://files.pythonhosted.org/packages/source/o/os-api-ref/os-api-ref-1.6.2.tar.gz
|
2016-09-07 11:57:14 +00:00
|
|
|
BuildRequires: openstack-macros
|
2019-04-08 13:55:11 +00:00
|
|
|
BuildRequires: python2-PyYAML >= 3.12
|
|
|
|
|
BuildRequires: python2-Sphinx
|
|
|
|
|
BuildRequires: python2-beautifulsoup4
|
|
|
|
|
BuildRequires: python2-openstackdocstheme >= 1.18.1
|
|
|
|
|
BuildRequires: python2-pbr >= 2.0.0
|
|
|
|
|
BuildRequires: python2-python-subunit
|
2019-10-09 12:50:05 +00:00
|
|
|
BuildRequires: python2-six >= 1.10.0
|
2019-04-08 13:55:11 +00:00
|
|
|
BuildRequires: python2-sphinx-testing
|
|
|
|
|
BuildRequires: python2-stestr
|
|
|
|
|
BuildRequires: python2-testtools
|
|
|
|
|
BuildRequires: python3-PyYAML >= 3.12
|
|
|
|
|
BuildRequires: python3-Sphinx
|
|
|
|
|
BuildRequires: python3-beautifulsoup4
|
|
|
|
|
BuildRequires: python3-openstackdocstheme >= 1.18.1
|
|
|
|
|
BuildRequires: python3-pbr >= 2.0.0
|
|
|
|
|
BuildRequires: python3-python-subunit
|
2019-10-09 12:50:05 +00:00
|
|
|
BuildRequires: python3-six >= 1.10.0
|
2019-04-08 13:55:11 +00:00
|
|
|
BuildRequires: python3-sphinx-testing
|
|
|
|
|
BuildRequires: python3-stestr
|
|
|
|
|
BuildRequires: python3-testtools
|
2018-09-03 13:08:32 +00:00
|
|
|
Requires: python-PyYAML >= 3.12
|
2016-09-07 11:57:14 +00:00
|
|
|
Requires: python-Sphinx
|
2018-02-23 13:17:58 +00:00
|
|
|
Requires: python-openstackdocstheme >= 1.18.1
|
2017-08-22 11:10:09 +00:00
|
|
|
Requires: python-pbr >= 2.0.0
|
2019-10-09 12:50:05 +00:00
|
|
|
Requires: python-six >= 1.10.0
|
2016-09-07 11:57:14 +00:00
|
|
|
BuildArch: noarch
|
2019-04-08 13:55:11 +00:00
|
|
|
%python_subpackages
|
2016-09-07 11:57:14 +00:00
|
|
|
|
|
|
|
|
%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
|
2019-10-09 12:50:05 +00:00
|
|
|
%autosetup -p1 -n os-api-ref-1.6.2
|
2017-02-10 16:43:34 +00:00
|
|
|
%py_req_cleanup
|
2016-09-07 11:57:14 +00:00
|
|
|
|
|
|
|
|
%build
|
2019-04-08 13:55:11 +00:00
|
|
|
%{python_build}
|
2016-09-07 11:57:14 +00:00
|
|
|
|
|
|
|
|
%install
|
2019-04-08 13:55:11 +00:00
|
|
|
%{python_install}
|
2016-09-07 11:57:14 +00:00
|
|
|
|
|
|
|
|
%check
|
2019-04-08 13:55:11 +00:00
|
|
|
%python_exec -m stestr.cli run
|
2016-09-07 11:57:14 +00:00
|
|
|
|
2019-04-08 13:55:11 +00:00
|
|
|
%files %{python_files}
|
2016-09-07 11:57:14 +00:00
|
|
|
%license LICENSE
|
|
|
|
|
%doc README.rst ChangeLog
|
2019-04-08 13:55:11 +00:00
|
|
|
%{python_sitelib}/os_api_ref
|
|
|
|
|
%{python_sitelib}/*.egg-info
|
2016-09-07 11:57:14 +00:00
|
|
|
|
|
|
|
|
%changelog
|