File kscpm.spec of Package kscpm

#
# spec file for package kscpm (Version 0.5.4)
#
# 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:           kscpm
BuildRequires:  dummy-release kdelibs3-devel scpm-devel
Summary:        KDE Support for SCPM
Version:        0.5.4
Release:        143
Group:          System/GUI/KDE
License:        BSD 3-Clause; GNU Free Documentation License, Version 1.1 (GFDL 1.1); GPL v2 or later; LGPL v2.1 or later; Public Domain, Freeware; X11/MIT
Source:         kscpm-%{version}.tar.bz2
Requires:       scpm yast2-profile-manager sumf
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
This package adds KDE support for the profile manager SCPM. It contains
a kicker applet for choosing a destination profile. By default, it uses
SUMF to perform the profile switch, but it can be configured to execute
an arbitrary command.



Authors:
--------
    Joachim Gleissner <jg@suse.de>

%prep
%setup
. /etc/opt/kde3/common_options
update_admin

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

%install
. /etc/opt/kde3/common_options
make $INSTALL_TARGET DESTDIR=%{buildroot}
mkdir -p %{buildroot}/opt/kde3/share/icons/hicolor/32x32/apps
%suse_update_desktop_file profile_chooser Utility TrayIcon
find %{buildroot} -name \*.la -print0 | xargs -0 -r rm -f
%find_lang profile_chooser

%files -f profile_chooser.lang
%defattr(-,root,root)
%dir /opt/kde3/sbin
/opt/kde3/bin/profile_chooser
/opt/kde3/sbin/scpm_user
/opt/kde3/%{_lib}/*
/opt/kde3/share/applications/kde/profile_chooser.desktop
/opt/kde3/share/doc/HTML/en/chooser
/opt/kde3/share/autostart/profile_chooser-autostart.desktop
/opt/kde3/share/icons/hicolor

%clean
rm -rf $RPM_BUILD_ROOT

%changelog
* Fri Sep 19 2008 ro@suse.de
- buildreq dummy-release instead of openSUSE-release
* Sun Mar 16 2008 crrodriguez@suse.de
- fix file-not-in-lang errors
* Tue Nov 13 2007 jg@suse.de
- added missing includes
* Fri Sep 14 2007 jg@suse.de
- update to 0.5.4 final:
  * updated translations
* Mon Aug 20 2007 jg@suse.de
- updated translations
- dropped obsolete fix_ampersand_in_profile_name.patch
* Wed Feb 14 2007 hschaa@suse.de
- Added patch fix_ampersand_in_profile_name.patch to work
  around n.b.c #133656.
* Tue Sep 12 2006 aj@suse.de
- Adjust BuildRequires.
* Mon Mar 27 2006 jg@suse.de
- updated translations
* Mon Feb 20 2006 jg@suse.de
- updated translations
- added translations for Finnish and Khmer
- Explicitly disabling keyboard shortcuts (hopefully fixes
  bug 133656)
* Mon Feb 06 2006 jg@suse.de
- updated translations
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Mon Dec 19 2005 jg@suse.de
- compile fix
* Mon Dec 12 2005 jg@suse.de
- update to 0.5.3, changes:
  * changed some texts according to KDE style guide
  * launching switch application with HOME set to real users home
  * added "Run Profile Manager" command to menu
* Tue Sep 06 2005 jg@suse.de
- Dutch translation update
* Mon Aug 29 2005 jg@suse.de
- translation updates
* Mon Aug 22 2005 jg@suse.de
- added new translations and updated existing ones
* Mon Aug 15 2005 jg@suse.de
- update to 0.5.2, changes:
  * translation updates
  * using helper script to enable and disable user switch support
* Thu Aug 04 2005 jg@suse.de
- update to 0.5.1, changes:
  * fixed icon name
- added suse-release to neededforbuild (enables YaST support in
  profile_chooser applet)
* Mon Aug 01 2005 jg@suse.de
- update to 0.5, changes:
  * dropped profile_switcher in favor of new SCPM frontend SUMF
  * added configuration dialog
* Tue Jul 26 2005 jg@suse.de
- added scpm-devel to neededforbuild
* Wed Jun 08 2005 ro@suse.de
- change icon symlink
* Wed Apr 13 2005 dkukawka@suse.de
- fixed for gcc 4.0 (added include of errno.h)
* Mon Mar 14 2005 jg@suse.de
- updated Czech translations
* Mon Feb 28 2005 jg@suse.de
- start profile_chooser when manually called even when scpm is
  disabled (bug 66560)
* Fri Feb 11 2005 jg@suse.de
- update to 0.4pre1:
  * Updated German translations
  * Added Czech translations (not complete)
  * Abort startup when scpm is disabled
  * Added support for toggle user switch support (i.e. setting/
  removing suid bit from profile_switcher)
- clean up (all generated file removed)
* Wed Jan 12 2005 coolo@suse.de
- fix Makefile (had to remove one extension not yet supported)
* Fri Dec 10 2004 jg@suse.de
- Fixed desktop-file usage
- Added yast2-profile-manager as requirement
* Wed Sep 29 2004 jg@suse.de
- Made autostart configurable (bug 46358)
- Added possibility to run yast2 profile-manager
* Mon Sep 27 2004 jg@suse.de
- Starting profile_switcher in background now (prevents hanging
  of kicker)
- Made profile_chooser a system tray applet instead of panel applet
* Fri Sep 24 2004 jg@suse.de
- Fixed zombie child process (bug 45992)
- Fixed 100%% CPU usage bug
* Wed Sep 15 2004 jg@suse.de
- Update to 0.3:
  - YaST profile manager gets now called with switch arguments
  - Added German translations and translation templates
  - Added missing help dialogs
* Fri Aug 06 2004 jg@suse.de
- Update to 0.2 (fixes build problems on x86_64 and ppp64, no
  further changes)
* Wed Aug 04 2004 jg@suse.de
- Initial version
openSUSE Build Service is sponsored by