File qiv.spec of Package qiv

#
# spec file for package qiv (Version 2.1)
#
# Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#


Name:           qiv
Version:        2.1
Release:        28
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
openSUSE Build Service is sponsored by