File qiv.spec of Package qiv
#
# spec file for package qiv (Version 2.1)
#
# Copyright (c) 2009 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: qiv
Version: 2.1
Release: 126
Summary: Probably the fastest and simplest image viewer on the planet
Group: Productivity/Graphics/Viewers
License: GPL v2 or later
Url: http://www.klografx.net/qiv/
Source0: http://www.klografx.net/qiv/download/qiv-2.1-pre12.tgz
Patch: qiv-2.1-pre12.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: gtk2-devel imlib-devel
%description
Qiv is a very small and pretty fast gdk/Imlib image viewer, designed to
view large images such as the JPEG files from today's high-megapixel
digicams.
It is super-easy to use: It creates only one window, containing only
the image to view, the SPACE key views the next image, BACKSPACE the
previous, "d" moves the current image to .qiv-trash/, "u" moves it back
and removes .qiv-trash/ if empty. "f" or the -f option toggles
full-screen mode and "m" toggles between maxpect mode (rescales images
to screen size while preserving aspect ratio) and unscaled mode with
unscaled 1:1 view with panning using cursor keys.
The mouse buttons can also be used in parallel to SPACE and BACKSPACE
to quickly flip thru images.
Furhter features are: * setting image as x11 background
(centered,tiled,stretched..), with user settable background color
* external "qiv-command" program support
* screensaver mode
* brightness/contrast/gamma correction
* real transparency
* slideshow (with random order if you want)
* flip horizontal/vertical, rotate left/right
* delete function (move to .qiv-trash/)
* jump to image number x, jump forward/backward x images
%prep
%setup -q -n %{name}-%{version}-pre12
%patch
sed -i 's/-O2/$(RPM_OPT_FLAGS)/' Makefile
sed -i 's/|GDK_WA_WMCLASS//' image.c
%build
make
%install
install -Dpm 755 qiv $RPM_BUILD_ROOT%{_bindir}/qiv
install -Dpm 644 qiv.1 $RPM_BUILD_ROOT%{_mandir}/man1/qiv.1
mkdir examples
mv qiv-command.example examples/qiv-command.example
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%doc README README.TODO examples
%{_bindir}/qiv
%{_mandir}/man1/qiv.1*
%changelog
* Wed Dec 12 2007 rguenther@suse.de
- fix possible buffer overflow
* Tue Aug 21 2007 bk@suse.de
- initial version