mcomix-vl.spec 3.0 KB

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