forked from pool/python-pikepdf
- Update to version 2.11.0 * Add new functions: Pdf.generate_appearance_streams and Pdf.flatten_annotations, to support common work with PDF forms. - Update to version 2.10.0 * Fixed a XML External Entity (XXE) processing vulnerability in PDF XMP metadata parsing (CVE-2021-29421) * Bind new functions to check, when a PDF is opened, whether the password used to open the PDF matched the owner password, user password, or both: Pdf.user_password_matched and Pdf.owner_password_matched. - Update to version 2.9.2 * Further expansion of test coverage of several functions, and minor bug fixes along the way. * Improve parameter validation for some outline-related functions. * Fixed overloaded __repr__ functions in _methods.py not being applied. - Update to version 2.9.1 * Fixed function signatures for _repr_mimebundle_ functions to match IPython's spec. * Fixed some error messages regarding attempts to do strange things with pikepdf.Name, like pikepdf.Name.Foo = 3. * Eliminated code to handle an exception that provably does not occur. - Update to version 2.9.0 * We now issue a warning when attempting to use pikepdf.open on a bytes object where it could be either a PDF loaded into memory or a filename. * pikepdf.Page.label will now return the "ordinary" page number if no special rules for pages are defined. * Many improvements to tests and test coverage. OBS-URL: https://build.opensuse.org/request/show/884806 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pikepdf?expand=0&rev=18
83 lines
2.7 KiB
RPMSpec
83 lines
2.7 KiB
RPMSpec
#
|
|
# spec file for package python-pikepdf
|
|
#
|
|
# Copyright (c) 2021 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/
|
|
#
|
|
|
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
|
%define skip_python2 1
|
|
Name: python-pikepdf
|
|
Version: 2.11.0
|
|
Release: 0
|
|
Summary: Read and write PDFs with Python, powered by qpdf
|
|
License: MPL-2.0
|
|
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 Pillow >= 5.0.0}
|
|
BuildRequires: %{python_module attrs >= 19.1.0}
|
|
BuildRequires: %{python_module devel}
|
|
BuildRequires: %{python_module hypothesis >= 4.24}
|
|
BuildRequires: %{python_module lxml >= 4.0}
|
|
BuildRequires: %{python_module psutil}
|
|
BuildRequires: %{python_module pybind11 >= 2.6.0}
|
|
BuildRequires: %{python_module pybind11-devel >= 2.6.0}
|
|
BuildRequires: %{python_module pytest >= 4.4.0}
|
|
BuildRequires: %{python_module pytest-helpers-namespace >= 2019.1.8}
|
|
BuildRequires: %{python_module pytest-timeout >= 1.3.3}
|
|
BuildRequires: %{python_module python-dateutil >= 1.4}
|
|
BuildRequires: %{python_module setuptools_scm_git_archive}
|
|
BuildRequires: %{python_module setuptools_scm}
|
|
BuildRequires: %{python_module setuptools}
|
|
## /SECTION
|
|
BuildRequires: fdupes
|
|
BuildRequires: gcc-c++
|
|
BuildRequires: pkgconfig
|
|
BuildRequires: python-rpm-macros
|
|
BuildRequires: pkgconfig(libqpdf)
|
|
Requires: python-Pillow >= 5.0.0
|
|
Requires: python-lxml >= 4.0
|
|
%python_subpackages
|
|
|
|
%description
|
|
Read and write PDFs with Python, powered by qpdf.
|
|
|
|
%prep
|
|
%setup -q -n pikepdf-%{version}
|
|
# Simplify setup_requires
|
|
sed -i 's/setuptools >= [0-9]*/setuptools/;/wheel/d' setup.py
|
|
rm setup.cfg
|
|
|
|
%build
|
|
export CFLAGS="%{optflags}"
|
|
%python_build
|
|
|
|
%install
|
|
%python_install
|
|
%python_expand %fdupes %{buildroot}%{$python_sitearch}
|
|
|
|
%check
|
|
# Ignore test_minimum_qpdf_version as it fails on Leap
|
|
# despite all other tests passing.
|
|
%pytest_arch -k 'not test_minimum_qpdf_version'
|
|
|
|
%files %{python_files}
|
|
%license LICENSE.txt licenses
|
|
%doc README.md docs/*/*.rst
|
|
%{python_sitearch}/pikepdf*
|
|
|
|
%changelog
|