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