Compare commits
10 Commits
a975f1c757
...
2bb97dd227
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
2bb97dd227 | ||
|
|
8cfabd74df | ||
|
|
7554dea0ba | ||
|
|
e5864fbe1f | ||
|
|
1198ea5a34 | ||
|
|
7633cd96cd | ||
|
|
b0f2179625 | ||
|
|
789c6c2880 | ||
|
|
78e17fadbe | ||
|
|
856a9ffc79 |
35
0001-Evince-Don-t-use-GFile-for-file-paths.patch
Normal file
35
0001-Evince-Don-t-use-GFile-for-file-paths.patch
Normal file
@ -0,0 +1,35 @@
|
|||||||
|
From 3f50da04fe4f224f28c3146b3ecb512fef58449f Mon Sep 17 00:00:00 2001
|
||||||
|
From: "FeRD (Frank Dana)" <ferdnyc@gmail.com>
|
||||||
|
Date: Thu, 8 Dec 2022 11:52:57 -0500
|
||||||
|
Subject: [PATCH] Evince: Don't use GFile for file:/// paths.
|
||||||
|
|
||||||
|
Signed-off-by: FeRD (Frank Dana) <ferdnyc@gmail.com>
|
||||||
|
|
||||||
|
Evince: Use file.has_uri_scheme()
|
||||||
|
---
|
||||||
|
src/viewers/evince.js | 9 ++++++++-
|
||||||
|
1 file changed, 8 insertions(+), 1 deletion(-)
|
||||||
|
|
||||||
|
diff --git a/src/viewers/evince.js b/src/viewers/evince.js
|
||||||
|
index 4257870..79ad339 100644
|
||||||
|
--- a/src/viewers/evince.js
|
||||||
|
+++ b/src/viewers/evince.js
|
||||||
|
@@ -79,7 +79,14 @@ var Klass = GObject.registerClass({
|
||||||
|
}
|
||||||
|
|
||||||
|
_loadFile(file) {
|
||||||
|
- let job = EvinceView.JobLoadGFile.new(file, EvinceDocument.DocumentLoadFlags.NONE);
|
||||||
|
+ let job;
|
||||||
|
+ if (file.has_uri_scheme("file")) {
|
||||||
|
+ job = EvinceView.JobLoad.new(file.get_uri());
|
||||||
|
+ } else {
|
||||||
|
+ job = EvinceView.JobLoadGFile.new(
|
||||||
|
+ file, EvinceDocument.DocumentLoadFlags.NONE);
|
||||||
|
+ }
|
||||||
|
+
|
||||||
|
job.connect('finished', this._onLoadJobFinished.bind(this));
|
||||||
|
job.scheduler_push_job(EvinceView.JobPriority.PRIORITY_NONE);
|
||||||
|
}
|
||||||
|
--
|
||||||
|
2.38.1
|
||||||
|
|
||||||
BIN
sushi-43.0.tar.xz
Normal file
BIN
sushi-43.0.tar.xz
Normal file
Binary file not shown.
62
sushi.spec
Normal file
62
sushi.spec
Normal file
@ -0,0 +1,62 @@
|
|||||||
|
%global __provides_exclude_from ^%{_libdir}/%{name}/.*\\.so.*$
|
||||||
|
|
||||||
|
Name: sushi
|
||||||
|
Version: 43.0
|
||||||
|
Release: 1
|
||||||
|
Summary: Quick Previewer for Nautilus
|
||||||
|
License: GPLv2+
|
||||||
|
URL: https://gitlab.gnome.org/GNOME/sushi
|
||||||
|
Source0: https://download.gnome.org/sources/%{name}/43/%{name}-%{version}.tar.xz
|
||||||
|
# Submitted upstream: https://gitlab.gnome.org/GNOME/sushi/-/merge_requests/39
|
||||||
|
Patch0: 0001-Evince-Don-t-use-GFile-for-file-paths.patch
|
||||||
|
|
||||||
|
BuildRequires: gjs-devel gettext meson
|
||||||
|
BuildRequires: pkgconfig(evince-document-3.0) pkgconfig(gobject-2.0) pkgconfig(gtk+-3.0)
|
||||||
|
BuildRequires: pkgconfig(gtksourceview-4) pkgconfig(webkit2gtk-4.1)
|
||||||
|
BuildRequires: pkgconfig(gstreamer-audio-1.0)
|
||||||
|
|
||||||
|
Obsoletes: sushi-devel < 0.5.1
|
||||||
|
Requires: gtksourceview4
|
||||||
|
|
||||||
|
%description
|
||||||
|
Sushi is a quick previewer for Nautilus, the GNOME desktop file manager.
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%autosetup -n %{name}-%{version} -p1
|
||||||
|
|
||||||
|
%build
|
||||||
|
%meson
|
||||||
|
%meson_build
|
||||||
|
|
||||||
|
%install
|
||||||
|
%meson_install
|
||||||
|
%delete_la
|
||||||
|
%find_lang %{name}
|
||||||
|
|
||||||
|
%files -f %{name}.lang
|
||||||
|
%doc README AUTHORS NEWS TODO
|
||||||
|
%license COPYING
|
||||||
|
%{_bindir}/sushi
|
||||||
|
%{_libexecdir}/*
|
||||||
|
%{_libdir}/sushi/
|
||||||
|
%{_datadir}/dbus-1/services/org.gnome.NautilusPreviewer.service
|
||||||
|
%{_datadir}/metainfo/org.gnome.NautilusPreviewer.appdata.xml
|
||||||
|
%{_datadir}/sushi/
|
||||||
|
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Mon Jan 2 2023 lin.zhang <lin.zhang@turbolinux.com.cn> - 43.0-1
|
||||||
|
- Upgrade to 43.0
|
||||||
|
|
||||||
|
* Mon Jun 6 2022 lin.zhang <lin.zhang@turbolinux.com.cn> - 41.2-1
|
||||||
|
- Upgrade to 41.2
|
||||||
|
|
||||||
|
* Thu Apr 21 2022 dillon chen <dillon.chen@gmail.com> - 41.1-1
|
||||||
|
- Update to 41.1
|
||||||
|
|
||||||
|
* Tue Jun 22 2021 weijin deng <weijin.deng@turbolinux.com.cn> - 3.38.0-1
|
||||||
|
- Upgrade to 3.38.0
|
||||||
|
- Use meson rebuild
|
||||||
|
|
||||||
|
* Tue Dec 10 2019 wangzhishun <wangzhishun1@huawei.com> - 3.30.0-2
|
||||||
|
- Package init
|
||||||
4
sushi.yaml
Normal file
4
sushi.yaml
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
version_control: gitlab.gnome
|
||||||
|
src_repo: sushi
|
||||||
|
tag_prefix: ^v
|
||||||
|
separator: .
|
||||||
Loading…
x
Reference in New Issue
Block a user