File kdeadmin4.spec of Package kdeadmin4
#
# spec file for package kdeadmin4
#
# Copyright (c) 2012 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
Version: 4.8.4
Release: 0
Summary: KDEadmin base package
License: GPL-2.0+
Group: System/GUI/KDE
Url: http://www.kde.org
Source0: kdeadmin-%{version}.tar.xz
Patch1: ksystemlog_suse_log_locations.diff
BuildRequires: libkdepimlibs4-devel
BuildRequires: oxygen-icon-theme-large
BuildRequires: rpm-devel
BuildRequires: xz
Suggests: kcron
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%kde4_runtime_requires
%description
This package suggests the packages which are built from the kdeadmin
module.
%prep
%setup -q -n kdeadmin-%{version}
%patch1
%build
rm -rf kpackage doc/kpackage
rm -rf knetworkconf doc/kcontrol/CMakeLists.txt
sed -ir -e "s,add_subdirectory.*kpackage.*,," doc/CMakeLists.txt
%cmake_kde4 -d build
%make_jobs
%install
cd build
%create_subdir_filelist -d kcron
%create_subdir_filelist -d kuser
%create_subdir_filelist -d ksystemlog
%make_install
cd ..
%create_exclude_filelist
%suse_update_desktop_file kuser System SystemSetup
%suse_update_desktop_file ksystemlog System Monitor
for i in {16,22,32,48,64,128}; do
mkdir -p %{buildroot}%{_kde4_iconsdir}/hicolor/"$i"x"$i"/apps
cp %{_kde4_iconsdir}/oxygen/"$i"x"$i"/apps/utilities-log-viewer.png %{buildroot}%{_kde4_iconsdir}/hicolor/"$i"x"$i"/apps/;
done
%kde_post_install
# Not packaged yet -- cartman
rm -rf %{buildroot}%{_kde4_htmldir}/en/system-config-printer-kde/
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%clean
rm -rf %{buildroot}
rm -rf filelists
%package -n kcron
Summary: Cron job configuration tool
Group: System/Management
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.
%package -n ksystemlog
Summary: System Log Viewer Tool
Group: System/Monitoring
%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.
%package -n kuser
Summary: User Account Manager
Group: System/Management
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.
%post -n kcron -p /sbin/ldconfig
%postun -n kcron -p /sbin/ldconfig
%post -n ksystemlog -p /sbin/ldconfig
%postun -n ksystemlog -p /sbin/ldconfig
%post -n kuser -p /sbin/ldconfig
%postun -n kuser -p /sbin/ldconfig
%files -n kcron -f filelists/kcron
%defattr(-,root,root)
%doc COPYING COPYING.DOC README
%files -n ksystemlog -f filelists/ksystemlog
%defattr(-,root,root)
%doc COPYING COPYING.DOC README
%{_kde4_iconsdir}/hicolor/*/apps/utilities-log-viewer.*
%files -n kuser -f filelists/kuser
%defattr(-,root,root)
%doc COPYING COPYING.DOC README
%changelog