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