File gwenview.spec of Package gwenview
#
# spec file for package gwenview
#
# Copyright (c) 2011 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.7.2
Release: 1
License: GPLv2+
Summary: Simple Image Viewer for KDE
Url: http://www.kde.org
Group: Productivity/Graphics/Viewers
Source0: %{name}-%{version}.tar.bz2
BuildRequires: libexiv2-devel
BuildRequires: libkipi-devel
BuildRequires: libkonq-devel
#Add a patch to change the file that is queried for the jpeg_lib version
%if 0%{?suse_version} >= 1210
Patch1: correct_jpeg_lib_version.patch
%endif
Requires: libkipi8 = %{version}
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
%if 0%{?suse_version} >= 1210
%patch1 -p0
%endif
%build
%cmake_kde4 -d build
%make_jobs
%install
cd build
%make_install
%suse_update_desktop_file -r gwenview Graphics RasterGraphics Viewer
%kde_post_install
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root)
%doc COPYING
%{_kde4_appsdir}/gwenview/
%{_kde4_appsdir}/gvpart/
%{_kde4_appsdir}/solid
%{_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