%global pypi_name jsonschema %global _description \ jsonschema is JSON Schema validator currently based on http://tools.ietf.org/html/draft-zyp-json-schema-03 Name: python-%{pypi_name} Version: 4.0.1 Release: 1 Summary: An implementation of JSON Schema validation for Python License: MIT URL: http://pypi.python.org/pypi/jsonschema Source0: https://files.pythonhosted.org/packages/97/e6/314e86934570970658bdcffd4aa5bb0376a9d97a8e43971740292c3c0054/jsonschema-4.0.1.tar.gz BuildArch: noarch BuildRequires: python3-devel python3-setuptools python3-setuptools_scm # test requirements %bcond_without tests %if %{without tests} BuildRequires: python3dist(attrs) BuildRequires: python3dist(perf) BuildRequires: python3dist(pyrsistent) BuildRequires: python3dist(six) BuildRequires: python3dist(twisted) %endif %description %{_description} %package -n python%{python3_pkgversion}-%{pypi_name} Summary: An implementation of JSON Schema validation for Python %{python3_version} %{?python_provide:%python_provide python%{python3_pkgversion}-%{pypi_name}} %description -n python%{python3_pkgversion}-%{pypi_name} %{_description} %package_help %prep %autosetup -n %{pypi_name}-%{version} -p1 touch setup.py echo "from setuptools import setup" > setup.py echo "setup(use_scm_version=True)" >> setup.py %build %py3_build %install %py3_install %if %{without tests} %check %{__python3} setup.py test --test-suite=jsonschema.tests %endif %files -n python%{python3_pkgversion}-%{pypi_name} %license COPYING %{_bindir}/jsonschema %{python3_sitelib}/%{pypi_name}/ %{python3_sitelib}/*.egg-info %files help %doc README.rst PKG-INFO %changelog * Tue Sep 27 2022 wangjunqi - 4.0.1-1 - update version to 4.0.1 * Wed Jul 29 2020 jinzhimin - 3.2.0-1 - update to 3.2.0 * Sun Sep 15 2019 openEuler Buildteam - 2.6.0-6 - Package init