forked from pool/python-PyMuPDF
Fix SPEC
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-PyMuPDF?expand=0&rev=45
This commit is contained in:
@@ -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}
|
||||
|
||||
|
Reference in New Issue
Block a user