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) 2015 SUSE LINUX 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.3.1
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
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  file-devel
BuildRequires:  gtk2-devel
BuildRequires:  imlib2-devel
BuildRequires:  libexif-devel
BuildRequires:  libjpeg8-devel
BuildRequires:  liblcms2-devel
BuildRequires:  libtiff-devel
BuildRequires:  update-desktop-files
# imlib itself only recommends that but we actually need them to
# load images
Requires:       imlib2-loaders

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

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

%setup -q
sed -i 's/-O2/$(RPM_OPT_FLAGS)/' Makefile

# Remove exec bit from contrib scripts to avoid additional dependencies
chmod -x contrib/*

make %{?_smp_mflags}

install -Dpm 755 qiv $RPM_BUILD_ROOT%{_bindir}/qiv
install -Dpm 644 qiv.1 $RPM_BUILD_ROOT%{_mandir}/man1/qiv.1
install -Dpm 0644 qiv.png $RPM_BUILD_ROOT%{_datadir}/pixmaps/qiv.png
install -Dpm 0644 qiv.desktop $RPM_BUILD_ROOT%{_datadir}/applications/qiv.desktop
%suse_update_desktop_file qiv