mcomix-vl.spec 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  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: 1%{?_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: pygtk2-devel python-imaging
  16. BuildRequires: gettext
  17. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  18. BuildArch: noarch
  19. %description
  20. MComix is a user-friendly, customizable image viewer. It is specifically
  21. designed to handle comic books, but also serves as a generic viewer. It
  22. reads images in ZIP, RAR or tar archives as well as plain image files.
  23. It is written in Python and uses GTK+ through the PyGTK bindings.
  24. %description -l ja
  25. MComix はユーザーフレンドリでカスタマイズ可能なイメージビューワです。
  26. このビューワは漫画を読むのに特化してデザインされていますが、一般的な画像
  27. ビューワとしても利用できます。
  28. 通常のイメージファイルと同様に、ZIP、RAR または tar (gzip 及び bzip2 で圧縮
  29. されたものも含む) アーカイブ中のイメージも読み込めます。
  30. Python で書かれており、PyGTK バインディングを通じて GTK+ を使用しています。
  31. %prep
  32. %setup -qn mcomix-%{version}
  33. %{__cp} -f %{SOURCE1} mcomix/messages/ja/LC_MESSAGES/mcomix.po
  34. msgfmt -o mcomix/messages/ja/LC_MESSAGES/mcomix.mo mcomix/messages/ja/LC_MESSAGES/mcomix.po
  35. %install
  36. %{__rm} -rf ${RPM_BUILD_ROOT}
  37. %{__python} setup.py install --single-version-externally-managed --root=$RPM_BUILD_ROOT
  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
  50. %defattr(-,root,root)
  51. %doc ChangeLog README
  52. %{_bindir}/%{name}
  53. %{_datadir}/applications/%{name}.desktop
  54. %{_datadir}/icons/hicolor/
  55. %{_datadir}/mime/packages/%{name}.xml
  56. %{_mandir}/man1/*.1.gz
  57. %{python_sitelib}/*
  58. %changelog
  59. * Wed May 11 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> 0.91-1
  60. - new upstream release
  61. - changed Lisence tag
  62. - applied to GPLv2
  63. - changed URL
  64. - changed BuildArch to noarch
  65. * Sun Nov 14 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> 0.90.2-2
  66. - updated source1
  67. - probed %%post and %%postun
  68. - added %%posttrans
  69. * Sat Oct 30 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> 0.90.2-1
  70. - initial build for VineSeed