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