## START: Set by rpmautospec ## (rpmautospec version 0.8.4) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 5; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec # docs require myst_parser and python3-docs, not in RHEL %bcond docs %[%{undefined rhel} || %{defined epel}] # fonts support requires fonttools, buildroot only in RHEL # image support requires Pillow, not in RHEL %bcond extras %[%{undefined rhel} || %{defined epel}] # tests require Pillow, pytest-socket, and pytest-timeout, not in RHEL %bcond tests %[%{undefined rhel} || %{defined epel}] %global srcname pypdf %global forgeurl https://github.com/py-pdf/pypdf Name: python-%{srcname} Version: 6.14.2 Release: %autorelease Summary: Pure-Python PDF library License: BSD-3-Clause URL: https://pypdf.readthedocs.io # PyPI tarball doesn't include tests Source: %{forgeurl}/archive/%{version}/%{srcname}-%{version}.tar.gz BuildArch: noarch BuildRequires: python3-devel %if %{with docs} BuildRequires: python3-docs BuildRequires: sed %endif %if %{with tests} # Test dependencies added manually since pyproject.toml doesn't specify them # separately from dev dependencies. BuildRequires: python3dist(pytest) BuildRequires: python3dist(pytest-socket) BuildRequires: python3dist(pytest-timeout) %endif %global _description %{expand: pypdf is a free and open-source pure-python PDF library capable of splitting, merging, cropping, and transforming the pages of PDF files. It can also add custom data, viewing options, and passwords to PDF files. pypdf can retrieve text and metadata from PDFs as well.} %description %_description %package -n python3-pypdf Summary: %{summary} %description -n python3-pypdf %_description %if %{with extras} %pyproject_extras_subpkg -n python3-pypdf crypto,fonts,image,full %endif %if %{with docs} %package doc Summary: Documentation for %{name} Requires: python3-docs %description doc This package provides additional documentation for %{name}. %endif %prep %autosetup -p1 -n %{srcname}-%{version} %if %{with docs} # Use local intersphinx inventory sed -r \ -e 's|https://docs.python.org/\{python_version\}|%{_docdir}/python3-docs/html|' \ -i docs/conf.py %endif %generate_buildrequires %pyproject_buildrequires %{?with_tests:-x crypto,fonts,image,full} %{?with_docs:-x docs} %build %pyproject_wheel %if %{with docs} # Build docs sphinx-build-3 docs html rm -rf html/{.buildinfo,.doctrees} %endif %install %pyproject_install %pyproject_save_files %{srcname} %check %pyproject_check_import %if %{with tests} # Deselect tests downloading files from external hosts and tests requiring # sample files which are not included in the source tarball. %pytest -m "not enable_socket and not samples" %endif %files -n python3-%{srcname} -f %{pyproject_files} # https://lists.fedoraproject.org/archives/list/python-devel@lists.fedoraproject.org/thread/4Y2VRLVAR3DJXBSFVDYJMU3G4ZNPGEU6/ %license LICENSE %doc README.md CHANGELOG.md CONTRIBUTORS.md %if %{with docs} %files doc %license LICENSE %doc html %endif %changelog ## START: Generated by rpmautospec * Mon Aug 10 2026 Tadej Janež - 6.14.2-5 - Add rpminspect config that expects extra metapackages to be empty * Mon Aug 10 2026 Tadej Janež - 6.14.2-4 - Generalize pypdf tarball exclusion in gitignore * Mon Aug 10 2026 Yaakov Selkowitz - 6.14.2-3 - Avoid unwanted dependencies on RHEL * Thu Jul 16 2026 Fedora Release Engineering - 6.14.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild * Tue Jun 30 2026 Tadej Janež - 6.14.2-1 - Update to version 6.14.2 - Remove Tox handling parts since Tox is no longer used upstream. - Manually specify test dependencies since the upstream doesn't specify them separately from dev dependencies. - Run tests with pytest. Exclude tests requiring external network access and sample files not included in the source tarball. - Add fonts extra. * Thu Jun 04 2026 Python Maint - 4.2.0-10 - Rebuilt for Python 3.15 * Sat Jan 17 2026 Fedora Release Engineering - 4.2.0-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild * Fri Sep 19 2025 Python Maint - 4.2.0-8 - Rebuilt for Python 3.14.0rc3 bytecode * Fri Aug 15 2025 Python Maint - 4.2.0-7 - Rebuilt for Python 3.14.0rc2 bytecode * Fri Jul 25 2025 Fedora Release Engineering - 4.2.0-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild * Tue Jun 03 2025 Python Maint - 4.2.0-5 - Rebuilt for Python 3.14 * Sat Jan 18 2025 Fedora Release Engineering - 4.2.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild * Fri Jul 19 2024 Fedora Release Engineering - 4.2.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Sun Jun 09 2024 Python Maint - 4.2.0-2 - Rebuilt for Python 3.13 * Tue Jun 04 2024 Davide Cavalca - 4.2.0-1 - Initial import; Fixes: RHBZ#2279080 ## END: Generated by rpmautospec