File kde4-odf-thumbnail-plugin.spec of Package kde4-odf-thumbnail-plugin
#
# spec file for package kde4-ooo-thumbnail-plugin (Version 1.0.0)
#
# Copyright 2009 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.2.0
BuildRequires: update-desktop-files
BuildRequires: licenses
Name: kde4-odf-thumbnail-plugin
Summary: OpenDocument Thumbnail Plugin for KDE4
Version: 1.0.0
Release: 1
License: LGPLv3
Group: System/GUI/KDE
Source0: kde-odf-thumbnail-%{version}.tar.gz
Patch0: desktop-translation.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
AutoReqProv: yes
Requires: kdebase4-workspace
Obsoletes: kde4-ooo-thumbnail-plugin <= 1.0.0
Provides: kde4-000-thumbnail-plugin = 1.0.0
Requires: licenses
%kde4_runtime_requires
Url: http://www.kde-apps.org/content/show.php?content=110864
%description
Plugin for KDE file managers (Dolphin and Konqueror) to preview
OpenOffice.org files (Open Document Format) as Thumbnails.
You do not need to install OpenOffice.org for it to work (it only uses KDE API).
Author:
-------
Ariel Constenla-Haile
%prep
%setup -n kde-odf-thumbnail-%{version}
%patch0
%build
%cmake_kde4 -d builddir
%make_jobs
%install
cd builddir
%kde4_makeinstall
cd ..
MD5SUM=$(md5sum LICENSE | sed 's/ .*//')
if test -f /usr/share/doc/licenses/md5/$MD5SUM ; then
ln -sf /usr/share/doc/licenses/md5/$MD5SUM LICENSE;
fi
%suse_update_desktop_file -n $RPM_BUILD_ROOT/usr/share/kde4/services/opendocumentthumbnail.desktop
%kde_post_install
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root)
%doc LICENSE README
%_libdir/kde4/opendocumentthumbnail.so
%_kde_share_dir/services/opendocumentthumbnail.desktop
%changelog