pdfchain-vl.spec 3.5 KB

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