Name: zathura Version: 0.0.8.2 Release: 2%{?dist} Summary: A lightweight PDF viewer Group: Applications/Publishing License: zlib URL: http://zathura.pwmt.org/projects/zathura Source0: http://zathura.pwmt.org/attachments/download/31/%{name}-%{version}.tar.gz Patch0: zathura-add-desktop-file.patch Patch1: zathura-0.0.8.1-poppler-0.15-fix.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: gdk-pixbuf-devel, gtk2-devel, poppler-glib-devel, cairo-devel, glib2-devel BuildRequires: desktop-file-utils %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 an easy usage that mainly focuses on keyboard interaction. %prep %setup -q %patch0 -p1 -b .desktopfile %patch1 -p1 -b .poppler15 # don't rebuid at install time sed -ie "s/install:\ all/install:\ /g" Makefile %build export CFLAGS="%{optflags}" make debug mv zathura-debug zathura %install rm -rf %{buildroot} make DESTDIR=%{buildroot} install mkdir -p %{buildroot}%{_datadir}/applications install -m 644 zathura.desktop %{buildroot}%{_datadir}/applications/ desktop-file-validate %{buildroot}/%{_datadir}/applications/%{name}.desktop %clean rm -rf %{buildroot} %files %defattr(-,root,root,-) %doc LICENSE README %{_bindir}/* %{_mandir}/man*/* %{_datadir}/applications/* %changelog * Wed Dec 15 2010 Rex Dieter - 0.0.8.2-2 - rebuild (poppler) * Wed Dec 01 2010 François Cami - 0.0.8.2-1 - new upstream version + drop merged patch (dso build fix) * Sat Nov 06 2010 Rex Dieter - 0.0.8.1-8 - rebuilt (poppler) * Wed Oct 6 2010 Tom "spot" Callaway - 0.0.8.1-7 - rebuild and fix for new poppler * Fri Aug 20 2010 Rex Dieter - 0.0.8.1-6 - rebuild (poppler) * Sun Aug 15 2010 François Cami 0.0.8.1-5 - switch to sed (Kevin Fenzi). - use desktop-file-validate on the desktop file (Kevin Fenzi). * Sun Aug 15 2010 François Cami 0.0.8.1-4 - change zathura.desktop Version to 1.0. * Sat Aug 14 2010 François Cami 0.0.8.1-3 - add CFLAGS (Kevin Fenzi). - use the debug target to generate the debuginfo rpm properly. - add zathura.desktop file and install it. * Sat Aug 14 2010 François Cami 0.0.8.1-2 - fix licensing, thanks to Dennis Johnson's review. * Tue Aug 10 2010 François Cami 0.0.8.1-1 - initial package.