File kdeutils4.spec of Package kdeutils4
#
# spec file for package kdeutils4
#
# Copyright (c) 2011 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: fdupes
BuildRequires: gmp-devel
BuildRequires: kdebase4-workspace-devel
BuildRequires: libarchive-devel
BuildRequires: libkdepimlibs4-devel
BuildRequires: libkonq-devel
BuildRequires: libqca2-devel
BuildRequires: libqimageblitz-devel
BuildRequires: libzip-devel
BuildRequires: net-snmp-devel
BuildRequires: oxygen-icon-theme-large
BuildRequires: pcsc-lite
BuildRequires: xz-devel
%define with_python 1
%if %with_python
BuildRequires: python-cups
BuildRequires: python-kde4-devel
%endif
Version: 4.7.2
Release: 1
License: GPLv2+
Summary: Base Package of KDE Utility Programs
Url: http://www.kde.org
Group: Productivity/Other
Source0: kdeutils-%{version}.tar.bz2
Patch1: desktop-files.diff
Patch2: kgpg-autostart.diff
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%kde4_runtime_requires
%description
This package suggest all KDE utility programs which are created from
this module.
%prep
%setup -q -n kdeutils-%{version}
%patch1
%patch2
%build
%cmake_kde4 -d build
%make_jobs
%install
cd build
%make_install
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-file-archiver.png %{buildroot}%{_kde4_iconsdir}/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 ..
%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
%fdupes -s %{buildroot}%{_kde4_iconsdir}
%kde_post_install
%package -n ark
License: GPLv2+
Summary: KDE Archiver Tool
Group: Productivity/Archiving/Compression
Provides: kde4-ark = 4.3.0
Obsoletes: kde4-ark < 4.3.0
%kde4_runtime_requires
%description -n ark
This is a KDE application to work with compressed archives.
%post -n ark -p /sbin/ldconfig
%postun -n ark -p /sbin/ldconfig
%package -n filelight
License: GPLv2+
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.
%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
%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+
Summary: Scientific Calculator
Group: Productivity/Scientific/Math
Provides: kde4-kcalc = 4.3.0
Obsoletes: kde4-kcalc < 4.3.0
Provides: kdeutils3:/opt/kde3/bin/kcalc
%kde4_runtime_requires
%description -n kcalc
KCalc is a one-line calculator tool for KDE. It has both normal
and scientific modes.
%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+
Summary: KDE Character Selector
Group: Productivity/Other
Provides: kde4-kcharselect = 4.3.0
Obsoletes: kde4-kcharselect < 4.3.0
Suggests: kcharselect-doc = %{version}
%kde4_runtime_requires
%description -n kcharselect
KCharSelect is the KDE character selector tool. It allows you to find
special characters from installed fonts and load them into the clipboard.
%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
%exclude %{_kde4_htmldir}/en/kcharselect/
%package -n kcharselect-doc
License: GPLv2+
Summary: Documentation for kcharselect
Group: System/GUI/KDE
Requires: kcharselect = %{version}
%kde4_runtime_requires
%description -n kcharselect-doc
This package provides documentation and help files for kcharselect
%files -n kcharselect-doc
%defattr(-,root,root)
%doc AUTHORS COPYING COPYING.DOC README
%doc %lang(en) %{_kde4_htmldir}/en/kcharselect/
%package -n kde4-printer-applet
License: GPLv2+
Summary: System tray utility to show current print jobs
Group: Productivity/Other
Requires: python-cups
Requires: python-kde4
Requires: system-config-printer
%kde4_runtime_requires
%description -n kde4-printer-applet
Provides a system tray icon to view the status of your printer
and to control print jobs.
%if %with_python
%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)
%endif
%package -n kdf
License: GPLv2+
Summary: Disk Usage Viewer
Group: System/Monitoring
Provides: kde4-kdf = 4.3.0
Obsoletes: kde4-kdf < 4.3.0
Provides: kdeutils3:/opt/kde3/bin/kdf
%kde4_runtime_requires
%description -n kdf
A utility for KDE to show the amount of free space on drives
%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_applicationsdir}/kwikdisk.desktop
%exclude %{_kde4_bindir}/kwikdisk
%exclude %{_kde4_iconsdir}/hicolor/*/apps/kwikdisk.*
%package -n kfloppy
License: GPLv2+
Summary: Floppy Formatter
Group: System/GUI/KDE
Provides: kde4-kfloppy = 4.3.0
Obsoletes: kde4-kfloppy < 4.3.0
Provides: kdeutils3:/opt/kde3/bin/kfloppy
%kde4_runtime_requires
%description -n kfloppy
A KDE utility to format floppy disks
%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+
Summary: Encryption Tool
Group: Productivity/Security
Requires: kdepim4-runtime
Provides: kde4-kgpg = 4.3.0
Obsoletes: kde4-kgpg < 4.3.0
Provides: kdeutils3:/opt/kde3/bin/kgpg
%kde4_runtime_requires
%kde4_pimlibs_requires
%description -n kgpg
Kgpg is a simple GUI for gpg
%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 kremotecontrol
License: GPLv2+
Summary: KDE Frontend for LIRC
Group: Productivity/Other
Obsoletes: kdelirc < 4.7.1
Provides: kdelirc = 4.7.1
%kde4_runtime_requires
%description -n kremotecontrol
Kremotecontrol is a KDE Frontend for the Linux Infrared Remote Control system
It allows you to configure IR and RF remote controls and use them to control
KDE applications as well as other applications.
%post -n kremotecontrol -p /sbin/ldconfig
%postun -n kremotecontrol -p /sbin/ldconfig
%files -n kremotecontrol -f filelists/kremotecontrol
%defattr(-,root,root)
%dir %{_kde4_appsdir}/kremotecontroldaemon
%dir %{_kde4_iconsdir}/hicolor/42x42
%dir %{_kde4_iconsdir}/hicolor/42x42/devices
%dir %{_kde4_iconsdir}/hicolor/8x8
%dir %{_kde4_iconsdir}/hicolor/8x8/devices
%dir %{_kde4_servicesdir}/kremotecontrolbackends
%exclude %{_kde4_htmldir}/en/kcontrol/kremotecontrol/
%package -n kremotecontrol-doc
License: GPLv2+
Summary: Documentation for kremotecontrol
Group: Productivity/Other
Obsoletes: kdelirc < 4.7.1
Provides: kdelirc = 4.7.1
%kde4_runtime_requires
%description -n kremotecontrol-doc
This package provides documentation and help files for kremotecontrol
%files -n kremotecontrol-doc
%defattr(-,root,root)
%doc %lang(en) %{_kde4_htmldir}/en/kcontrol/kremotecontrol
%package -n ktimer
License: GPLv2+
Summary: Countdown Launcher
Group: Productivity/Other
Provides: kde4-ktimer = 4.3.0
Obsoletes: kde4-ktimer < 4.3.0
Suggests: ktimer-doc = %{version}
%kde4_runtime_requires
%description -n ktimer
Countdown launching tool for KDE
%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
%exclude %{_kde4_htmldir}/en/ktimer/
%package -n ktimer-doc
License: GPLv2+
Summary: Documentation for ktimer
Group: System/GUI/KDE
Requires: ktimer = %{version}
%kde4_runtime_requires
%description -n ktimer-doc
This package provides documentation and help files for ktimer
%files -n ktimer-doc
%defattr(-,root,root)
%doc AUTHORS COPYING COPYING.DOC README
%doc %lang(en) %{_kde4_htmldir}/en/ktimer/
%package -n kwalletmanager
License: GPLv2+
Summary: Wallet Management Tool
Group: System/GUI/KDE
Provides: kde4-kwalletmanager = 4.3.0
Obsoletes: kde4-kwalletmanager < 4.3.0
Provides: kdeutils3:/opt/kde3/bin/kwalletmanager
Obsoletes: %{name} < %{version}
Provides: %{name} = %{version}
%kde4_runtime_requires
%description -n kwalletmanager
This application allows you to manage your KDE password wallet.
%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
License: GPLv2+
Summary: Removable Media Utility
Group: System/GUI/KDE
Provides: kde4-kwikdisk = 4.3.0
Obsoletes: kde4-kwikdisk < 4.3.0
Provides: kdeutils3:/opt/kde3/bin/kwikdisk
%kde4_runtime_requires
%description -n kwikdisk
This utility allows you to manage removable media.
%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.*
%doc %lang(en) %{_kde4_htmldir}/en/kcontrol/blockdevices
%package -n superkaramba
License: GPLv2+
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.
%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
%package -n sweeper
License: GPLv2+
Summary: KDE Privacy Utility
Group: System/GUI/KDE
Provides: kde4-sweeper = 4.3.0
Obsoletes: kde4-sweeper < 4.3.0
Suggests: sweeper-doc = %{version}
%kde4_runtime_requires
%description -n sweeper
Helps clean unwanted traces the user leaves on the system.
%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
%exclude %{_kde4_htmldir}/en/sweeper/
%package -n sweeper-doc
License: GPLv2+
Summary: Documentation for sweeper
Group: System/GUI/KDE
Requires: sweeper = %{version}
%kde4_runtime_requires
%description -n sweeper-doc
This package provides documentation and help files for sweeper
%files -n sweeper-doc
%defattr(-,root,root)
%doc AUTHORS COPYING COPYING.DOC README
%doc %lang(en) %{_kde4_htmldir}/en/sweeper/
%changelog