6d6a925
Name:           apvlv
6d6a925
Version:        0.1.4
d76f426
Release:        9%{?dist}
6d6a925
Summary:        PDF viewer which behaves like Vim
6d6a925
6d6a925
Group:          Applications/Publishing
6d6a925
License:        GPLv2+
6d6a925
URL:            http://naihe2010.github.com/apvlv/
6d6a925
Source0:        https://github.com/downloads/naihe2010/apvlv/apvlv-%{version}-Source.tar.gz
6d6a925
Source1:        %{name}.desktop
61b2599
# 2012-09-28: Not upstreamable, because it removes support for windows
61b2599
Patch0:         apvlv-0.1.4-Source-rpm-opt-flags.patch
6d6a925
6d6a925
BuildRequires:  cmake
6d6a925
BuildRequires:  gtk2-devel poppler-glib-devel
Pierre Carrier 8edd518
# Build-time optional support for DjVu
6d6a925
BuildRequires:  djvulibre-devel
6d6a925
BuildRequires:  desktop-file-utils
Pierre Carrier 8edd518
Pierre Carrier 8edd518
%description
Pierre Carrier 8edd518
apvlv is a GTK2 PDF and DjVu viewer with a vim look-and-feel.
Pierre Carrier 8edd518
It can also browse through directories of such documents.
Pierre Carrier 8edd518
Pierre Carrier 8edd518
%prep
6d6a925
%setup -q -n apvlv-%{version}-Source/
61b2599
%patch0 -p1 -b .rpm-opt-flags
Pierre Carrier 8edd518
Pierre Carrier 8edd518
%build
6d6a925
# umd.h is missing to enable the following:
6d6a925
# -DAPVLV_WITH_UMD:BOOL=ON 
6d6a925
# Does not compile with the following option:
6d6a925
# -DAPVLV_WITH_HTML:BOOL=ON 
bf52970
%cmake . -DDOCDIR=%{_pkgdocdir} -DAPVLV_WITH_DJVU:BOOL=ON -DAPVLV_WITH_TXT:BOOL=ON
Pierre Carrier 8edd518
make %{?_smp_mflags}
Pierre Carrier 8edd518
Pierre Carrier 8edd518
%install
Pierre Carrier 8edd518
rm -rf $RPM_BUILD_ROOT
Pierre Carrier 8edd518
make install DESTDIR=$RPM_BUILD_ROOT
Pierre Carrier 8edd518
desktop-file-install --dir=${RPM_BUILD_ROOT}%{_datadir}/applications \
Pierre Carrier 8edd518
    %{SOURCE1}
Pierre Carrier 8edd518
Pierre Carrier 8edd518
%files
Pierre Carrier 8edd518
%defattr(-,root,root,-)
Pierre Carrier 8edd518
%doc README
Pierre Carrier 8edd518
%doc TODO NEWS
Pierre Carrier 8edd518
%doc AUTHORS THANKS
bf52970
%doc %{_pkgdocdir}/*
6d6a925
%{_bindir}/apvlv
6d6a925
%{_datadir}/applications/%{name}.desktop
6d6a925
%{_mandir}/man1/apvlv.1*
6d6a925
%config(noreplace)%{_sysconfdir}/apvlvrc
Pierre Carrier 8edd518
Pierre Carrier 8edd518
%changelog
d76f426
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.4-9
d76f426
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
d76f426
4c196ec
* Sat May 02 2015 Kalev Lember <kalevlember@gmail.com> - 0.1.4-8
4c196ec
- Rebuilt for GCC 5 C++11 ABI change
4c196ec
5b639d8
* Fri Aug 15 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.4-7
5b639d8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
5b639d8
d629227
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.4-6
d629227
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
d629227
bf52970
* Tue Aug 06 2013 Till Maas <opensource@till.name> - 0.1.4-5
bf52970
- Use %%{_pkgdocdir}
bf52970
2606449
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.4-4
2606449
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
2606449
35dea4d
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.4-3
35dea4d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
35dea4d
61b2599
* Fri Sep 28 2012 Till Maas <opensource@till.name> - 0.1.4-2
61b2599
- Build with rpm_opt_flags (fix RH #861445)
61b2599
- cleanup %%prep
61b2599
6d6a925
* Wed Sep 26 2012 Till Maas <opensource@till.name> - 0.1.4-1
6d6a925
- Update to new release
6d6a925
a7cb4a4
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.0.9.8-12
a7cb4a4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
a7cb4a4
4cb9eca
* Wed May 16 2012 Marek Kasik <mkasik@redhat.com> - 0.0.9.8-11
4cb9eca
- Rebuild (poppler-0.20.0)
4cb9eca
ae3d2d3
* Tue Feb 28 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.0.9.8-10
ae3d2d3
- Rebuilt for c++ ABI breakage
ae3d2d3
364d757
* Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.0.9.8-9
364d757
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
364d757
2e501e9
* Fri Oct 28 2011 Rex Dieter <rdieter@fedoraproject.org> - 0.0.9.8-8
2e501e9
- rebuild(poppler)
2e501e9
916d637
* Fri Sep 30 2011 Marek Kasik <mkasik@redhat.com> - 0.0.9.8-7
916d637
- Rebuild (poppler-0.18.0)
916d637
e3945f4
* Mon Sep 19 2011 Marek Kasik <mkasik@redhat.com> - 0.0.9.8-6
e3945f4
- Rebuild (poppler-0.17.3)
e3945f4
Pierre Carrier e570d00
* Tue Aug 02 2011 Pierre Carrier <pierre@spotify.com> 0.0.9.8-5
Pierre Carrier e570d00
- Patch for poppler 0.17+
Pierre Carrier e570d00
Pierre Carrier 8edd518
* Sun Mar 13 2011 Marek Kasik <mkasik@redhat.com> - 0.0.9.8-4
Pierre Carrier 8edd518
- Rebuild (poppler-0.16.3)
Pierre Carrier 8edd518
Pierre Carrier 8edd518
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.0.9.8-3
Pierre Carrier 8edd518
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
Pierre Carrier 8edd518
Pierre Carrier 8edd518
* Mon Jan 03 2011 Rex Dieter <rdieter@fedoraproject.org> - 0.0.9.8-2
Pierre Carrier 8edd518
- rebuild (poppler)
Pierre Carrier 8edd518
Pierre Carrier 8edd518
* Fri Oct 29 2010 Pierre Carrier <prc@redhat.com> 0.0.9.8-1
Pierre Carrier 8edd518
- Initial packaging