File kdeutils4.spec of Package kdeutils4.import5902

#
# spec file for package kdeutils4
#
# 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:           kdeutils4
%if %suse_version > 1110
BuildRequires:  xz-devel
%endif
BuildRequires:  python-cups
%define with_python 1
%if %with_python
BuildRequires:  python-kde4-devel
%endif
Summary:        Base Package of KDE Utility Programs
License:        GPL-2.0+
Group:          Productivity/Other
Url:            http://www.kde.org
Version:        4.6.0
Release:        4.<RELEASE5>
BuildRequires:  gmp-devel
BuildRequires:  kdebase4-workspace-devel >= %version
BuildRequires:  libarchive-devel
BuildRequires:  libkdepimlibs4-devel
BuildRequires:  libknotificationitem-devel
BuildRequires:  libkonq-devel
BuildRequires:  libqca2-devel
BuildRequires:  libqimageblitz-devel
BuildRequires:  libqjson-devel
BuildRequires:  libzip-devel
BuildRequires:  net-snmp-devel
BuildRequires:  oxygen-icon-theme-large
BuildRequires:  pcsc-lite
BuildRequires:  python-devel
BuildRequires:  xz-devel
Source0:        kdeutils-%version.tar.bz2
Patch:          4_5_BRANCH.diff
Patch1:         desktop-files.diff
Patch2:         kgpg-autostart.diff
Patch3:         CVE-2011-2725.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%kde4_runtime_requires
Suggests:       ark
Suggests:       kcalc
Suggests:       kcharselect
Suggests:       kdf
Suggests:       kfloppy
Suggests:       kgpg
Suggests:       ktimer
Suggests:       kwalletmanager
Suggests:       kwikdisk
Suggests:       sweeper
Suggests:       superkaramba
Suggests:       kremotecontrol
Suggests:       filelight
%if %with_python
Suggests:       kde4-printer-applet
%endif

%description
This package suggest all KDE utility programs which are created from
this module.



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

%prep
%setup -q -n kdeutils-%version
%patch
%patch1
%patch2
%patch3 -p1

%build
  %cmake_kde4 -d build
  %make_jobs

%install
  cd build
  %makeinstall
  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-file-archiver.png $RPM_BUILD_ROOT/usr/share/icons/hicolor/"$i"x"$i"/apps/
  done
  %create_subdir_filelist -d ark
  %create_subdir_filelist -d kcalc
  %create_subdir_filelist -d kcharselect
  %create_subdir_filelist -d kdf
  %create_subdir_filelist -d kfloppy
  %create_subdir_filelist -d kgpg
  %create_subdir_filelist -d ktimer
  %create_subdir_filelist -d kwallet
  %create_subdir_filelist -d superkaramba
  %create_subdir_filelist -d sweeper
  %create_subdir_filelist -d kremotecontrol
  %create_subdir_filelist -d filelight
%if %with_python
  %create_subdir_filelist -d printer-applet
%endif
  cd ..
  %create_exclude_filelist
  %suse_update_desktop_file -r superkaramba System Applet
  %suse_update_desktop_file KCharSelect Utility Accessibility
  %suse_update_desktop_file ktimer      Utility TimeUtility
  %suse_update_desktop_file kwikdisk    System  Applet
  %suse_update_desktop_file kdf         System  Filesystem
  %suse_update_desktop_file ark         System  Archiving
  %suse_update_desktop_file kcalc       Utility Calculator
  %suse_update_desktop_file kgpg        Utility Security
  %suse_update_desktop_file kwalletmanager Applet
  %suse_update_desktop_file sweeper     Utility Security
  %suse_update_desktop_file KFloppy     System  Filesystem
  %suse_update_desktop_file filelight   System  Filesystem
  %kde_post_install

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%clean
#  rm -rf $RPM_BUILD_ROOT
#  rm -rf filelists

%package -n ark

Summary:        KDE Archiver Tool
Group:          Productivity/Archiving/Compression
Provides:       kde4-ark = 4.3.0
Obsoletes:      kde4-ark < 4.3.0
%kde4_runtime_requires
Provides:       kdeutils3 = 3.5.1
Obsoletes:      kdeutils3 <= 3.5.1
Recommends:     zip

%description -n ark
This is a KDE application to work with compressed archives.



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

%post -n ark -p /sbin/ldconfig

%postun -n ark -p /sbin/ldconfig

%files -n ark -f filelists/ark
%defattr(-,root,root)
%doc AUTHORS COPYING COPYING.DOC README
%_kde4_iconsdir/hicolor/*/apps/utilities-file-archiver.*

%package -n kcalc

Summary:        Scientific Calculator
Group:          Productivity/Scientific/Math
Provides:       kde4-kcalc = 4.3.0
Obsoletes:      kde4-kcalc < 4.3.0
%kde4_runtime_requires
Provides:       kdeutils3:/opt/kde3/bin/kcalc

%description -n kcalc
KCalc is the KDE calculator tool.



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

%post -n kcalc -p /sbin/ldconfig

%postun -n kcalc -p /sbin/ldconfig

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

%package -n filelight

Summary:        Graphical disk usage viewer
Group:          System/GUI/KDE
%kde4_runtime_requires

%description -n filelight
Filelight creates an attractive interactive visualization of disk usage
and the sizes of files and directories on your computer.



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

%post -n filelight -p /sbin/ldconfig

%postun -n filelight -p /sbin/ldconfig

%files -n filelight -f filelists/filelight
%defattr(-,root,root)
%doc AUTHORS COPYING COPYING.DOC README
%dir %_kde4_appsdir/filelightpart

%package -n kcharselect

Summary:        KDE Character Selector
Group:          Productivity/Other
Provides:       kde4-kcharselect = 4.3.0
Obsoletes:      kde4-kcharselect < 4.3.0
%kde4_runtime_requires

%description -n kcharselect
KCharSelect is the KDE character selector tool.



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

%post -n kcharselect -p /sbin/ldconfig

%postun -n kcharselect -p /sbin/ldconfig

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

%package -n kdf

Summary:        Disk Usage Viewer
Group:          System/Monitoring
Provides:       kde4-kdf = 4.3.0
Obsoletes:      kde4-kdf < 4.3.0
%kde4_runtime_requires
Provides:       kdeutils3:/opt/kde3/bin/kdf

%description -n kdf
KDE free disk space utility



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

%post -n kdf -p /sbin/ldconfig

%postun -n kdf -p /sbin/ldconfig

%files -n kdf -f filelists/kdf
%defattr(-,root,root)
%doc AUTHORS COPYING COPYING.DOC README
%exclude %_kde4_bindir/kwikdisk
%exclude %_kde4_applicationsdir/kwikdisk.desktop
%exclude %_kde4_iconsdir/hicolor/*/apps/kwikdisk.*

%package -n kfloppy

Summary:        Floppy Formatter
Group:          System/GUI/KDE
Provides:       kde4-kfloppy = 4.3.0
Obsoletes:      kde4-kfloppy < 4.3.0
%kde4_runtime_requires
Provides:       kdeutils3:/opt/kde3/bin/kfloppy

%description -n kfloppy
KDE Floppy Disk Utility



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

%post -n kfloppy -p /sbin/ldconfig

%postun -n kfloppy -p /sbin/ldconfig

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

%package -n kgpg

Summary:        Encryption Tool
Group:          Productivity/Security
Provides:       kde4-kgpg = 4.3.0
Obsoletes:      kde4-kgpg < 4.3.0
%kde4_runtime_requires
%kde4_pimlibs_requires
Requires:       kdepim4-runtime
Provides:       kdeutils3:/opt/kde3/bin/kgpg

%description -n kgpg
Kgpg is a simple GUI for gpg



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

%post -n kgpg -p /sbin/ldconfig

%postun -n kgpg -p /sbin/ldconfig

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

%package -n ktimer

Summary:        Countdown Launcher
Group:          Productivity/Other
Provides:       kde4-ktimer = 4.3.0
Obsoletes:      kde4-ktimer < 4.3.0
%kde4_runtime_requires

%description -n ktimer
Countdown launching tool for KDE



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

%post -n ktimer -p /sbin/ldconfig

%postun -n ktimer -p /sbin/ldconfig

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

%package -n kwalletmanager

Summary:        Wallet Management Tool
Group:          System/GUI/KDE
Provides:       kde4-kwalletmanager = 4.3.0
Obsoletes:      kde4-kwalletmanager < 4.3.0
%kde4_runtime_requires
Provides:       kdeutils3:/opt/kde3/bin/kwalletmanager

%description -n kwalletmanager
This application allows you to manage your KDE password wallet.



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

%post -n kwalletmanager -p /sbin/ldconfig

%postun -n kwalletmanager -p /sbin/ldconfig

%files -n kwalletmanager -f filelists/kwallet
%defattr(-,root,root)
%doc AUTHORS COPYING COPYING.DOC README
%_kde4_appsdir/kwalletmanager

%package -n kwikdisk

Summary:        Removable Media Utility
Group:          System/GUI/KDE
Provides:       kde4-kwikdisk = 4.3.0
Obsoletes:      kde4-kwikdisk < 4.3.0
%kde4_runtime_requires
Provides:       kdeutils3:/opt/kde3/bin/kwikdisk

%description -n kwikdisk
This utility allows you to manage removable media.



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

%post -n kwikdisk -p /sbin/ldconfig

%postun -n kwikdisk -p /sbin/ldconfig

%files -n kwikdisk
%defattr(-,root,root)
%doc AUTHORS COPYING COPYING.DOC README
%_kde4_bindir/kwikdisk
%_kde4_applicationsdir/kwikdisk.desktop
%_kde4_iconsdir/hicolor/*/apps/kwikdisk.*

%package -n sweeper

Summary:        KDE Privacy Utility
Group:          System/GUI/KDE
Provides:       kde4-sweeper = 4.3.0
Obsoletes:      kde4-sweeper < 4.3.0
%kde4_runtime_requires

%description -n sweeper
Helps clean unwanted traces the user leaves on the system.



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

%post -n sweeper -p /sbin/ldconfig

%postun -n sweeper -p /sbin/ldconfig

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

%package -n superkaramba

Summary:        Desktop Widgets
Group:          System/GUI/KDE
Provides:       kde4-superkaramba = 4.3.0
Obsoletes:      kde4-superkaramba < 4.3.0
%kde4_runtime_requires

%description -n superkaramba
Superkaramba allows you to have (interactive) desktop widgets shown on
your desktop.



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

%post -n superkaramba -p /sbin/ldconfig

%postun -n superkaramba -p /sbin/ldconfig

%files -n superkaramba -f filelists/superkaramba
%defattr(-,root,root)
%config %_kde_config_dir/superkaramba.knsrc
%if %with_python

%package -n kde4-printer-applet

Summary:        System tray utility to show current print jobs
Group:          Productivity/Other
%kde4_runtime_requires
Requires:       python-cups
Requires:       python-kde4
Requires:       system-config-printer

%description -n kde4-printer-applet
This package contains a system tray utility to show current print jobs.



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

%post -n kde4-printer-applet -p /sbin/ldconfig

%postun -n kde4-printer-applet -p /sbin/ldconfig

%files -n kde4-printer-applet -f filelists/printer-applet
%defattr(-,root,root)
#%config %_kde_config_dir/printer-applet.knsrc
%endif

%package -n kremotecontrol

Summary:        KDE Frontend for the Linux Infrared Remote Control system
Group:          Productivity/Other
Obsoletes:      kdelirc < %{version}
Provides:       kdelirc = %{version}
%kde4_runtime_requires

%description -n kremotecontrol
Kremotecontrol is a KDE frontend for the Linux Infrared Remote Control system.



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

%post -n kremotecontrol -p /sbin/ldconfig

%postun -n kremotecontrol -p /sbin/ldconfig

%files -n kremotecontrol -f filelists/kremotecontrol
%defattr(-,root,root)
%dir %_kde4_iconsdir/hicolor/42x42
%dir %_kde4_iconsdir/hicolor/42x42/devices
%dir %_kde4_iconsdir/hicolor/8x8
%dir %_kde4_iconsdir/hicolor/8x8/devices
%dir %_kde4_appsdir/kremotecontroldaemon

%files -f filelists/exclude
%defattr(-,root,root)
%doc AUTHORS COPYING COPYING.DOC README
%doc %lang(en) %_kde4_htmldir/en/kcontrol/blockdevices
%doc %lang(en) %_kde4_htmldir/en/kcontrol/kremotecontrol

%changelog
openSUSE Build Service is sponsored by