Compare commits

..

27 commits

Author SHA1 Message Date
Fedora Release Engineering
41fabe28f2 Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild 2026-07-17 09:25:45 +00:00
Leigh Scott
1ff6cf6129 Drop unused build deps 2026-06-03 12:06:09 +01:00
Leigh Scott
945665be4c Add requires xapp-symbolic-icons 2026-05-19 08:21:22 +01:00
Leigh Scott
06736c7c2d Update to 4.6.4 2026-05-18 23:25:45 +01:00
Fedora Release Engineering
085753f73e Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild 2026-01-17 20:53:05 +00:00
Leigh Scott
e3fd0e9555 Update to 4.6.3 2026-01-09 13:48:32 +00:00
Leigh Scott
b145c302e8 Update to 4.6.1 2025-12-13 12:11:49 +00:00
Leigh Scott
2073d398ca Update to 4.6.0 2025-12-12 07:26:19 +00:00
Leigh Scott
206834b96c
Update to 4.4.0 2025-09-15 07:50:07 +01:00
Fedora Release Engineering
1e3af00371 Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild 2025-07-25 21:03:54 +00:00
Leigh Scott
eedf7b893c
Disable epub support, it's broken 2025-05-26 15:28:36 +01:00
Leigh Scott
a72bc2fa20
Update to 4.2.4 2025-04-14 13:59:02 +01:00
Leigh Scott
42a759638d
Rebuild 2025-03-14 10:17:42 +00:00
Leigh Scott
69146c1611
rebuilt 2025-01-31 13:56:12 +00:00
Leigh Scott
852c223f47
Use -std=gnu17 as texlive-base declarations of strtok and strstr break build 2025-01-24 01:26:52 +00:00
Fedora Release Engineering
2adee8cab5 Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild 2025-01-19 16:16:43 +00:00
Leigh Scott
617e3ec04d
Update to 4.2.3 2024-12-06 13:07:26 +00:00
Leigh Scott
b017447d52
Update to 4.2.2 2024-08-20 17:07:17 +01:00
Miroslav Suchý
00d49e53ee convert GPLv2+ license to SPDX
This is part of https://fedoraproject.org/wiki/Changes/SPDX_Licenses_Phase_4
2024-07-26 04:00:21 +02:00
Fedora Release Engineering
cb6f761234 Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild 2024-07-20 10:26:56 +00:00
Leigh Scott
1051eff916
Update to 4.2.1 2024-06-18 23:27:21 +01:00
Leigh Scott
f59fea5385
Update to 4.2.0 2024-06-05 15:09:46 +01:00
Fedora Release Engineering
b7f1621486 Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild 2024-01-27 10:09:07 +00:00
Leigh Scott
cd4397ca25 Add buildrequires python3-packaging 2024-01-12 22:54:23 +00:00
Leigh Scott
b56453d825 Update to 4.0.2 release 2024-01-04 18:48:08 +00:00
Leigh Scott
b1f206b451 Update to 4.0.1 release 2023-12-31 11:25:37 +00:00
Leigh Scott
5f5028eb87 Update to 4.0.0 release 2023-12-21 15:09:12 +00:00
3 changed files with 85 additions and 79 deletions

View file

@ -1,63 +0,0 @@
From 50052eaa91c3c750c51c245799e3747495feeece Mon Sep 17 00:00:00 2001
From: Victor Kareh <vkareh@redhat.com>
Date: Thu, 14 May 2026 21:56:38 -0400
Subject: [PATCH] ev-application: Quote user-supplied strings in ev_spawn
command line
When spawning a new xreader instance for cross-document links, the
destination and search parameters from the document were interpolated
directly into the command line without shell quoting. Values containing
spaces or special characters could be split into separate arguments by
the shell parser, potentially being interpreted as unintended flags by
the child process.
Apply shell quoting to page label, named destination, and search string
values before appending them to the command line.
---
shell/ev-application.c | 20 +++++++++++++-------
1 file changed, 13 insertions(+), 7 deletions(-)
diff --git a/shell/ev-application.c b/shell/ev-application.c
index a430f9e0..148cfaf8 100644
--- a/shell/ev-application.c
+++ b/shell/ev-application.c
@@ -235,18 +235,22 @@ ev_spawn (const char *uri,
/* Page label or index */
if (dest) {
switch (ev_link_dest_get_dest_type (dest)) {
- case EV_LINK_DEST_TYPE_PAGE_LABEL:
- g_string_append_printf (cmd, " --page-label=%s",
- ev_link_dest_get_page_label (dest));
+ case EV_LINK_DEST_TYPE_PAGE_LABEL: {
+ gchar *quoted = g_shell_quote (ev_link_dest_get_page_label (dest));
+ g_string_append_printf (cmd, " --page-label=%s", quoted);
+ g_free (quoted);
break;
+ }
case EV_LINK_DEST_TYPE_PAGE:
g_string_append_printf (cmd, " --page-index=%d",
ev_link_dest_get_page (dest) + 1);
break;
- case EV_LINK_DEST_TYPE_NAMED:
- g_string_append_printf (cmd, " --named-dest=%s",
- ev_link_dest_get_named_dest (dest));
+ case EV_LINK_DEST_TYPE_NAMED: {
+ gchar *quoted = g_shell_quote (ev_link_dest_get_named_dest (dest));
+ g_string_append_printf (cmd, " --named-dest=%s", quoted);
+ g_free (quoted);
break;
+ }
default:
break;
}
@@ -254,7 +258,9 @@ ev_spawn (const char *uri,
/* Find string */
if (search_string) {
- g_string_append_printf (cmd, " --find=%s", search_string);
+ gchar *quoted = g_shell_quote (search_string);
+ g_string_append_printf (cmd, " --find=%s", quoted);
+ g_free (quoted);
}
/* Mode */

View file

@ -1 +1 @@
SHA512 (xreader-3.8.4.tar.gz) = 21e4427db4b6a87bf1715d1cc6f4c4836ec538d5533f0eda05ac066c40b914f2d3f019d4fc7945222ee2ee8a58755bc9e212a65dad8421fd2b85b06b56e8ea8f
SHA512 (xreader-4.6.4.tar.gz) = 96b0593eb4869552c1df5ef1f545773cc242cfa3835106b5fd692d444c2e9385f0ee9d59f9d91d937c7275aa4967cc39a37d79e8570c264b0425f691c2f028d2

View file

@ -2,22 +2,20 @@
%global __provides_exclude_from ^%{_libdir}/%{name}/.*$
Name: xreader
Version: 3.8.4
Release: 2%{?dist}
Version: 4.6.4
Release: 3%{?dist}
Summary: Simple document viewer
License: GPLv2+
# Automatically converted from old format: GPLv2+ - review is highly recommended.
License: GPL-2.0-or-later
URL: https://github.com/linuxmint/%{name}
Source0: %{url}/archive/%{version}/%{name}-%{version}.tar.gz
Patch0: %{url}/commit/50052eaa91c3c750c51c245799e3747495feeece.patch
ExcludeArch: %{ix86}
BuildRequires: cmake
BuildRequires: gcc-c++
BuildRequires: meson
BuildRequires: mathjax
BuildRequires: gtk-doc
BuildRequires: intltool
BuildRequires: itstool
BuildRequires: libappstream-glib
@ -39,21 +37,18 @@ BuildRequires: pkgconfig(poppler-glib)
BuildRequires: pkgconfig(sm)
BuildRequires: pkgconfig(xapp) >= 1.4.0
BuildRequires: pkgconfig(zlib)
%if 0%{?fedora} || 0%{?rhel} >= 10
BuildRequires: pkgconfig(webkit2gtk-4.1)
%else
BuildRequires: pkgconfig(webkit2gtk-4.0)
%endif
BuildRequires: python3-packaging
BuildRequires: texlive
BuildRequires: t1lib-devel
BuildRequires: yelp-tools
Requires: shared-mime-info%{?_isa}
Requires: gsettings-desktop-schemas%{?_isa}
Requires: xapps%{?_isa}
Requires: xapp-symbolic-icons
Requires: %{name}-libs%{?_isa} = %{version}-%{release}
Recommends: yelp%{?_isa}
Recommends: %{name}-thumbnailer%{?_isa} = %{version}-%{release}
%description
X-Apps Document Reader is a document viewer capable of displaying
@ -101,11 +96,11 @@ This package adds configuration to use %{name} as a thumbnailer.
%autosetup -p1
%build
LDFLAGS+=' -lX11 -lICE -lSM'
%meson \
-Ddeprecated_warnings=false \
-Ddjvu=true \
-Ddvi=true \
-Depub=false \
-Dt1lib=true \
-Dpixbuf=true \
-Dcomics=true \
@ -173,8 +168,82 @@ LDFLAGS+=' -lX11 -lICE -lSM'
%doc %{_datadir}/doc/%{name}*
%changelog
* Tue May 19 2026 Leigh Scott <leigh123linux@gmail.com> - 3.8.4-2
- Add patch
* Fri Jul 17 2026 Fedora Release Engineering <releng@fedoraproject.org> - 4.6.4-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild
* Tue May 19 2026 Leigh Scott <leigh123linux@gmail.com> - 4.6.4-2
- Add requires xapp-symbolic-icons
* Mon May 18 2026 Leigh Scott <leigh123linux@gmail.com> - 4.6.4-1
- Update to 4.6.4
* Sat Jan 17 2026 Fedora Release Engineering <releng@fedoraproject.org> - 4.6.3-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild
* Fri Jan 09 2026 Leigh Scott <leigh123linux@gmail.com> - 4.6.3-1
- Update to 4.6.3
* Sat Dec 13 2025 Leigh Scott <leigh123linux@gmail.com> - 4.6.1-1
- Update to 4.6.1
* Fri Dec 12 2025 Leigh Scott <leigh123linux@gmail.com> - 4.6.0-1
- Update to 4.6.0
* Mon Sep 15 2025 Leigh Scott <leigh123linux@gmail.com> - 4.4.0-1
- Update to 4.4.0
- Add recommends xreader-thumbnailer to main package
* Fri Jul 25 2025 Fedora Release Engineering <releng@fedoraproject.org> - 4.2.6-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild
* Mon May 26 2025 Leigh Scott <leigh123linux@gmail.com> - 4.2.6-1
- Update to 4.2.6
- Disable epub support, it's broken
* Mon Apr 14 2025 Leigh Scott <leigh123linux@gmail.com> - 4.2.4-1
- Update to 4.2.4
* Fri Mar 14 2025 Leigh Scott <leigh123linux@gmail.com> - 4.2.3-4
- rebuilt
* Fri Jan 31 2025 Leigh Scott <leigh123linux@gmail.com> - 4.2.3-3
- rebuilt
* Sun Jan 19 2025 Fedora Release Engineering <releng@fedoraproject.org> - 4.2.3-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild
* Fri Dec 06 2024 Leigh Scott <leigh123linux@gmail.com> - 4.2.3-1
- Update to 4.2.3
* Tue Aug 20 2024 Leigh Scott <leigh123linux@gmail.com> - 4.2.2-1
- Update to 4.2.2
* Fri Jul 26 2024 Miroslav Suchý <msuchy@redhat.com> - 4.2.1-3
- convert license to SPDX
* Sat Jul 20 2024 Fedora Release Engineering <releng@fedoraproject.org> - 4.2.1-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
* Tue Jun 18 2024 Leigh Scott <leigh123linux@gmail.com> - 4.2.1-1
- Update to 4.2.1
* Wed Jun 05 2024 Leigh Scott <leigh123linux@gmail.com> - 4.2.0-1
- Update to 4.2.0
* Sat Jan 27 2024 Fedora Release Engineering <releng@fedoraproject.org> - 4.0.2-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
* Fri Jan 12 2024 Leigh Scott <leigh123linux@gmail.com> - 4.0.2-2
- AAdd buildrequires python3-packaging
* Thu Jan 04 2024 Leigh Scott <leigh123linux@gmail.com> - 4.0.2-1
- Update to 4.0.2 release
* Sun Dec 31 2023 Leigh Scott <leigh123linux@gmail.com> - 4.0.1-1
- Update to 4.0.1 release
* Thu Dec 21 2023 Leigh Scott <leigh123linux@gmail.com> - 4.0.0-1
- Update to 4.0.0 release
* Tue Dec 05 2023 Leigh Scott <leigh123linux@gmail.com> - 3.8.4-1
- Update to 3.8.4 release