[3838] | 1 | %{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} |
---|
| 2 | |
---|
[2159] | 3 | Summary: customizable image viewer that specifically designed to handle comic books |
---|
| 4 | Summary(ja): 漫画向けに特化してデザインされたカスタム可能なイメージビューワ |
---|
| 5 | Name: mcomix |
---|
[3838] | 6 | Version: 0.91 |
---|
| 7 | Release: 1%{?_dist_release} |
---|
| 8 | Source0: mcomix-%{version}.tar.bz2 |
---|
[2159] | 9 | Source1: mcomix_ja.po |
---|
| 10 | |
---|
[3838] | 11 | License: GPLv2 |
---|
[2159] | 12 | Group: Applications/Graphics |
---|
[3838] | 13 | URL: http://mcomix.sourceforge.net/ |
---|
[2159] | 14 | |
---|
| 15 | Requires: pygtk2 >= 2.12, python-imaging >= 1.1.5, libjpeg-turbo |
---|
| 16 | Requires: python >= 2.5 |
---|
| 17 | |
---|
| 18 | BuildRequires: python >= 2.5 |
---|
| 19 | BuildRequires: pygtk2-devel python-imaging |
---|
| 20 | BuildRequires: gettext |
---|
[3838] | 21 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
| 22 | BuildArch: noarch |
---|
[2159] | 23 | |
---|
| 24 | %description |
---|
| 25 | MComix is a user-friendly, customizable image viewer. It is specifically |
---|
| 26 | designed to handle comic books, but also serves as a generic viewer. It |
---|
| 27 | reads images in ZIP, RAR or tar archives as well as plain image files. |
---|
| 28 | It is written in Python and uses GTK+ through the PyGTK bindings. |
---|
| 29 | |
---|
| 30 | %description -l ja |
---|
| 31 | MComix はユーザーフレンドリでカスタマイズ可能なイメージビューワです。 |
---|
| 32 | このビューワは漫画を読むのに特化してデザインされていますが、一般的な画像 |
---|
| 33 | ビューワとしても利用できます。 |
---|
| 34 | 通常のイメージファイルと同様に、ZIP、RAR または tar (gzip 及び bzip2 で圧縮 |
---|
| 35 | されたものも含む) アーカイブ中のイメージも読み込めます。 |
---|
| 36 | Python で書かれており、PyGTK バインディングを通じて GTK+ を使用しています。 |
---|
| 37 | |
---|
| 38 | %prep |
---|
| 39 | |
---|
[3838] | 40 | %setup -qn mcomix-%{version} |
---|
| 41 | %{__cp} -f %{SOURCE1} mcomix/messages/ja/LC_MESSAGES/mcomix.po |
---|
| 42 | msgfmt -o mcomix/messages/ja/LC_MESSAGES/mcomix.mo mcomix/messages/ja/LC_MESSAGES/mcomix.po |
---|
[2159] | 43 | |
---|
| 44 | %install |
---|
| 45 | %{__rm} -rf ${RPM_BUILD_ROOT} |
---|
| 46 | |
---|
[3838] | 47 | %{__python} setup.py install --single-version-externally-managed --root=$RPM_BUILD_ROOT |
---|
[2159] | 48 | |
---|
| 49 | %clean |
---|
| 50 | %{__rm} -rf ${RPM_BUILD_ROOT} |
---|
| 51 | |
---|
| 52 | %post |
---|
[2205] | 53 | touch --no-create %{_datadir}/icons/hicolor &>/dev/null || : |
---|
[2159] | 54 | |
---|
| 55 | |
---|
| 56 | %postun |
---|
[2205] | 57 | if [ $1 -eq 0 ] ; then |
---|
| 58 | touch --no-create %{_datadir}/icons/hicolor &>/dev/null |
---|
| 59 | gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : |
---|
| 60 | fi |
---|
[2159] | 61 | |
---|
[2205] | 62 | %posttrans |
---|
| 63 | gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : |
---|
[2159] | 64 | |
---|
[2205] | 65 | |
---|
[3838] | 66 | %files |
---|
[2159] | 67 | %defattr(-,root,root) |
---|
[3838] | 68 | %doc ChangeLog README |
---|
[2159] | 69 | %{_bindir}/%{name} |
---|
| 70 | %{_datadir}/applications/%{name}.desktop |
---|
| 71 | %{_datadir}/icons/hicolor/ |
---|
[3838] | 72 | %{_datadir}/mime/packages/%{name}.xml |
---|
| 73 | %{_mandir}/man1/*.1.gz |
---|
| 74 | %{python_sitelib}/* |
---|
[2159] | 75 | |
---|
| 76 | %changelog |
---|
[3838] | 77 | * Wed May 11 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> 0.91-1 |
---|
| 78 | - new upstream release |
---|
| 79 | - changed Lisence tag |
---|
| 80 | - applied to GPLv2 |
---|
| 81 | - changed URL |
---|
| 82 | - changed BuildArch to noarch |
---|
| 83 | |
---|
[2205] | 84 | * Sun Nov 14 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> 0.90.2-2 |
---|
| 85 | - updated source1 |
---|
| 86 | - probed %%post and %%postun |
---|
| 87 | - added %%posttrans |
---|
| 88 | |
---|
[2159] | 89 | * Sat Oct 30 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> 0.90.2-1 |
---|
| 90 | - initial build for VineSeed |
---|