Files
python-pikepdf/python-pikepdf.spec
Markéta Machová 968b6573e1 Accepting request 1119380 from home:uncomfyhalomacro:branches:devel:languages:python
- update to 8.5.2:
  * Fix incorrect usage of sys_platform
  * Don't install psutil on Windows and update other test dependencies
  * Move psutil-needing tests to their own script
  * Raise hypothesis deadlines
  * Fix a few type hints
  * Fix return values of global set/get fns and add get_access_default_mmap to pyi
  * Update binary wheel list
  * Simplify atomic_overwrite exception handler
  * Increase arm64 build coverage - add musl and cp312
  * Stop building PyPy3.8 wheels due to lack of Pillow support
  * Implementation AFRelationship for AttachedFileSpec
  * docs: update info about creating PDFs
  * Change to building against libqpdf v11.6.1
  * Disable pp3.10 since numpy binary wheels aren't released yet
  * Merge branch 'trusted-release'
  * Try adding url to see if it suppresses legacy warning
  * Merge branch 'm-holger-rect'
  * rect: tidy and prepare for release
  * Fixing use of typing | on Python 3.9
  * Add Python 3.8 shim
  * Improve CCITT tests
  * Implement Decode array to better support weird CCITTs
  * Fix another CCITT inversion issue
  * Improve available version documentation
  * Better documentation for atomic_overwrite
  * Fix saving file opened from BytesIO on Windows
  * Change atomic_overwite to use exclusive creation
  * black doesn't support py312 yet
  * Update documentation for 3.12 support
  * Update note about needsappearances
  * Allow Python 3.12 build to fail
  * Test Python 3.12 pre-release
  * Merge pull request #504 from m-holger/qm
  * Fix link to QPDF manual
  * Add docs back to sdist
  * build: found a way to make RTD trigger again
  * build: Replace deprecated "::set-output"
  * Add Rectangle operators '<=' and '&'
- Use pyproject

OBS-URL: https://build.opensuse.org/request/show/1119380
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pikepdf?expand=0&rev=37
2023-10-24 07:53:18 +00:00

87 lines
2.9 KiB
RPMSpec

#
# spec file for package python-pikepdf
#
# Copyright (c) 2023 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: 8.5.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 Pillow >= 9.0.0}
BuildRequires: %{python_module attrs >= 20.2.0}
BuildRequires: %{python_module devel >= 3.8}
BuildRequires: %{python_module hypothesis >= 6.36}
BuildRequires: %{python_module ipython}
BuildRequires: %{python_module lxml >= 4.0}
BuildRequires: %{python_module packaging}
BuildRequires: %{python_module psutil >= 5.9}
BuildRequires: %{python_module pybind11 >= 2.10.1}
BuildRequires: %{python_module pybind11-devel >= 2.10.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-Pillow >= 9.0.0
Requires: python-lxml >= 4.0
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