diff --git a/687.patch b/687.patch new file mode 100644 index 0000000..62fe29d --- /dev/null +++ b/687.patch @@ -0,0 +1,33 @@ +From 18beaecbbcc066e0d4c889b3aa3ecaa7351f7768 Mon Sep 17 00:00:00 2001 +From: Evgeny Stambulchik +Date: Tue, 25 Apr 2023 16:11:25 +0300 +Subject: [PATCH] Create Lists of nullable types + +--- + src/classes/drawings/drawing_commands.vala | 6 +++--- + 1 file changed, 3 insertions(+), 3 deletions(-) + +diff --git a/src/classes/drawings/drawing_commands.vala b/src/classes/drawings/drawing_commands.vala +index 77e56e6d..c305a8c5 100644 +--- a/src/classes/drawings/drawing_commands.vala ++++ b/src/classes/drawings/drawing_commands.vala +@@ -54,8 +54,8 @@ namespace pdfpc { + } + + public void clear() { +- this.drawing_commands = new List(); +- this.redo_commands = new List(); ++ this.drawing_commands = new List(); ++ this.redo_commands = new List(); + } + + public void add_line(bool is_eraser, +@@ -70,7 +70,7 @@ namespace pdfpc { + + // After adding a new line you can no longer redo the old + // path. +- this.redo_commands = new List(); // clear ++ this.redo_commands = new List(); // clear + + bool new_path = true; + double epsilon = 1e-4; // Less than 0.1 pixel for a 1000x1000 img diff --git a/pdfpc.spec b/pdfpc.spec index 536349e..234028d 100644 --- a/pdfpc.spec +++ b/pdfpc.spec @@ -7,6 +7,10 @@ License: GPL-3.0-or-later URL: https://%{name}.github.io/ Source0: https://github.com/%{name}/%{name}/archive/v%{version}.tar.gz +# https://github.com/pdfpc/pdfpc/pull/687 +Patch0: https://patch-diff.githubusercontent.com/raw/pdfpc/pdfpc/pull/687.patch +BuildRequires: git-core + BuildRequires: cmake BuildRequires: gcc BuildRequires: gtk3-devel @@ -18,8 +22,12 @@ BuildRequires: librsvg2-devel BuildRequires: libgee-devel BuildRequires: pango-devel BuildRequires: poppler-glib-devel -BuildRequires: webkit2gtk3-devel -BuildRequires: vala vala-devel +# disable until upstream finishes porting to libsoup3 +# https://github.com/pdfpc/pdfpc/issues/671 +# https://github.com/pdfpc/pdfpc/issues/664 +#BuildRequires: pkgconfig(libsoup3) +#BuildRequires: pkgconfig(webkit2gtk-4.1) +BuildRequires: vala libvala-devel BuildRequires: qrencode-devel %description @@ -33,11 +41,12 @@ documents, which can be created using nearly any of today's presentation software. %prep -%autosetup -n %{name}-%{version} - +%autosetup -n %{name}-%{version} -S git %build -%cmake -DSYSCONFDIR=/etc . +# temporarily disable REST until it is ported to libsoup3 +# disable markdown view until it is ported to webkit2gtk-4.1 +%cmake -DSYSCONFDIR=/etc -DREST=OFF -DMDVIEW=OFF . %cmake_build