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 http://bugs.opensuse.org/
#
Name: ristretto
Version: 0.0.91
Release: 6.<RELEASE3>
License: GPLv2+
Summary: Fast and Lightweight Image-viewer for the Xfce desktop environment
Url: http://goodies.xfce.org/projects/applications/ristretto
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
%description
Ristretto is a fast and lightweight picture-viewer for the Xfce desktop environment.
%prep
%setup -q
%patch0 -p1
%patch1 -p1
%build
./autogen.sh
%configure --docdir=%{_defaultdocdir}/%{name}
make %{?_smp_mflags}
%install
%make_install
install -D -p -m 644 AUTHORS COPYING ChangeLog NEWS README TODO \
%{buildroot}%{_defaultdocdir}/%{name}
%suse_update_desktop_file -i ristretto GTK Graphics Viewer
rm -rf %{buildroot}%{_datadir}/locale/{ast,kk,tl_PH,ur_PK}
%find_lang %{name}
%clean
rm -rf %{buildroot}
%if 0%{?suse_version} >= 1140
%post
%desktop_database_post
%icon_theme_cache_post
%postun
%desktop_database_postun
%icon_theme_cache_postun
%endif
%files -f %{name}.lang
%defattr(-,root,root)
%doc %{_defaultdocdir}/%{name}
%{_bindir}/ristretto
%{_datadir}/applications/ristretto.desktop
%{_datadir}/icons/hicolor/*/apps/ristretto.*
%changelog