Blob Blame History Raw
%global srcname sphinxcontrib-openapi
%global _description %{expand:
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.}

Name:           python-%{srcname}
Version:        0.7.0
Release:        7%{?dist}
Summary:        OpenAPI spec renderer for Sphinx

# There are test files under the ASL 2.0 license, but we don't ship them in the built RPM
License:        BSD
URL:            https://sphinxcontrib-openapi.readthedocs.io/
Source0:        %pypi_source

BuildArch:      noarch

%description %_description

%package -n python3-%{srcname}
Summary:        %{summary}
BuildRequires:  python3-devel
BuildRequires:  python3-setuptools
BuildRequires:  python3-setuptools_scm
BuildRequires:  python3-pytest
BuildRequires:  python3-sphinx
BuildRequires:  python3-pyyaml
BuildRequires:  python3-jsonschema
BuildRequires:  python3-sphinxcontrib-httpdomain
BuildRequires:  python3-m2r
BuildRequires:  python3-responses
%{?python_provide:%python_provide python3-%{srcname}}

%description -n python3-%{srcname} %_description

%prep
%autosetup -n %{srcname}-%{version}

%build
%py3_build

%install
%py3_install

%check
%pytest tests/ --strict

%files -n python3-%{srcname}
%license LICENSE
%doc README.rst
%{python3_sitelib}/sphinxcontrib/openapi*
%{python3_sitelib}/sphinxcontrib_openapi*

%changelog
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.0-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild

* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.0-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild

* Tue Jun 14 2022 Python Maint <python-maint@redhat.com> - 0.7.0-5
- Rebuilt for Python 3.11

* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.0-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild

* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.0-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild

* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 0.7.0-2
- Rebuilt for Python 3.10

* Tue Feb 16 2021 Fabien Boucher <fboucher@redhat.com> - 0.7.0-1
- Bump to upstream 0.7.0.

* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.0-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild

* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.0-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild

* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 0.6.0-2
- Rebuilt for Python 3.9

* Tue Mar 10 2020 Fabien Boucher <fboucher@redhat.com> - 0.6.0-1
- Adapt packaging for Rawhide from Software Factory packaging.

* Wed Aug 14 2019 Tristan Cacqueray <tdecacqu@redhat.com> - 0.4.0-1
- Initial packaging