Name: python-psutils Version: 3.3.14 Release: %autorelease Summary: Manipulate PDF and PostScript documents License: GPL-3.0-or-later URL: https://github.com/rrthomas/psutils Source: %{pypi_source psutils} BuildArch: noarch BuildRequires: python3-devel BuildRequires: libpaper-devel BuildRequires: paper # Test dependency BuildRequires: ImageMagick-c++-devel Requires: libpaper Requires: paper %global _description %{expand: PSUtils is a suite of utilities for manipulating PDF and PostScript documents. You can select and rearrange pages, including arrangement into signatures for booklet printing, combine multple pages into a single page for n-up printing, and resize, flip and rotate pages.} %description %_description %package -n python3-psutils Summary: %{summary} %description -n python3-psutils %_description %prep %autosetup -p1 -n psutils-%{version} #Relax pypdf requirement sed -i "s/pypdf >= 4.3.0/pypdf >= 4.2.0/g" pyproject.toml %generate_buildrequires %pyproject_buildrequires -x test %build %pyproject_wheel %install %pyproject_install %pyproject_save_files -l psutils %check %pyproject_check_import %pytest %files -n python3-psutils -f %{pyproject_files} %doc README.md %{_bindir}/epsffit %{_bindir}/extractres %{_bindir}/includeres %{_bindir}/psbook %{_bindir}/psjoin %{_bindir}/psnup %{_bindir}/psresize %{_bindir}/psselect %{_bindir}/pstops %{_mandir}/man1/epsffit.1* %{_mandir}/man1/extractres.1* %{_mandir}/man1/includeres.1* %{_mandir}/man1/psbook.1* %{_mandir}/man1/psjoin.1* %{_mandir}/man1/psnup.1* %{_mandir}/man1/psresize.1* %{_mandir}/man1/psselect.1* %{_mandir}/man1/pstops.1* %{_mandir}/man1/psutils.1* %changelog %autochangelog