forked from pool/python-pikepdf
* Internal type assertion error messages from qpdf that previously triggered a RuntimeError will now raise a PdfError. Generally these errors only occur in corrupted files. * When we are updating XMP in the processing of saving, errors from updating XML are wrapped differently to clarify the context in which the error occurs. * Fixed a process abort in JBIG2 handling related to cleanup of Python objects owned by C++ code. * Fixed inconsistent behavior when setting metadata records to an empty value. :issue:`622` * Added missing Python 3.13 wheels for a few platforms that were missing them, mainly ARM Linux, musllinux/Alpine, and Windows. * Since Homebrew has ended support for macOS 12, macOS 13 is now the minimum requirement for Intel macOS. * Suppressed some spurious warnings during build tests. * Integrated OSS Fuzz. * Prevented generation of PDF date strings with invalid trailing apostrophes, while still accepting them. * Improved error message on parsing invalid date strings. * Dropped support for Python 3.8 (end of life October 2024). * Fixed some inconsistencies with the pikepdf.Rectangle class. * Python 3.13 with free-threading added to test matrix. * Removed wheel package as build requirement since modern packing no longer needs it. * Updated C++/Python exception translation to new pybind11 2.12.0+ protocol, fixing possible undefined behavior in multithreaded applications. * pybind11 2.12.0 is now required. * qpdf 11.9.1 is now used to build wheels. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pikepdf?expand=0&rev=56
89 lines
3.0 KiB
RPMSpec
89 lines
3.0 KiB
RPMSpec
#
|
|
# spec file for package python-pikepdf
|
|
#
|
|
# Copyright (c) 2024 SUSE LLC
|
|
# Copyright (c) 2020-2021, Martin Hauke <mardnh@gmx.de>
|
|
#
|
|
# All modifications and additions to the file contributed by third parties
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
# upon. The license for this file, and modifications and additions to the
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
# license for the pristine package is not an Open Source License, in which
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
# published by the Open Source Initiative.
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
%{?sle15_python_module_pythons}
|
|
Name: python-pikepdf
|
|
Version: 9.4.2
|
|
Release: 0
|
|
Summary: Read and write PDFs with Python, powered by qpdf
|
|
License: MPL-2.0
|
|
Group: Development/Libraries/Python
|
|
URL: https://github.com/pikepdf/pikepdf
|
|
Source: https://files.pythonhosted.org/packages/source/p/pikepdf/pikepdf-%{version}.tar.gz
|
|
## SECTION test requirements
|
|
BuildRequires: %{python_module Deprecated}
|
|
BuildRequires: %{python_module Pillow >= 10.0.1}
|
|
BuildRequires: %{python_module attrs >= 20.2.0}
|
|
BuildRequires: %{python_module deprecated}
|
|
BuildRequires: %{python_module devel >= 3.8}
|
|
BuildRequires: %{python_module hypothesis >= 6.36}
|
|
BuildRequires: %{python_module lxml >= 4.8}
|
|
BuildRequires: %{python_module packaging}
|
|
BuildRequires: %{python_module psutil >= 5.9}
|
|
BuildRequires: %{python_module pybind11 >= 2.12.0}
|
|
BuildRequires: %{python_module pybind11-devel >= 2.12.0}
|
|
BuildRequires: %{python_module pytest >= 6.2.5}
|
|
BuildRequires: %{python_module pytest-cov >= 3.0.0}
|
|
BuildRequires: %{python_module pytest-forked}
|
|
BuildRequires: %{python_module pytest-helpers-namespace >= 2019.1.8}
|
|
# Upstream use pytest-timeout >= 1.4.2
|
|
BuildRequires: %{python_module pytest-timeout >= 2.1.0}
|
|
BuildRequires: %{python_module pytest-xdist >= 2.5.0}
|
|
BuildRequires: %{python_module python-dateutil >= 2.8.1}
|
|
#BuildRequires: %%{python_module python-xmp-toolkit >= 2.0.1}
|
|
BuildRequires: %{python_module pip}
|
|
BuildRequires: %{python_module setuptools >= 61}
|
|
BuildRequires: %{python_module wheel >= 0.37}
|
|
## /SECTION
|
|
BuildRequires: fdupes
|
|
BuildRequires: gcc-c++
|
|
BuildRequires: libjpeg8-devel
|
|
BuildRequires: pkgconfig
|
|
BuildRequires: python-rpm-macros
|
|
BuildRequires: pkgconfig(libqpdf) >= 11.5.0
|
|
Requires: python-Deprecated
|
|
Requires: python-Pillow >= 10.0.1
|
|
Requires: python-lxml >= 4.8
|
|
Requires: python-packaging
|
|
%python_subpackages
|
|
|
|
%description
|
|
Read and write PDFs with Python, powered by qpdf.
|
|
|
|
%prep
|
|
%setup -q -n pikepdf-%{version}
|
|
|
|
%build
|
|
export CFLAGS="%{optflags}"
|
|
%pyproject_wheel
|
|
|
|
%install
|
|
%pyproject_install
|
|
%python_expand %fdupes %{buildroot}%{$python_sitearch}
|
|
|
|
%check
|
|
%pytest_arch
|
|
|
|
%files %{python_files}
|
|
%license LICENSE.txt
|
|
%doc README.md
|
|
%{python_sitearch}/pikepdf*
|
|
|
|
%changelog
|