diff --git a/python-fastjsonschema.spec b/python-fastjsonschema.spec index fb16d0f..cac4d90 100644 --- a/python-fastjsonschema.spec +++ b/python-fastjsonschema.spec @@ -26,9 +26,10 @@ Group: Development/Languages/Python URL: https://github.com/horejsek/python-fastjsonschema Source: https://files.pythonhosted.org/packages/source/f/fastjsonschema/fastjsonschema-%{version}.tar.gz BuildRequires: %{python_module devel} +BuildRequires: %{python_module pip} BuildRequires: %{python_module pytest-benchmark} BuildRequires: %{python_module pytest} -BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros Suggests: python-json-spec @@ -44,19 +45,19 @@ Fastest Python implementation of JSON schema %autosetup -p1 -n fastjsonschema-%{version} %build -%python_build +%pyproject_wheel %check %pytest %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %files %{python_files} %doc README.rst %license LICENSE %{python_sitelib}/fastjsonschema -%{python_sitelib}/fastjsonschema-%{version}*-info +%{python_sitelib}/fastjsonschema-%{version}.dist-info %changelog