File comix.spec of Package comix
#
# spec file for package comix
#
# Copyright (c) 2014 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: comix
Summary: Comix - GTK Comic Book Viewer
License: GPL-2.0+
Group: Productivity/Graphics/Viewers
Version: 4.0.4
Release: 0
BuildArch: noarch
Url: http://comix.sourceforge.net
Source: %{name}-%{version}.tar.bz2
# PATCH-FIX-UPSTREAM comix-PIL.patch dimstar@opensuse.org -- Add support for PIL
Patch0: comix-PIL.patch
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
%py_requires
%description
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.
%lang_package
%prep
%setup -q
%patch0 -p1
sed -i s/\\r//g COPYING
%build
%install
install -d -m 755 %{buildroot}%{_prefix}
python install.py 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
%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}/icons/hicolor/*/apps/%{name}.*
%{_datadir}/%{name}
%{_mandir}/man?/%{name}.*
%files lang -f %{name}.lang
%changelog