File pqiv.spec of Package pqiv

#
# spec file for package pqiv (Version 2.6)
#
#


Name:           pqiv
Version:        2.7
Release:        1
Summary:        Powerful image viewer with minimal UI
Group:          Productivity/Graphics/Viewers
License:        GPL v2 or later
Url:            https://github.com/phillipberndt/pqiv
#Source0:        https://github.com/phillipberndt/pqiv/archive/%{version}.tar.gz
Source0:        pqiv-%{version}.tar.bz2
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%if 0%{?suse_version}
BuildRequires:  gtk3-devel poppler-devel libpoppler-glib-devel libspectre-devel ImageMagick-devel libarchive-devel libwebp-devel
%endif
%if %{defined fedora}
BuildRequires:  gtk3-devel poppler-devel libspectre-devel ImageMagick-devel libarchive-devel libwebp-devel
%endif

%description
pqiv is a powerful GTK 3 based command-line image viewer with a minimal UI. It
is highly customizable, can be fully controlled from scripts, and has support
for various file formats including PDF, Postscript, video files and archives.
It is optimized to be quick and responsive.

It comes with support for animations, slideshows, transparency, VIM-like key
bindings, automated loading of new images as they appear, external image
filters, image preloading, and much more.

pqiv started as a Python rewrite of qiv avoiding imlib, but evolved into a much
more powerful tool. Today, pqiv stands for powerful quick image viewer.

Features:

 * Command line image viewer
 * Directory traversing to view whole directories
 * Watch files and directories for changes
 * Natural order sorting of the images
 * A status bar showing information on the current image
 * Transparency and animation support
 * Moving, zooming, rotation, flipping
 * Slideshows
 * Highly customizable and scriptable
 * Supports external image filters (e.g. `convert`)
 * Preloads the next image in the background
 * Fade between images
 * Optional PDF/eps/ps support (useful e.g. for scientific plots)
 * Optional video format support (e.g. for webm animations)

%prep
%setup -n pqiv-%{version}

%build
./configure --backends-build=shared
make

%install
make install DESTDIR=$RPM_BUILD_ROOT

%clean
rm -rf $RPM_BUILD_ROOT

%files
%doc README.markdown
/usr/bin/pqiv
/usr/lib/pqiv/*.so
/usr/lib/pqiv
/usr/share/man/man1/pqiv.1*
/usr/share/applications/pqiv.desktop

%changelog
* Sun Jul 10 2016 - phillip.berndt@googlemail.com
- initial version