shutter-vl.spec 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  1. Summary: Feature-rich screenshot application.
  2. Summary(ja): 機能の豊富なスクリーンショットツール
  3. Name: shutter
  4. Version: 0.86.1
  5. Release: 1%{?_dist_release}
  6. Source0: http://shutter-project.org/wp-content/uploads/releases/tars/%{name}-%{version}.tar.gz
  7. Source1: shutter-0.86.1-ja.po
  8. License: GPL v3
  9. Group: Applications/Graphics
  10. URL: http://shutter-project.org
  11. Requires: gnome-web-photo
  12. Requires: perl-Gtk2
  13. Requires: perl(Gtk2::ImageView)
  14. Requires: perl(X11::Protocol)
  15. Requires: perl(Image::Magick)
  16. Requires(post): desktop-file-utils
  17. Requires(postun):desktop-file-utils
  18. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  19. BuildArch: noarch
  20. Packager: kazutaka
  21. %description
  22. Shutter is a feature-rich screenshot program. You can take a
  23. screenshot of a specific area, window, your whole screen, or
  24. even of a website - apply different effects to it, draw on it
  25. to highlight points, and then upload to an image hosting site,
  26. all within one window.
  27. %description -l ja
  28. Shutter は機能の豊富なスクリーンショットツールです。指定した
  29. 範囲や、ウィンドウ、スクリーン全体だけでなく、ウェブページの
  30. スクリーンショットも撮ることができます。また様々なエフェクト
  31. を適用したり、注釈を書き込んだり、イメージホスティングサイト
  32. にアップロードしたりといったことが、1つのウィンドウの中で実行
  33. できます。
  34. %prep
  35. %setup -q
  36. %build
  37. %install
  38. %{__rm} -rf ${RPM_BUILD_ROOT}
  39. %{__install} -d -m 0755 -p ${RPM_BUILD_ROOT}%{_bindir}
  40. %{__install} -d -m 0755 -p ${RPM_BUILD_ROOT}%{_datadir}
  41. %{__cp} -pfr bin/* ${RPM_BUILD_ROOT}%{_bindir}/
  42. %{__cp} -pfr share/* ${RPM_BUILD_ROOT}%{_datadir}/
  43. # remove unnecessary message catalogue text and docs
  44. %{__rm} -rf ${RPM_BUILD_ROOT}/%{_datadir}/%{name}/resources/po
  45. %{__rm} -rf ${RPM_BUILD_ROOT}/%{_datadir}/doc
  46. # remove a module to drop extra dependencies
  47. %{__rm} -rf ${RPM_BUILD_ROOT}/%{_datadir}/%{name}/resources/modules/Net
  48. # install updated japanese translation
  49. msgfmt %{SOURCE1} -o ${RPM_BUILD_ROOT}/%{_localedir}/ja/LC_MESSAGES/%{name}.mo
  50. # overwrite .desktop
  51. %{__cat} << EOF > ${RPM_BUILD_ROOT}/%{_datadir}/applications/%{name}.desktop
  52. [Desktop Entry]
  53. Version=1.0
  54. Name=Shutter - Screenshot Tool
  55. Name[ja]=Shutter スクリーンショットツール
  56. Comment=Shutter - Screenshot Tool
  57. Comment[ja]=デスクトップやウィンドウ、ウェブページの画像の取得と加工を行います
  58. Exec=shutter
  59. Icon=shutter
  60. Terminal=false
  61. Type=Application
  62. Categories=Application;Graphics;
  63. EOF
  64. %find_lang %{name} --all-name
  65. %post
  66. update-desktop-database %{_datadir}/applications>& /dev/null ||:
  67. touch --no-create %{_datadir}/icons/hicolor
  68. if [ -x /usr/bin/gtk-update-icon-cache ]; then
  69. gtk-update-icon-cache -q %{_datadir}/icons/hicolor
  70. fi
  71. %postun
  72. update-desktop-database %{_datadir}/applications>& /dev/null ||:
  73. touch --no-create %{_datadir}/icons/hicolor
  74. if [ -x /usr/bin/gtk-update-icon-cache ]; then
  75. gtk-update-icon-cache -q %{_datadir}/icons/hicolor
  76. fi
  77. %clean
  78. %{__rm} -rf ${RPM_BUILD_ROOT}
  79. %files -f %{name}.lang
  80. %defattr(-,root,root)
  81. %doc README COPYING
  82. %{_bindir}/%{name}
  83. %{_datadir}/%{name}
  84. %{_datadir}/applications/%{name}.desktop
  85. %{_datadir}/icons/hicolor/*
  86. %{_datadir}/pixmaps/%{name}.png
  87. %{_mandir}/man1/%{name}.1.gz
  88. %changelog
  89. * Sat Apr 17 2010 Kazutaka HARADA <kazutaka@vinelinux.org> 0.86.1-1
  90. - new upstream release
  91. - update Source1 (Japanese translation)
  92. * Wed Jan 06 2010 Kazutaka HARADA <kazutaka@vinelinux.org> 0.85.1-1
  93. - new upstream release
  94. - update Source1 (Japanese translation)
  95. * Wed Dec 30 2009 Kazutaka HARADA <kazutaka@vinelinux.org> 0.85.1-1
  96. - new upstream release
  97. * Mon Nov 16 2009 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 0.80.1-2
  98. - japanese translation updated
  99. * Thu Nov 05 2009 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 0.80.1-1
  100. - initial build for Vine Linux
  101. - add updated japanese translation as Source1