Name: apvlv Version: 0.0.9.8 Release: 1%{?dist} Summary: PDF viewer which behaves like Vim Group: Applications/Publishing License: GPLv2+ URL: http://code.google.com/p/apvlv/ Source0: http://%{name}.googlecode.com/files/%{name}-%{version}.tar.gz Source1: %{name}.desktop Patch0: apvlv-poppler015.patch BuildRequires: gtk2-devel poppler-glib-devel # Build-time optional support for DjVu BuildRequires: djvulibre-devel BuildRequires: desktop-file-utils %description apvlv is a GTK2 PDF and DjVu viewer with a vim look-and-feel. It can also browse through directories of such documents. %prep %setup -q chmod -x src/* %if 0%{?fedora} >= 15 %patch0 %endif %build # Specific options are used for the doc and man paths. # Most of the "doc" can be considered application data, # except for the example configuration file removed below. %configure --with-mandir=%{_mandir} --with-docdir=%{_datadir}/%{name} make %{?_smp_mflags} %install rm -rf $RPM_BUILD_ROOT make install DESTDIR=$RPM_BUILD_ROOT desktop-file-install --dir=${RPM_BUILD_ROOT}%{_datadir}/applications \ %{SOURCE1} rm $RPM_BUILD_ROOT/%{_datadir}/%{name}/%{name}rc.example %files %defattr(-,root,root,-) %{_bindir}/%{name} %config(noreplace) %{_sysconfdir}/%{name}rc %{_mandir}/man1/* %{_datadir}/%{name}/* %{_datadir}/applications/%{name}.desktop %doc README %doc TODO NEWS %doc AUTHORS THANKS %doc %{name}rc.example %changelog * Fri Oct 29 2010 Pierre Carrier 0.0.9.8-1 - Initial packaging