File kdeutils4.spec of Package kdeutils4

#
# spec file for package kdeutils4 (Version 4.3.5)
#
# 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:           kdeutils4
BuildRequires:  gmp-devel kdebase4-workspace-devel libqimageblitz-devel net-snmp-devel pcsc-lite python-devel
BuildRequires:  libkdepimlibs4-devel libkonq-devel libqca2-devel libzip-devel oxygen-icon-theme
BuildRequires:  libknotificationitem-devel
%if %suse_version > 1110
BuildRequires:  xz-devel
%else
%if %suse_version > 1030
BuildRequires:  lzma-devel
%endif
%endif
%if %suse_version > 1020
BuildRequires:  libarchive-devel
%endif
BuildRequires:  python-cups
%define with_python 1
%if %with_python
BuildRequires:  python-kde4-devel
%endif
License:        GPLv2+
Group:          Productivity/Other
Summary:        Base Package of KDE Utility Programs
Url:            http://www.kde.org
Version:        4.3.5
Release:        0.<RELEASE1>
Source0:        kdeutils-%version.tar.bz2
Patch:          4_3_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:       kdessh
Suggests:       kdf
Suggests:       kfloppy
Suggests:       kgpg
Suggests:       ktimer
Suggests:       kwalletmanager
Suggests:       kwikdisk
Suggests:       sweeper
Suggests:       okteta
Suggests:       superkaramba
%if %with_python
Suggests:       kde4-printer-applet
%endif
Suggests:       kdelirc

%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/
     cp $RPM_BUILD_ROOT/usr/share/icons/oxygen/"$i"x"$i"/devices/infrared-remote.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 kdessh
  %create_subdir_filelist -d kdf
  %create_subdir_filelist -d kfloppy
  %create_subdir_filelist -d kgpg
  %create_subdir_filelist -d okteta
  %create_subdir_filelist -d ktimer
  %create_subdir_filelist -d kwallet
  %create_subdir_filelist -d superkaramba
  %create_subdir_filelist -d sweeper
  %create_subdir_filelist -d kdelirc
%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 okteta      Utility Editor
  %suse_update_desktop_file KFloppy     System  Filesystem
  %suse_update_desktop_file irkick      Applet
  %kde_post_install

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%clean
  rm -rf $RPM_BUILD_ROOT
  rm -rf filelists

%package -n ark
License:        GPLv2+
Group:          Productivity/Archiving/Compression
Summary:        KDE Archiver Tool
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

%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
License:        GPLv2+
Group:          Productivity/Scientific/Math
Summary:        Scientific Calculator
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 kcharselect
License:        GPLv2+
Group:          Productivity/Other
Summary:        KDE Character Selector
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 kdessh
License:        GPLv2+
Group:          System/GUI/KDE
Summary:        Remote Application Executor
%kde4_runtime_requires
Provides:       kde4-kdessh = 4.3.0
Obsoletes:      kde4-kdessh < 4.3.0
Provides:       kdeutils3:/opt/kde3/bin/kdessh

%description -n kdessh
Runs a program on a remote host



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

%post -n kdessh -p /sbin/ldconfig

%postun -n kdessh -p /sbin/ldconfig

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

%package -n kdf
License:        GPLv2+
Group:          System/Monitoring
Summary:        Disk Usage Viewer
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
License:        GPLv2+
Group:          System/GUI/KDE
Summary:        Floppy Formatter
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
License:        GPLv2+
Group:          Productivity/Security
Summary:        Encryption Tool
Provides:       kde4-kgpg = 4.3.0
Obsoletes:      kde4-kgpg < 4.3.0
%kde4_runtime_requires
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
License:        GPLv2+
Group:          Productivity/Other
Summary:        Countdown Launcher
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
License:        GPLv2+
Group:          System/GUI/KDE
Summary:        Wallet Management Tool
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
%dir %_kde4_appsdir/kwalletmanager
%dir %_kde4_appsdir/kwalletmanager/icons
%dir %_kde4_appsdir/kwalletmanager/icons/oxygen
%dir %_kde4_appsdir/kwalletmanager/icons/oxygen/22x22
%dir %_kde4_appsdir/kwalletmanager/icons/oxygen/22x22/actions

%package -n kwikdisk
License:        GPLv2+
Group:          System/GUI/KDE
Summary:        Removable Media Utility
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
License:        GPLv2+
Group:          System/GUI/KDE
Summary:        KDE Privacy Utility
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 okteta
License:        GPLv2+
Group:          Development/Tools/Other
Summary:        Hex Editor
Provides:       kde4-okteta = 4.0.81
Obsoletes:      kde4-okteta <= 4.0.81
%kde4_runtime_requires

%description -n okteta
Okteta is a hex editor for the KDE desktop.



Authors:
--------
    Friedrich W. H. Kossebau <kossebau@kde.org>

%post -n okteta -p /sbin/ldconfig

%postun -n okteta -p /sbin/ldconfig

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

%package -n superkaramba
License:        GPLv2+
Group:          System/GUI/KDE
Summary:        Desktop Widgets
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
License:        GPLv2+
Group:          Productivity/Other
Summary:        System tray utility to show current print jobs
%kde4_runtime_requires
Requires:       python-kde4 python-cups

%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 kdelirc
License:        GPLv2+
Group:          Productivity/Other
Summary:        Frontend for the Linux Infrared Remote Control system
%kde4_runtime_requires

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



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

%post -n kdelirc -p /sbin/ldconfig

%postun -n kdelirc -p /sbin/ldconfig

%files -n kdelirc -f filelists/kdelirc
%defattr(-,root,root)
%doc %lang(en) %_kde4_htmldir/en/kcmlirc
%doc %lang(en) %_kde4_htmldir/en/irkick
%dir %_kde4_iconsdir/oxygen/8x8/devices
%dir %_kde4_iconsdir/oxygen/42x42
%dir %_kde4_iconsdir/oxygen/42x42/devices
%dir %_kde4_appsdir/irkick
%dir %_kde4_appsdir/profiles
%dir %_kde4_appsdir/remotes
%_kde4_iconsdir/hicolor/*/apps/infrared-remote.*

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

%changelog
openSUSE Build Service is sponsored by