epdfview-vl.spec 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171
  1. Name: epdfview
  2. Version: 0.1.8
  3. Release: 8%{?_dist_release}
  4. Summary: Lightweight PDF document viewer
  5. Summary(ja): 軽量な PDF ドキュメントビューア
  6. Group: Applications/Publishing
  7. License: GPLv2+
  8. URL: http://trac.emma-soft.com/epdfview
  9. Source0: http://trac.emma-soft.com/epdfview/chrome/site/releases/%{name}-%{version}.tar.bz2
  10. #Patch0: epdfview-poppler-0.16.patch
  11. #Patch1: epdfview-0.1.7-fix-mouse-scroll.patch
  12. #Patch2: 03_nonexisting-file.patch
  13. Patch0: 02_glib-single-include.patch
  14. Patch1: epdfview-0.1.8-swap-colors-with-poppler-0.18.patch
  15. Patch2: 06_fix-format.patch
  16. Patch3: epdfview-0.1.8-cups-1.6.patch
  17. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  18. BuildRequires: poppler-devel
  19. BuildRequires: gtk2-devel glib2-devel cups-devel
  20. BuildRequires: bison cppunit-devel
  21. BuildRequires: desktop-file-utils
  22. BuildRequires: autoconf automake libtool gettext
  23. %description
  24. ePDFView is a lightweight PDF document viewer using Poppler and GTK+ libraries.
  25. The aim of ePDFView is to make a simple PDF document viewer, in the lines of
  26. Evince but without using the Gnome libraries.
  27. %description -l ja
  28. ePDFView は Poppler と GTK+ ライブラリを用いた軽量な PDF ドキュメントビューアです。
  29. ePDFView の狙いは Evince の流れをくみつつも Gnome ライブラリを使用することなく
  30. シンプルな PDF ドキュメントビューアを作成することにあります。
  31. %prep
  32. %setup -q
  33. %patch0 -p1
  34. %patch1 -p0
  35. %patch2 -p1
  36. %patch3 -p1
  37. %build
  38. # making null ChangeLog to avoid failure at autoreconf
  39. touch ChangeLog
  40. #autoreconf -f -i
  41. %configure
  42. make %{?_smp_mflags}
  43. %install
  44. rm -rf $RPM_BUILD_ROOT
  45. make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p"
  46. desktop-file-install \
  47. --dir=%{buildroot}%{_datadir}/applications \
  48. --vendor=vine \
  49. --delete-original \
  50. --remove-category Office \
  51. --add-category Graphics \
  52. %{buildroot}/%{_datadir}/applications/%{name}.desktop
  53. install -dm 755 %{buildroot}/%{_datadir}/pixmaps
  54. pushd %{buildroot}/%{_datadir}/pixmaps
  55. ln -s ../%{name}/pixmaps/icon_epdfview-48.png .
  56. popd
  57. %find_lang %{name}
  58. %clean
  59. rm -rf $RPM_BUILD_ROOT
  60. %post
  61. update-desktop-database &> /dev/null || :
  62. %postun
  63. update-desktop-database &> /dev/null || :
  64. %files -f %{name}.lang
  65. %defattr(-,root,root,-)
  66. %{_bindir}/%{name}
  67. %doc AUTHORS COPYING README NEWS THANKS
  68. %{_datadir}/applications/*%{name}.desktop
  69. %dir %{_datadir}/%{name}
  70. %{_datadir}/%{name}/pixmaps
  71. %{_datadir}/%{name}/ui
  72. %{_datadir}/pixmaps/icon_epdfview-48.png
  73. %{_mandir}/man1/
  74. %changelog
  75. * Sat Jul 09 2016 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.1.8-8
  76. - rebuilt with new toolchain
  77. * Sun Nov 01 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 0.1.8-7
  78. - rebuild with poppler-0.37.0
  79. * Tue Jul 08 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 0.1.8-6
  80. - rebuild with poppler-0.26.2
  81. * Sat May 03 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 0.1.8-5
  82. - rebuild with poppler-0.24.5
  83. * Sat Mar 15 2014 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.1.8-4
  84. - added Patch2 from Debian sid to fix message format
  85. - added Patch3 to fix build error against cups
  86. (it is from https://github.com/Barthalion/aports/blob/master/main/epdfview/epdfview-0.1.8-cups-1.6.patch)
  87. * Sat Oct 26 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 0.1.8-3
  88. - rebuild with poppler-0.24.2
  89. * Thu May 03 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.1.8-2
  90. - rebuilt with poppler-0.18.4
  91. - added Patch0 from Debian sid to fix build error
  92. - added Patch1 from Fedora rawhide to fix color channel
  93. * Sun May 29 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.1.8-1
  94. - new upstream release
  95. - dropt all patches
  96. * Sun Apr 03 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 0.1.7-6
  97. - rebuild with krb5-libs-1.8.2
  98. * Sat Mar 12 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 0.1.7-5
  99. - rebuilt with poppler-0.16.3
  100. - added Patch0
  101. * Wed Oct 06 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 0.1.7-4
  102. - rebuild with poppler-0.14.2
  103. * Sat Sep 19 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.1.7-3
  104. - added Patch2 from Debian
  105. - added BuildRequires: bison, cppunit-devel
  106. * Thu Sep 3 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.1.7-2
  107. - added Patch1 from Mandriva to fix mouse scroll
  108. * Sat Aug 22 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.1.7-1
  109. - initial build for Vine 5
  110. * Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.7-2
  111. - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
  112. * Thu Mar 26 2009 Michal Schmidt <mschmidt@redhat.com> - 0.1.7-1
  113. - Upstream release 0.1.7.
  114. * Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.6-8.20081217svn
  115. - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
  116. * Wed Dec 17 2008 Michal Schmidt <mschmidt@redhat.com> - 0.1.6-7.20081217svn
  117. - Add icon.
  118. * Wed Dec 17 2008 Michal Schmidt <mschmidt@redhat.com> - 0.1.6-6.20081217svn
  119. - Rebased to current svn snapshot.
  120. - Fixes bz476575 "epdfview crashes on print pdf".
  121. * Fri Nov 28 2008 Caolán McNamara <caolanm@redhat.com> - 0.1.6-5
  122. - rebuild for dependencies
  123. * Sun Aug 31 2008 Michal Schmidt <mschmidt@redhat.com> - 0.1.6-4
  124. - Fix build with the new RPM.
  125. * Fri Mar 21 2008 Michal Schmidt <mschmidt@redhat.com> - 0.1.6-3
  126. - Rebuild with new poppler.
  127. * Fri Feb 15 2008 Michal Schmidt <mschmidt@redhat.com> - 0.1.6-2
  128. - Use standard scriptlets for updating desktop-database.
  129. - Conditional buildreqs to build on F8 too.
  130. - Preserve timestamps of unmodified files.
  131. * Wed Feb 13 2008 Michal Schmidt <mschmidt@redhat.com> - 0.1.6-1
  132. - Initial Fedora package.