%global pypi_name python-fastjsonschema Name: %{pypi_name} Version: 2.14.5 Release: 1%{?dist} Summary: Fastest Python implementation of JSON schema License: BSD URL: https://github.com/horejsek/%{pypi_name} Source0: %{url}/archive/v%{version}/%{pypi_name}-%{version}.tar.gz BuildArch: noarch BuildRequires: python3-devel BuildRequires: pyproject-rpm-macros %global _description %{expand: fastjsonschema implements validation of JSON documents by JSON schema. The library implements JSON schema drafts 04, 06 and 07. The main purpose is to have a reall fast implementation.} %description %_description %package -n python3-%{pypi_name} Summary: %{summary} %description -n python3-%{pypi_name} %_description %prep %autosetup -n %{pypi_name}-%{version} %generate_buildrequires %pyproject_buildrequires -t %build %pyproject_wheel %install %pyproject_install %pyproject_save_files fastjsonschema %check %tox %files -n python3-%{pypi_name} -f %{pyproject_files} %license LICENSE %doc README.rst %changelog * Mon Oct 19 2020 Tomas Hrnciar - 2.14.5-1 - Initial package