## START: Set by rpmautospec ## (rpmautospec version 0.7.3) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 3; 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 Name: pdfarranger Version: 1.11.1 Release: %autorelease Summary: PDF file merging, rearranging, and splitting License: GPL-3.0-or-later URL: https://github.com/pdfarranger/%{name} Source0: %{url}/archive/%{version}/%{name}-%{version}.tar.gz BuildArch: noarch # https://fedoraproject.org/wiki/Changes/EncourageI686LeafRemoval ExcludeArch: %{ix86} BuildRequires: gettext BuildRequires: python3-devel # For checks only BuildRequires: libappstream-glib BuildRequires: desktop-file-utils Recommends: python3-img2pdf >= 0.3.4 # These seem to be included in the default desktop install Requires: python3-gobject Requires: gtk3 Requires: python3-cairo Requires: poppler-glib Provides: pdfshuffler = %{version}-%{release} Obsoletes: pdfshuffler < 0.6.1-1 # The repository changed to pdfarranger/pdfarranger but we leave the app_id # for now. %global app_id com.github.jeromerobert.pdfarranger %description PDF Arranger is a small python-gtk application, which helps the user to merge or split pdf documents and rotate, crop and rearrange their pages using an interactive and intuitive graphical interface. It is a frontend for pikepdf. PDF Arranger is a fork of Konstantinos Poulios’s PDF-Shuffler. %prep %autosetup -p1 -n %{name}-%{version} %generate_buildrequires %pyproject_buildrequires -R %build %pyproject_wheel %install %pyproject_install %pyproject_save_files %{name} %find_lang %{name} ln -s pdfarranger %{buildroot}%{_bindir}/pdfshuffler %check desktop-file-validate %{buildroot}/%{_datadir}/applications/%{app_id}.desktop appstream-util validate-relax --nonet %{buildroot}%{_metainfodir}/*.metainfo.xml %files -f %{name}.lang -f %{pyproject_files} %license COPYING %doc README.md %{_mandir}/man1/pdfarranger.1* %{_datadir}/icons/hicolor/*/apps/* %{_metainfodir}/%{app_id}.metainfo.xml %{_datadir}/applications/%{app_id}.desktop %{_datadir}/%{name}/ %{_bindir}/pdfarranger %{_bindir}/pdfshuffler %changelog ## START: Generated by rpmautospec * Fri Oct 11 2024 David Auer - 1.11.1-3 - Add missing install section * Thu Oct 10 2024 David Auer - 1.11.1-2 - Manually correct SPDX license * Thu Oct 10 2024 David Auer - 1.11.1-1 - Update to 1.11.1 * Mon Jul 29 2024 Miroslav Suchý - 1.11.0-4 - convert GPLv3 license to SPDX * Thu Jul 18 2024 Fedora Release Engineering - 1.11.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Wed Jun 26 2024 David Auer - 1.11.0-2 - Improve manpage file entry * Mon Jun 24 2024 David Auer - 1.11.0-1 - Update to 1.11.0 * Fri Jun 07 2024 Python Maint - 1.10.1-6 - Rebuilt for Python 3.13 * Thu Jan 25 2024 Fedora Release Engineering - 1.10.1-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Sun Jan 21 2024 Fedora Release Engineering - 1.10.1-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Sat Nov 25 2023 David Auer - 1.10.1-3 - Don't add automatic requires as buildrequires * Thu Nov 23 2023 Dan Horák - 1.10.1-2 - drop useless condition * Thu Oct 19 2023 David Auer - 1.10.1-1 - Update to 1.10.1 * Thu Jul 20 2023 Fedora Release Engineering - 1.10.0-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Mon Jul 17 2023 David Auer - 1.10.0-4 - Adapt to current Python packaging guidelines * Thu Jul 13 2023 David Auer - 1.10.0-1 - Update to 1.10.0 - Remove dependency to python3-distutils-extra - Remove conditionals for Fedora 31 * Tue Jun 13 2023 Python Maint - 1.9.2-3 - Rebuilt for Python 3.12 * Thu Jan 19 2023 Fedora Release Engineering - 1.9.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Wed Dec 28 2022 David Auer - 1.9.2-1 - Update to 1.9.2 (closes rhbz#2149537) * Mon Dec 19 2022 Elliott Sales de Andrade - 1.9.1-2 - Drop support for i686 * Sun Sep 25 2022 Fabian Affolter - 1.9.1-1 - Update to latest upstream release 1.9.1 (closes rhbz#2129599) * Sun Sep 18 2022 Fabian Affolter - 1.9.0-1 - Update to latest upstream release 1.9.0 (closes rhbz#2127657) * Fri Jul 22 2022 Fedora Release Engineering - 1.8.2-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Mon Jun 13 2022 Python Maint - 1.8.2-3 - Rebuilt for Python 3.11 * Thu Jan 20 2022 Fedora Release Engineering - 1.8.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Sun Dec 26 2021 David Auer - 1.8.2-1 - Update to 1.8.2 - Fix 2 bugs in scaled pages export * Wed Dec 15 2021 David Auer - 1.8.1-1 - Update to 1.8.1 * Thu Jul 22 2021 Fedora Release Engineering - 1.7.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Fri Jun 04 2021 Python Maint - 1.7.1-2 - Rebuilt for Python 3.10 * Thu Mar 18 2021 David Auer - 1.7.1-1 - Update to 1.7.1 - Update repository URL (was a redirection anyway) * Tue Jan 26 2021 Fedora Release Engineering - 1.7.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Sun Jan 24 2021 David Auer - 1.7.0-2 - Add dependency: dateutil * Sun Jan 24 2021 David Auer - 1.7.0-1 - Update to 1.7.0 * Sat Aug 01 2020 David Auer - 1.6.2-1 - Update to 1.6.2 * Tue Jul 28 2020 Fedora Release Engineering - 1.6.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Thu Jul 16 2020 David Auer - 1.6.0-2 - Recommend img2pdf * Wed Jul 15 2020 David Auer - 1.6.0-1 - Update to 1.6.0 - Require pikepdf >= 1.15.1 as suggested in Readme. * Wed Jun 24 2020 David Auer - 1.5.3-3 - Explicitly require python3-setuptools * Tue May 26 2020 Miro Hrončok - 1.5.3-2 - Rebuilt for Python 3.9 * Sun May 17 2020 David Auer - 1.5.3-1 - Update to 1.5.3 * Mon Apr 20 2020 David Auer - 1.5.1-1 - Update to 1.5.1 (#1823971) - Fixes rhbz#1824017 * Wed Apr 15 2020 David Auer - 1.5.0-1 - Update to 1.5.0 (#1823971) * Tue Mar 17 2020 Fabian Affolter - 1.4.2-1 - Update to new upstream version 1.4.2 (rhbz#1814032) * Sun Feb 09 2020 Fedora Release Monitoring - 1.4.1-1 - Update to 1.4.1 (#1800993) * Sat Feb 01 2020 David Auer - 1.4.0-1 - New version, see https://github.com/jeromerobert/pdfarranger/releases/tag/1.4.0 - Replace python3-PyPDF2 with python3-pikepdf * Wed Jan 29 2020 Fedora Release Engineering - 1.3.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Wed Sep 25 2019 David Auer - 1.3.1-2 - replace pdfshuffler on f32+ * Sun Sep 22 2019 David Auer - 1.3.1-1 - New version, see https://github.com/jeromerobert/pdfarranger/releases/tag/1.3.1 * Wed Sep 11 2019 David Auer - 1.3.0-2 - Add missing dependency - Remove unnecessary python_provide macro * Sun Aug 11 2019 David Auer - 1.3.0-1 - New version, see https://github.com/jeromerobert/pdfarranger/releases/tag/1.3.0 - Remove obsolete downstream fixes * Tue Jun 11 2019 David Auer - 1.2.1-8 - Better source URL * Mon May 20 2019 David Auer - 1.2.1-7 - Fix directory ownership - Replace obsolete srcname by name * Mon May 20 2019 David Auer - 1.2.1-6 - Name changed from python-pdfarranger to pdfarranger - Remove shebang in __main__.py * Sat May 18 2019 David Auer - 1.2.1-5 - Fix rpmlint errors and warnings * Sat May 18 2019 David Auer - 1.2.1-4 - Building with wheel to get lang and icons right * Sat May 18 2019 David Auer - 1.2.1-3 - Move Requires to the right location * Sat May 18 2019 David Auer - 1.2.1-2 - Add missing requires * Sat May 18 2019 David Auer - 1.2.1 - Packaging pdfarranger based on pdfshuffler's spec file and https://docs.fedoraproject.org/en-US/packaging-guidelines/Python/#_example_python_spec_file ## END: Generated by rpmautospec