Blob Blame History Raw
Name:		apvlv
Version:	0.0.9.8
Release:	7%{?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
Patch1:		apvlv-poppler017.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/*
%patch0
%patch1

%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
* Mon Oct  3 2011 Marek Kasik <mkasik@redhat.com> - 0.0.9.8-7
- Rebuild (poppler-0.18.0 stable)

* Wed Sep 21 2011 Marek Kasik <mkasik@redhat.com> - 0.0.9.8-6
- Rebuild (poppler-0.17.3)

* Tue Aug 02 2011 Pierre Carrier <pierre@spotify.com> 0.0.9.8-5
- Patch for poppler 0.17+

* Sun Mar 13 2011 Marek Kasik <mkasik@redhat.com> - 0.0.9.8-4
- Rebuild (poppler-0.16.3)

* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.0.9.8-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild

* Mon Jan 03 2011 Rex Dieter <rdieter@fedoraproject.org> - 0.0.9.8-2
- rebuild (poppler)

* Fri Oct 29 2010 Pierre Carrier <prc@redhat.com> 0.0.9.8-1
- Initial packaging