[packages/python3-openapi-schema-validator] - python-openapi-schema-validator.spec updated to 0.6.3 for python 3.8+

qboosh qboosh at pld-linux.org
Sun Dec 14 15:50:43 CET 2025


commit 4f7d6f82f1f3267852c0ed51c591e42f8de5b950
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sun Dec 14 15:51:03 2025 +0100

    - python-openapi-schema-validator.spec updated to 0.6.3 for python 3.8+

 python-openapi-schema-validator.spec  | 115 ----------------------------------
 python3-openapi-schema-validator.spec |  81 ++++++++++++++++++++++++
 2 files changed, 81 insertions(+), 115 deletions(-)
---
diff --git a/python-openapi-schema-validator.spec b/python-openapi-schema-validator.spec
deleted file mode 100644
index fbaa581..0000000
--- a/python-openapi-schema-validator.spec
+++ /dev/null
@@ -1,115 +0,0 @@
-#
-# Conditional build:
-%bcond_without	python2 # CPython 2.x module
-%bcond_with	python3 # CPython 3.x module (built from python3-openapi-schema-validator.spec)
-
-Summary:	OpenAPI schema validation for Python
-Summary(pl.UTF-8):	Sprawdzanie poprawności schematów OpenAPI dla Pythona
-Name:		python-openapi-schema-validator
-# keep 0.1.x here for python2 support
-Version:	0.1.6
-Release:	1
-License:	BSD
-Group:		Libraries/Python
-#Source0Download: https://pypi.org/simple/openapi-schema-validator/
-Source0:	https://files.pythonhosted.org/packages/source/o/openapi-schema-validator/openapi-schema-validator-%{version}.tar.gz
-# Source0-md5:	f0b1727a04bdc820c83d2074d0363a5e
-URL:		https://pypi.org/project/openapi-schema-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-schema-validator is a Python library that validates schema
-against the OpenAPI Schema Specification v3.0, which is an extended
-subset of the JSON Schema Specification Wright Draft 00
-<http://json-schema.org/>.
-
-%description -l pl.UTF-8
-Openapi-schema-validator to biblioteka Pythona sprawdzająca poprawność
-schematu względem specyfikacji OpenAPI Schema Specification v3.0,
-będącej rozszerzonym podzbiorem specyfikacji JSON Schema Specification
-Wright Draft 00 <http://json-schema.org/>.
-
-%package -n python3-openapi-schema-validator
-Summary:	OpenAPI schema validation for Python
-Summary(pl.UTF-8):	Sprawdzanie poprawności schematów OpenAPI dla Pythona
-Group:		Libraries/Python
-Requires:	python3-modules >= 1:3.5
-
-%description -n python3-openapi-schema-validator
-Openapi-schema-validator is a Python library that validates schema
-against the OpenAPI Schema Specification v3.0, which is an extended
-subset of the JSON Schema Specification Wright Draft 00
-<http://json-schema.org/>.
-
-%description -n python3-openapi-schema-validator -l pl.UTF-8
-Openapi-schema-validator to biblioteka Pythona sprawdzająca poprawność
-schematu względem specyfikacji OpenAPI Schema Specification v3.0,
-będącej rozszerzonym podzbiorem specyfikacji JSON Schema Specification
-Wright Draft 00 <http://json-schema.org/>.
-
-%package apidocs
-Summary:	API documentation for Python openapi-schema-validator module
-Summary(pl.UTF-8):	Dokumentacja API modułu Pythona openapi-schema-validator
-Group:		Documentation
-
-%description apidocs
-API documentation for Python openapi-schema-validator module.
-
-%description apidocs -l pl.UTF-8
-Dokumentacja API modułu Pythona openapi-schema-validator.
-
-%prep
-%setup -q -n openapi-schema-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
-%endif
-
-%if %{with python3}
-%py3_install
-%endif
-
-%clean
-rm -rf $RPM_BUILD_ROOT
-
-%if %{with python2}
-%files
-%defattr(644,root,root,755)
-%doc LICENSE README.rst
-%{py_sitescriptdir}/openapi_schema_validator
-%{py_sitescriptdir}/openapi_schema_validator-%{version}-py*.egg-info
-%endif
-
-%if %{with python3}
-%files -n python3-openapi-schema-validator
-%defattr(644,root,root,755)
-%doc LICENSE README.rst
-%{py3_sitescriptdir}/openapi_schema_validator
-%{py3_sitescriptdir}/openapi_schema_validator-%{version}-py*.egg-info
-%endif
diff --git a/python3-openapi-schema-validator.spec b/python3-openapi-schema-validator.spec
new file mode 100644
index 0000000..7b79e7a
--- /dev/null
+++ b/python3-openapi-schema-validator.spec
@@ -0,0 +1,81 @@
+#
+# Conditional build:
+%bcond_without	tests	# unit+integration tests
+
+Summary:	OpenAPI schema validation for Python
+Summary(pl.UTF-8):	Sprawdzanie poprawności schematów OpenAPI dla Pythona
+Name:		python3-openapi-schema-validator
+Version:	0.6.3
+Release:	1
+License:	BSD
+Group:		Libraries/Python
+#Source0Download: https://pypi.org/simple/openapi-schema-validator/
+Source0:	https://files.pythonhosted.org/packages/source/o/openapi-schema-validator/openapi_schema_validator-%{version}.tar.gz
+# Source0-md5:	7076003c896e5270079d7e9dc33f1498
+URL:		https://pypi.org/project/openapi-schema-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}
+BuildRequires:	python3-jsonschema >= 4.19.1
+BuildRequires:	python3-jsonschema-specifications >= 2023.5.2
+BuildRequires:	python3-pytest >= 8
+BuildRequires:	python3-pytest-cov
+BuildRequires:	python3-rfc3339_validator
+%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-schema-validator is a Python library that validates schema
+against the OpenAPI Schema Specification v3.0, which is an extended
+subset of the JSON Schema Specification Wright Draft 00
+<http://json-schema.org/>.
+
+%description -l pl.UTF-8
+Openapi-schema-validator to biblioteka Pythona sprawdzająca poprawność
+schematu względem specyfikacji OpenAPI Schema Specification v3.0,
+będącej rozszerzonym podzbiorem specyfikacji JSON Schema Specification
+Wright Draft 00 <http://json-schema.org/>.
+
+%package apidocs
+Summary:	API documentation for Python openapi-schema-validator module
+Summary(pl.UTF-8):	Dokumentacja API modułu Pythona openapi-schema-validator
+Group:		Documentation
+
+%description apidocs
+API documentation for Python openapi-schema-validator module.
+
+%description apidocs -l pl.UTF-8
+Dokumentacja API modułu Pythona openapi-schema-validator.
+
+%prep
+%setup -q -n openapi_schema_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
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc LICENSE README.rst
+%{py3_sitescriptdir}/openapi_schema_validator
+%{py3_sitescriptdir}/openapi_schema_validator-%{version}.dist-info
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python3-openapi-schema-validator.git/commitdiff/4f7d6f82f1f3267852c0ed51c591e42f8de5b950



More information about the pld-cvs-commit mailing list