mcomix-vl.spec 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145
  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: 1.01
  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. Requires: python-chardet
  15. Requires: python-setuptools
  16. BuildRequires: python >= 2.5
  17. BuildRequires: python-devel
  18. BuildRequires: python-setuptools
  19. BuildRequires: pygtk2-devel python-imaging
  20. BuildRequires: gettext
  21. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  22. BuildArch: noarch
  23. Vendor: Project Vine
  24. Distribution: Vine Linux
  25. Packager: kudoh
  26. %description
  27. MComix is a user-friendly, customizable image viewer. It is specifically
  28. designed to handle comic books, but also serves as a generic viewer. It
  29. reads images in ZIP, RAR or tar archives as well as plain image files.
  30. It is written in Python and uses GTK+ through the PyGTK bindings.
  31. %description -l ja
  32. MComix はユーザーフレンドリでカスタマイズ可能なイメージビューワです。
  33. このビューワは漫画を読むのに特化してデザインされていますが、一般的な画像
  34. ビューワとしても利用できます。
  35. 通常のイメージファイルと同様に、ZIP、RAR または tar (gzip 及び bzip2 で圧縮
  36. されたものも含む) アーカイブ中のイメージも読み込めます。
  37. Python で書かれており、PyGTK バインディングを通じて GTK+ を使用しています。
  38. %prep
  39. %setup -qn mcomix-%{version}
  40. #%{__cp} -f %{SOURCE1} mcomix/messages/ja/LC_MESSAGES/mcomix.po
  41. #msgfmt -o mcomix/messages/ja/LC_MESSAGES/mcomix.mo mcomix/messages/ja/LC_MESSAGES/mcomix.po
  42. %install
  43. %{__rm} -rf ${RPM_BUILD_ROOT}
  44. %{__python} setup.py install --single-version-externally-managed --root=$RPM_BUILD_ROOT
  45. %clean
  46. %{__rm} -rf ${RPM_BUILD_ROOT}
  47. %post
  48. touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
  49. %postun
  50. if [ $1 -eq 0 ] ; then
  51. touch --no-create %{_datadir}/icons/hicolor &>/dev/null
  52. gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
  53. fi
  54. %posttrans
  55. gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
  56. %files
  57. %defattr(-,root,root)
  58. %doc ChangeLog README
  59. %{_bindir}/%{name}
  60. %{_datadir}/applications/%{name}.desktop
  61. %{_datadir}/icons/hicolor/
  62. %{_datadir}/mime/packages/%{name}.xml
  63. %{_mandir}/man1/*.1.gz
  64. %{python_sitelib}/*
  65. %changelog
  66. * Tue Apr 28 2015 Toshiharu Kudoh <toshi.kd2@gmail.com> 1.01-1
  67. - new upstream release
  68. * Sat Aug 30 2014 Toshiharu Kudoh <toshi.kd2@gmail.com> 1.00-2
  69. - rebuilt with current environment
  70. * Mon Apr 29 2013 Toshiharu Kudoh <toshi.kd2@gmail.com> 1.00-1
  71. - new upstream release
  72. * Sun Jul 15 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> 0.99-1
  73. - new upstream release
  74. * Wed Apr 25 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> 0.98-1
  75. - new upstream release
  76. - dropt source1 to merge upstream
  77. * Wed Feb 29 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> 0.97.1-1
  78. - new upstream release
  79. - updated source1
  80. * Sat Jan 14 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> 0.96-2
  81. - rebuilt
  82. - forgot using newer spec..
  83. * Wed Jan 11 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> 0.96-1
  84. - new upstream release
  85. - added BuildRequires: python-devel
  86. - updated source1
  87. * Wed Sep 28 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> 0.94-1
  88. - new upstream release
  89. * Sat Sep 10 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> 0.93-1
  90. - new upstream release
  91. - added Requires: python-chardet, python-setuptools
  92. - added Vendor/Distribution/Packager tag
  93. * Sun Jul 10 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> 0.92-2
  94. - updated source1
  95. * Sat Jul 09 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> 0.92-1
  96. - new upstream release
  97. - replaced source1
  98. * Sun May 22 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> 0.91-2
  99. - added BuildRequires: python-setuptools
  100. * Wed May 11 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> 0.91-1
  101. - new upstream release
  102. - changed Lisence tag
  103. - applied to GPLv2
  104. - changed URL
  105. - changed BuildArch to noarch
  106. * Sun Nov 14 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> 0.90.2-2
  107. - updated source1
  108. - probed %%post and %%postun
  109. - added %%posttrans
  110. * Sat Oct 30 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> 0.90.2-1
  111. - initial build for VineSeed