From bca6820f136b06c48c7fed99023f6f1dec902b1c Mon Sep 17 00:00:00 2001 From: Felipe Borges Date: Tue, 10 Nov 2020 13:23:27 +0100 Subject: [PATCH] Split evince-thumbnailer into its own package This allows us to have thumbnails without having to install Evince. This is useful in Silverblue, where we install Evince through Flatpak. See https://github.com/fedora-silverblue/issue-tracker/issues/98 --- evince.spec | 22 +++++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-) diff --git a/evince.spec b/evince.spec index f1ceafb..c0057ca 100644 --- a/evince.spec +++ b/evince.spec @@ -6,7 +6,7 @@ Name: evince Version: 3.38.0 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Document viewer License: GPLv2+ and GPLv3+ and LGPLv2+ and MIT and Afmparse @@ -51,6 +51,7 @@ BuildRequires: djvulibre-devel BuildRequires: pkgconfig(libgxps) >= %{gxps_version} Requires: %{name}-libs%{?_isa} = %{version}-%{release} +Requires: %{name}-thumbnailer%{?_isa} = %{version}-%{release} Requires: glib2%{?_isa} >= %{glib2_version} Requires: gtk3%{?_isa} >= %{gtk3_version} @@ -116,6 +117,13 @@ This package contains the evince extension for the nautilus file manager. It adds an additional tab called "Document" to the file properties dialog. %endif +%package thumbnailer +Summary: Evince thumbnailer +Requires: %{name}-libs%{?_isa} = %{version}-%{release} + +%description thumbnailer +This package brings the Evince thumbnailer independently from Evince. + %prep %autosetup -p1 @@ -158,7 +166,8 @@ desktop-file-validate $RPM_BUILD_ROOT%{_datadir}/applications/org.gnome.Evince-p %ldconfig_scriptlets libs %files -f evince.lang -%{_bindir}/* +%{_bindir}/evince +%{_bindir}/evince-previewer %{_datadir}/%{name}/ %{_datadir}/applications/org.gnome.Evince.desktop %{_datadir}/applications/org.gnome.Evince-previewer.desktop @@ -170,7 +179,6 @@ desktop-file-validate $RPM_BUILD_ROOT%{_datadir}/applications/org.gnome.Evince-p %{_datadir}/glib-2.0/schemas/org.gnome.Evince.gschema.xml %{_datadir}/GConf/gsettings/evince.convert %{_datadir}/metainfo/org.gnome.Evince.appdata.xml -%{_datadir}/thumbnailers/evince.thumbnailer %if ! 0%{?flatpak} %{_userunitdir}/org.gnome.Evince.service %endif @@ -240,7 +248,15 @@ desktop-file-validate $RPM_BUILD_ROOT%{_datadir}/applications/org.gnome.Evince-p %{_libdir}/nautilus/extensions-3.0/libevince-properties-page.so %endif +%files thumbnailer +%{_bindir}/evince-thumbnailer +%{_datadir}/thumbnailers/evince.thumbnailer + %changelog +* Tue Nov 10 2020 Felipe Borges - 3.38.0-2 +- Split evince-thumbnailer into its own package +- See https://github.com/fedora-silverblue/issue-tracker/issues/98 + * Sat Sep 12 2020 Kalev Lember - 3.38.0-1 - Update to 3.38.0