LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File qiv.spec of Package qiv (Project devel:openSUSE:Factory)

#
# spec file for package qiv
#
# Copyright (c) 2013 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.2.4
Release:        0
Summary:        Probably the fastest and simplest image viewer on the planet
License:        GPL-2.0+
Group:          Productivity/Graphics/Viewers
Url:            http://spiegl.de/qiv/
Source0:        http://spiegl.de/qiv/download/qiv-%{version}.tgz
Patch0:         magic-optimization.patch
Patch1:         update-copying.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  file-devel
BuildRequires:  gtk2-devel
BuildRequires:  imlib2-devel
BuildRequires:  libXinerama-devel
BuildRequires:  libexif-devel
# imlib itself only recommends that but we actually need them to
# load images
Requires:       imlib2-loaders

%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
%patch0 -p1
%patch1 -p1
sed -i 's/-O2/$(RPM_OPT_FLAGS)/' Makefile

%build
make %{?_smp_mflags}

%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.COPYING README.TODO examples
%{_bindir}/qiv
%{_mandir}/man1/qiv.1*

%changelog