source: projects/specs/trunk/m/mcomix/mcomix-vl.spec @ 2205

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