pdfchain-vl.spec 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. Name: pdfchain
  2. Version: 0.123
  3. Release: 1%{?_dist_release}
  4. Summary: A GUI for pdftk
  5. Summary(ja): pdftk のグラフィカルユーザーインターフェイス
  6. Group: Applications/Productivity
  7. License: GPLv3
  8. URL: http://sourceforge.net/projects/pdfchain
  9. Source0: http://downloads.sourceforge.net/pdfchain/%{name}-%{version}.tar.gz
  10. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  11. # Patch to make desktop file conform to standards
  12. Patch0: pdfchain-desktop.patch
  13. # Pacth from Debian
  14. Patch1: fix_build_system
  15. Patch2: do_not_restrict_to_ascii
  16. BuildRequires: desktop-file-utils
  17. BuildRequires: gettext
  18. BuildRequires: glibmm-devel
  19. BuildRequires: gtkmm2-devel
  20. BuildRequires: intltool
  21. BuildRequires: perl-XML-Parser
  22. # For dir ownership
  23. Requires: hicolor-icon-theme
  24. Requires: pdftk
  25. Requires(post): desktop-file-utils
  26. Requires(postun): desktop-file-utils
  27. %description
  28. PDF Chain is a GUI for pdftk written with gtkmm. You can merge some pdf files
  29. to one pdf file or split. There are also some options and tools.
  30. %description -l ja
  31. PDF Chain は gtkmm で書かれた pdftk のグラフィカルユーザーインターフェイスです。
  32. 複数の pdf ファイルを一つのファイルにマージしたり、分割したりすることができます。
  33. また、幾つかのオプションとツールがあります。
  34. %prep
  35. %setup -q
  36. %patch0 -p1
  37. %patch1 -p1
  38. %patch2 -p1
  39. # Stop if files acquire content
  40. [ -s NEWS ] && exit 1
  41. [ -s README ] && exit 1
  42. %build
  43. %configure
  44. make %{?_smp_mflags}
  45. %install
  46. rm -rf %{buildroot}
  47. make install DESTDIR=%{buildroot}
  48. # Remove doc dir
  49. rm -rf %{buildroot}%{_prefix}/doc/pdfchain
  50. # Validate desktop file
  51. desktop-file-validate %{buildroot}%{_datadir}/applications/%{name}.desktop
  52. %post
  53. # Update mime types
  54. update-desktop-database &> /dev/null || :
  55. # Update icon cache
  56. touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
  57. %postun
  58. # Update mime types
  59. update-desktop-database &> /dev/null || :
  60. # Update icon cache
  61. if [ $1 -eq 0 ] ; then
  62. touch --no-create %{_datadir}/icons/hicolor &>/dev/null
  63. gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
  64. fi
  65. %posttrans
  66. # Update icon cache
  67. gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
  68. %clean
  69. rm -rf %{buildroot}
  70. %files
  71. %defattr(-,root,root,-)
  72. %doc AUTHORS ChangeLog COPYING
  73. %{_bindir}/%{name}
  74. %{_datadir}/applications/%{name}.desktop
  75. %{_datadir}/icons/hicolor/*/apps/%{name}.png
  76. %{_datadir}/pixmaps/%{name}.png
  77. %changelog
  78. * Sat Sep 18 2010 Toshiahru Kudoh <toshi.kd2@gmail.com> - 0.123-1
  79. - initial build for VineSeed
  80. * Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.123-2
  81. - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
  82. * Thu Jul 16 2009 Jussi Lehtola <jussilehtola@fedoraproject.org> - 0.123-1
  83. - Update to 0.123.
  84. * Wed May 27 2009 Jussi Lehtola <jussilehtola@fedoraproject.org> - 0.99-3
  85. - Added missing BR: desktop-file-utils.
  86. - Set license as GPLv3 for now.
  87. * Wed May 27 2009 Jussi Lehtola <jussilehtola@fedoraproject.org> - 0.99-2
  88. - Clean up spec file for inclusion into Fedora.
  89. * Wed May 6 2009 Leigh Scott <leigh123linux@googlemail.com> - 0.99-1
  90. - Initial build