File kdebase4.spec of Package kdebase4

# spec file for package kdebase4
# 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

Name:           kdebase4
Version:        4.6.0
Release:        6.<RELEASE2>
License:        GPLv2+
Summary:        The Base KDE Apps
Group:          System/GUI/KDE
BuildRequires:  NetworkManager-devel
BuildRequires:  bluez-devel
BuildRequires:  kwebkitpart-devel
BuildRequires:  libkde4-devel = %{version}
BuildRequires:  libqimageblitz-devel
BuildRequires:  libraw1394-devel
BuildRequires:  libsmbclient-devel
BuildRequires:  libsoprano-devel
BuildRequires:  libxklavier-devel
BuildRequires:  soprano-backend-redland
BuildRequires:  xine-devel
%if 0%{?suse_version} > 1020
BuildRequires:  fdupes
BuildRequires:  libusb-devel
BuildRequires:  libusb
%if 0%{?suse_version} > 1030
BuildRequires:  pciutils-devel
Source0:        kdebase-%{version}.tar.bz2
Source1:        baselibs.conf
Source2:        rpmlintrc
Source4:        konsolesu.desktop
Source5:        dolphinsu.desktop
Source21:       utilities-terminal-su-16.png
Source22:       utilities-terminal-su-22.png
Source23:       utilities-terminal-su-32.png
Source24:       utilities-terminal-su-48.png
Source25:       utilities-terminal-su-64.png
Source26:       utilities-terminal-su-128.png
# PATCH-UPSTREAM -- generated from SVN
Patch0:         4_5_BRANCH.diff
Patch7:         dolphin-go_up.diff
Patch8:         plasma-new-default-panel.diff
Patch9:         bko#259335-plasma-doubleclick-dnd.diff
Patch10:        changeset_r18dd5bd012dae86b118c7b7a132866c0c7781297.diff
Patch11:        changeset_re52b6b0ac0292abdf654e4fb408fd501542c02fa.diff
Suggests:       dolphin
Suggests:       kdebase4-libkonq
Suggests:       kdebase4-nsplugin
Suggests:       kdepasswd
Suggests:       kdialog
Suggests:       keditbookmarks
Suggests:       kfind
Suggests:       konqueror
Suggests:       konsole
Suggests:       kwrite
Provides:       kdebase3:/opt/kde3/bin/kdesktop
Provides:       kdebase4-devel = 3.96.0
Obsoletes:      kdebase4-devel <= 3.96.0
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

This package contains the basic applications for a K Desktop
Environment workspace.

%setup -q -n kdebase-%{version}
###KDE44: rediff?
pushd apps
%patch9 -p1
pushd konsole
%patch10 -p1
%patch11 -p1

  %cmake_kde4 -d build

  cd build
  cd apps
  %create_subdir_filelist -d dolphin
  %create_subdir_filelist -d kdepasswd
  %create_subdir_filelist -d kdialog
  %create_subdir_filelist -d keditbookmarks
  %create_subdir_filelist -d kfind
  %create_subdir_filelist -d konqueror
  %create_subdir_filelist -d konsole
  %create_subdir_filelist -d kwrite
  %create_subdir_filelist -d lib -v lib.devel
  %create_subdir_filelist -d nsplugins
  cd ../..
  install -D -m 0644 %SOURCE4 %SOURCE5 %{buildroot}%{_datadir}/applications/kde4/
  install -D -m 0644 %SOURCE21 %{buildroot}%{_datadir}/icons/hicolor/16x16/apps/utilities-terminal_su.png
  install -D -m 0644 %SOURCE22 %{buildroot}%{_datadir}/icons/hicolor/22x22/apps/utilities-terminal_su.png
  install -D -m 0644 %SOURCE23 %{buildroot}%{_datadir}/icons/hicolor/32x32/apps/utilities-terminal_su.png
  install -D -m 0644 %SOURCE24 %{buildroot}%{_datadir}/icons/hicolor/48x48/apps/utilities-terminal_su.png
  install -D -m 0644 %SOURCE25 %{buildroot}%{_datadir}/icons/hicolor/64x64/apps/utilities-terminal_su.png
  install -D -m 0644 %SOURCE26 %{buildroot}%{_datadir}/icons/hicolor/128x128/apps/utilities-terminal_su.png
  %suse_update_desktop_file konqbrowser      WebBrowser
  %suse_update_desktop_file konquerorsu      System FileManager
  %suse_update_desktop_file dolphin          System FileManager
  %suse_update_desktop_file kwrite           TextEditor
  %suse_update_desktop_file konsole          TerminalEmulator
  %suse_update_desktop_file kfind            System Filesystem core
  %suse_update_desktop_file Home             System FileManager core
  %if 0%{?suse_version} > 1020
  %fdupes -s %{buildroot}

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig
%verify_permissions -e /usr/bin/kcheckpass
%verify_permissions -e /usr/bin/kdesud

  rm -rf %{buildroot}
  rm -rf filelists

%package -n konsole
License:        GPLv2+
Summary:        KDE Terminal
Group:          System/X11/Terminals
Provides:       kdebase3:/opt/kde3/bin/konsole
Provides:       kde4-konsole = 4.3.0
Obsoletes:      kde4-konsole < 4.3.0

%description -n konsole
Konsole is a terminal emulator for the K Desktop Environment.

%post -n konsole -p /sbin/ldconfig

%postun -n konsole -p /sbin/ldconfig

%files -n konsole -f filelists/konsole

%package -n dolphin
License:        GPLv2+
Summary:        KDE File Manager
Group:          Productivity/File utilities
Requires:       kdebase4-libkonq = %{version}
Requires:       kfind
Provides:       kdebase3:/opt/kde3/bin/kfmclient
Provides:       kde4-dolphin = 4.3.0
Obsoletes:      kde4-dolphin < 4.3.0

%description -n dolphin
This package contains the default file manager of KDE 4.

%post -n dolphin -p /sbin/ldconfig

%postun -n dolphin -p /sbin/ldconfig

%files -n dolphin -f filelists/dolphin
%dir %_kde4_appsdir/dolphinpart

%package -n konqueror
License:        GPLv2+
Summary:        KDE File Manager and Browser
Group:          Productivity/Networking/Web/Browsers
Requires:       kdebase4-libkonq = %{version}
# needed for embedded filemanagement part
Recommends:     dolphin
Recommends:     konqueror-plugins
Provides:       kdebase3:/opt/kde3/bin/konqueror
Provides:       kde4-konqueror = 4.3.0
Obsoletes:      kde4-konqueror < 4.3.0

%description -n konqueror
Konqueror allows you to manage your files and browse the web in a
unified interface.

%post -n konqueror -p /sbin/ldconfig

%postun -n konqueror -p /sbin/ldconfig

%files -n konqueror -f filelists/konqueror
%dir %{_datadir}/autostart
%dir %_kde4_appsdir/kcmcss
%dir %_kde4_appsdir/kcontrol
%dir %_kde4_appsdir/kcontrol/pics
%dir %_kde4_appsdir/konqsidebartng/dirtree
%dir %_kde4_appsdir/konqsidebartng/entries
%dir %_kde4_appsdir/konqsidebartng/plugins
%dir %_kde4_appsdir/konqsidebartng/virtual_folders/remote
%dir %_kde4_appsdir/konqsidebartng/virtual_folders/remote/ftp
%dir %_kde4_appsdir/konqsidebartng/virtual_folders/remote/web
%dir %_kde4_servicesdir/useragentstrings
%dir %_kde4_appsdir/dolphinpart/kpartplugins
%dir %_kde4_appsdir/kwebkitpart/kpartplugins
# installed from apps/lib/konq/ and hence in kdebase4-libkonq
%exclude %_kde4_appsdir/konqueror/pics/arrow_bottomright.png
%exclude %_kde4_appsdir/konqueror/pics/arrow_bottomleft.png
%exclude %_kde4_appsdir/konqueror/pics/arrow_topright.png
%exclude %_kde4_appsdir/konqueror/pics/arrow_topleft.png

%package -n kwrite
License:        GPLv2+
Summary:        KDE Text Editor
Group:          Productivity/Editors/Other
Provides:       kdebase3:/opt/kde3/bin/kwrite
Provides:       kde4-kwrite = 4.3.0
Obsoletes:      kde4-kwrite < 4.3.0

%description -n kwrite
KWrite is the default text editor of the K desktop environment.

%post -n kwrite -p /sbin/ldconfig

%postun -n kwrite -p /sbin/ldconfig

%files -n kwrite -f filelists/kwrite

%package -n kfind
License:        GPLv2+
Summary:        KDE Find File Utility
Group:          Productivity/File utilities
Provides:       kdebase3:/opt/kde3/bin/kfind
Provides:       kde4-kfind = 4.3.0
Obsoletes:      kde4-kfind < 4.3.0

%description -n kfind
KFind allows you to search for directories and files.

%post -n kfind -p /sbin/ldconfig

%postun -n kfind -p /sbin/ldconfig

%files -n kfind -f filelists/kfind

%package -n kdialog
License:        GPLv2+
Summary:        KDE version of xdialog
Group:          System/GUI/KDE
Provides:       kdebase3:/opt/kde3/bin/kdialog
Provides:       kde4-kdialog = 4.3.0
Obsoletes:      kde4-kdialog < 4.3.0

%description -n kdialog
KDialog can be used to show nice dialog boxes from shell scripts.

%post -n kdialog -p /sbin/ldconfig

%postun -n kdialog -p /sbin/ldconfig

%files -n kdialog -f filelists/kdialog
%doc COPYING COPYING.DOC apps/kdialog/README apps/kdialog/progressdemo apps/kdialog/progresscanceldemo apps/kdialog/test

%package -n keditbookmarks
License:        GPLv2+
Summary:        KDE Bookmark Editor
Group:          System/GUI/KDE
Provides:       kdebase3:/opt/kde3/bin/keditbookmarks
Provides:       kde4-keditbookmarks = 4.3.0
Obsoletes:      kde4-keditbookmarks < 4.3.0

%description -n keditbookmarks
This is an editor to edit your KDE-wide bookmark set.

%post -n keditbookmarks -p /sbin/ldconfig

%postun -n keditbookmarks -p /sbin/ldconfig

%files -n keditbookmarks -f filelists/keditbookmarks

%package nsplugin
License:        GPLv2+
# usesubdirs nsplugins
Requires:       kdebase4 = %{version}
Provides:       kdebase4-nsplugin64 = 4.0.72
Obsoletes:      kdebase4-nsplugin64 <= 4.0.72
%ifarch x86_64 ppc64 s390x ia64
Recommends:     nspluginwrapper
Summary:        Netscape plugin support for KDE
Group:          System/GUI/KDE
Provides:       kdebase3-nsplugin = 3.5.1
Obsoletes:      kdebase3-nsplugin <= 3.5.1

%description nsplugin
This package contains support for Netscape plug-ins in konqueror. You
have to enable JavaScript for this.

%files nsplugin -f filelists/nsplugins
%dir %_kde4_appsdir/plugin

%package -n libkonq5
License:        GPLv2+
Summary:        KDE Konqueror Libraries
Group:          System/GUI/KDE
# naming error, make seamless upgrade possible
Provides:       libkonq4 = 4.0.85
Obsoletes:      libkonq4 <= 4.0.85
%requires_ge    libqt4-x11

%description -n libkonq5
This package contains the libraries used by file managers as Konqueror.

%post -n libkonq5 -p /sbin/ldconfig

%postun -n libkonq5 -p /sbin/ldconfig

%files -n libkonq5

%package -n kdebase4-libkonq
License:        GPLv2+
Summary:        KDE Konqueror Libraries
Group:          System/GUI/KDE
Requires:       libkonq5 = %{version}

%description -n kdebase4-libkonq
This package contains the files used by file managers as Konqueror.

%post -n kdebase4-libkonq -p /sbin/ldconfig

%postun -n kdebase4-libkonq -p /sbin/ldconfig

%files -n kdebase4-libkonq -f filelists/lib
%exclude %_kde4_libdir/*
%dir %_kde4_appsdir/kbookmark
%dir %_kde4_sharedir/templates
%dir %_kde4_sharedir/templates/.source

%package -n libkonq-devel
License:        GPLv2+
Summary:        KDE Konqueror Libraries: Build Environment
Group:          System/GUI/KDE
Requires:       libkde4-devel
Requires:       libkonq5 = %{version}

%description -n libkonq-devel
This package contains all necessary include files and libraries needed
to develop KDE file manager applications.

%files -n libkonq-devel -f filelists/lib.devel

%package -n kdepasswd
License:        GPLv2+
Summary:        KDE Password Changer
Group:          System/GUI/KDE
Provides:       kdebase3:/opt/kde3/bin/kdepasswd
Provides:       kde4-kdepasswd = 4.3.0
Obsoletes:      kde4-kdepasswd < 4.3.0

%description -n kdepasswd
This application allows you to change your UNIX password.

%post -n kdepasswd -p /sbin/ldconfig

%postun -n kdepasswd -p /sbin/ldconfig

%files -n kdepasswd -f filelists/kdepasswd
%dir %_kde4_appsdir/kdm
%dir %_kde4_appsdir/kdm/pics
%dir %_kde4_appsdir/kdm/pics/users

%if 0

%package -n kinfocenter
License:        GPLv2+
Summary:        KDE Information Center
Group:          Productivity/File utilities
Provides:       kdebase3:/opt/kde3/bin/kinfocenter
Provides:       kde4-kinfocenter = 4.3.0
Obsoletes:      kde4-kinfocenter < 4.3.0

%description -n kinfocenter
This application displays information about your system.

%post -n kinfocenter -p /sbin/ldconfig

%postun -n kinfocenter -p /sbin/ldconfig

%files -n kinfocenter -f filelists/kinfocenter
%dir %_kde4_appsdir/kcmusb
%dir %_kde4_appsdir/kcmview1394


%files -f filelists/exclude

openSUSE Build Service is sponsored by