File kdenetwork4.spec of Package kdenetwork4

#
# spec file for package kdenetwork4
#
# 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:           kdenetwork4
BuildRequires:  LibVNCServer-devel
BuildRequires:  gpgme-devel
BuildRequires:  kwebkitpart-devel
BuildRequires:  libgadu-devel
BuildRequires:  libkdepimlibs4-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:  meanwhile-devel
BuildRequires:  openslp-devel
BuildRequires:  oxygen-icon-theme-large
BuildRequires:  speex-devel
BuildRequires:  sqlite-devel
BuildRequires:  libv4l-devel
BuildRequires:  kdebase4-workspace-devel
BuildRequires:  libkonq-devel
BuildRequires:  libexpat-devel
BuildRequires:  linphone-devel
%if %suse_version > 1110
BuildRequires:  libiw-devel
%else
BuildRequires:  wireless-tools
%endif
Version:        4.6.0
Release:        1
License:        GPLv2+
Summary:        KDE Network Base Package
Url:            http://www.kde.org
Group:          Productivity/Networking/Other
Source0:        kdenetwork-%version.tar.bz2
# PATCH-MISSING-TAG -- See http://en.opensuse.org/Packaging/Patches
Patch:          4_6_BRANCH.diff
# PATCH-MISSING-TAG -- See http://en.opensuse.org/Packaging/Patches
Patch2:         no-samba-kcm.diff
Suggests:       kget
Suggests:       kopete
Suggests:       kppp
Suggests:       krdc
Suggests:       krfb
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%kde4_runtime_requires
Suggests:       kdnssd
Suggests:       kdenetwork4-filesharing
Provides:       kdenetwork4-devel = 3.95.1
Obsoletes:      kdenetwork4-devel <= 3.95.1

%description
This package suggests the packages which are built from the kdenetwork
module.

%prep
%setup -q -n kdenetwork-%version
%patch
%patch2
  # icon fixups
  pushd kget/ui/icons
#  rename ox hi ox*apps-kget.{png,svgz}
  popd

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

%install
  cd build
  %makeinstall
  cp /usr/share/icons/oxygen/128x128/apps/krdc.png %{buildroot}%{_datadir}/icons/hicolor/128x128/apps/
  cp /usr/share/icons/oxygen/16x16/apps/krdc.png %{buildroot}%{_datadir}/icons/hicolor/16x16/apps/
  cp /usr/share/icons/oxygen/22x22/apps/krdc.png %{buildroot}%{_datadir}/icons/hicolor/22x22/apps/
  cp /usr/share/icons/oxygen/32x32/apps/krdc.png %{buildroot}%{_datadir}/icons/hicolor/32x32/apps/
  cp /usr/share/icons/oxygen/48x48/apps/krdc.png %{buildroot}%{_datadir}/icons/hicolor/48x48/apps/
  cp /usr/share/icons/oxygen/64x64/apps/krdc.png %{buildroot}%{_datadir}/icons/hicolor/64x64/apps/
  cp /usr/share/icons/oxygen/128x128/apps/krfb.png %{buildroot}%{_datadir}/icons/hicolor/128x128/apps/
  cp /usr/share/icons/oxygen/16x16/apps/krfb.png %{buildroot}%{_datadir}/icons/hicolor/16x16/apps/
  cp /usr/share/icons/oxygen/22x22/apps/krfb.png %{buildroot}%{_datadir}/icons/hicolor/22x22/apps/
  cp /usr/share/icons/oxygen/32x32/apps/krfb.png %{buildroot}%{_datadir}/icons/hicolor/32x32/apps/
  cp /usr/share/icons/oxygen/48x48/apps/krfb.png %{buildroot}%{_datadir}/icons/hicolor/48x48/apps/
  cp /usr/share/icons/oxygen/64x64/apps/krfb.png %{buildroot}%{_datadir}/icons/hicolor/64x64/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 ..
  %create_exclude_filelist
  # 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
  %kde_post_install

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%clean
  rm -rf %{buildroot}
  rm -rf filelists

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

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

%post -n kopete -p /sbin/ldconfig

%postun -n kopete -p /sbin/ldconfig

%files -n kopete -f filelists/kopete
%defattr(-,root,root)
%doc COPYING COPYING.DOC README
%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_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_otr
%dir %_kde4_appsdir/kopeterichtexteditpart
%dir %_kde4_servicesdir/kconfiguredialog
%dir %_kde4_appsdir/kopete_wlm
%dir %_kde4_appsdir/kwebkitpart/kpartplugins

%package -n kopete-devel
License:        GPLv2+
Summary:        Instant Messenger - Development Files
Group:          Productivity/Networking/Instant Messenger
Requires:       kopete >= %version
Requires:       libkdepimlibs4-devel
Provides:       kde4-kopete-devel = 4.3.0
Obsoletes:      kde4-kopete-devel < 4.3.0
%kde4_runtime_requires

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

%files -n kopete-devel -f filelists/kopete.devel
%defattr(-,root,root)
%doc COPYING COPYING.DOC README
%dir %{_includedir}/kopete
%dir %{_includedir}/kopete/ui

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

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

%post -n kppp -p /sbin/ldconfig

%postun -n kppp -p /sbin/ldconfig

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

%package -n krdc
License:        GPLv2+
Summary:        Remote Desktop Connection
Group:          Productivity/Networking/Remote Desktop
Recommends:     rdesktop
Provides:       kdenetwork3-vnc = 3.5.1
Obsoletes:      kdenetwork3-vnc <= 3.5.1
Provides:       kde4-krdc = 4.3.0
Obsoletes:      kde4-krdc < 4.3.0
%kde4_runtime_requires

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

%post -n krdc -p /sbin/ldconfig

%postun -n krdc -p /sbin/ldconfig

%files -n krdc -f filelists/krdc
%defattr(-,root,root)
%doc COPYING COPYING.DOC README
%dir %{_includedir}/krdc
%_kde4_iconsdir/hicolor/*/apps/krdc.*

%package -n krfb
License:        GPLv2+
Summary:        Desktop Sharing
Group:          Productivity/Networking/Remote Desktop
Provides:       kde4-krfb = 4.3.0
Obsoletes:      kde4-krfb < 4.3.0
Provides:       kdenetwork3-vnc:/opt/kde3/bin/krfb
%kde4_runtime_requires

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

%post -n krfb -p /sbin/ldconfig

%postun -n krfb -p /sbin/ldconfig

%files -n krfb -f filelists/krfb
%defattr(-,root,root)
%doc COPYING COPYING.DOC README
%_kde4_iconsdir/hicolor/*/apps/krfb.*

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

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

%post -n kdnssd -p /sbin/ldconfig

%postun -n kdnssd -p /sbin/ldconfig

%files -n kdnssd -f filelists/kdnssd
%defattr(-,root,root)
%doc COPYING COPYING.DOC README
%dir %_kde4_appsdir/remoteview

%package filesharing
License:        GPLv2+
Summary:        KDE Network Libraries
Group:          Productivity/Networking/System
Enhances:       dolphin
%kde4_runtime_requires

%description filesharing
Required libraries for the following packages:

kdenetwork3-chat kdenetwork3-dialup kdenetwork3-lan kdenetwork3-mail
kdenetwork3-news kdenetwork3-query

%post filesharing -p /sbin/ldconfig

%postun filesharing -p /sbin/ldconfig

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

%package -n kget
License:        GPLv2+
Summary:        Download Manager
Group:          Productivity/Networking/Other
Provides:       kdenetwork3 = 3.5.1
Obsoletes:      kdenetwork3 <= 3.5.1
Provides:       kde4-kget = 4.3.0
Obsoletes:      kde4-kget < 4.3.0
%kde4_runtime_requires

%description -n kget
An advanced download manager for KDE

%post -n kget -p /sbin/ldconfig

%postun -n kget -p /sbin/ldconfig

%files -n kget -f filelists/kget
%defattr(-,root,root)
%doc COPYING COPYING.DOC README
%dir %_kde4_appsdir/dolphinpart
%dir %_kde4_appsdir/dolphinpart/kpartplugins

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

%changelog
openSUSE Build Service is sponsored by