File kde4-gimp-resources-thumbnail-plugin.spec of Package kde4-gimp-resources-thumbnail-plugin
#
# spec file for package kde4-gimp-resources-thumbnail-plugin (Version 2.1.0)
#
# Copyright 2010 Buschmann <buschmann23@opensuse.org>
#
# 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.
#
# norootforbuild
BuildRequires: kdebase4-workspace-devel >= 4.3
BuildRequires: update-desktop-files
BuildRequires: licenses
Name: kde4-gimp-resources-thumbnail-plugin
Summary: Gimp Resources Thumbnail Plugin for KDE4
Version: 2.1.0
Release: 1
License: GPLv2
Group: System/GUI/KDE
Source0: 107128-GimpResourcesThumbnailer-%{version}.tar.gz
Patch0: desktop-translation.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
AutoReqProv: yes
Requires: kdebase4-workspace
Requires: licenses
%kde4_runtime_requires
Url: http://kde-apps.org/content/show.php/GimpResourcesThumbnailer?content=107128
%description
GimpResourcesThumbnailer is a thumbnail service for KDE. It can
be used in any KDE application that supports the thumbnail kioslave,
like dolphin or digiKam. You can preview all of your Gimp resources
like brushes and patterns, to easily manage them into folders,
without the need to open Gimp.
The following resource types are supported:
* Gimp-Brushes (.gbr, .ghi, .vbr)
* Gimp-Patterns (.pat)
* Gimp-Palettes (.gpl)
* Gimp-Gradients (.ggr)
* Adobe Photoshop Brushes (.abr (v6))
Author:
-------
Andi Clemens <andi dot clemens at gmx dot net>
%prep
%setup -n GimpResourcesThumbnailer-%{version}
%patch0
%build
%cmake_kde4 -d builddir
%make_jobs
%install
cd builddir
%kde4_makeinstall
cd ..
MD5SUM=$(md5sum COPYING | sed 's/ .*//')
if test -f /usr/share/doc/licenses/md5/$MD5SUM ; then
ln -sf /usr/share/doc/licenses/md5/$MD5SUM COPYING;
fi
%suse_update_desktop_file -n $RPM_BUILD_ROOT/usr/share/kde4/services/gimpresourcesthumbnail.desktop
%kde_post_install
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
%doc AUTHORS ChangeLog COPYING README
%_libdir/kde4/*.so
%_kde_share_dir/services/*.desktop
/usr/share/mime/packages/*.xml
%changelog