File comix.spec of Package comix

# spec file for package comix
# 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

Name:           comix
Summary:        Comix - GTK Comic Book Viewer
Version:        4.0.4
Release:        5
BuildArch:      noarch
License:        GPLv2+
Group:          Productivity/Graphics/Viewers
Source:         %{name}-%{version}.tar.bz2
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  fdupes
BuildRequires:  python-gtk
BuildRequires:  python-imaging
BuildRequires:  update-desktop-files
Requires:       python-gtk
Requires:       python-imaging
Recommends:     %{name}-lang
Recommends:     unrar

Comix is a 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 or tar archives (also
gzip or bzip2 compressed) as well as plain image files. It is
written in Python and uses GTK+ through the PyGTK bindings.

%setup -q
sed -i s/\\r//g COPYING


install -d -m 755 %{buildroot}%{_prefix}
python install --dir %{buildroot}%{_prefix} --no-mime
%suse_update_desktop_file %{name}
%fdupes %{buildroot}%{_datadir}
%find_lang %{name} %{?no_lang_C}

%if 0%{?suse_version} > 1130


%if 0%{?suse_version} > 1130


rm -rf %{buildroot}


%files lang -f %{name}.lang