epdfview-vl.spec 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  1. Name: epdfview
  2. Version: 0.1.7
  3. Release: 6%{?_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. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  14. BuildRequires: poppler-devel
  15. BuildRequires: gtk2-devel glib2-devel cups-devel
  16. BuildRequires: bison cppunit-devel
  17. BuildRequires: desktop-file-utils
  18. BuildRequires: autoconf automake libtool gettext
  19. %description
  20. ePDFView is a lightweight PDF document viewer using Poppler and GTK+ libraries.
  21. The aim of ePDFView is to make a simple PDF document viewer, in the lines of
  22. Evince but without using the Gnome libraries.
  23. %description -l ja
  24. ePDFView は Poppler と GTK+ ライブラリを用いた軽量な PDF ドキュメントビューアです。
  25. ePDFView の狙いは Evince の流れをくみつつも Gnome ライブラリを使用することなく
  26. シンプルな PDF ドキュメントビューアを作成することにあります。
  27. %prep
  28. %setup -q
  29. %patch0 -p0
  30. %patch1 -p1
  31. %patch2 -p1
  32. %build
  33. # making null ChangeLog to avoid failure at autoreconf
  34. touch ChangeLog
  35. autoreconf -f -i
  36. %configure
  37. make %{?_smp_mflags}
  38. %install
  39. rm -rf $RPM_BUILD_ROOT
  40. make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p"
  41. desktop-file-install \
  42. --dir=%{buildroot}%{_datadir}/applications \
  43. --vendor=vine \
  44. --delete-original \
  45. --remove-category Office \
  46. --add-category Graphics \
  47. %{buildroot}/%{_datadir}/applications/%{name}.desktop
  48. install -dm 755 %{buildroot}/%{_datadir}/pixmaps
  49. pushd %{buildroot}/%{_datadir}/pixmaps
  50. ln -s ../%{name}/pixmaps/icon_epdfview-48.png .
  51. popd
  52. %find_lang %{name}
  53. %clean
  54. rm -rf $RPM_BUILD_ROOT
  55. %post
  56. update-desktop-database &> /dev/null || :
  57. %postun
  58. update-desktop-database &> /dev/null || :
  59. %files -f %{name}.lang
  60. %defattr(-,root,root,-)
  61. %{_bindir}/%{name}
  62. %doc AUTHORS COPYING README NEWS THANKS
  63. %{_datadir}/applications/*%{name}.desktop
  64. %dir %{_datadir}/%{name}
  65. %{_datadir}/%{name}/pixmaps
  66. %{_datadir}/%{name}/ui
  67. %{_datadir}/pixmaps/icon_epdfview-48.png
  68. %changelog
  69. * Sun Apr 03 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 0.1.7-6
  70. - rebuild with krb5-libs-1.8.2
  71. * Sat Mar 12 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 0.1.7-5
  72. - rebuilt with poppler-0.16.3
  73. - added Patch0
  74. * Wed Oct 06 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 0.1.7-4
  75. - rebuild with poppler-0.14.2
  76. * Sun Sep 19 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.1.7-3
  77. - added Patch2 from Debian
  78. - added BuildRequires: bison, cppunit-devel
  79. * Thu Sep 3 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.1.7-2
  80. - added Patch1 from Mandriva to fix mouse scroll
  81. * Sat Aug 22 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.1.7-1
  82. - initial build for Vine 5
  83. * Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.7-2
  84. - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
  85. * Thu Mar 26 2009 Michal Schmidt <mschmidt@redhat.com> - 0.1.7-1
  86. - Upstream release 0.1.7.
  87. * Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.6-8.20081217svn
  88. - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
  89. * Wed Dec 17 2008 Michal Schmidt <mschmidt@redhat.com> - 0.1.6-7.20081217svn
  90. - Add icon.
  91. * Wed Dec 17 2008 Michal Schmidt <mschmidt@redhat.com> - 0.1.6-6.20081217svn
  92. - Rebased to current svn snapshot.
  93. - Fixes bz476575 "epdfview crashes on print pdf".
  94. * Fri Nov 28 2008 Caolán McNamara <caolanm@redhat.com> - 0.1.6-5
  95. - rebuild for dependencies
  96. * Fri Aug 31 2008 Michal Schmidt <mschmidt@redhat.com> - 0.1.6-4
  97. - Fix build with the new RPM.
  98. * Fri Mar 21 2008 Michal Schmidt <mschmidt@redhat.com> - 0.1.6-3
  99. - Rebuild with new poppler.
  100. * Fri Feb 15 2008 Michal Schmidt <mschmidt@redhat.com> - 0.1.6-2
  101. - Use standard scriptlets for updating desktop-database.
  102. - Conditional buildreqs to build on F8 too.
  103. - Preserve timestamps of unmodified files.
  104. * Wed Feb 13 2008 Michal Schmidt <mschmidt@redhat.com> - 0.1.6-1
  105. - Initial Fedora package.