File kdeadmin4.spec of Package kdeadmin4

#
# spec file for package kdeadmin4 (Version 4.3.90)
#
# Copyright (c) 2010 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:           kdeadmin4
BuildRequires:  libkdepimlibs4-devel oxygen-icon-theme rpm-devel
License:        GPLv2+
Group:          System/GUI/KDE
Summary:        kdeadmin base package
%define with_kpackage 0
Url:            http://www.kde.org
Version:        4.3.90
Release:        1
Source0:        kdeadmin-%version.tar.bz2
Patch:          4_4_BRANCH.diff
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%kde4_runtime_requires
Suggests:       kcron
%if %with_kpackage
Suggests:       kpackage
%endif
Suggests:       kuser
Suggests:       knetworkconf
Suggests:       ksystemlog

%description
This package suggests the packages which are built from the kdeadmin
module.



Authors:
--------
    The KDE Team <kde@kde.org>

%prep
%setup -q -n kdeadmin-%version
%patch

%build
%if !%with_kpackage
  rm -rf kpackage doc/kpackage
  sed -ir -e "s,add_subdirectory.*kpackage.*,," doc/CMakeLists.txt
%endif
  %cmake_kde4 -d build
  %make_jobs

%install
  cd build
  %create_subdir_filelist -d kcron
%if %with_kpackage
  %create_subdir_filelist -d kpackage
%endif
  %create_subdir_filelist -d kuser
  %create_subdir_filelist -d knetworkconf
  %create_subdir_filelist -d ksystemlog
  %makeinstall
  cd ..
  %create_exclude_filelist
%if %with_kpackage
  %suse_update_desktop_file kpackage System PackageManager
%endif
  %suse_update_desktop_file kuser    System SystemSetup
  %suse_update_desktop_file ksystemlog System Monitor
  %kde_post_install
  for i in {16,22,32,48,64,128}; do
     mkdir -p $RPM_BUILD_ROOT/usr/share/icons/hicolor/"$i"x"$i"/apps
     cp /usr/share/icons/oxygen/"$i"x"$i"/apps/utilities-log-viewer.png $RPM_BUILD_ROOT/usr/share/icons/hicolor/"$i"x"$i"/apps/;
  done

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%clean
  rm -rf $RPM_BUILD_ROOT
  rm -rf filelists

%package -n kcron
License:        GPLv2+
Group:          System/Management
Summary:        Cron job configuration tool
Provides:       kde4-kcron = 4.3.0
Obsoletes:      kde4-kcron < 4.3.0
%kde4_runtime_requires

%description -n kcron
KCron allows you to change your cron jobs setup.



Authors:
--------
    The KDE Team <kde@kde.org>

%post -n kcron -p /sbin/ldconfig

%postun -n kcron -p /sbin/ldconfig

%files -n kcron -f filelists/kcron
%defattr(-,root,root)
%doc COPYING COPYING.DOC README
%if %with_kpackage

%package -n kpackage
License:        GPLv2+
Group:          System/Packages
Summary:        RPM Handling Tool
Requires:       smart
Provides:       kde4-kpackage = 4.3.0
Obsoletes:      kde4-kpackage < 4.3.0
%kde4_runtime_requires

%description -n kpackage
KPackage is a package installation tool for KDE.



Authors:
--------
    The KDE Team <kde@kde.org>

%post -n kpackage -p /sbin/ldconfig

%postun -n kpackage -p /sbin/ldconfig

%files -n kpackage -f filelists/kpackage
%defattr(-,root,root)
%doc COPYING COPYING.DOC README
%endif

%package -n kuser
License:        GPLv2+
Group:          System/Management
Summary:        User Account Manager
Conflicts:      yast2-theme-NLD
Provides:       kde4-kuser = 4.3.0
Obsoletes:      kde4-kuser < 4.3.0
%kde4_runtime_requires
%kde4_pimlibs_requires

%description -n kuser
KUser is a user account editor for KDE.



Authors:
--------
    The KDE Team <kde@kde.org>

%post -n kuser -p /sbin/ldconfig

%postun -n kuser -p /sbin/ldconfig

%files -n kuser -f filelists/kuser
%defattr(-,root,root)
%doc COPYING COPYING.DOC README

%package -n ksystemlog
License:        GPLv2+
Group:          System/Monitoring
Summary:        System Log Viewer Tool
%kde4_runtime_requires

%description -n ksystemlog
This program is developed for use by beginner users, who do not know
how to find information about their Linux system and how the log files
are in their computer. But it is also designed for advanced users, who
want to quickly see problems occurring on their server.



Authors:
--------
    Nicolas Ternisien <nicolas.ternisien@gmail.com>

%post -n ksystemlog -p /sbin/ldconfig

%postun -n ksystemlog -p /sbin/ldconfig

%files -n ksystemlog -f filelists/ksystemlog
%defattr(-,root,root)
%doc COPYING COPYING.DOC README
%_kde4_iconsdir/hicolor/*/apps/utilities-log-viewer.*

%package -n knetworkconf
License:        GPLv2+
Group:          System/GUI/KDE
Summary:        KDE Network Configuration Module
Provides:       kde4-knetworkconf = 4.3.0
Obsoletes:      kde4-knetworkconf < 4.3.0
%kde4_runtime_requires

%description -n knetworkconf
KNetworkConfg is a network configration module for the KDE control
center.



Authors:
--------
    The KDE Team <kde@kde.org>

%post -n knetworkconf -p /sbin/ldconfig

%postun -n knetworkconf -p /sbin/ldconfig

%files -n knetworkconf -f filelists/knetworkconf
%defattr(-,root,root)
%doc COPYING COPYING.DOC README
%doc %lang(en) %_kde4_htmldir/en/kcontrol

%files -f filelists/exclude
%defattr(-,root,root)
%doc COPYING COPYING.DOC README

%changelog
openSUSE Build Service is sponsored by