File kdenetwork4.spec of Package kdenetwork4

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

Name:           kdenetwork4
Version:        4.8.4
Release:        0
Summary:        KDE Network Base Package
License:        GPL-2.0+
Group:          Productivity/Networking/Other
Source0:        kdenetwork-%{version}.tar.xz
Patch1:         kopete-qq-memset.patch
BuildRequires:  LibVNCServer-devel
BuildRequires:  fdupes
BuildRequires:  gpgme-devel
BuildRequires:  ilbc
BuildRequires:  kdebase4-workspace-devel
BuildRequires:  kwebkitpart
BuildRequires:  libexpat-devel
BuildRequires:  libgadu-devel
BuildRequires:  libiw-devel
BuildRequires:  libjasper-devel
BuildRequires:  libkdepimlibs4-devel
BuildRequires:  libkonq-devel
BuildRequires:  libmms-devel
# does not work upstream atm BuildRequires:  libktorrent-devel
BuildRequires:  libmsn-devel
BuildRequires:  libotr-devel
BuildRequires:  libqca2-devel
BuildRequires:  libqimageblitz-devel
BuildRequires:  libsoprano-devel
BuildRequires:  libv4l-devel
BuildRequires:  linphone-devel
BuildRequires:  meanwhile-devel
BuildRequires:  openslp-devel
BuildRequires:  oxygen-icon-theme-large
BuildRequires:  pkg-config
BuildRequires:  speex-devel
BuildRequires:  sqlite-devel
BuildRequires:  xz
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

This package suggests the packages which are built from the kdenetwork

%setup -q -n kdenetwork-%{version}

%ifarch ppc ppc64
export RPM_OPT_FLAGS="%{optflags} -mminimal-toc"
  %cmake_kde4 -d build -- -DMOZPLUGIN_INSTALL_DIR=/usr/%{_lib}/browser-plugins

  cd build
  for res in 16 22 32 48 64 128
    cp %{_kde4_iconsdir}/oxygen/"$res"x"$res"/apps/krdc.png %{buildroot}%{_kde4_iconsdir}/hicolor/"$res"x"$res"/apps/
    cp %{_kde4_iconsdir}/oxygen/"$res"x"$res"/apps/krfb.png %{buildroot}%{_kde4_iconsdir}/hicolor/"$res"x"$res"/apps/
  %create_subdir_filelist -d filesharing
  %create_subdir_filelist -d kdnssd
  %create_subdir_filelist -d kget
  %create_subdir_filelist -d kopete -v kopete.devel
  %create_subdir_filelist -d kppp
  %create_subdir_filelist -d krdc
  %create_subdir_filelist -d krfb
  cd ..
  # FIXME: contact security team
  chmod u-s %{buildroot}%_bindir/kppp
  %suse_update_desktop_file kopete          Network  InstantMessaging
  %suse_update_desktop_file Kppp            Network  Dialup
  %suse_update_desktop_file -r kppplogview  System   Monitor
  %suse_update_desktop_file -r krdc         System   RemoteAccess
  %suse_update_desktop_file -r kget         System   TrayIcon
  %suse_update_desktop_file -r krfb         System   RemoteAccess
  %fdupes -s %{buildroot}

  rm -rf %{buildroot}
  rm -rf filelists

%package filesharing
Summary:        Network file sharing support for KDE
Group:          Productivity/Networking/System
Obsoletes:      %{name} < %{version}
Provides:       %{name} = %{version}
Enhances:       dolphin

%description filesharing
This package allows KDE file managers like dolphin and konqueror
to share files on the local network using samba.

%package -n kdnssd
Summary:        Zeroconf Support for KDE
Group:          Productivity/Networking/System
Obsoletes:      kde4-kdnssd < 4.3.0
Provides:       kde4-kdnssd = 4.3.0

%description -n kdnssd
This package contains the Zeroconf support for KDE.

%package -n kget
Summary:        Download Manager
Group:          Productivity/Networking/Other
Obsoletes:      kde4-kget < 4.3.0
Provides:       kde4-kget = 4.3.0

%description -n kget
An advanced download manager for KDE

%package -n kget-devel
Summary:        Development files for kget
Group:          Development/Libraries/KDE
Requires:       kget = %{version}

%description -n kget-devel
Development libraries and headers needed to build software using kget

%package -n kopete
Summary:        Instant Messenger
Group:          Productivity/Networking/Instant Messenger
Requires:       kdepim4-runtime
Recommends:     kopete-protocol-facebook
Obsoletes:      kde4-kopete < 4.3.0
Provides:       kde4-kopete = 4.3.0
# binary compatibility doesn't really exist here
%requires_eq    libmsn0_1

%description -n kopete
Kopete is the KDE instant messenger and supports multiple protocols.

%package -n kopete-devel
Summary:        Development files for kopete
Group:          Development/Libraries/KDE
Requires:       kopete = %{version}
Requires:       libkdepimlibs4-devel
Obsoletes:      kde4-kopete-devel < 4.3.0
Provides:       kde4-kopete-devel = 4.3.0

%description -n kopete-devel
This package provides development files and headers needed to build
software using kopete

%package -n kppp
Summary:        Internet Dial-Up Tool
Group:          Productivity/Networking/Other
Obsoletes:      kde4-kppp < 4.3.0
Provides:       kde4-kppp = 4.3.0

%description -n kppp
A dialer and front-end to pppd

%package -n krdc
Summary:        Remote Desktop Connection
Group:          Productivity/Networking/Remote Desktop
Recommends:     rdesktop
Obsoletes:      kde4-krdc < 4.3.0
Provides:       kde4-krdc = 4.3.0

%description -n krdc
Krdc allows to connect to VNC and RDP compatible servers.

%package -n krdc-devel
Summary:        Development files for krdc
Group:          Development/Libraries/KDE
Requires:       krdc = %{version}

%description -n krdc-devel
Development libraries and headers needed to build software using krdc

%package -n krfb
Summary:        Desktop Sharing
Group:          Productivity/Networking/Remote Desktop
Obsoletes:      kde4-krfb < 4.3.0
Provides:       kde4-krfb = 4.3.0

%description -n krfb
VNC-compatible server to share KDE desktops.

%post   filesharing -p /sbin/ldconfig

%postun filesharing -p /sbin/ldconfig

%post   -n kdnssd -p /sbin/ldconfig

%postun -n kdnssd -p /sbin/ldconfig

%post   -n kget -p /sbin/ldconfig

%postun -n kget -p /sbin/ldconfig

%post   -n kopete -p /sbin/ldconfig

%postun -n kopete -p /sbin/ldconfig

%post   -n kppp -p /sbin/ldconfig

%postun -n kppp -p /sbin/ldconfig

%post   -n krdc -p /sbin/ldconfig

%postun -n krdc -p /sbin/ldconfig

%post   -n krfb -p /sbin/ldconfig

%postun -n krfb -p /sbin/ldconfig

%files filesharing -f filelists/filesharing

%files -n kdnssd -f filelists/kdnssd
%dir %{_kde4_appsdir}/remoteview

%files -n kget -f filelists/kget
%dir %{_kde4_appsdir}/dolphinpart
%dir %{_kde4_appsdir}/dolphinpart/kpartplugins
%exclude %{_kde4_libdir}/
%exclude %{_includedir}/krdc/hostpreferences.h

%files -n kget-devel

%files -n kopete -f filelists/kopete
%dir %{_kde4_appsdir}/kopete_contactnotes
%dir %{_kde4_appsdir}/kopete_groupwise
%dir %{_kde4_appsdir}/kopete_history
%dir %{_kde4_appsdir}/kopete_jabber
%dir %{_kde4_appsdir}/kopete_latex
%dir %{_kde4_appsdir}/kopete_otr
%dir %{_kde4_appsdir}/kopete_privacy
%dir %{_kde4_appsdir}/kopete_skype
%dir %{_kde4_appsdir}/kopete_statistics
%dir %{_kde4_appsdir}/kopete_translator
%dir %{_kde4_appsdir}/kopete_yahoo
%dir %{_kde4_appsdir}/kopete_wlm
%dir %{_kde4_appsdir}/kopeterichtexteditpart
%dir %{_kde4_servicesdir}/kconfiguredialog
%dir %{_kde4_appsdir}/kwebkitpart/kpartplugins
%dir %{_kde4_modulesdir}/plugins/accessible

%files -n kopete-devel -f filelists/kopete.devel
%dir %{_includedir}/kopete
%dir %{_includedir}/kopete/ui

%files -n kppp -f filelists/kppp

%files -n krdc -f filelists/krdc
%exclude %{_kde4_libdir}/
%exclude %{_includedir}/krdc/

%files -n krdc-devel

%files -n krfb -f filelists/krfb

openSUSE Build Service is sponsored by