Blame python-sphinxcontrib-openapi.spec

212037f
%global srcname sphinxcontrib-openapi
212037f
%global _description %{expand:
212037f
Sphinx extension to generate APIs docs from OpenAPI (fka Swagger) spec.
212037f
It depends on sphinxcontrib-httpdomain that provides an HTTP domain
212037f
for describing RESTful HTTP APIs, so we don’t need to reinvent the wheel.}
212037f
212037f
Name:           python-%{srcname}
212037f
Version:        0.6.0
88b492a
Release:        3%{?dist}
212037f
Summary:        OpenAPI spec renderer for Sphinx
212037f
212037f
# There are test files under the ASL 2.0 license, but we don't ship them in the built RPM
212037f
License:        BSD
212037f
URL:            https://sphinxcontrib-openapi.readthedocs.io/
212037f
Source0:        %pypi_source
212037f
212037f
BuildArch:      noarch
212037f
212037f
%description %_description
212037f
212037f
%package -n python3-%{srcname}
212037f
Summary:        %{summary}
212037f
BuildRequires:  python3-devel
212037f
BuildRequires:  python3-setuptools
212037f
BuildRequires:  python3-setuptools_scm
212037f
BuildRequires:  python3-pytest
212037f
BuildRequires:  python3-sphinx
212037f
BuildRequires:  python3-pyyaml
212037f
BuildRequires:  python3-jsonschema
212037f
BuildRequires:  python3-sphinxcontrib-httpdomain
212037f
%{?python_provide:%python_provide python3-%{srcname}}
212037f
212037f
%description -n python3-%{srcname} %_description
212037f
212037f
%prep
212037f
%autosetup -n %{srcname}-%{version}
212037f
212037f
%build
212037f
%py3_build
212037f
212037f
%install
212037f
%py3_install
212037f
212037f
%check
212037f
%{python3} -m pytest tests/ --strict
212037f
212037f
%files -n python3-%{srcname}
212037f
%license LICENSE
212037f
%doc README.rst
212037f
%{python3_sitelib}/sphinxcontrib/openapi*
212037f
%{python3_sitelib}/sphinxcontrib_openapi*
212037f
212037f
%changelog
88b492a
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.0-3
88b492a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
88b492a
39776e5
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 0.6.0-2
39776e5
- Rebuilt for Python 3.9
39776e5
212037f
* Tue Mar 10 2020 Fabien Boucher <fboucher@redhat.com> - 0.6.0-1
212037f
- Adapt packaging for Rawhide from Software Factory packaging.
212037f
212037f
* Wed Aug 14 2019 Tristan Cacqueray <tdecacqu@redhat.com> - 0.4.0-1
212037f
- Initial packaging