diff --git a/python-jsonschema.spec b/python-jsonschema.spec index 7c123e2d73d8196deac468175150150da9d85835..2aa86705b346fd72106cc7de84892288f5c24ea9 100644 --- a/python-jsonschema.spec +++ b/python-jsonschema.spec @@ -1,17 +1,18 @@ %global pypi_name jsonschema +%global python3_wheelname %{pypi_name}-%{version}-py3-none-any.whl %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.17.3 -Release: 1 +Release: 2 Summary: An implementation of JSON Schema validation for Python License: MIT URL: http://pypi.python.org/pypi/jsonschema Source0: https://files.pythonhosted.org/packages/36/3d/ca032d5ac064dff543aa13c984737795ac81abc9fb130cd2fcff17cfabc7/jsonschema-4.17.3.tar.gz BuildArch: noarch -BuildRequires: python3-devel python3-setuptools python3-setuptools_scm +BuildRequires: python3-devel python3-setuptools python3-setuptools_scm python3-pip # test requirements %bcond_without tests @@ -43,7 +44,7 @@ echo "setup(use_scm_version=True)" >> setup.py %py3_build %install -%py3_install +%py3_install_wheel %{python3_wheelname} %if %{without tests} %check @@ -52,12 +53,17 @@ echo "setup(use_scm_version=True)" >> setup.py %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 +* Mon Apr 03 2023 zhuofeng - 4.17.3-2 +- fix the packaging error + * Fri Dec 16 2022 lijian - 4.17.3-1 - update to upstream version 4.17.3