- Various accumulated fixes
- adjust to tesseract package split
- remove now optional fonttools dependency
mupdf libs used to pull in tesseract and the eng lanpack with it. After
tesseract's splitting off the lib, we need to BR the langpack so that
tests can use it. This makes no difference on Fedoras without the split,
so we do not need to ifdef it.
Also, we switch to the pyproject buildrequires generator. Note that we
do not BR psutils because it's needed by a disabled test only.
Use pyproject macros according to the new Python packaging guidelines as
much as we can. The only outlier is build requires:
- We would need to work around the wrong form of dependencies on swig
and clang (doable).
- We should make doc build dependencies conditional.
So we stick with explicit build requires for now.
- Fix subset font name extraction (regression in 1.24.6 and 1.24.7).
- Other minor fixes.
Also, turn off yet another linter in the test suite (which would require
git and possibly fail outside of a checkout).
- `Document.bake()`: new, make annotations / fields permanent content.
- `Page.cluster_drawings()`: new, identifies drawing items that belong together based on their geometrical vicinity.
- `Page.apply_redactions()`: added new parameter `text`.
- `Document.subset_fonts()`: use MuPDF's `pdf_subset_fonts()` instead of PyMuPDF code.
- The `Document` class now supports page numbers specified as slices.
- various fixes
This test succeeded on all platforms in copr (all branches) and on koji
in rawhide anf F40 excpet for F40/x686. It does not seem to be due to
word size or such but because it's guesstimating memory usage. So,
disable this flaky test.
This adjusts to the new build system changes in upstream. In particular,
build flags are now passed down again and allow better communication of
library related flags.
The new upstream build script forces us to switch to the new python rpm
macros (PEP517/pip). There is ongoing discussion with upstream to make
builds against system libraries smoother. For now, we just patch in the
necessary libs. Note that build flags are not passed via the environment
any more.
We do not use %pyproject_buildrequires because it only finds
pip/setuptools and trips over wrong pyproject.toml entries.
There are unclarified test suite failures on some architectures which
apparantly do not affect overall functionality. Reenable the test-suite
to catch problems at least on other architectures.