diff --git a/python-PyMuPDF.changes b/python-PyMuPDF.changes index 796f15c..799c3b0 100644 --- a/python-PyMuPDF.changes +++ b/python-PyMuPDF.changes @@ -2,7 +2,7 @@ Thu Apr 11 07:52:40 UTC 2019 - Tomáš Chvátal - Run spec-cleaner -- Run tests +- Use freetype2 not old freetype1 ------------------------------------------------------------------- Wed Apr 10 13:17:25 UTC 2019 - Yunhe Guo diff --git a/python-PyMuPDF.spec b/python-PyMuPDF.spec index 0dba07c..9a02602 100644 --- a/python-PyMuPDF.spec +++ b/python-PyMuPDF.spec @@ -28,16 +28,18 @@ URL: https://github.com/rk700/PyMuPDF Source0: %{url}/archive/%{version}/%{pypi_name}-%{version}.tar.gz Patch1: fix-library-linking.patch BuildRequires: %{python_module devel} +BuildRequires: %{python_module setuptools} BuildRequires: fdupes -BuildRequires: freetype-devel BuildRequires: gcc -BuildRequires: harfbuzz-devel BuildRequires: jbig2dec-devel -BuildRequires: libjpeg-devel BuildRequires: mupdf-devel-static -BuildRequires: openjpeg2-devel +BuildRequires: pkgconfig BuildRequires: python-rpm-macros -BuildRequires: zlib-devel +BuildRequires: pkgconfig(freetype2) +BuildRequires: pkgconfig(harfbuzz) +BuildRequires: pkgconfig(libjpeg) +BuildRequires: pkgconfig(libopenjp2) +BuildRequires: pkgconfig(zlib) %python_subpackages %description @@ -53,7 +55,6 @@ quality. With PyMuPDF you therefore can also access files with extensions %patch1 -p1 %build -# Remove export CFLAGS=... for noarch packages (unneeded) export CFLAGS="%{optflags}" %python_build @@ -64,7 +65,6 @@ export CFLAGS="%{optflags}" %files %{python_files} %license COPYING %doc README.md doc/PyMuPDF.pdf -# For arch-specific packages: sitearch %{python_sitearch}/* %changelog