From b3509561677840fd42666a7ac7313856c8838de787ec8ad706fd1c94c1975eff Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Tue, 10 May 2022 00:18:34 +0000 Subject: [PATCH] Fix SPEC OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-PyMuPDF?expand=0&rev=45 --- python-PyMuPDF.spec | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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}