[zathura/f18] Backport changes from master(f20): * display a warning when no plugin is available for a particular

François Cami fcami at fedoraproject.org
Thu May 30 12:22:57 UTC 2013


commit ff2cc4c4a8656de669a9317de96da5744730ad31
Author: François Cami <fcami at fedoraproject.org>
Date:   Thu May 30 14:21:24 2013 +0200

    Backport changes from master(f20):
    * display a warning when no plugin is available for a particular file type:
    - backport cdece5922982b06e1a86dfb7dfc8cf3d225f06f0
    - backport cf96d52790bc8d05a9e556e33af0b6fec1a4cb0e
    * rewrite summary.
    * add a zathura-plugins-all subpackage.
    * use more macros.

 zathura.spec |   52 ++++++++++++++++++++++++++++++++++++++--------------
 1 files changed, 38 insertions(+), 14 deletions(-)
---
diff --git a/zathura.spec b/zathura.spec
index 0b7f274..d3420af 100644
--- a/zathura.spec
+++ b/zathura.spec
@@ -1,12 +1,13 @@
 
 Name:           zathura
 Version:        0.2.2
-Release:        1%{?dist}
-Summary:        A lightweight PDF viewer
+Release:        2%{?dist}
+Summary:        A lightweight document viewer
 Group:          Applications/Publishing
 License:        zlib
-URL:            http://pwmt.org/projects/zathura/
-Source0:        http://pwmt.org/projects/zathura/download/%{name}-%{version}.tar.gz
+URL:            http://pwmt.org/projects/%{name}/
+Source0:        http://pwmt.org/projects/%{name}/download/%{name}-%{version}.tar.gz
+Patch0:         zathura-0.2.2-missing-or-unknown-file-type.patch
 
 BuildRequires:  gdk-pixbuf2-devel, gtk2-devel, poppler-glib-devel, cairo-devel, glib2-devel 
 BuildRequires:  girara-devel
@@ -14,29 +15,46 @@ BuildRequires:  gettext
 BuildRequires:  desktop-file-utils
 BuildRequires:  python-docutils
 
-
 %description
-Zathura is a highly configurable and functional PDF viewer based on the Poppler
-rendering library and the GTK+ toolkit. The idea behind zathura is an
-application that provides a minimalist and space saving interface as well as
+Zathura is a highly customizable and functional document viewer.
+It provides a minimalistic and space saving interface as well as
 an easy usage that mainly focuses on keyboard interaction.
 
+Zathura requires plugins to support document formats.
+For instance:
+* zathura-pdf-poppler to open PDF files,
+* zathura-ps to open PostScript files,
+* zathura-djvu to open DjVu files.
+All of these are available as separate packages in Fedora.
+A zathura-plugins-all package is available should you want
+to install all available plugins.
+
 %package devel
 Summary: Development files for the zathura PDF viewer
 Group: Development/Libraries
-Requires: %{name} = %{version}-%{release}
+Requires: %{name}%{?_isa} = %{version}-%{release}
 Requires: pkgconfig
 
 %description devel
 libraries and header files for the zathura PDF viewer.
 
+%package plugins-all
+Summary:        Zathura plugins (all plugins)
+Group:          Applications/Publishing
+Requires:       zathura-djvu
+Requires:       zathura-pdf-poppler
+Requires:       zathura-ps
+
+%description plugins-all
+This package provides all Zathura plugins.
+
 %prep
 %setup -q
-# don't rebuid at install time
+# don't rebuild at install time
 sed -ie "s/install:\ all/install:\ /g" Makefile
 # ensure manpages are built from *.rst sources
 rm -f zathura.1 zathurarc.5
-
+%patch0 -p1 -b .unknown~ 
 
 %build
 export CFLAGS="%{optflags}"
@@ -58,24 +76,30 @@ desktop-file-validate %{buildroot}/%{_datadir}/applications/%{name}.desktop
 /sbin/ldconfig
 update-desktop-database &> /dev/null || :
 
-
 %postun
 /sbin/ldconfig
 update-desktop-database &> /dev/null || :
 
 %files -f zathura.lang
-%defattr(-,root,root,-)
 %doc LICENSE README
 %{_bindir}/*
 %{_mandir}/man*/*
 %{_datadir}/applications/*
 
 %files devel
-%defattr(-,root,root,-)
 %{_includedir}/zathura
 %{_libdir}/pkgconfig/zathura.pc
 
+%files plugins-all
+
 %changelog
+* Thu May 30 2013 François Cami <fcami at fedoraproject.org> - 0.2.2-2
+- backport cdece5922982b06e1a86dfb7dfc8cf3d225f06f0
+- backport cf96d52790bc8d05a9e556e33af0b6fec1a4cb0e
+- rewrite summary.
+- add a zathura-plugins-all subpackage.
+- use more macros.
+
 * Fri Feb 22 2013 Kevin Fenzi <kevin at scrye.com> 0.2.2-1
 - Update to 0.2.2
 


More information about the scm-commits mailing list