File ristretto.spec of Package ristretto

#
# spec file for package ristretto
#
# Copyright (c) 2012 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 http://bugs.opensuse.org/
#


Name:           ristretto
Version:        0.6.3
Release:        0
Summary:        Fast and Lightweight Image-viewer for the Xfce Desktop Environment
License:        GPL-2.0+
Group:          Productivity/Graphics/Viewers
Url:            http://goodies.xfce.org/projects/applications/ristretto
Source0:        http://archive.xfce.org/src/apps/ristretto/0.6/%{name}-%{version}.tar.bz2
# PATCH-FEATURE-OPENSUSE ristretto-add-mime-types.patch gber@opensuse.org -- Adds support for additional image MIME types supported by openSUSE
Patch0:         ristretto-add-mime-types.patch
# PATCH-FIX-UPSTREAM ristretto-fix-icon-installation.patch gber@opensuse.org -- Fixes a typo causing the 128x128 icon to be installed into 48x48
Patch1:         ristretto-fix-icon-installation.patch
BuildRequires:  fdupes
BuildRequires:  intltool
BuildRequires:  pkg-config
BuildRequires:  update-desktop-files
BuildRequires:  xfce4-dev-tools
BuildRequires:  pkgconfig(cairo)
BuildRequires:  pkgconfig(dbus-glib-1)
BuildRequires:  pkgconfig(exo-1)
BuildRequires:  pkgconfig(gio-2.0)
BuildRequires:  pkgconfig(glib-2.0)
BuildRequires:  pkgconfig(gobject-2.0)
BuildRequires:  pkgconfig(gthread-2.0)
BuildRequires:  pkgconfig(gtk+-2.0)
BuildRequires:  pkgconfig(libexif)
BuildRequires:  pkgconfig(libxfce4ui-1)
BuildRequires:  pkgconfig(libxfce4util-1.0)
BuildRequires:  pkgconfig(libxfconf-0)
Recommends:     %{name}-lang = %{version}
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

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

%lang_package

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

%build
xdt-autogen
%configure
make %{?_smp_mflags}

%install
%make_install

%suse_update_desktop_file -i ristretto GTK Graphics Viewer

%fdupes %{buildroot}%{_datadir}

rm -rf %{buildroot}%{_datadir}/locale/{ast,kk,tl_PH,ur_PK}

%find_lang %{name} %{?no_lang_C}

%clean
rm -rf %{buildroot}

%post
%desktop_database_post
%icon_theme_cache_post

%postun
%desktop_database_postun
%icon_theme_cache_postun

%files
%defattr(-,root,root)
%doc AUTHORS COPYING ChangeLog NEWS
%{_bindir}/ristretto
%{_datadir}/applications/ristretto.desktop
%{_datadir}/icons/hicolor/*/apps/ristretto.*

%files lang -f %{name}.lang

%changelog
openSUSE Build Service is sponsored by