From c0c516bba9f91d1e1428fead5fa56e5a81fcde05 Mon Sep 17 00:00:00 2001 From: Felipe Borges Date: Tue, 4 May 2021 14:35:11 +0200 Subject: [PATCH] Split evince-previewer into its own package evince-previewer is used by the GTK printing dialog to preview documents before printing. When Evince is distributed as a Flatpak (for example in Silverblue), GTK can't find the previewer at %{_bindir}/evince-previewer See https://github.com/fedora-silverblue/issue-tracker/issues/122 --- evince.spec | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/evince.spec b/evince.spec index 8affd1d..64107d2 100644 --- a/evince.spec +++ b/evince.spec @@ -4,7 +4,7 @@ Name: evince Version: 40.1 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Document viewer License: GPLv2+ and GPLv3+ and LGPLv2+ and MIT and Afmparse @@ -51,6 +51,7 @@ BuildRequires: pkgconfig(libgxps) Requires: %{name}-libs%{?_isa} = %{version}-%{release} Requires: %{name}-thumbnailer%{?_isa} = %{version}-%{release} +Requires: %{name}-previewer%{?_isa} = %{version}-%{release} %description Evince is simple multi-page document viewer. It can display and print @@ -118,6 +119,14 @@ Requires: %{name}-libs%{?_isa} = %{version}-%{release} %description thumbnailer This package brings the Evince thumbnailer independently from Evince. +%package previewer +Summary: Evince previewer +Requires: %{name}-libs%{?_isa} = %{version}-%{release} + +%description previewer +This package brings the Evince previewer independently from Evince. +It provides the printing preview for the GTK printing dialog. + %prep %autosetup -p1 @@ -246,7 +255,15 @@ desktop-file-validate $RPM_BUILD_ROOT%{_datadir}/applications/org.gnome.Evince-p %{_datadir}/thumbnailers/evince.thumbnailer %{_mandir}/man1/evince-thumbnailer.1* +%files previewer +%{_bindir}/evince-previewer +%{_mandir}/man1/evince-previewer.1* + %changelog +* Tue May 04 2021 Felipe Borges - 40.1-2 +- Split evince-previewer into its own package +- See https://github.com/fedora-silverblue/issue-tracker/issues/122 + * Fri Mar 26 2021 Kalev Lember - 40.1-1 - Update to 40.1 - Remove various minimum version requires