mcomix-vl.spec 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  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.92
  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 Jul 10 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> 0.92-2
  61. - updated source1
  62. * Sat Jul 09 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> 0.92-1
  63. - new upstream release
  64. - replaced source1
  65. * Sun May 22 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> 0.91-2
  66. - added BuildRequires: python-setuptools
  67. * Wed May 11 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> 0.91-1
  68. - new upstream release
  69. - changed Lisence tag
  70. - applied to GPLv2
  71. - changed URL
  72. - changed BuildArch to noarch
  73. * Sun Nov 14 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> 0.90.2-2
  74. - updated source1
  75. - probed %%post and %%postun
  76. - added %%posttrans
  77. * Sat Oct 30 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> 0.90.2-1
  78. - initial build for VineSeed