File mcomix.spec of Package mcomix
#
# spec file for package mcomix
#
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2007-2009 Dominique Leuenberger, Almere, The Netherlands.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: mcomix
Summary: MComix - GTK Comic Book Viewer
Version: 1.2.1
Release: 1
BuildArch: noarch
License: GPLv2+
Url: http://mcomix.sourceforge.net
Group: Productivity/Graphics/Viewers
Source: %{name}-%{version}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: fdupes
BuildRequires: python-gtk
BuildRequires: python-imaging
BuildRequires: python-setuptools
BuildRequires: update-desktop-files
Requires: python-gtk
Requires: python-imaging
Recommends: %{name}-lang
Recommends: unrar
%py_requires
%description
MComix is an user-friendly, customizable image viewer. It is specifically designed to handle comic books, but also serves as a generic viewer. It reads images in ZIP, RAR, 7Zip or tar archives as well as plain image files. It is written in Python and uses GTK+ through the PyGTK bindings, and runs on both Linux and Windows.
MComix is a fork of the Comix project, and aims to add bug fixes and stability improvements after Comix development came to a halt in late 2009.
%lang_package
%prep
%setup -q
sed -i s/\\r//g COPYING
%build
%install
%{__python} setup.py install --prefix=%{_prefix} --root=%{buildroot} --record-rpm=INSTALLED_FILES
#install -d -m 755 %{buildroot}%{_prefix}
#python setup.py install --dir %{buildroot}%{_prefix} --no-mime
%suse_update_desktop_file %{name}
#%fdupes %{buildroot}%{_datadir}
%fdupes $RPM_BUILD_ROOT%{py_sitedir}
#%find_lang %{name} %{?no_lang_C}
%if 0%{?suse_version} > 1130
%post
%desktop_database_post
%icon_theme_cache_post
%endif
%if 0%{?suse_version} > 1130
%postun
%desktop_database_postun
%icon_theme_cache_postun
%endif
%files
%defattr(-,root,root)
%doc COPYING README
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/appdata/%{name}.appdata.xml
%{_datadir}/icons/hicolor/*/apps/%{name}.*
%{_datadir}/icons/hicolor/*/mimetypes/application-x-cb?.png
%{_datadir}/mime/packages/%{name}.xml
#%{_datadir}/%{name}
%{python_sitelib}/*
%{_mandir}/man?/%{name}.*
#%files lang -f %{name}.lang
%changelog