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 http://bugs.opensuse.org/
#


Name:           gwenview
Version:        4.14.3
Release:        0
Summary:        Simple Image Viewer for KDE
License:        GPL-2.0+
Group:          Productivity/Graphics/Viewers
Url:            http://www.kde.org
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
%kde4_runtime_requires

%description
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
hierarchy.

%prep
%setup -q
%patch -p1

%build
  %cmake_kde4 -d build
  %make_jobs

%install
  cd build
  %kde4_makeinstall
  %suse_update_desktop_file -r gwenview       Graphics RasterGraphics Viewer KDE
  %kde_post_install

# 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/
done
popd

%post   -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%files
%defattr(-,root,root)
%doc COPYING
%{_kde4_appsdir}/gwenview/
%{_kde4_appsdir}/gvpart/
%{_kde4_appsdir}/solid
%dir %{_datadir}/solid
%dir %{_datadir}/solid/actions
%{_datadir}/solid/actions/*.desktop
%{_kde4_applicationsdir}/gwenview.desktop
%{_kde4_bindir}/gwenview
%{_kde4_bindir}/gwenview_importer
%{_kde4_htmldir}/en/gwenview/
%{_kde4_libdir}/libgwenviewlib.*
%{_kde4_modulesdir}/gvpart.so
%{_kde4_servicesdir}/gvpart.desktop
%{_kde4_servicesdir}/ServiceMenus/slideshow.desktop
%{_kde4_iconsdir}/hicolor/*/*/*

%changelog
openSUSE Build Service is sponsored by