6d6a925
Name:           apvlv
2316191
Version:        0.1.5
9d1dd95
Release:        7%{?dist}
6d6a925
Summary:        PDF viewer which behaves like Vim
6d6a925
6d6a925
License:        GPLv2+
6d6a925
URL:            http://naihe2010.github.com/apvlv/
2316191
Source0:        https://github.com/downloads/naihe2010/apvlv/apvlv-%{version}.tar.gz
6d6a925
Source1:        %{name}.desktop
2316191
Patch0:         apvlv-0.1.5-cflags.patch
2316191
Patch1:         apvlv-0.1.5-gcc6.patch
2316191
Patch2:         apvlv-0.1.5-gcc7.patch
b3ef658
Patch3:         fix-build-with-poppler-0.73.0.patch
6d6a925
Igor Gnatenko 4b3e919
BuildRequires:  gcc
Igor Gnatenko 4b3e919
BuildRequires:  gcc-c++
6d6a925
BuildRequires:  cmake
2316191
BuildRequires:  gtk3-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
2316191
%autosetup -p 1
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
2316191
%make_build
Pierre Carrier 8edd518
Pierre Carrier 8edd518
%install
2316191
%make_install
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
%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
9d1dd95
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.5-7
9d1dd95
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
9d1dd95
1dd5f34
* Fri Jan 17 2020 Marek Kasik <mkasik@redhat.com> - 0.1.5-6
1dd5f34
- Rebuild for poppler-0.84.0
1dd5f34
5d6a7d9
* Wed Jul 24 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.5-5
5d6a7d9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
5d6a7d9
b3ef658
* Wed Apr 17 2019 Filipe Rosset <rosset.filipe@gmail.com> - 0.1.5-4
b3ef658
- Fix FTBFS rhbz #1674653
b3ef658
04eed10
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.5-3
04eed10
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
04eed10
e3095da
* Thu Jul 12 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.5-2
e3095da
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
e3095da
2316191
* Wed Apr 25 2018 Filipe Rosset <rosset.filipe@gmail.com> - 0.1.5-1
2316191
- update to latest upstream version 0.1.5
2316191
- spec cleanup and modernization
2316191
405394d
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.4-15
405394d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
405394d
c8231e9
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.4-14
c8231e9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
c8231e9
bcbe57f
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.4-13
bcbe57f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
bcbe57f
a7072c0
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.4-12
a7072c0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
a7072c0
33145c0
* Wed Mar 16 2016 Yaakov Selkowitz <yselkowi@redhat.com> - 0.1.4-11
33145c0
- Fix FTBFS with GCC 6 (#1307321)
33145c0
5d7ce72
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.4-10
5d7ce72
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
5d7ce72
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