|
@@ -1,14 +1,16 @@
|
|
|
|
+%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
|
|
|
|
+
|
|
Summary: customizable image viewer that specifically designed to handle comic books
|
|
Summary: customizable image viewer that specifically designed to handle comic books
|
|
Summary(ja): 漫画向けに特化してデザインされたカスタム可能なイメージビューワ
|
|
Summary(ja): 漫画向けに特化してデザインされたカスタム可能なイメージビューワ
|
|
Name: mcomix
|
|
Name: mcomix
|
|
-Version: 0.90.2
|
|
|
|
-Release: 2%{?_dist_release}
|
|
|
|
-Source0: MComix-%{version}.tar.bz2
|
|
|
|
|
|
+Version: 0.91
|
|
|
|
+Release: 1%{?_dist_release}
|
|
|
|
+Source0: mcomix-%{version}.tar.bz2
|
|
Source1: mcomix_ja.po
|
|
Source1: mcomix_ja.po
|
|
|
|
|
|
-License: Public Domain
|
|
|
|
|
|
+License: GPLv2
|
|
Group: Applications/Graphics
|
|
Group: Applications/Graphics
|
|
-URL: http://sourceforge.net/projects/mcomix/
|
|
|
|
|
|
+URL: http://mcomix.sourceforge.net/
|
|
|
|
|
|
Requires: pygtk2 >= 2.12, python-imaging >= 1.1.5, libjpeg-turbo
|
|
Requires: pygtk2 >= 2.12, python-imaging >= 1.1.5, libjpeg-turbo
|
|
Requires: python >= 2.5
|
|
Requires: python >= 2.5
|
|
@@ -16,7 +18,8 @@ Requires: python >= 2.5
|
|
BuildRequires: python >= 2.5
|
|
BuildRequires: python >= 2.5
|
|
BuildRequires: pygtk2-devel python-imaging
|
|
BuildRequires: pygtk2-devel python-imaging
|
|
BuildRequires: gettext
|
|
BuildRequires: gettext
|
|
-BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
|
|
|
|
+BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
|
|
+BuildArch: noarch
|
|
|
|
|
|
%description
|
|
%description
|
|
MComix is a user-friendly, customizable image viewer. It is specifically
|
|
MComix is a user-friendly, customizable image viewer. It is specifically
|
|
@@ -34,17 +37,14 @@ Python で書かれており、PyGTK バインディングを通じて GTK+ を
|
|
|
|
|
|
%prep
|
|
%prep
|
|
|
|
|
|
-%setup -qn MComix-%{version}
|
|
|
|
-%{__cp} -f %{SOURCE1} messages/ja/LC_MESSAGES/mcomix.po
|
|
|
|
-msgfmt -o messages/ja/LC_MESSAGES/mcomix.mo messages/ja/LC_MESSAGES/mcomix.po
|
|
|
|
|
|
+%setup -qn mcomix-%{version}
|
|
|
|
+%{__cp} -f %{SOURCE1} mcomix/messages/ja/LC_MESSAGES/mcomix.po
|
|
|
|
+msgfmt -o mcomix/messages/ja/LC_MESSAGES/mcomix.mo mcomix/messages/ja/LC_MESSAGES/mcomix.po
|
|
|
|
|
|
%install
|
|
%install
|
|
%{__rm} -rf ${RPM_BUILD_ROOT}
|
|
%{__rm} -rf ${RPM_BUILD_ROOT}
|
|
-%{__mkdir} -p ${RPM_BUILD_ROOT}%{_prefix}
|
|
|
|
-%{__python} install.py install --no-mime --dir ${RPM_BUILD_ROOT}%{_prefix}
|
|
|
|
-
|
|
|
|
-%find_lang %{name}
|
|
|
|
|
|
|
|
|
|
+%{__python} setup.py install --single-version-externally-managed --root=$RPM_BUILD_ROOT
|
|
|
|
|
|
%clean
|
|
%clean
|
|
%{__rm} -rf ${RPM_BUILD_ROOT}
|
|
%{__rm} -rf ${RPM_BUILD_ROOT}
|
|
@@ -63,17 +63,24 @@ fi
|
|
gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
|
|
gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
|
|
|
|
|
|
|
|
|
|
-%files -f %{name}.lang
|
|
|
|
|
|
+%files
|
|
%defattr(-,root,root)
|
|
%defattr(-,root,root)
|
|
-%doc
|
|
|
|
|
|
+%doc ChangeLog README
|
|
%{_bindir}/%{name}
|
|
%{_bindir}/%{name}
|
|
%{_datadir}/applications/%{name}.desktop
|
|
%{_datadir}/applications/%{name}.desktop
|
|
%{_datadir}/icons/hicolor/
|
|
%{_datadir}/icons/hicolor/
|
|
-%{_datadir}/%{name}/images/
|
|
|
|
-%{_datadir}/%{name}/src/
|
|
|
|
-%{_mandir}/man1/%{name}.1.gz
|
|
|
|
|
|
+%{_datadir}/mime/packages/%{name}.xml
|
|
|
|
+%{_mandir}/man1/*.1.gz
|
|
|
|
+%{python_sitelib}/*
|
|
|
|
|
|
%changelog
|
|
%changelog
|
|
|
|
+* Wed May 11 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> 0.91-1
|
|
|
|
+- new upstream release
|
|
|
|
+- changed Lisence tag
|
|
|
|
+ - applied to GPLv2
|
|
|
|
+- changed URL
|
|
|
|
+- changed BuildArch to noarch
|
|
|
|
+
|
|
* Sun Nov 14 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> 0.90.2-2
|
|
* Sun Nov 14 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> 0.90.2-2
|
|
- updated source1
|
|
- updated source1
|
|
- probed %%post and %%postun
|
|
- probed %%post and %%postun
|