diff --git a/foliate-WebKit-version.patch b/foliate-WebKit-version.patch new file mode 100644 index 0000000..f4d9583 --- /dev/null +++ b/foliate-WebKit-version.patch @@ -0,0 +1,14 @@ +diff --git a/src/main.js b/src/main.js +index 8725301..a608f75 100644 +--- a/src/main.js ++++ b/src/main.js +@@ -17,7 +17,8 @@ pkg.initGettext() + pkg.initFormat() + pkg.require({ + 'Gio': '2.0', +- 'Gtk': '3.0' ++ 'Gtk': '3.0', ++ 'WebKit2': '4.0' + }) + + const { Gio, Gtk, Gdk, GLib, WebKit2 } = imports.gi diff --git a/foliate.changes b/foliate.changes index a3b4850..ef9db8f 100644 --- a/foliate.changes +++ b/foliate.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Fri Nov 12 13:38:40 UTC 2021 - Dominique Leuenberger + +- Add foliate-WebKit-version.patch: Fix launch if WebKit2-5.0 + happens to be installed (boo#1192627). + ------------------------------------------------------------------- Thu Oct 14 19:37:51 UTC 2021 - Bjørn Lie diff --git a/foliate.spec b/foliate.spec index 1823ca2..31f9c57 100644 --- a/foliate.spec +++ b/foliate.spec @@ -26,6 +26,8 @@ License: GPL-3.0-only Group: Productivity/Office/Other URL: https://johnfactotum.github.io/foliate/ Source: %{name}-%{version}.tar.gz +# PATCH-FIX-UPSTREAM foliate-WebKit-version.patch boo#1192627 dimstar@opensuse.org -- Fix launch in case WebKit2-5.0 happens to be installed +Patch0: foliate-WebKit-version.patch BuildRequires: fdupes BuildRequires: gcc-c++