[packages/python3-openapi-spec-validator] - python-pathable.spec updated to 0.7.2 for python 3.8+
qboosh
qboosh at pld-linux.org
Sun Dec 14 17:17:51 CET 2025
commit 240f651ef0a19c40964d5a593f0da748805982ed
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Sun Dec 14 17:18:11 2025 +0100
- python-pathable.spec updated to 0.7.2 for python 3.8+
python-openapi-spec-validator.spec | 114 ------------------------------------
python3-openapi-spec-validator.spec | 80 +++++++++++++++++++++++++
2 files changed, 80 insertions(+), 114 deletions(-)
---
diff --git a/python-openapi-spec-validator.spec b/python-openapi-spec-validator.spec
deleted file mode 100644
index ca647fb..0000000
--- a/python-openapi-spec-validator.spec
+++ /dev/null
@@ -1,114 +0,0 @@
-#
-# Conditional build:
-%bcond_without python2 # CPython 2.x module
-%bcond_with python3 # CPython 3.x module (built from python3-openapi-spec-validator.spec)
-
-Summary: OpenAPI 2.0 (aka Swagger) and OpenAPI 3.0 spec validator
-Summary(pl.UTF-8): Walidator specyfikacji OpenAPI 2.0 (Swagger) i OpenAPI 3.0
-Name: python-openapi-spec-validator
-# keep 0.3.x here for python2 support
-Version: 0.3.3
-Release: 1
-License: Apache v2.0
-Group: Libraries/Python
-#Source0Download: https://pypi.org/simple/openapi-spec-validator/
-Source0: https://files.pythonhosted.org/packages/source/o/openapi-spec-validator/openapi-spec-validator-%{version}.tar.gz
-# Source0-md5: 1b9fcadfabbaf18af9f9d89624d5351e
-URL: https://pypi.org/project/openapi-spec-validator/
-%if %{with python2}
-BuildRequires: python-modules >= 1:2.7
-BuildRequires: python-setuptools
-%endif
-%if %{with python3}
-BuildRequires: python3-modules >= 1:3.5
-BuildRequires: python3-setuptools
-%endif
-BuildRequires: rpm-pythonprov
-BuildRequires: rpmbuild(macros) >= 1.714
-Requires: python-modules >= 1:2.7
-BuildArch: noarch
-BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
-
-%description
-OpenAPI Spec Validator is a Python library that validates OpenAPI
-Specs against the OpenAPI 2.0 (aka Swagger) and OpenAPI 3.0
-<https://github.com/OAI/OpenAPI-Specification/blob/master/versions>
-specification. The validator aims to check for full compliance with
-the Specification.
-
-%description -l pl.UTF-8
-OpenAPI Spec Validator to biblioteka Pythona sprawdzająca poprawność
-względem specyfikacji OpenAPI 2.0 (Swagger) i OpenAPI 3.0
-<https://github.com/swagger-api/swagger-spec/blob/master/versions/>.
-Celem walidatora jest sprawdzanie pełnej zgodności ze specyfikacją.
-
-%package -n python3-openapi-spec-validator
-Summary: OpenAPI 2.0 (aka Swagger) and OpenAPI 3.0 spec validator
-Summary(pl.UTF-8): Walidator specyfikacji OpenAPI 2.0 (Swagger) i OpenAPI 3.0
-Group: Libraries/Python
-Requires: python3-modules >= 1:3.5
-
-%description -n python3-openapi-spec-validator
-OpenAPI Spec Validator is a Python library that validates OpenAPI
-Specs against the OpenAPI 2.0 (aka Swagger) and OpenAPI 3.0
-<https://github.com/OAI/OpenAPI-Specification/blob/master/versions>
-specification. The validator aims to check for full compliance with
-the Specification.
-
-%description -n python3-openapi-spec-validator -l pl.UTF-8
-OpenAPI Spec Validator to biblioteka Pythona sprawdzająca poprawność
-względem specyfikacji OpenAPI 2.0 (Swagger) i OpenAPI 3.0
-<https://github.com/swagger-api/swagger-spec/blob/master/versions/>.
-Celem walidatora jest sprawdzanie pełnej zgodności ze specyfikacją.
-
-%prep
-%setup -q -n openapi-spec-validator-%{version}
-
-%build
-%if %{with python2}
-%py_build
-%endif
-
-%if %{with python3}
-%py3_build
-%endif
-
-%install
-rm -rf $RPM_BUILD_ROOT
-
-%if %{with python2}
-%py_install
-
-%py_postclean
-
-%{__mv} $RPM_BUILD_ROOT%{_bindir}/openapi-spec-validator{,-2}
-%endif
-
-%if %{with python3}
-%py3_install
-
-%{__mv} $RPM_BUILD_ROOT%{_bindir}/openapi-spec-validator{,-3}
-ln -sf openapi-spec-validator-3 $RPM_BUILD_ROOT%{_bindir}/openapi-spec-validator
-%endif
-
-%clean
-rm -rf $RPM_BUILD_ROOT
-
-%if %{with python2}
-%files
-%defattr(644,root,root,755)
-%doc README.rst
-%attr(755,root,root) %{_bindir}/openapi-spec-validator-2
-%{py_sitescriptdir}/openapi_spec_validator
-%{py_sitescriptdir}/openapi_spec_validator-%{version}-py*.egg-info
-%endif
-
-%if %{with python3}
-%files -n python3-openapi-spec-validator
-%defattr(644,root,root,755)
-%doc README.rst
-%attr(755,root,root) %{_bindir}/openapi-spec-validator-3
-%{_bindir}/openapi-spec-validator
-%{py3_sitescriptdir}/openapi_spec_validator
-%{py3_sitescriptdir}/openapi_spec_validator-%{version}-py*.egg-info
-%endif
diff --git a/python3-openapi-spec-validator.spec b/python3-openapi-spec-validator.spec
new file mode 100644
index 0000000..a72edb1
--- /dev/null
+++ b/python3-openapi-spec-validator.spec
@@ -0,0 +1,80 @@
+#
+# Conditional build:
+%bcond_without tests # integration tests
+
+Summary: OpenAPI 2.0 (aka Swagger) and OpenAPI 3.0 spec validator
+Summary(pl.UTF-8): Walidator specyfikacji OpenAPI 2.0 (Swagger) i OpenAPI 3.0
+Name: python3-openapi-spec-validator
+Version: 0.7.2
+Release: 1
+License: Apache v2.0
+Group: Libraries/Python
+#Source0Download: https://pypi.org/simple/openapi-spec-validator/
+Source0: https://files.pythonhosted.org/packages/source/o/openapi-spec-validator/openapi_spec_validator-%{version}.tar.gz
+# Source0-md5: c5bf8550c7f187e12497e4c96f2285f3
+URL: https://pypi.org/project/openapi-spec-validator/
+BuildRequires: python3-build
+BuildRequires: python3-installer
+BuildRequires: python3-modules >= 1:3.8
+BuildRequires: python3-poetry-core >= 1.0.0
+BuildRequires: python3-setuptools
+%if %{with tests}
+%if "%{py3_ver}" == "3.8"
+BuildRequires: python3-importlib_resources >= 5.8
+%endif
+BuildRequires: python3-jsonschema >= 4.18.0
+BuildRequires: python3-jsonschema-path >= 0.3.1
+BuildRequires: python3-lazy-object-proxy >= 1.7.1
+BuildRequires: python3-openapi-schema-validator >= 0.6.0
+BuildRequires: python3-pytest >= 8.2.2
+BuildRequires: python3-pytest-cov >= 4.1.0
+%endif
+BuildRequires: rpm-pythonprov
+BuildRequires: rpmbuild(macros) >= 2.044
+Requires: python3-modules >= 1:3.8
+BuildArch: noarch
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+OpenAPI Spec Validator is a Python library that validates OpenAPI
+Specs against the OpenAPI 2.0 (aka Swagger) and OpenAPI 3.0
+<https://github.com/OAI/OpenAPI-Specification/blob/master/versions>
+specification. The validator aims to check for full compliance with
+the Specification.
+
+%description -l pl.UTF-8
+OpenAPI Spec Validator to biblioteka Pythona sprawdzająca poprawność
+względem specyfikacji OpenAPI 2.0 (Swagger) i OpenAPI 3.0
+<https://github.com/swagger-api/swagger-spec/blob/master/versions/>.
+Celem walidatora jest sprawdzanie pełnej zgodności ze specyfikacją.
+
+%prep
+%setup -q -n openapi_spec_validator-%{version}
+
+%build
+%py3_build_pyproject
+
+%if %{with tests}
+PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
+PYTEST_PLUGINS=pytest_cov.plugin \
+%{__python3} -m pytest tests
+%endif
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%py3_install_pyproject
+
+%{__mv} $RPM_BUILD_ROOT%{_bindir}/openapi-spec-validator{,-3}
+ln -sf openapi-spec-validator-3 $RPM_BUILD_ROOT%{_bindir}/openapi-spec-validator
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc README.rst
+%attr(755,root,root) %{_bindir}/openapi-spec-validator-3
+%{_bindir}/openapi-spec-validator
+%{py3_sitescriptdir}/openapi_spec_validator
+%{py3_sitescriptdir}/openapi_spec_validator-%{version}.dist-info
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python3-openapi-spec-validator.git/commitdiff/240f651ef0a19c40964d5a593f0da748805982ed
More information about the pld-cvs-commit
mailing list