File kconfigeditor.spec of Package kconfigeditor

#
# spec file for package kconfigeditor (Version 0.9.5)
#
# Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

# norootforbuild

Name:           kconfigeditor
BuildRequires:  gconf2-devel gtk2-devel kdelibs3-devel
%if %suse_version < 1000
BuildRequires:  popt-devel
%endif
License:        GNU General Public License (GPL), GNU Library General Public License v. 2.0 and 2.1 (LGPL)
Group:          System/GUI/KDE
Summary:        KDE Configuration Editor for Administrators
Version:        0.9.5
Release:        75
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Source0:        %name-%version.tar.bz2
Source1:        kconfigeditor.png
Patch0:         kconfigeditor.diff
Patch1:         kde32.diff
Patch2:         FIXME.diff

%description
KConfigEditor can be used by administrators to edit configuration
settings. This works for global settings, profiles, or user settings.
It can do this locally or remotely via ssh.



Authors:
--------
    Zack Rusin <zack@kde.org>

%prep 
%setup -q
. /etc/opt/kde3/common_options
%patch
%patch2
%if %suse_version < 911
%patch1
rm Makefile.am.in
%endif
update_admin

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

%install
. /etc/opt/kde3/common_options
make DESTDIR=${RPM_BUILD_ROOT} install
mkdir -p $RPM_BUILD_ROOT/opt/kde3/share/icons/hicolor/32x32/apps
install -m 644 %{SOURCE1} $RPM_BUILD_ROOT/opt/kde3/share/icons/hicolor/32x32/apps/
%if %suse_version < 1010
%suse_update_desktop_file %name System SystemSetup
%else
%suse_update_desktop_file -G "Configuration Editor" -C "Configuration editor for KDE and Gnome" %name System SystemSetup
%endif

%clean
rm -rf ${RPM_BUILD_ROOT}

%files
%defattr(-,root,root)
%doc README 
/opt/kde3/bin/kconfigeditor
/opt/kde3/share/applications/kde/kconfigeditor.desktop
/opt/kde3/share/icons/hicolor/32x32/apps/kconfigeditor.png
/opt/kde3/share/apps/kconfigeditor

%changelog
* Mon Feb 26 2007 - stbinner@suse.de
- fix build by including application icon into package
* Tue Sep 05 2006 - aj@suse.de
- Cleanup BuildRequires.
* Thu Jun 01 2006 - stbinner@suse.de
- fix build for < 10.0
* Tue May 30 2006 - adrian@suse.de
- fix build for < 10.1
* Fri Feb 17 2006 - stbinner@suse.de
- shorten GenericName in .desktop file
* Wed Jan 25 2006 - mls@suse.de
- converted neededforbuild to BuildRequires
* Wed Jun 15 2005 - coolo@suse.de
- fix support for KDE 3.4.1
* Thu Mar 24 2005 - adrian@suse.de
- fix file conflict with desktop-data
* Fri Dec 17 2004 - coolo@suse.de
- fix unsermake install
* Wed Nov 17 2004 - adrian@suse.de
- satisfy icon check
* Mon Sep 13 2004 - adrian@suse.de
- sort menu entry
- define menu entry pixmap
- fix parsing, when profiles are used
* Wed Jul 14 2004 - adrian@suse.de
- update to version 0.9.5
* Mon Jul 12 2004 - adrian@suse.de
- update to version 0.9.4
  * adding gnome support
* Sat Jun 26 2004 - adrian@suse.de
- fix build with KDE 3.2.1
* Tue May 25 2004 - adrian@suse.de
- initial package of todays cvs