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