2019-09-30 11:15:08 -04:00
|
|
|
%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}
|
2023-04-10 10:39:06 +08:00
|
|
|
Version: 4.0.1
|
2020-07-29 17:30:57 +08:00
|
|
|
Release: 1
|
2019-09-30 11:15:08 -04:00
|
|
|
Summary: An implementation of JSON Schema validation for Python
|
|
|
|
|
License: MIT
|
|
|
|
|
URL: http://pypi.python.org/pypi/jsonschema
|
2023-04-10 10:39:06 +08:00
|
|
|
Source0: https://files.pythonhosted.org/packages/97/e6/314e86934570970658bdcffd4aa5bb0376a9d97a8e43971740292c3c0054/jsonschema-4.0.1.tar.gz
|
2019-09-30 11:15:08 -04:00
|
|
|
BuildArch: noarch
|
|
|
|
|
|
2020-07-29 17:30:57 +08:00
|
|
|
BuildRequires: python3-devel python3-setuptools python3-setuptools_scm
|
2019-09-30 11:15:08 -04:00
|
|
|
|
2020-07-29 17:30:57 +08:00
|
|
|
# test requirements
|
|
|
|
|
%bcond_without tests
|
|
|
|
|
%if %{without tests}
|
|
|
|
|
BuildRequires: python3dist(attrs)
|
|
|
|
|
BuildRequires: python3dist(perf)
|
|
|
|
|
BuildRequires: python3dist(pyrsistent)
|
|
|
|
|
BuildRequires: python3dist(six)
|
|
|
|
|
BuildRequires: python3dist(twisted)
|
|
|
|
|
%endif
|
2019-09-30 11:15:08 -04:00
|
|
|
|
|
|
|
|
%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
|
2022-09-28 17:33:54 +08:00
|
|
|
touch setup.py
|
|
|
|
|
echo "from setuptools import setup" > setup.py
|
|
|
|
|
echo "setup(use_scm_version=True)" >> setup.py
|
2019-09-30 11:15:08 -04:00
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
%py3_build
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
%py3_install
|
|
|
|
|
|
2020-07-29 17:30:57 +08:00
|
|
|
%if %{without tests}
|
2019-09-30 11:15:08 -04:00
|
|
|
%check
|
2020-07-29 17:30:57 +08:00
|
|
|
%{__python3} setup.py test --test-suite=jsonschema.tests
|
2019-09-30 11:15:08 -04:00
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%files -n python%{python3_pkgversion}-%{pypi_name}
|
|
|
|
|
%license COPYING
|
2023-04-10 10:39:06 +08:00
|
|
|
%{_bindir}/jsonschema
|
|
|
|
|
%{python3_sitelib}/%{pypi_name}/
|
2019-09-30 11:15:08 -04:00
|
|
|
%{python3_sitelib}/*.egg-info
|
|
|
|
|
|
|
|
|
|
%files help
|
|
|
|
|
%doc README.rst PKG-INFO
|
|
|
|
|
|
|
|
|
|
%changelog
|
2023-04-10 10:39:06 +08:00
|
|
|
* Mon Apr 10 2023 zhuofeng <zhuofeng2@huawei.com> - 4.0.1-1
|
|
|
|
|
- revert version 4.0.1
|
|
|
|
|
|
2022-12-16 00:11:46 +08:00
|
|
|
* Fri Dec 16 2022 lijian <lijian2@kylinos.cn> - 4.17.3-1
|
|
|
|
|
- update to upstream version 4.17.3
|
|
|
|
|
|
2022-09-28 17:33:54 +08:00
|
|
|
* Tue Sep 27 2022 wangjunqi <wangjunqi@kylinos.cn> - 4.0.1-1
|
|
|
|
|
- update version to 4.0.1
|
|
|
|
|
|
2020-07-29 17:30:57 +08:00
|
|
|
* Wed Jul 29 2020 jinzhimin<jinzhimin2@huawei.com> - 3.2.0-1
|
|
|
|
|
- update to 3.2.0
|
|
|
|
|
|
2019-09-30 11:15:08 -04:00
|
|
|
* Sun Sep 15 2019 openEuler Buildteam <buildteam@openeuler.org> - 2.6.0-6
|
|
|
|
|
- Package init
|