diff --git a/python-PyMuPDF.spec b/python-PyMuPDF.spec index 4b39db8..f2e50c8 100644 --- a/python-PyMuPDF.spec +++ b/python-PyMuPDF.spec @@ -29,7 +29,9 @@ Group: Development/Libraries/Python URL: https://github.com/pymupdf/PyMuPDF Source: https://files.pythonhosted.org/packages/source/P/PyMuPDF/PyMuPDF-%{version}.tar.gz BuildRequires: %{python_module devel} +BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: gcc BuildRequires: gcc-c++ @@ -60,10 +62,10 @@ book formats. PyMuPDF can also access files with extensions *.pdf, %build export CFLAGS="%{optflags} -I/usr/include/freetype2" -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install rm %{buildroot}%{_prefix}/{COPYING,README.md,changes.rst} %python_expand %fdupes %{buildroot}%{$python_sitearch}