File kdenetwork4.spec of Package kdenetwork4
#
# spec file for package kdenetwork4 (Version 4.1.3)
#
# Copyright (c) 2010 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 gpgme-devel kdebase4-workspace-devel libqimageblitz-devel
BuildRequires: libqca2-devel meanwhile-devel openslp-devel sqlite-devel wireless-tools
BuildRequires: libkdepimlibs4-devel libotr-devel libsoprano-devel oxygen-icon-theme
License: GPL v2 or later
Group: Productivity/Networking/Other
Summary: KDE Network Base Package
Url: http://www.kde.org
Version: 4.1.3
Release: 4.<RELEASE15>
Source0: kdenetwork-%version.tar.bz2
Source1: _upstream
Patch: 4_1_BRANCH.diff
Patch1: disable-kopete.diff
Patch2: knewsticker.diff
Patch4: FIXME.diff
Patch5: r881699-kopete-logout.diff
Patch6: r881947-krdc-logout.diff
Patch7: bnc653852-kopete-icq-server-change.diff
Patch8: bug-525528_libgadu-CVE-2008-4776.patch
Patch9: bnc516347-kopete-yahoo16.diff
Patch10: kget43_CVE-2010-1000-r1126227.diff
#remove on 4.1.2 update
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%kde4_runtime_requires
%if %suse_version > 1020
%define with_kopete 1
%else
%define with_kopete 1
%endif
Suggests: kde4-kget
%if %with_kopete
Suggests: kde4-kopete
%endif
Suggests: kde4-kppp
Suggests: kde4-krdc
Suggests: kde4-krfb
Suggests: kde4-knewsticker
%if %suse_version > 1020
Suggests: kde4-kdnssd
%endif
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.
Authors:
--------
The KDE Team <kde@kde.org>
%prep
%setup -q -n kdenetwork-%version
%patch
%if %with_kopete
%else
%patch1
%endif
%patch2
#%patch4
%patch5
%patch6
%patch7
%patch8
%patch9
%patch10
# icon fixups
pushd kget/ui/icons
# rename ox hi ox*apps-kget.{png,svgz}
popd
%build
%ifarch ppc ppc64
export RPM_OPT_FLAGS="$RPM_OPT_FLAGS -mminimal-toc"
%endif
%cmake_kde4 -d build
%make_jobs
%install
cd build
%makeinstall
cp /usr/share/icons/oxygen/128x128/apps/krdc.png $RPM_BUILD_ROOT/usr/share/icons/hicolor/128x128/apps/
cp /usr/share/icons/oxygen/16x16/apps/krdc.png $RPM_BUILD_ROOT/usr/share/icons/hicolor/16x16/apps/
cp /usr/share/icons/oxygen/22x22/apps/krdc.png $RPM_BUILD_ROOT/usr/share/icons/hicolor/22x22/apps/
cp /usr/share/icons/oxygen/32x32/apps/krdc.png $RPM_BUILD_ROOT/usr/share/icons/hicolor/32x32/apps/
cp /usr/share/icons/oxygen/48x48/apps/krdc.png $RPM_BUILD_ROOT/usr/share/icons/hicolor/48x48/apps/
cp /usr/share/icons/oxygen/64x64/apps/krdc.png $RPM_BUILD_ROOT/usr/share/icons/hicolor/64x64/apps/
cp /usr/share/icons/oxygen/128x128/apps/krfb.png $RPM_BUILD_ROOT/usr/share/icons/hicolor/128x128/apps/
cp /usr/share/icons/oxygen/16x16/apps/krfb.png $RPM_BUILD_ROOT/usr/share/icons/hicolor/16x16/apps/
cp /usr/share/icons/oxygen/22x22/apps/krfb.png $RPM_BUILD_ROOT/usr/share/icons/hicolor/22x22/apps/
cp /usr/share/icons/oxygen/32x32/apps/krfb.png $RPM_BUILD_ROOT/usr/share/icons/hicolor/32x32/apps/
cp /usr/share/icons/oxygen/48x48/apps/krfb.png $RPM_BUILD_ROOT/usr/share/icons/hicolor/48x48/apps/
cp /usr/share/icons/oxygen/64x64/apps/krfb.png $RPM_BUILD_ROOT/usr/share/icons/hicolor/64x64/apps/
%create_subdir_filelist -d filesharing
%if %suse_version > 1020
%create_subdir_filelist -d kdnssd
%endif
%create_subdir_filelist -d kget
%create_subdir_filelist -d knewsticker
%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 $RPM_BUILD_ROOT/usr/bin/kppp
%if %with_kopete
%suse_update_desktop_file kopete Network InstantMessaging
%else
rm -rf $RPM_BUILD_ROOT//usr/share/doc/kde/HTML/en/kopete
%endif
%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 $RPM_BUILD_ROOT
rm -rf filelists
%if %with_kopete
%package -n kde4-kopete
License: GPL v2 or later
Group: Productivity/Networking/Instant Messenger
Summary: Instant Messenger
%kde4_runtime_requires
%kde4_pimlibs_requires
Provides: kdenetwork3-InstantMessenger = 3.5.1
Obsoletes: kdenetwork3-InstantMessenger <= 3.5.1
%description -n kde4-kopete
Kopete is the KDE instant messenger and supports multiple protocols.
Authors:
--------
The KDE Team <kde@kde.org>
%post -n kde4-kopete -p /sbin/ldconfig
%postun -n kde4-kopete -p /sbin/ldconfig
%files -n kde4-kopete -f filelists/kopete
%defattr(-,root,root)
%doc COPYING COPYING.DOC README
%dir /usr/share/kde4/apps/kopete_contactnotes
%dir /usr/share/kde4/apps/kopete_groupwise
%dir /usr/share/kde4/apps/kopete_history
%dir /usr/share/kde4/apps/kopete_jabber
%dir /usr/share/kde4/apps/kopete_latex
%dir /usr/share/kde4/apps/kopete_msn
%dir /usr/share/kde4/apps/kopete_privacy
%dir /usr/share/kde4/apps/kopete_statistics
%dir /usr/share/kde4/apps/kopete_translator
%dir /usr/share/kde4/apps/kopete_yahoo
%if %suse_version > 1030
%dir /usr/share/kde4/apps/kopete_otr
%endif
%dir /usr/share/kde4/apps/kopeterichtexteditpart
%dir /usr/share/kde4/services/kconfiguredialog
%package -n kde4-kopete-devel
License: GPL v2 or later
Group: Productivity/Networking/Instant Messenger
Summary: Instant Messenger - Development Files
%kde4_runtime_requires
Requires: kde4-kopete
%description -n kde4-kopete-devel
Kopete is the KDE instant messenger and supports multiple protocols.
Authors:
--------
The KDE Team <kde@kde.org>
%files -n kde4-kopete-devel -f filelists/kopete.devel
%defattr(-,root,root)
%doc COPYING COPYING.DOC README
%dir /usr/include/kopete
%dir /usr/include/kopete/ui
%endif
%package -n kde4-kppp
License: GPL v2 or later
Group: Productivity/Networking/Other
Summary: Internet Dial-Up Tool
%kde4_runtime_requires
%description -n kde4-kppp
A dialer and front-end to pppd
Authors:
--------
The KDE Team <kde@kde.org>
%post -n kde4-kppp -p /sbin/ldconfig
%postun -n kde4-kppp -p /sbin/ldconfig
%files -n kde4-kppp -f filelists/kppp
%defattr(-,root,root)
%doc COPYING COPYING.DOC README
%package -n kde4-krdc
License: GPL v2 or later
Group: Productivity/Networking/Remote Desktop
Summary: Remote Desktop Connection
%kde4_runtime_requires
Recommends: rdesktop
Provides: kdenetwork3-vnc = 3.5.1
Obsoletes: kdenetwork3-vnc <= 3.5.1
%description -n kde4-krdc
Krdc allows to connect to VNC and RDP compatible servers.
Authors:
--------
The KDE Team <kde@kde.org>
%post -n kde4-krdc -p /sbin/ldconfig
%postun -n kde4-krdc -p /sbin/ldconfig
%files -n kde4-krdc -f filelists/krdc
%defattr(-,root,root)
%doc COPYING COPYING.DOC README
/usr/share/icons/hicolor/*/apps/krdc.*
%package -n kde4-krfb
License: GPL v2 or later
Group: Productivity/Networking/Remote Desktop
Summary: Desktop Sharing
%kde4_runtime_requires
Provides: kdenetwork3-vnc:/opt/kde3/bin/krfb = 3.5.1
%description -n kde4-krfb
VNC-compatible server to share KDE desktops.
Authors:
--------
The KDE Team <kde@kde.org>
%post -n kde4-krfb -p /sbin/ldconfig
%postun -n kde4-krfb -p /sbin/ldconfig
%files -n kde4-krfb -f filelists/krfb
%defattr(-,root,root)
%doc COPYING COPYING.DOC README
/usr/share/icons/hicolor/*/apps/krfb.*
%package -n kde4-knewsticker
License: GPL v2 or later
Group: Productivity/Networking/News/Clients
Summary: RDF newsticker applet
%kde4_runtime_requires
%kde4_pimlibs_requires
Provides: kdenetwork3-news = 3.5.1
Obsoletes: kdenetwork3-news <= 3.5.1
%description -n kde4-knewsticker
A newsticker applet for the KDE panel.
Authors:
--------
The KDE Team <kde@kde.org>
%post -n kde4-knewsticker -p /sbin/ldconfig
%postun -n kde4-knewsticker -p /sbin/ldconfig
%files -n kde4-knewsticker -f filelists/knewsticker
%defattr(-,root,root)
%doc COPYING COPYING.DOC README
%if %suse_version > 1020
%package -n kde4-kdnssd
License: GPL v2 or later
Group: Productivity/Networking/System
Summary: Zeroconf Support for KDE
%kde4_runtime_requires
%description -n kde4-kdnssd
This package contains the Zeroconf support for KDE.
Authors:
--------
The KDE Team <kde@kde.org>
%post -n kde4-kdnssd -p /sbin/ldconfig
%postun -n kde4-kdnssd -p /sbin/ldconfig
%files -n kde4-kdnssd -f filelists/kdnssd
%defattr(-,root,root)
%doc COPYING COPYING.DOC README
%endif
%package filesharing
License: GPL v2 or later
Group: Productivity/Networking/System
Summary: KDE Network Libraries
Enhances: kde4-dolphin
%kde4_runtime_requires
%description filesharing
Required libraries for the following packages:
kdenetwork3-chat kdenetwork3-dialup kdenetwork3-lan kdenetwork3-mail
kdenetwork3-news kdenetwork3-query
Authors:
--------
The KDE Team <kde@kde.org>
%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 kde4-kget
License: GPL v2 or later
Group: Productivity/Networking/Other
Summary: Download Manager
%kde4_runtime_requires
Provides: kdenetwork3 = 3.5.1
Obsoletes: kdenetwork3 <= 3.5.1
%description -n kde4-kget
An advanced download manager for KDE
Authors:
--------
The KDE Team <kde@kde.org>
%post -n kde4-kget -p /sbin/ldconfig
%postun -n kde4-kget -p /sbin/ldconfig
%files -n kde4-kget -f filelists/kget
%defattr(-,root,root)
%doc COPYING COPYING.DOC README
%files -f filelists/exclude
%defattr(-,root,root)
%doc COPYING COPYING.DOC README
%changelog