File ristretto.spec of Package ristretto

#
# spec file for package ristretto (Version 0.0.20)
#
# Copyright (c) 2008 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/
#

# norootforbuild


Name:           ristretto
Version:        0.0.20
Release:        1
Url:            http://goodies.xfce.org/projects/applications/ristretto
License:        GPL v2 or later
Group:          Productivity/Graphics/Viewers
Summary:        Image-viewer with Xfce integration
Source:         %{name}-%{version}.tar.bz2
Patch0:         %{name}-%{version}-exif.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  gtk2-devel >= 2.10.0
BuildRequires:  pkg-config thunar-devel update-desktop-files
%if 0%{?suse_version} > 1020
BuildRequires:  libexif-devel
%else
BuildRequires:  libexif
%endif

%description
Image-viewer with Xfce integration



Authors:
--------
    Stephan Arts <stephan@xfce.org>

%prep
%setup -q
%patch0

%build
%configure
make %{?jobs:-j%jobs}

%install
make DESTDIR=$RPM_BUILD_ROOT install
%suse_update_desktop_file -i ristretto GTK Graphics Viewer
%find_lang %{name}

%clean
rm -rf $RPM_BUILD_ROOT

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

%changelog
* Tue Nov 11 2008 prusnak@suse.cz
- fix segfault when no EXIF data present (exif.patch)
* Wed Jun 18 2008 prusnak@suse.cz
- updated to 0.0.20
  * Add limits so that images are not scrolled outside the thumbnail-bar
  boundaries (Fix bug introduced with 0.0.19)
  * Add 'Close All' menu item.
  * Add command-line option for opening in full-screen mode (Bug #4077)
  * Add command-line option for opening in slideshow mode (Bug #4077)
  * Add option to show/hide thumbnails during slideshow. (Bug #4076)
  * Do not include Generic Name to the Name field, this makes some menu
  implementations look broken (Bug #4085)
* Wed Jun 18 2008 prusnak@suse.cz
- updated to 0.0.19
  * Add option to change the wallpaper with xfdesktop >= 4.5
  * Detect if xfdesktop is running
  * Scroll through images when using the scroll-button, rather then
  changing the active one.
  * Open the desired image BEFORE loading the rest of the folder, this
  reduces the time it takes to display the initial image.
* Thu Mar 27 2008 prusnak@suse.cz
- update to 0.0.18
  * Improved zoom-box
  * Added rudimentary drag-n-drop support for opening images
  * Removed duplicate code for opening files and folders, moved this
  to the navigator (Bug #3866)
  * Open files and folders when the main-loop is running, this way the
  window is already usable before the images are being opened.
  * Add configuration option to toggle the folowing feature:
    - Prevent images to be scaled beyond 100%% when maximizing the window
    - Resize images to fit to the window when restoring the window from
  maximize state.
  * Prevent GUI freezes when opening a folder with a lot of files in
  them.
  * Fix segfaults when closing ristretto while it is opening a folder.
  * Restore of auto-center when clicking on a thumbnail.
  * The Statusbar displays some feedback when opening files.
* Sun Feb 17 2008 bwalle@suse.de
- update to 0.0.17
  o Fix segfault when scrolling over the picture-viewer
  o Fix event-window issues overlaying the 1:1 and fit zoom-
  buttons, now the zoom-buttons keep working when the thumbnails
  scroll behind the toolbar
  * Improve behaviour of thumbnails.
  * Fix desktop-file syntax
* Tue Jan 29 2008 prusnak@suse.cz
- update to 0.0.16
  * Add zoom-mode support (remember zoom-mode across images)
  * New thumbnail-bar
  * Add drag support
  * New thumbnail objects (better themeable)
  * Add tooltip support (atm with gtk+-2.12 only)
  * Improve the caching behaviour
  * Add configuration option for image-cache size
  * Improve the creation of file-monitor handles, only create one
  file-monitor when opening a directory. This works around limitations
  of fam and gamin, and it allows the detection of new images inside
  this folder.
* Sun Dec 09 2007 bwalle@suse.de
- update to 0.0.15
  o Fix store and load functions for background-color, functions
  used
  o Fix opening of relative paths.
  o Redraw the picture-viewer after setting a new background-color
  o Improve box-zoom
* Sat Dec 01 2007 bwalle@suse.de
- update to 0.0.14
  o Add keyboard-shortcuts for rotating
  o Fix modification of bg-color using preferences dialog
  o Fix thumbnail-scaling when thumbnail is first generated
  o Refresh when new images are added and within visible range of
  the thumbnail-viewer
  o Improve behaviour when opening images from cli.
* Tue Nov 27 2007 bwalle@suse.de
- update to 0.0.13
  o Fix segfault when running ristretto with unknown cli-options.
  o Add rudimentary box-zoom (use ctrl-click to make use it).
  o Use gtk-style background-color by default.
  o Allow modification of background-color.
  o Add Rotate sub-menu and buttons.
  o Add Zooming sub-menu and buttons.
  o Override picture-viewer bg-color when switching to fullscreen
  mode.
* Sat Nov 17 2007 bwalle@suse.de
- update to 0.0.12
  o Fix High CPU-usage
  o Improve performance when new images are added to the navigator
  o Emit iter_changed signal when navigator is cleared.
  o Leave fullscreen mode by using 'Escape' key
  o Fix toolbar always visible after leaving fullscreen mode
  o Fix titlebar string
  o Fix open file from CLI
* Wed Nov 07 2007 prusnak@suse.cz
- updated to 0.0.11
  * Improve performance when zooming with mouse-wheel
  * Improve performance when dragging the image around
  * Add some comments
  * Improve preferences dialog
* Tue Nov 06 2007 prusnak@suse.cz
- updated to 0.0.10
  * Move image loading to navigator (to aid preloading and cache)
  * Add Preferences dialog
  * Add file-properties dialog (uses d-bus and thunar for now)
  * Add preloading
  * add thunar-vfs-monitor support (images are now reloaded when they are modified)
  * Fix rendering bug
* Tue Oct 16 2007 bwalle@suse.de
- updated to 0.0.9
  o Fix EXIF orientation (was broken with previous release)
  o Add right mouse click menu
  o Add drag move when zoomed (still experimental)
* Sun Oct 14 2007 bwalle@suse.de
- updated to 0.0.8
  o Add support for animated images (like .gif and .mng)
  o Improve load-times
  o Improve responsiveness when loading images
  o Fix memory leak when opening files / folders
* Tue Oct 02 2007 prusnak@suse.cz
- updated to 0.0.7
  * fix segfault in navigation.c
  * fix broken if statements in main_window.c
* Sun Sep 30 2007 bwalle@suse.de
- updated to 0.0.6
  o Add EXIF support for detecting the image-orientation
  o Improve the paint behaviour, do not paint the same pixel twice
  o When switching files, fix the timeout and darken the original
  image until the timeout is exceeded.
* Fri Sep 14 2007 prusnak@suse.cz
- updated to 0.0.5
- removed desktop.patch
* Sat Sep 08 2007 bwalle@suse.de
- updated to 0.0.4
* Mon Sep 03 2007 bwalle@suse.de
- updated to 0.0.3
* Tue Aug 28 2007 prusnak@suse.cz
- created package (initial version 0.0.1)
openSUSE Build Service is sponsored by