diff --git a/jsonschema-2.6.0.tar.gz b/jsonschema-2.6.0.tar.gz deleted file mode 100644 index 65ee3ae25fb86bb848758bfde0dceafafe7d5a71..0000000000000000000000000000000000000000 Binary files a/jsonschema-2.6.0.tar.gz and /dev/null differ diff --git a/jsonschema-3.2.0.tar.gz b/jsonschema-3.2.0.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..9d0724a7e63b7144576cb7fb98cb9e4441855a3f Binary files /dev/null and b/jsonschema-3.2.0.tar.gz differ diff --git a/python-jsonschema.spec b/python-jsonschema.spec index c4af21ea3c05fb8cb492cf23fc6efd5351f2a44f..37c80b3b14af43e75693d1e0308ea8877f3601bd 100644 --- a/python-jsonschema.spec +++ b/python-jsonschema.spec @@ -1,24 +1,29 @@ %global pypi_name jsonschema -%global with_python3 1 %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: 2.6.0 -Release: 6 +Version: 3.2.0 +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/source/j/jsonschema/%{pypi_name}-%{version}.tar.gz BuildArch: noarch -BuildRequires: python2-devel python2-nose python2-mock python2-repoze-lru -%if 0%{?with_python3} -BuildRequires: python%{python3_pkgversion}-devel python%{python3_pkgversion}-nose python%{python3_pkgversion}-mock +BuildRequires: python2-devel python2-setuptools python2-setuptools_scm +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 -Patch0: avoid-unpackaged-for-jsonschema-2.6.0.patch - %description %{_description} %package -n python2-%{pypi_name} @@ -28,38 +33,29 @@ Requires: python2-repoze-lru %description -n python2-%{pypi_name} %{_description} -%if 0%{?with_python3} %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} -%endif %package_help %prep -%autosetup -n %{pypi_name}-%{version} -p1 +%autosetup -n %{pypi_name}-%{version} -p1 %build -%if 0%{?with_python3} %py3_build -%endif %py2_build - %install -%if 0%{?with_python3} %py3_install -mv %{buildroot}%{_bindir}/jsonschema %{buildroot}%{_bindir}/jsonschema-3 -%endif %py2_install +%if %{without tests} %check -%if 0%{?with_python3} -%{_bindir}/nosetests-%{python3_version} -v +%{__python3} setup.py test --test-suite=jsonschema.tests %endif -%{_bindir}/nosetests-%{python2_version} -v %files -n python2-%{pypi_name} %license COPYING @@ -67,17 +63,19 @@ mv %{buildroot}%{_bindir}/jsonschema %{buildroot}%{_bindir}/jsonschema-3 %{python2_sitelib}/%{pypi_name}/ %{python2_sitelib}/*.egg-info -%if 0%{?with_python3} %files -n python%{python3_pkgversion}-%{pypi_name} %license COPYING -%{_bindir}/jsonschema-3 +%{_bindir}/jsonschema %{python3_sitelib}/%{pypi_name}/ +%exclude %{python3_sitelib}/%{pypi_name}/%{pypi_name}/tests/ %{python3_sitelib}/*.egg-info -%endif %files help %doc README.rst PKG-INFO %changelog +* Sat Oct 28 2023 openEuler luxuexian - 3.2.0-1 +- update to 3.2.0 + * Sun Sep 15 2019 openEuler Buildteam - 2.6.0-6 - Package init diff --git a/python-jsonschema.yaml b/python-jsonschema.yaml new file mode 100644 index 0000000000000000000000000000000000000000..7824d17a25e05bc823a5ab5ac62a74066693f0d4 --- /dev/null +++ b/python-jsonschema.yaml @@ -0,0 +1,4 @@ +version_control: github +src_repo: Julian/jsonschema +tag_prefix: ^v +seperator: . \ No newline at end of file