File viewnior.spec of Package viewnior
#
# spec file for package viewnior
#
# Copyright (c) 2014 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: viewnior
Version: 1.4
Release: 0
Summary: Elegant Image Viewer
License: GPL-3.0+
Group: Productivity/Graphics/Viewers
Url: http://xsisqox.github.com/Viewnior
Source0: https://www.dropbox.com/s/zytq0suabesv933/%{name}-%{version}.tar.gz
# PATCH-FEATURE-UPSTREAM viewnior-1.4-print.patch lp#816563 ananasik@gmail.com -- add printing support
Patch1: viewnior-1.4-print.patch
# PATCH-FIX-UPSTREAM viewnior-1.4-russian.patch lazy.kent@opensuse.org -- update Russian translation
Patch2: viewnior-1.4-russian.patch
BuildRequires: gcc-c++
BuildRequires: intltool
BuildRequires: libtool
BuildRequires: update-desktop-files
BuildRequires: pkgconfig(exiv2)
BuildRequires: pkgconfig(gtk+-2.0)
Recommends: %{name}-lang
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
Viewnior is an image viewer program. Created to be simple, fast and elegant.
It's minimalistic interface provides more screen space for your images. Among
its features are:
* Fullscreen & Slideshow
* Rotate, flip, save, delete images
* Animation support
* Browse only selected images
* Navigation window
* Simple interface
* Configurable mouse actions
%lang_package
%prep
%setup -q
%patch1 -p1
%patch2 -p1
# fix spurious executable perms
chmod 0644 AUTHORS ChangeLog COPYING NEWS README TODO src/*
%build
autoreconf -fiv
%configure
make %{?_smp_mflags}
%install
%make_install
%find_lang %{name} %{?no_lang_C}
%suse_update_desktop_file -r -G "Elegant Image Viewer" %{name} Graphics Viewer GTK
%post
%desktop_database_post
%icon_theme_cache_post
%postun
%desktop_database_postun
%icon_theme_cache_postun
%files
%defattr(-,root,root,-)
%doc AUTHORS ChangeLog COPYING NEWS README TODO
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/hicolor/*/apps/%{name}.*
%{_datadir}/%{name}/
%{_mandir}/man*/%{name}.*
%files lang -f %{name}.lang
%changelog