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/
#
# norootforbuild
Name: kiosktool
BuildRequires: kdebase4-workspace-devel
License: GPLv2+
Group: System/Management
Summary: Kiosk Admin Tool
Version: 1.99.svn1122153
Release: 2
# $SVNROOT/trunk/extragear/sysadmin/kiosktool
Source0: %{name}-%{version}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%kde4_runtime_requires
Provides: kde4-kiosktool = 4.2.1.svn942192
Obsoletes: kde4-kiosktool <= 4.2.1.svn942192
%description
A tool for a system administrator to create profiles for the KDE
desktop.
Authors:
--------
Waldo Bastian <bastian@kde.org>
%prep
%setup -q -n kiosktool-%{version}
%build
%cmake_kde4 -d build -- -DKDE_DEFAULT_HOME=.kde4
%make_jobs
%install
cd build
%makeinstall
%suse_update_desktop_file kiosktool System SystemSetup
%kde_post_install
cd ..
%find_lang kiosktool %{name}.lang
%find_lang desktop_extragear-sysadmin_kiosktool %{name}.lang
%if %suse_version < 1120
mkdir -p $RPM_BUILD_ROOT/usr/share/doc/kde/HTML/es/common
mkdir -p $RPM_BUILD_ROOT/usr/share/doc/kde/HTML/et/common
mkdir -p $RPM_BUILD_ROOT/usr/share/doc/kde/HTML/pt/common
mkdir -p $RPM_BUILD_ROOT/usr/share/doc/kde/HTML/sv/common
mkdir -p $RPM_BUILD_ROOT/usr/share/doc/kde/HTML/pt_BR/common
mkdir -p $RPM_BUILD_ROOT/usr/share/doc/kde/HTML/it/common
mkdir -p $RPM_BUILD_ROOT/usr/share/doc/kde/HTML/uk/common
%endif
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%clean
rm -rf $RPM_BUILD_ROOT
%files -f %{name}.lang
%defattr(-,root,root)
%if %suse_version < 1120
%dir /usr/share/locale/hne
%dir /usr/share/locale/hne/LC_MESSAGES
%endif
%if %suse_version < 1140
%dir /usr/share/locale/sr@ijekavian
%dir /usr/share/locale/sr@ijekavian/LC_MESSAGES
%dir /usr/share/locale/sr@ijekavianlatin
%dir /usr/share/locale/sr@ijekavianlatin/LC_MESSAGES
%endif
/usr/bin/kiosktool
/usr/bin/kiosktool-kdedirs
/usr/share/applications/kde4/kiosktool.desktop
%doc %lang(en) /usr/share/doc/kde/HTML/en/doc
/usr/share/kde4/apps/kiosktool
/usr/share/icons/*/*/apps/kiosktool.*
%changelog