mcomix-vl.spec 2.6 KB

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