File kiosktool.spec of Package kiosktool
#
# spec file for package kiosktool
#
# 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: kiosktool
Version: 1.99.svn1122153
Release: 2
License: GPL-2.0+
Summary: Kiosk Admin Tool
Url: http://extragear.kde.org/apps/kiosktool/
Group: System/Management
# $SVNROOT/trunk/extragear/sysadmin/kiosktool
Source0: %{name}-%{version}.tar.bz2
BuildRequires: fdupes
BuildRequires: kdebase4-workspace-devel
Suggests: %{name}-doc = %{version}
Recommends: %{name}-lang = %{version}
Provides: kde4-kiosktool = 4.2.1.svn942192
Obsoletes: kde4-kiosktool < 4.2.1.svn942192
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%kde4_runtime_requires
%description
A tool for a system administrator to create profiles for the KDE
desktop.
%package doc
Summary: Documentation for %{name}
Group: System/Management
Requires: %{name} = %{version}
%description doc
Documentation and help files for %{name}
%lang_package
%prep
%setup -q -n kiosktool-%{version}
%build
%cmake_kde4 -d build -- -DKDE_DEFAULT_HOME=.kde4
%make_jobs
%install
cd build
%make_install
%suse_update_desktop_file kiosktool System SystemSetup
%kde_post_install
cd ..
%find_lang kiosktool %{name}.lang
%find_lang desktop_extragear-sysadmin_kiosktool %{name}.lang
%fdupes -s %{buildroot}
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root)
%{_kde4_applicationsdir}/kiosktool.desktop
%{_kde4_appsdir}/kiosktool
%{_kde4_bindir}/kiosktool
%{_kde4_bindir}/kiosktool-kdedirs
%{_kde4_iconsdir}/*/*/apps/kiosktool.*
%files lang -f %{name}.lang
%defattr(-,root,root)
%files doc
%defattr(-,root,root)
%doc %lang(en) %{_kde4_htmldir}/en/doc
%changelog