File gwenview.spec of Package gwenview

# spec file for package gwenview
# 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

Name:           gwenview
Version:        4.14.3
Release:        0
Summary:        Simple Image Viewer for KDE
License:        GPL-2.0+
Group:          Productivity/Graphics/Viewers
Source0:        %{name}-%{version}.tar.xz
#PATCH-FIX-UPSTREAM set-cmake_min_req.patch -- fixes build in Factory
Patch:          set-cmake_min_req.patch
BuildRequires:  baloo-devel
BuildRequires:  libexiv2-devel
BuildRequires:  libkactivities-devel
BuildRequires:  libkdcraw-devel
BuildRequires:  libkipi-devel
BuildRequires:  libkonq-devel
BuildRequires:  liblcms2-devel
BuildRequires:  xz
Recommends:     kipi-plugins
Provides:       kde4-gwenview = 4.2.90
Obsoletes:      kde4-gwenview < 4.2.90
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

Gwenview is a simple image viewer for KDE. It features a folder tree
window and a file list window, providing easy navigation of your file

%setup -q
%patch -p1

  %cmake_kde4 -d build

  cd build
  %suse_update_desktop_file -r gwenview       Graphics RasterGraphics Viewer KDE

# symlink solid actions into place known to Plasma 5, remove once k3b is KF5-based
mkdir -p %{buildroot}%{_datadir}/solid/actions
pushd %{buildroot}%{_kde4_appsdir}/solid/actions/
for i in *.desktop; do
ln -s %{_kde4_appsdir}/solid/actions/$i %{buildroot}%{_datadir}/solid/actions/

%post   -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%dir %{_datadir}/solid
%dir %{_datadir}/solid/actions

openSUSE Build Service is sponsored by