shutter-vl.spec 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164
  1. Summary: Feature-rich screenshot application.
  2. Summary(ja): 機能の豊富なスクリーンショットツール
  3. Name: shutter
  4. Version: 0.87.3
  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.4-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: perl(Gtk2::Unique)
  17. Requires: perl(Image::ExifTool)
  18. Requires(post): desktop-file-utils
  19. Requires(postun):desktop-file-utils
  20. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  21. BuildArch: noarch
  22. Vendor: Project Vine
  23. Distribution: Vine Linux
  24. Packager: kazutaka, shaolin
  25. %description
  26. Shutter is a feature-rich screenshot program. You can take a
  27. screenshot of a specific area, window, your whole screen, or
  28. even of a website - apply different effects to it, draw on it
  29. to highlight points, and then upload to an image hosting site,
  30. all within one window.
  31. %description -l ja
  32. Shutter は機能の豊富なスクリーンショットツールです。指定した
  33. 範囲や、ウィンドウ、スクリーン全体だけでなく、ウェブページの
  34. スクリーンショットも撮ることができます。また様々なエフェクト
  35. を適用したり、注釈を書き込んだり、イメージホスティングサイト
  36. にアップロードしたりといったことが、1つのウィンドウの中で実行
  37. できます。
  38. %prep
  39. %setup -q
  40. %build
  41. # shutter.1.gz isn't gzipped (fixed [VineLinux:1133])
  42. if [ -f share/man/man1/shutter.1.gz ];then
  43. if ! gzip -t share/man/man1/shutter.1.gz 2> /dev/null ; then
  44. %{__mv} share/man/man1/shutter.1{.gz,}
  45. fi
  46. fi
  47. %install
  48. %{__rm} -rf %{buildroot}
  49. %{__install} -d -m 0755 -p %{buildroot}%{_bindir}
  50. %{__install} -d -m 0755 -p %{buildroot}%{_datadir}
  51. %{__cp} -pfr bin/* %{buildroot}%{_bindir}/
  52. %{__cp} -pfr share/* %{buildroot}%{_datadir}/
  53. # remove unnecessary message catalogue text and docs
  54. %{__rm} -rf %{buildroot}/%{_datadir}/%{name}/resources/po
  55. %{__rm} -rf %{buildroot}/%{_datadir}/doc
  56. # remove a module to drop extra dependencies
  57. %{__rm} -rf %{buildroot}/%{_datadir}/%{name}/resources/modules/Net
  58. # remove modules to depend on separate packages
  59. %{__rm} -rf %{buildroot}/%{_datadir}/%{name}/resources/modules/File
  60. %{__rm} -rf %{buildroot}/%{_datadir}/%{name}/resources/modules/Proc
  61. %{__rm} -rf %{buildroot}/%{_datadir}/%{name}/resources/modules/Sort
  62. %{__rm} -rf %{buildroot}/%{_datadir}/%{name}/resources/modules/X11
  63. # install updated japanese translation
  64. #msgfmt %{SOURCE1} -o %{buildroot}/%{_localedir}/ja/LC_MESSAGES/%{name}.mo
  65. # overwrite .desktop
  66. %{__cat} << EOF > %{buildroot}/%{_datadir}/applications/%{name}.desktop
  67. [Desktop Entry]
  68. Version=1.0
  69. Name=Shutter - Screenshot Tool
  70. Name[ja]=Shutter スクリーンショットツール
  71. Comment=Shutter - Screenshot Tool
  72. Comment[ja]=デスクトップやウィンドウ、ウェブページの画像の取得と加工を行います
  73. Exec=shutter
  74. Icon=shutter
  75. Terminal=false
  76. Type=Application
  77. Categories=Application;Graphics;
  78. EOF
  79. # remove unnecessary icons
  80. %{__rm} -rf %{buildroot}/%{_datadir}/icons/ubuntu-mono-dark
  81. %{__rm} -rf %{buildroot}/%{_datadir}/icons/ubuntu-mono-light
  82. %find_lang %{name} --all-name
  83. %post
  84. update-desktop-database %{_datadir}/applications>& /dev/null ||:
  85. touch --no-create %{_datadir}/icons/hicolor
  86. if [ -x /usr/bin/gtk-update-icon-cache ]; then
  87. gtk-update-icon-cache -q %{_datadir}/icons/hicolor
  88. fi
  89. %postun
  90. update-desktop-database %{_datadir}/applications>& /dev/null ||:
  91. touch --no-create %{_datadir}/icons/hicolor
  92. if [ -x /usr/bin/gtk-update-icon-cache ]; then
  93. gtk-update-icon-cache -q %{_datadir}/icons/hicolor
  94. fi
  95. %clean
  96. %{__rm} -rf %{buildroot}
  97. %files -f %{name}.lang
  98. %defattr(-,root,root)
  99. %doc README COPYING
  100. %{_bindir}/%{name}
  101. %{_datadir}/%{name}
  102. %{_datadir}/applications/%{name}.desktop
  103. %{_datadir}/icons/hicolor/*
  104. %{_datadir}/pixmaps/%{name}.png
  105. %{_mandir}/man1/%{name}.1.gz
  106. %changelog
  107. * Mon Feb 27 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 0.87.3-1
  108. - new upstream release
  109. - remove generic Perl modules: will depend on separate packages instead
  110. * Wed May 11 2011 Yasumichi Akahoshi <yasumichi@vinelinux.org> 0.87.2-1
  111. - new upstream release
  112. - fixed [VineLinux:1133]
  113. - add Vendor, Distribution tags.
  114. * Sat Feb 12 2011 Kazutaka HARADA <kazutaka@vinelinux.org> 0.87-1
  115. - new upstream release
  116. - add Requires: perl(Gtk2::Unique), perl(Image::ExifTool)
  117. * Fri Oct 15 2010 Kazutaka HARADA <kazutaka@vinelinux.org> 0.86.4-1
  118. - new upstream release
  119. - update Source1 (Japanese translation)
  120. * Sat Apr 17 2010 Kazutaka HARADA <kazutaka@vinelinux.org> 0.86.1-1
  121. - new upstream release
  122. - update Source1 (Japanese translation)
  123. * Wed Jan 06 2010 Kazutaka HARADA <kazutaka@vinelinux.org> 0.85.1-1
  124. - new upstream release
  125. - update Source1 (Japanese translation)
  126. * Wed Dec 30 2009 Kazutaka HARADA <kazutaka@vinelinux.org> 0.85.1-1
  127. - new upstream release
  128. * Mon Nov 16 2009 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 0.80.1-2
  129. - japanese translation updated
  130. * Thu Nov 05 2009 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 0.80.1-1
  131. - initial build for Vine Linux
  132. - add updated japanese translation as Source1