From 212037f0b41c339808729a3dc9bd006f45029cb4 Mon Sep 17 00:00:00 2001 From: Fabien Boucher Date: Mar 18 2020 14:36:01 +0000 Subject: Initial packaging --- diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..6b24923 --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +*.rpm +*.tar.gz +*.gz diff --git a/README.md b/README.md deleted file mode 100644 index ab8e1bf..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# python-sphinxcontrib-openapi - -The python-sphinxcontrib-openapi package \ No newline at end of file diff --git a/python-sphinxcontrib-openapi.spec b/python-sphinxcontrib-openapi.spec new file mode 100644 index 0000000..5fa0936 --- /dev/null +++ b/python-sphinxcontrib-openapi.spec @@ -0,0 +1,58 @@ +%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.6.0 +Release: 1%{?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 +%{?python_provide:%python_provide python3-%{srcname}} + +%description -n python3-%{srcname} %_description + +%prep +%autosetup -n %{srcname}-%{version} + +%build +%py3_build + +%install +%py3_install + +%check +%{python3} -m pytest tests/ --strict + +%files -n python3-%{srcname} +%license LICENSE +%doc README.rst +%{python3_sitelib}/sphinxcontrib/openapi* +%{python3_sitelib}/sphinxcontrib_openapi* + +%changelog +* Tue Mar 10 2020 Fabien Boucher - 0.6.0-1 +- Adapt packaging for Rawhide from Software Factory packaging. + +* Wed Aug 14 2019 Tristan Cacqueray - 0.4.0-1 +- Initial packaging diff --git a/sources b/sources new file mode 100644 index 0000000..b1b32d2 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (sphinxcontrib-openapi-0.6.0.tar.gz) = 26e109bad7f9b84b1559bd07cab2f9746de15fce2d1ece3c4bc48de1a085fb97c008014e0979c7ddcdda63b22d53a56cd9d19d2eb128dcb637a198e1cab9ee3d