File kdebase4.spec of Package kdebase4

#
# spec file for package kdebase4
#
# Copyright (c) 2015 SUSE LINUX 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:           kdebase4
Version:        15.04.1
Release:        0
Summary:        The Base KDE Apps
License:        GPL-2.0+
Group:          System/GUI/KDE
Url:            http://www.kde.org/
Source0:        kde-baseapps-%{version}.tar.xz
Source1:        baselibs.conf
Source2:        %{name}-rpmlintrc
Source3:        dolphinsu.desktop
Patch1:         dolphin-go_up.diff
# PATCH-FIX-OPENSUSE folderview_align_to_grid_true.diff (created by Christian Trippe to make icon set to align the default in folderview bnc#327502)
Patch2:         folderview_align_to_grid_true.diff
BuildRequires:  baloo-devel
BuildRequires:  fdupes
BuildRequires:  libkactivities-devel
BuildRequires:  libkde4-devel >= 4.14
BuildRequires:  libsmbclient-devel
BuildRequires:  libtidy-devel
BuildRequires:  xz
Provides:       browser(npapi)
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%kde4_runtime_requires

%description
This package contains the basic applications for a KDE workspace.

%prep
%setup -q -n kde-baseapps-%{version}
%patch1 -p1
%patch2 -p1

%build
  %cmake_kde4 -d build
  %make_jobs

%install
  pushd build
  %kde4_makeinstall
  %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 konq-plugins
  %create_subdir_filelist -d lib -v lib.devel
  %create_subdir_filelist -d nsplugins
  popd
  %create_exclude_filelist
  install -D -m 0644 %{SOURCE3} %{buildroot}%{_kde4_applicationsdir}
  %suse_update_desktop_file konqbrowser      WebBrowser
  %suse_update_desktop_file konquerorsu      System FileManager
  %suse_update_desktop_file dolphin          System FileManager
  %suse_update_desktop_file kfind            System Filesystem core
  %suse_update_desktop_file Home             System FileManager core
  %fdupes -s %{buildroot}
  %kde_post_install

%package -n dolphin4
Summary:        KDE File Manager
Group:          Productivity/File utilities
Requires:       %{name}-libkonq4 = %{version}
Recommends:     konsole4-part
Recommends:     kate4-part
%kde4_runtime_requires

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

%package -n kdepasswd
Summary:        KDE Password Changer
Group:          System/GUI/KDE
%kde4_runtime_requires

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

%package -n kdialog4
Summary:        KDE version of xdialog
Group:          System/GUI/KDE
%kde4_runtime_requires

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

%package -n keditbookmarks4
Summary:        KDE Bookmark Editor
Group:          System/GUI/KDE
%kde4_runtime_requires

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

%package -n kfind4
Summary:        KDE Find File Utility
Group:          Productivity/File utilities
%kde4_runtime_requires

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

%package -n konqueror4
Summary:        KDE File Manager and Browser
Group:          Productivity/Networking/Web/Browsers
Requires:       %{name}-libkonq4 = %{version}
Requires:       konqueror4-plugins = %{version}
# needed for embedded filemanagement part
Recommends:     dolphin
Recommends:     kwebkitpart
Recommends:     kdebase4-nsplugin
%kde4_runtime_requires

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

%package -n konqueror4-plugins
Summary:        KDE File Manager and Browser
Group:          Productivity/Networking/Web/Browsers
Requires:       %{name}-libkonq4 = %{version}
Provides:       konqueror-plugins-lang = %{version}
Obsoletes:      konqueror-plugins-lang < %{version}
%kde4_runtime_requires

%description -n konqueror4-plugins
These plugins extend the functionality of Konqueror.

%package libkonq4
Summary:        KDE Konqueror Libraries
Group:          System/GUI/KDE
Requires:       libkonq5 = %{version}
%kde4_runtime_requires

%description libkonq4
This package contains the files used by file managers as Konqueror.

%package -n libkonq4-devel
Summary:        KDE Konqueror Libraries: Build Environment
Group:          Development/Libraries/KDE
Requires:       libkde4-devel
Requires:       libkonq5 = %{version}

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

%package -n libkonq5
Summary:        KDE Konqueror Libraries
Group:          System/GUI/KDE
# naming error, make seamless upgrade possible
%requires_ge    libqt4-x11

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

%package nsplugin
Provides:       %{name}-nsplugin64 = 4.0.72
Obsoletes:      %{name}-nsplugin64 < 4.0.72
%ifarch x86_64 ppc64 s390x ia64
Suggests:       nspluginwrapper
%endif
Summary:        Netscape plugin support for KDE
Group:          System/GUI/KDE
%kde4_runtime_requires

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

%package -n plasmoid-folderview
Summary:        Plasmoid to display a folder
Group:          System/GUI/KDE
Provides:       %{name} = %{version}
Obsoletes:      %{name} < %{version}
%kde4_runtime_requires

%description -n plasmoid-folderview
This applet displays the contents of a folder or kio slave on your
desktop or in your panel

%post   -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%post   -n dolphin4 -p /sbin/ldconfig

%postun -n dolphin4 -p /sbin/ldconfig

%post   -n kdepasswd -p /sbin/ldconfig

%postun -n kdepasswd -p /sbin/ldconfig

%post   -n kdialog4 -p /sbin/ldconfig

%postun -n kdialog4 -p /sbin/ldconfig

%post   -n keditbookmarks4 -p /sbin/ldconfig

%postun -n keditbookmarks4 -p /sbin/ldconfig

%post   -n kfind4 -p /sbin/ldconfig

%postun -n kfind4 -p /sbin/ldconfig

%post   -n konqueror4 -p /sbin/ldconfig

%postun -n konqueror4 -p /sbin/ldconfig

%post   -n konqueror4-plugins -p /sbin/ldconfig

%postun -n konqueror4-plugins -p /sbin/ldconfig

%post   libkonq4 -p /sbin/ldconfig

%postun libkonq4 -p /sbin/ldconfig

%post   -n libkonq5 -p /sbin/ldconfig

%postun -n libkonq5 -p /sbin/ldconfig

%files -n dolphin4 -f filelists/dolphin
%defattr(-,root,root)
%doc COPYING COPYING.DOC README
%dir %{_kde4_appsdir}/dolphinpart
%dir %{_kde4_datadir}/appdata
%dir %{_kde4_appsdir}/dolphin
%{_kde4_applicationsdir}/dolphinsu.desktop
%dir %{_datadir}/doc/kde/HTML/en/dolphin

%files -n kdepasswd -f filelists/kdepasswd
%defattr(-,root,root)
%doc COPYING COPYING.DOC README
%dir %{_kde4_appsdir}/kdm
%dir %{_kde4_appsdir}/kdm/pics
%dir %{_kde4_appsdir}/kdm/pics/users
%dir %{_datadir}/doc/kde/HTML/en/kdepasswd

%files -n kdialog4 -f filelists/kdialog
%defattr(-,root,root)
%doc COPYING COPYING.DOC
%doc kdialog/README kdialog/progressdemo kdialog/progresscanceldemo kdialog/test

%files -n keditbookmarks4 -f filelists/keditbookmarks
%defattr(-,root,root)
%doc COPYING COPYING.DOC README
%dir %{_kde4_appsdir}/keditbookmarks

%files -n kfind4 -f filelists/kfind
%defattr(-,root,root)
%doc COPYING COPYING.DOC README
%dir %{_datadir}/doc/kde/HTML/en/kfind

%files -n konqueror4 -f filelists/konqueror
%defattr(-,root,root)
%doc COPYING COPYING.DOC README
%dir %{_datadir}/autostart
%dir %{_kde4_appsdir}/dolphinpart/kpartplugins
%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_appsdir}/konqueror/opensearch
%dir %{_kde4_appsdir}/konqueror/kpartplugins
#dir %{_kde4_appsdir}/konqueror
%dir %{_kde4_appsdir}/konqueror/about
#dir %{_kde4_appsdir}/konqueror/pics
%dir %{_kde4_appsdir}/konqueror/profiles
%dir %{_kde4_appsdir}/kwebkitpart/
%dir %{_kde4_appsdir}/kwebkitpart/kpartplugins/
%dir %{_kde4_servicesdir}/useragentstrings
%dir %{_datadir}/doc/kde/HTML/en/konqueror
# installed from apps/lib/konq/ and hence in kdebase4-libkonq
%exclude %{_kde4_appsdir}/konqueror/pics/arrow_bottomleft.png
%exclude %{_kde4_appsdir}/konqueror/pics/arrow_bottomright.png
%exclude %{_kde4_appsdir}/konqueror/pics/arrow_topleft.png
%exclude %{_kde4_appsdir}/konqueror/pics/arrow_topright.png
%exclude %{_kde4_includedir}/konqsidebarplugin.h
%exclude %{_kde4_libdir}/libkonqsidebarplugin.so

%files -n konqueror4-plugins -f filelists/konq-plugins
%defattr(-,root,root)
%doc COPYING COPYING.DOC README
%dir %{_kde4_appsdir}/akregator
%dir %{_kde4_appsdir}/akregator/pics
%dir %{_kde4_appsdir}/domtreeviewer
%dir %{_kde4_appsdir}/fsview
%dir %{_kde4_appsdir}/konqueror/icons
%dir %{_kde4_appsdir}/konqueror/icons/oxygen
%dir %{_kde4_appsdir}/konqueror/icons/oxygen/*
%dir %{_kde4_appsdir}/konqueror/icons/oxygen/*/actions
%dir %{_kde4_appsdir}/konqueror/kpartplugins
%dir %{_kde4_appsdir}/konqueror/opensearch

%files libkonq4 -f filelists/lib
%defattr(-,root,root)
%doc COPYING COPYING.DOC README
%dir %{_kde4_appsdir}/kbookmark
%dir %{_kde4_sharedir}/templates
%dir %{_kde4_sharedir}/templates/.source
%dir %{_kde4_appsdir}/konqueror
%exclude %{_kde4_includedir}/knewmenu.h
%exclude %{_kde4_includedir}/konq_*.h
%exclude %{_kde4_includedir}/konqmimedata.h
%exclude %{_kde4_includedir}/kversioncontrolplugin.h
%exclude %{_kde4_includedir}/libkonq_export.h
%exclude %{_kde4_libdir}/libkonq.so
%exclude %{_kde4_libdir}/libkonq.so.*

%files -n libkonq4-devel -f filelists/lib.devel
%defattr(-,root,root)
%doc COPYING COPYING.DOC README
%{_kde4_includedir}/knewmenu.h
%{_kde4_includedir}/konq_*.h
%{_kde4_includedir}/konqmimedata.h
%{_kde4_includedir}/konqsidebarplugin.h
%{_kde4_includedir}/kversioncontrolplugin.h
%{_kde4_includedir}/libkonq_export.h
%{_kde4_libdir}/libkonq.so
%{_kde4_libdir}/libkonqsidebarplugin.so
%dir %{_kde4_appsdir}/konqueror/pics

%files -n libkonq5
%defattr(-,root,root)
%doc COPYING COPYING.DOC README
%{_kde4_libdir}/libkonq.so.*

%files nsplugin -f filelists/nsplugins
%defattr(-,root,root)
%doc COPYING COPYING.DOC README
#dir %{_kde4_appsdir}/nsplugin

%files -n plasmoid-folderview
%defattr(-,root,root)
%doc COPYING COPYING.DOC README
%{_kde4_modulesdir}/plasma_applet_folderview.so
%{_kde4_servicesdir}/plasma-applet-folderview.desktop

%changelog