File python-sphinxcontrib-openapi.spec of Package python-sphinxcontrib-openapi
#
# spec file for package python-sphinxcontrib-openapi
#
# 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/
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%bcond_with test
Name: python-sphinxcontrib-openapi
Version: 0.3.2
Release: 0
Summary: OpenAPI (fka Swagger) spec renderer for Sphinx
License: BSD-2-Clause
Group: Development/Languages/Python
Url: https://github.com/ikalnytskyi/sphinxcontrib-openapi
Source: https://files.pythonhosted.org/packages/source/s/sphinxcontrib-openapi/sphinxcontrib-openapi-%{version}.tar.gz
BuildRequires: %{python_module devel}
BuildRequires: %{python_module jsonschema}
BuildRequires: %{python_module PyYAML}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module setuptools_scm}
BuildRequires: %{python_module sphinxcontrib}
BuildRequires: %{python_module sphinxcontrib-httpdomain}
BuildRequires: python-rpm-macros
%if %{with test}
BuildRequires: %{python_module Sphinx}
BuildRequires: %{python_module six}
%endif
Requires: python-jsonschema
Requires: python-PyYAML
Requires: python-Sphinx
Requires: python-six
Requires: python-sphinxcontrib
Requires: python-sphinxcontrib-httpdomain
BuildArch: noarch
%python_subpackages
%description
sphinxcontrib-openapi is a Sphinx extension to generate APIs docs from
OpenAPI (fka Swagger) spec. It depends on sphinxcontrib-httpdomain
that provides an HTTP domain for describing RESTful HTTP APIs, so we
don\'t need to reinvent the wheel.
You can find the documentation from the following URL:
https://sphinxcontrib-openapi.readthedocs.org/
%prep
%setup -q -n sphinxcontrib-openapi-%{version}
%build
%python_build
%install
%python_install
%if %{with test}
%check
%python_exec setup.py test
%endif
%files %{python_files}
%license LICENSE
%{python_sitelib}/*
%changelog