File ristretto.spec of Package ristretto

# spec file for package ristretto
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
# 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:           ristretto
Version:        0.0.91
Release:        6.<RELEASE3>
License:        GPLv2+
Summary:        Fast and Lightweight Image-viewer for the Xfce desktop environment
Group:          Productivity/Graphics/Viewers
Source:         %{name}-%{version}.tar.bz2
Patch0:         ristretto-0.0.91-add-more-mime-types.patch
Patch1:         ristretto-0.0.91-honor-docdir.patch
BuildRequires:  intltool
BuildRequires:  pkg-config
BuildRequires:  pkgconfig(gtk+-2.0)
BuildRequires:  pkgconfig(libexif)
BuildRequires:  thunar-devel
BuildRequires:  update-desktop-files
BuildRequires:  xfce4-dev-tools
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

Ristretto is a fast and lightweight picture-viewer for the Xfce desktop environment.

%setup -q
%patch0 -p1
%patch1 -p1

%configure --docdir=%{_defaultdocdir}/%{name}
make %{?_smp_mflags}

install -D -p -m 644 AUTHORS COPYING ChangeLog NEWS README TODO \
%suse_update_desktop_file -i ristretto GTK Graphics Viewer
rm -rf %{buildroot}%{_datadir}/locale/{ast,kk,tl_PH,ur_PK}
%find_lang %{name}

rm -rf %{buildroot}

%if 0%{?suse_version} >= 1140



%files -f %{name}.lang
%doc %{_defaultdocdir}/%{name}

openSUSE Build Service is sponsored by