diff --git a/pdfarranger-1.11.1.tar.gz b/pdfarranger-1.11.1.tar.gz deleted file mode 100644 index f0c34b3..0000000 --- a/pdfarranger-1.11.1.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:7cda866a62b42a23dafb409985e674a595d243037f04c80fdc39d7bb24f43374 -size 455095 diff --git a/pdfarranger-1.13.0.tar.gz b/pdfarranger-1.13.0.tar.gz new file mode 100644 index 0000000..f15244b --- /dev/null +++ b/pdfarranger-1.13.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0f5f642b6a5c8f07159aa75919106ac13a62c638c7613373f469dcc3bfb88dfe +size 627691 diff --git a/pdfarranger.changes b/pdfarranger.changes index 1770412..e41304f 100644 --- a/pdfarranger.changes +++ b/pdfarranger.changes @@ -1,3 +1,61 @@ +------------------------------------------------------------------- +Sun Feb 1 20:13:41 UTC 2026 - ecsos + +- Update to 1.13.0 (fixes boo#1257190) + * New / improved features: + - Store selection state and scrollbar state in undomanager + - Support resizing of pasted overlay/underlay + - Add support for searching of text in PDF + - Scroll iconview one row up/down with Alt + mouse wheel scroll + - Support import of JPEG 2000 (.jp2) on Windows and Linux (if img2pdf is available) + - Support import of AVIF images (.avif) on Windows + - Add version info about more software in About dialog + - Add Vietnamese translation + - Add Georgian translation + * Fixes: + - Fix crop-white-borders for pages with overlay/underlay + - Some speed improvements + - Fix misaligned pages when generating booklet + - Stop adding files/pages on first exception + - Bundle poppler encoding files with Windows build + +------------------------------------------------------------------- +Thu Jul 3 06:22:39 UTC 2025 - Atri Bhattacharya + +- Specfile cleanups: + * Drop 'Requires: gtk3': There is no package called 'gtk3', and + the right gtk3 shared library is already pulled in by + typelib-1_0-Gtk-3_0. + * Add pdfarranger.rpmlintrc to weed out obvious false positives. + * Use pyproject macros to build and install; add python-pip and + python-wheel as BuildRequires. + * Add BuildRequires: hicolor-icon-theme for correct ownership of + %_datadir/icon/hicolor dir. + * Drop obsolete %suse_update_desktop_file macro and associated + BuildRequires: update-desktop-files. + * Implement %check section using pytest; add required packages + to BuildRequires for tests. + * Drop info not directly relevant to application use from + package description. +- Add 'Requires: python-packaging': new version has 'imports' on + it. + +------------------------------------------------------------------- +Thu Jul 3 06:13:12 UTC 2025 - Christophe Marin + +- Update to 1.12.1 + * Fix incompatibility with Python 3.13.4 on Linux + * Update translations + * Support export to png, jpeg and rasterized pdf + * Fix import of webp images on Windows and Flatpak installations + * Fix priority of what metadata is saved when merging documents + * Fix printing of rasterized pdf + +------------------------------------------------------------------- +Wed Feb 19 13:37:26 UTC 2025 - ecsos + +- Use pythons so we can build also for Leap with python311. + ------------------------------------------------------------------- Thu Oct 17 09:06:21 UTC 2024 - Christophe Marin diff --git a/pdfarranger.rpmlintrc b/pdfarranger.rpmlintrc new file mode 100644 index 0000000..b5a5a08 --- /dev/null +++ b/pdfarranger.rpmlintrc @@ -0,0 +1,7 @@ +# These are absolutely necessary, though not listed in setup.py dependencies +addFilter("pdfarranger.noarch: W: python-leftover-require python3-cairo") +addFilter("pdfarranger.noarch: W: python-leftover-require python3-dateutil") +addFilter("pdfarranger.noarch: W: python-leftover-require python3-gobject-Gdk") + +# This is already there as %%{python_flavor}-dateutil +addFilter("pdfarranger.noarch: W: python-missing-require python-dateutil") diff --git a/pdfarranger.spec b/pdfarranger.spec index dccebdd..9c4fb7a 100644 --- a/pdfarranger.spec +++ b/pdfarranger.spec @@ -1,7 +1,7 @@ # # spec file for package pdfarranger # -# Copyright (c) 2024 SUSE LLC +# Copyright (c) 2026 SUSE LLC and contributors # Copyright (c) 2020 Karl Cheng # # All modifications and additions to the file contributed by third parties @@ -17,27 +17,46 @@ # +%if 0%{?suse_version} >= 1600 +%define pythons python3 +%else +%define pythons python311 +%endif + Name: pdfarranger -Version: 1.11.1 +Version: 1.13.0 Release: 0 Summary: Merge, split, rotate, crop, and rearrange pages of PDF documents License: GPL-3.0-only URL: https://github.com/pdfarranger/pdfarranger -Source: https://github.com/pdfarranger/pdfarranger/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz +Source0: https://github.com/pdfarranger/pdfarranger/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz +Source1: %{name}.rpmlintrc +BuildRequires: %{python_module base} +BuildRequires: %{python_module pip} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes +BuildRequires: hicolor-icon-theme BuildRequires: intltool -BuildRequires: python3-devel -BuildRequires: python3-rpm-macros -BuildRequires: python3-setuptools -BuildRequires: update-desktop-files -Requires: gtk3 -Requires: python3-cairo -Requires: python3-dateutil >= 2.4.0 -Requires: python3-gobject-Gdk -Requires: python3-pikepdf >= 6 +BuildRequires: python-rpm-macros +# Section Tests +BuildRequires: %{python_module pytest} +BuildRequires: %{python_module cairo} +BuildRequires: %{python_module dateutil >= 2.4.0} +BuildRequires: %{python_module gobject-Gdk} +BuildRequires: %{python_module packaging} +BuildRequires: %{python_module pikepdf >= 6} +BuildRequires: typelib-1_0-Gtk-3_0 +BuildRequires: typelib-1_0-Poppler-0_18 +# /Section +Requires: %{python_flavor}-cairo +Requires: %{python_flavor}-dateutil >= 2.4.0 +Requires: %{python_flavor}-gobject-Gdk +Requires: %{python_flavor}-packaging +Requires: %{python_flavor}-pikepdf >= 6 Requires: typelib-1_0-Gtk-3_0 Requires: typelib-1_0-Poppler-0_18 -Recommends: python3-img2pdf >= 0.3.4 +Recommends: %{python_flavor}-img2pdf >= 0.3.4 BuildArch: noarch %description @@ -45,33 +64,32 @@ pdfarranger is a small python-gtk application, which helps the user to merge or split pdf documents and rotate, crop and rearrange their pages using a graphical interface. It is a frontend for pikepdf. -pdfarranger is a fork of Konstantinos Poulios’s pdfshuffler. It is -a humble attempt to make the project a bit more active. - %lang_package %prep %autosetup -p1 %build -python3 setup.py build +%pyproject_wheel %install -python3 setup.py install --prefix=%{_prefix} --root=%{buildroot} -%suse_update_desktop_file -r com.github.jeromerobert.pdfarranger Graphics VectorGraphics +%pyproject_install %find_lang %{name} %{?no_lang_C} %fdupes -s %{buildroot} +%check +%pytest + %files %license COPYING %doc README.md %{_bindir}/%{name} -%{python3_sitelib}/%{name} -%{python3_sitelib}/%{name}-%{version}-py%{python3_version}.egg-info +%{python_sitelib}/%{name} +%{python_sitelib}/%{name}-%{version}*.*-info %{_datadir}/applications/com.github.jeromerobert.pdfarranger.desktop %{_mandir}/man1/%{name}.1%{?ext_man} -%{_datadir}/%{name} -%{_datadir}/icons/hicolor +%{_datadir}/%{name}/ +%{_datadir}/icons/hicolor/*/apps/* %{_datadir}/metainfo/com.github.jeromerobert.pdfarranger.metainfo.xml %files lang -f %{name}.lang