File kiosktool.spec of Package kiosktool

#
# spec file for package kiosktool (Version 1.0)
#
# Copyright (c) 2008 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:  kdelibs3-devel
License:        GPL v2 or later
Group:          System/Management
Summary:        Kiosk Admin Tool
Version:        1.0
Release:        252
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Source0:        %name-%version.tar.bz2
Patch0:         %name.diff

%description
A tool for a system administrator to create profiles for the KDE
desktop.



Authors:
--------
    Waldo Bastian <bastian@kde.org>

%prep
%setup -q
%patch
. /etc/opt/kde3/common_options
update_admin

%build
. /etc/opt/kde3/common_options
./configure $configkde
make

%install
. /etc/opt/kde3/common_options
make DESTDIR=$RPM_BUILD_ROOT $INSTALL_TARGET
mkdir -p $RPM_BUILD_ROOT/opt/kde3/share/config/
rm -rf  $RPM_BUILD_ROOT/opt/kde3/share/locale/xx
cat > $RPM_BUILD_ROOT/opt/kde3/share/config/kiosktoolrc <<EOF
[General]
GroupBlacklist=bin,daemon,sys,tty,disk,lp,www,kmem,wheel,mail,news,uucp,shadow,utmp,at,xok,named,ftp,postfix,maildrop,man,sshd,distcc,nobody,nogroup
EOF
%suse_update_desktop_file %name System SystemSetup
kde_post_install
%find_lang %name

%clean
rm -rf $RPM_BUILD_ROOT

%files -f %name.lang
%defattr(-,root,root)
/opt/kde3/bin/kiosktool*
/opt/kde3/share/appl*/*/kiosktool.desktop
/opt/kde3/share/apps/kiosktool
/opt/kde3/share/config/*
/opt/kde3/share/icons/hicolor/*/*/kiosktool.*

%changelog
* Fri Jun 01 2007 coolo@suse.de
- move kde_post_install
* Fri Mar 09 2007 stbinner@suse.de
- fix build (new icon location check)
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Tue Dec 20 2005 dmueller@suse.de
- fix file list
* Tue Apr 26 2005 adrian@suse.de
- update to version 1.0
* Thu Feb 17 2005 adrian@suse.de
- menu entry moved to xdg dir
* Thu Sep 16 2004 adrian@suse.de
- update to version 0.9
  * minor bugfix release
- blacklist some groups in selector
- remove information popup
* Mon Aug 23 2004 adrian@suse.de
- update to version 0.8
* Mon Jul 12 2004 adrian@suse.de
- update to version 0.7
* Wed Jul 07 2004 adrian@suse.de
- update to version 0.6
* Mon Jul 05 2004 adrian@suse.de
- update to current cvs, to fix problems on first start
* Mon Jun 14 2004 adrian@suse.de
- update to version 0.5
* Tue May 25 2004 adrian@suse.de
- update to version 0.4.1
* Thu May 06 2004 adrian@suse.de
- update to version 0.3
* Thu Apr 29 2004 adrian@suse.de
- fix build for old admin folder
* Thu Apr 29 2004 adrian@suse.de
- update to official 0.2 version
- use /etc/kde3rc instead of /etc/kderc
* Thu Mar 18 2004 adrian@suse.de
- move menu entry
* Tue Mar 16 2004 adrian@suse.de
- update to current snapshot
  * fixes a sig11 in step 4
* Mon Mar 08 2004 adrian@suse.de
- initial package of todays cvs snapshot
openSUSE Build Service is sponsored by