Compare commits
No commits in common. "c8-beta" and "c8s" have entirely different histories.
2
.gitignore
vendored
2
.gitignore
vendored
@ -1 +1 @@
|
|||||||
SOURCES/sushi-3.28.3.tar.xz
|
/sushi-3.28.3.tar.xz
|
||||||
|
@ -1 +0,0 @@
|
|||||||
004ed158cc16d2fd0d900de940808d5fa9ba7bb1 SOURCES/sushi-3.28.3.tar.xz
|
|
6
gating.yaml
Normal file
6
gating.yaml
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
--- !Policy
|
||||||
|
product_versions:
|
||||||
|
- rhel-8
|
||||||
|
decision_context: osci_compose_gate
|
||||||
|
rules:
|
||||||
|
- !PassingTestCaseRule {test_case_name: desktop-qe.desktop-ci.tier1-gating.functional}
|
67
optional-webkitgtk.patch
Normal file
67
optional-webkitgtk.patch
Normal file
@ -0,0 +1,67 @@
|
|||||||
|
diff --git a/configure.ac b/configure.ac
|
||||||
|
index 98ce0c2..9d69588 100644
|
||||||
|
--- a/configure.ac
|
||||||
|
+++ b/configure.ac
|
||||||
|
@@ -71,8 +71,7 @@ PKG_CHECK_MODULES(SUSHI,
|
||||||
|
libmusicbrainz5
|
||||||
|
evince-document-3.0
|
||||||
|
evince-view-3.0
|
||||||
|
- gtksourceview-3.0
|
||||||
|
- webkit2gtk-4.0)
|
||||||
|
+ gtksourceview-3.0)
|
||||||
|
|
||||||
|
GLIB_COMPILE_RESOURCES=`$PKG_CONFIG --variable glib_compile_resources gio-2.0`
|
||||||
|
AC_SUBST(GLIB_COMPILE_RESOURCES)
|
||||||
|
diff --git a/src/js/viewers/html.js b/src/js/viewers/html.js
|
||||||
|
index 5135e2b..c7d078f 100644
|
||||||
|
--- a/src/js/viewers/html.js
|
||||||
|
+++ b/src/js/viewers/html.js
|
||||||
|
@@ -28,12 +28,22 @@ const Gtk = imports.gi.Gtk;
|
||||||
|
const GLib = imports.gi.GLib;
|
||||||
|
const Lang = imports.lang;
|
||||||
|
const Sushi = imports.gi.Sushi;
|
||||||
|
-const WebKit = imports.gi.WebKit2;
|
||||||
|
|
||||||
|
const MimeHandler = imports.ui.mimeHandler;
|
||||||
|
const Utils = imports.ui.utils;
|
||||||
|
|
||||||
|
-const HTMLRenderer = new Lang.Class({
|
||||||
|
+var WebKit;
|
||||||
|
+try {
|
||||||
|
+ imports.gi.versions.WebKit2 = '4.0';
|
||||||
|
+ WebKit = imports.gi.WebKit2;
|
||||||
|
+} catch(e) {
|
||||||
|
+}
|
||||||
|
+
|
||||||
|
+function _isAvailable() {
|
||||||
|
+ return WebKit !== undefined;
|
||||||
|
+}
|
||||||
|
+
|
||||||
|
+var HTMLRenderer = _isAvailable() ? new Lang.Class({
|
||||||
|
Name: 'HTMLRenderer',
|
||||||
|
|
||||||
|
_init : function(args) {
|
||||||
|
@@ -89,13 +99,15 @@ const HTMLRenderer = new Lang.Class({
|
||||||
|
|
||||||
|
return this._toolbarActor;
|
||||||
|
}
|
||||||
|
-});
|
||||||
|
+}) : undefined;
|
||||||
|
|
||||||
|
-let handler = new MimeHandler.MimeHandler();
|
||||||
|
-let renderer = new HTMLRenderer();
|
||||||
|
+if (_isAvailable()) {
|
||||||
|
+ let handler = new MimeHandler.MimeHandler();
|
||||||
|
+ let renderer = new HTMLRenderer();
|
||||||
|
|
||||||
|
-let mimeTypes = [
|
||||||
|
- 'text/html'
|
||||||
|
-];
|
||||||
|
+ let mimeTypes = [
|
||||||
|
+ 'text/html'
|
||||||
|
+ ];
|
||||||
|
|
||||||
|
-handler.registerMimeTypes(mimeTypes, renderer);
|
||||||
|
+ handler.registerMimeTypes(mimeTypes, renderer);
|
||||||
|
+}
|
||||||
|
|
1
sources
Normal file
1
sources
Normal file
@ -0,0 +1 @@
|
|||||||
|
SHA512 (sushi-3.28.3.tar.xz) = 2b285285d65e47f5d7b559426783a323ee79748def88448f2920fb612e330a8a9ff7908cda53d7974372d98d179e0efbbbd3d0acd545fad20f678114f53ab446
|
@ -1,12 +1,19 @@
|
|||||||
Name: sushi
|
Name: sushi
|
||||||
Version: 3.28.3
|
Version: 3.28.3
|
||||||
Release: 1%{?dist}
|
Release: 3%{?dist}
|
||||||
Summary: A quick previewer for Nautilus
|
Summary: A quick previewer for Nautilus
|
||||||
|
|
||||||
License: GPLv2+ with exceptions
|
License: GPLv2+ with exceptions
|
||||||
URL: https://wiki.gnome.org/ThreePointOne/Features/FilePreviewing
|
URL: https://wiki.gnome.org/ThreePointOne/Features/FilePreviewing
|
||||||
Source0: https://download.gnome.org/sources/%{name}/3.28/%{name}-%{version}.tar.xz
|
Source0: https://download.gnome.org/sources/%{name}/3.28/%{name}-%{version}.tar.xz
|
||||||
|
|
||||||
|
# https://gitlab.gnome.org/GNOME/sushi/-/merge_requests/53
|
||||||
|
Patch0: optional-webkitgtk.patch
|
||||||
|
|
||||||
|
# Build deps for optional-webkitgtk.patch, which modifies configure.ac
|
||||||
|
BuildRequires: autoconf
|
||||||
|
BuildRequires: automake
|
||||||
|
|
||||||
BuildRequires: intltool
|
BuildRequires: intltool
|
||||||
BuildRequires: gjs-devel
|
BuildRequires: gjs-devel
|
||||||
BuildRequires: pkgconfig(clutter-gst-3.0)
|
BuildRequires: pkgconfig(clutter-gst-3.0)
|
||||||
@ -28,7 +35,9 @@ file manager.
|
|||||||
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%autosetup -p1
|
||||||
|
# autoreconf is for optional-webkitgtk.patch
|
||||||
|
autoreconf -fi
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%configure --disable-static
|
%configure --disable-static
|
||||||
@ -52,6 +61,14 @@ find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
|
|||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Apr 15 2024 Michael Catanzaro <mcatanzaro@redhat.com> - 3.28.3-3
|
||||||
|
- Use autosetup so WebKitGTK patch actually gets applied, and rewrite the patch to work
|
||||||
|
Resolves: RHEL-26699
|
||||||
|
|
||||||
|
* Thu Mar 07 2024 Michael Catanzaro <mcatanzaro@redhat.com> - 3.28.3-2
|
||||||
|
- Allow running with WebKitGTK uninstalled
|
||||||
|
Resolves: RHEL-26699
|
||||||
|
|
||||||
* Mon Apr 23 2018 Kalev Lember <klember@redhat.com> - 3.28.3-1
|
* Mon Apr 23 2018 Kalev Lember <klember@redhat.com> - 3.28.3-1
|
||||||
- Update to 3.28.3
|
- Update to 3.28.3
|
||||||
|
|
Loading…
Reference in New Issue
Block a user