summaryrefslogtreecommitdiffstats
path: root/redhat
diff options
context:
space:
mode:
authoralbator <albator@arcadia.vtf>2011-10-29 13:19:01 +0200
committeralbator <albator@arcadia.vtf>2011-10-29 13:19:01 +0200
commit0ec35e6698277d7bffd10614d99cf099159cc1b3 (patch)
tree874021fdbc16921d96e74614315ff6ab1f9247f4 /redhat
parentaa56e8adbf18e487f6a58a3a49a86359033dcf82 (diff)
downloadtde-packaging-0ec35e6698277d7bffd10614d99cf099159cc1b3.tar.gz
tde-packaging-0ec35e6698277d7bffd10614d99cf099159cc1b3.zip
kdenetwork 3.5.13 RPM
Diffstat (limited to 'redhat')
-rw-r--r--redhat/kdenetwork/kdenetwork-3.2.3-resolv.patch26
-rw-r--r--redhat/kdenetwork/kdenetwork-3.5.8-kppp.patch9
-rw-r--r--redhat/kdenetwork/kdenetwork-3.5.9-krfb_httpd.patch33
-rw-r--r--redhat/kdenetwork/kdenetwork-kopete-gcc45.patch57
-rw-r--r--redhat/kdenetwork/kppp.pamd4
-rw-r--r--redhat/kdenetwork/ktalk12
-rw-r--r--redhat/kdenetwork/lisa.redhat91
-rw-r--r--redhat/kdenetwork/lisarc10
-rw-r--r--redhat/kdenetwork/r1243951.diff42
-rw-r--r--redhat/kdenetwork/trinity-kdenetwork-3.5.13.spec474
10 files changed, 758 insertions, 0 deletions
diff --git a/redhat/kdenetwork/kdenetwork-3.2.3-resolv.patch b/redhat/kdenetwork/kdenetwork-3.2.3-resolv.patch
new file mode 100644
index 000000000..11d1c6cb6
--- /dev/null
+++ b/redhat/kdenetwork/kdenetwork-3.2.3-resolv.patch
@@ -0,0 +1,26 @@
+--- kdenetwork-3.2.3/kppp/connect.cpp.orig 2004-07-01 16:03:52.861908057 +0200
++++ kdenetwork-3.2.3/kppp/connect.cpp 2004-07-01 16:33:35.943692521 +0200
+@@ -1399,9 +1399,13 @@
+
+ void addpeerdns() {
+ int fd, fd2;
++ QString p = "/var/run/ppp/resolv.conf";
++
++ if (!QFile::exists(p))
++ p = "/etc/ppp/resolv.conf";
+
+ if((fd = Requester::rq->openResolv(O_WRONLY|O_APPEND)) >= 0) {
+- if((fd2 = open("/etc/ppp/resolv.conf", O_RDONLY)) >= 0) {
++ if((fd2 = open(p.latin1(), O_RDONLY)) >= 0) {
+ char c;
+ int i = 0;
+ while(i++ < 100 && read(fd2, &c, 1) == 1) {
+@@ -1412,7 +1416,7 @@
+ }
+ close(fd2);
+ } else
+- fprintf(stderr, "failed to read from /etc/ppp/resolv.conf\n");
++ fprintf(stderr, "failed to read from %s\n", p.latin1());
+ close(fd);
+ }
+ add_domain(gpppdata.domain());
diff --git a/redhat/kdenetwork/kdenetwork-3.5.8-kppp.patch b/redhat/kdenetwork/kdenetwork-3.5.8-kppp.patch
new file mode 100644
index 000000000..ebd9fa7fa
--- /dev/null
+++ b/redhat/kdenetwork/kdenetwork-3.5.8-kppp.patch
@@ -0,0 +1,9 @@
+diff -up kdenetwork-3.5.8/kppp/Kppp.desktop.kppp kdenetwork-3.5.8/kppp/Kppp.desktop
+--- kdenetwork-3.5.8/kppp/Kppp.desktop.kppp 2007-10-08 04:49:13.000000000 -0500
++++ kdenetwork-3.5.8/kppp/Kppp.desktop 2007-10-13 16:03:03.000000000 -0500
+@@ -66,5 +66,4 @@ Path=
+ Type=Application
+ Terminal=false
+ X-KDE-StartupNotify=true
+-X-DCOP-ServiceType=Multi
+ Categories=Qt;KDE;Network;Dialup;
diff --git a/redhat/kdenetwork/kdenetwork-3.5.9-krfb_httpd.patch b/redhat/kdenetwork/kdenetwork-3.5.9-krfb_httpd.patch
new file mode 100644
index 000000000..8d7c53693
--- /dev/null
+++ b/redhat/kdenetwork/kdenetwork-3.5.9-krfb_httpd.patch
@@ -0,0 +1,33 @@
+diff -ur kdenetwork-orig/krfb/krfb_httpd/krfb_httpd kdenetwork-3.5.9/krfb/krfb_httpd/krfb_httpd
+--- kdenetwork-orig/krfb/krfb_httpd/krfb_httpd 2007-05-14 09:40:05.000000000 +0200
++++ kdenetwork-3.5.9/krfb/krfb_httpd/krfb_httpd 2008-02-26 12:43:21.000000000 +0100
+@@ -6,17 +6,14 @@
+ fi
+
+ read request url httptype || exit 0
+-url="${url/
+-/}"
+-httptype="${httptype/
+-/}"
++url="${url/ /}"
++httptype="${httptype/ /}"
+
+ if [ "x$httptype" != "x" ]; then
+ line="x"
+ while [ -n "$line" ]; do
+ read line || exit 0
+- line="${line/
+-/}"
++ line="${line/ /}"
+ done
+ fi
+ # echo "url = $url, request = $request" >> /tmp/httpd.log
+@@ -38,7 +35,7 @@
+ content="
+ <HTML><HEAD><TITLE>$LOGNAME's desktop</TITLE></HEAD>
+ <BODY>
+-<APPLET CODE=VncViewer.class ARCHIVE=VncViewer.jar WIDTH=$width HEIGHT=$height>
++<APPLET CODE=vncviewer/VNCViewer.class ARCHIVE=vncviewer.jar WIDTH=$width HEIGHT=$height>
+ <param name=PORT value=$port>
+ </APPLET>
+ </BODY></HTML>"
diff --git a/redhat/kdenetwork/kdenetwork-kopete-gcc45.patch b/redhat/kdenetwork/kdenetwork-kopete-gcc45.patch
new file mode 100644
index 000000000..f93e68922
--- /dev/null
+++ b/redhat/kdenetwork/kdenetwork-kopete-gcc45.patch
@@ -0,0 +1,57 @@
+*** kdenetwork/kopete/protocols/testbed/testbedaccount.h.ORI 2011-08-24 00:30:58.403965000 +0200
+--- kdenetwork/kopete/protocols/testbed/testbedaccount.h 2011-08-24 00:31:29.706965000 +0200
+***************
+*** 59,65 ****
+ /**
+ * 'Connect' to the testbed server. Only sets myself() online.
+ */
+! virtual void connect( const Kopete::OnlineStatus& initialStatus = Kopete::OnlineStatus::OnlineStatus() );
+ /**
+ * Disconnect from the server. Only sets myself() offline.
+ */
+--- 59,65 ----
+ /**
+ * 'Connect' to the testbed server. Only sets myself() online.
+ */
+! virtual void connect( const Kopete::OnlineStatus& initialStatus = Kopete::OnlineStatus() );
+ /**
+ * Disconnect from the server. Only sets myself() offline.
+ */
+*** kdenetwork/kopete/kopete/contactlist/kopetegroupviewitem.cpp.ORI 2011-08-24 00:28:22.080965001 +0200
+--- kdenetwork/kopete/kopete/contactlist/kopetegroupviewitem.cpp 2011-08-24 00:28:36.149965002 +0200
+***************
+*** 175,181 ****
+ // the sorting itself is rather slow. Therefore we call delayedSort, which tries
+ // to group multiple sort requests into one.
+ using namespace Kopete::UI::ListView;
+! if ( ListView::ListView *lv = dynamic_cast<ListView::ListView *>( listView() ) )
+ lv->delayedSort();
+ else
+ listView()->sort();
+--- 175,181 ----
+ // the sorting itself is rather slow. Therefore we call delayedSort, which tries
+ // to group multiple sort requests into one.
+ using namespace Kopete::UI::ListView;
+! if ( ListView *lv = dynamic_cast<ListView *>( listView() ) )
+ lv->delayedSort();
+ else
+ listView()->sort();
+*** kdenetwork/kopete/kopete/chatwindow/krichtexteditpart.cpp.ORI 2011-08-24 00:29:00.953965001 +0200
+--- kdenetwork/kopete/kopete/chatwindow/krichtexteditpart.cpp 2011-08-24 00:29:21.080965001 +0200
+***************
+*** 38,44 ****
+ KopeteRichTextEditPart::KopeteRichTextEditPart( TQWidget *wparent, const char *wname, TQObject*, const char*, const TQStringList& )
+ : KParts::ReadOnlyPart( wparent, wname ? wname : "rich_text_part" )
+ {
+! KopeteRichTextEditPart::KopeteRichTextEditPart( wparent, wname, false );
+ }
+
+ KopeteRichTextEditPart::KopeteRichTextEditPart( TQWidget *parent, const char *name, int capabilities )
+--- 38,44 ----
+ KopeteRichTextEditPart::KopeteRichTextEditPart( TQWidget *wparent, const char *wname, TQObject*, const char*, const TQStringList& )
+ : KParts::ReadOnlyPart( wparent, wname ? wname : "rich_text_part" )
+ {
+! KopeteRichTextEditPart( wparent, wname, false );
+ }
+
+ KopeteRichTextEditPart::KopeteRichTextEditPart( TQWidget *parent, const char *name, int capabilities )
diff --git a/redhat/kdenetwork/kppp.pamd b/redhat/kdenetwork/kppp.pamd
new file mode 100644
index 000000000..c7d67e332
--- /dev/null
+++ b/redhat/kdenetwork/kppp.pamd
@@ -0,0 +1,4 @@
+#%PAM-1.0
+auth include config-util
+account include config-util
+session include config-util
diff --git a/redhat/kdenetwork/ktalk b/redhat/kdenetwork/ktalk
new file mode 100644
index 000000000..4458a0964
--- /dev/null
+++ b/redhat/kdenetwork/ktalk
@@ -0,0 +1,12 @@
+# default: off
+# description: KDE version of the talk server (accepting talk requests
+# for chatting with users on other systems).
+service ntalk
+{
+ disable = yes
+ socket_type = dgram
+ wait = yes
+ user = root
+ group = tty
+ server = /usr/bin/ktalkd
+}
diff --git a/redhat/kdenetwork/lisa.redhat b/redhat/kdenetwork/lisa.redhat
new file mode 100644
index 000000000..bcc059e86
--- /dev/null
+++ b/redhat/kdenetwork/lisa.redhat
@@ -0,0 +1,91 @@
+#!/bin/bash
+#
+# Startup script for LISa
+#
+# chkconfig: - 92 36
+# description: LISa is a small daemon which is intended to run on \
+# end user systems. It provides something like a \
+# "network neighbourhood", but only relying on the TCP/IP \
+# protocol stack, no smb or whatever.\
+# The information about the hosts in your "neighbourhood" \
+# is provided via TCP port 7741.
+# processname: lisa
+# config: /etc/lisarc
+
+# Source function library.
+. /etc/rc.d/init.d/functions
+
+# Source function library.
+if [ -f /etc/init.d/functions ] ; then
+ . /etc/init.d/functions
+elif [ -f /etc/rc.d/init.d/functions ] ; then
+ . /etc/rc.d/init.d/functions
+else
+ exit 0
+fi
+
+# Some definitions.
+lisa=/usr/bin/lisa
+prog=LISa
+OPTIONS="--quiet --config=/etc/lisarc"
+RETVAL=0
+
+#
+start() {
+ echo -n $"Starting $prog: "
+ daemon $lisa $OPTIONS
+ RETVAL=$?
+ echo
+ if [ $RETVAL = 0 ] ; then
+ touch /var/lock/subsys/lisa
+ else
+ RETVAL=1
+ fi
+ return $RETVAL
+}
+
+stop() {
+ echo -n $"Stopping $prog: "
+ killproc $lisa
+ RETVAL=$?
+ echo
+ if [ $RETVAL = 0 ] ; then
+ rm -f /var/lock/subsys/lisa
+ else
+ RETVAL=1
+ fi
+ return $RETVAL
+}
+
+reload() {
+ echo -n $"Reloading $prog: "
+ killproc $lisa -HUP
+ RETVAL=$?
+ echo
+}
+
+# See how we were called.
+case "$1" in
+ start)
+ start
+ ;;
+ stop)
+ stop
+ ;;
+ status)
+ status $lisa
+ RETVAL=$?
+ ;;
+ restart)
+ stop
+ start
+ ;;
+ condrestart)
+ [ -f /var/lock/subsys/lisa ] && restart
+ ;;
+ *)
+ echo $"Usage: $prog {start|stop|restart|status|condrestart}"
+ exit 1
+esac
+
+exit $RETVAL
diff --git a/redhat/kdenetwork/lisarc b/redhat/kdenetwork/lisarc
new file mode 100644
index 000000000..9b5cc84d1
--- /dev/null
+++ b/redhat/kdenetwork/lisarc
@@ -0,0 +1,10 @@
+PingAddresses = 127.0.0.1/255.255.255.0;
+PingNames =
+AllowedAddresses = 127.0.0.1/255.255.255.0;
+BroadcastNetwork = 127.0.0.1/255.255.255.0;
+SearchUsingNmblookup = 0
+FirstWait = 30
+SecondWait = -1
+UpdatePeriod = 150
+DeliverUnnamedHosts = 1
+MaxPingsAtOnce = 256
diff --git a/redhat/kdenetwork/r1243951.diff b/redhat/kdenetwork/r1243951.diff
new file mode 100644
index 000000000..1ee7d4e3b
--- /dev/null
+++ b/redhat/kdenetwork/r1243951.diff
@@ -0,0 +1,42 @@
+Index: kdenetwork/kopete/libkopete/avdevice/configure.in.in
+===================================================================
+--- kdenetwork/kopete/libkopete/avdevice/configure.in.in (revision 0)
++++ kdenetwork/kopete/libkopete/avdevice/configure.in.in (revision 1243951)
+@@ -0,0 +1,21 @@
++# -- Check for libv4l1-videodev.h presence --------------------
++
++AC_MSG_CHECKING([for libv4l1-videodev.h])
++
++AC_TRY_COMPILE([
++#include <libv4l1-videodev.h>
++],
++[
++],
++ ac_have_libv4l1_videodev_h=yes
++,
++ ac_have_libv4l1_videodev_h=no
++)
++
++if test $ac_have_libv4l1_videodev_h = yes; then
++ AC_DEFINE(HAVE_LIBV4L1_VIDEODEV_H, 1, [Define if you have libv4l1-videodev.h installed])
++fi
++
++AC_MSG_RESULT($ac_have_libv4l1_videodev_h)
++
++# -- End libv4l1-videodev.h ----------------------------------------------
+Index: kdenetwork/kopete/libkopete/avdevice/videodevice.h
+===================================================================
+--- kdenetwork/kopete/libkopete/avdevice/videodevice.h (revision 1243950)
++++ kdenetwork/kopete/libkopete/avdevice/videodevice.h (revision 1243951)
+@@ -52,7 +52,11 @@
+
+ #include <linux/fs.h>
+ #include <linux/kernel.h>
++#if defined(HAVE_LIBV4L1_VIDEODEV_H)
++#include <libv4l1-videodev.h>
++#else
+ #include <linux/videodev.h>
++#endif
+ #define VIDEO_MODE_PAL_Nc 3
+ #define VIDEO_MODE_PAL_M 4
+ #define VIDEO_MODE_PAL_N 5
diff --git a/redhat/kdenetwork/trinity-kdenetwork-3.5.13.spec b/redhat/kdenetwork/trinity-kdenetwork-3.5.13.spec
new file mode 100644
index 000000000..a991df2c8
--- /dev/null
+++ b/redhat/kdenetwork/trinity-kdenetwork-3.5.13.spec
@@ -0,0 +1,474 @@
+# Default version for this component
+%if "%{?version}" == ""
+%define version 3.5.13
+%endif
+%define release 0
+
+# If TDE is built in a specific prefix (e.g. /opt/trinity), the release will be suffixed with ".opt".
+%if "%{?_prefix}" != "/usr"
+%define _variant .opt
+%define _docdir %{_prefix}/share/doc
+%endif
+
+# TDE 3.5.13 specific building variables
+BuildRequires: cmake >= 2.8
+%define tde_docdir %{_docdir}/kde
+%define tde_includedir %{_includedir}/kde
+%define tde_libdir %{_libdir}/trinity
+
+
+# Fedora review: http://bugzilla.redhat.com/195486
+
+## Conditional build:
+# disabled, for now, doesn't build -- Rex
+#define _enable_jingle --enable-jingle
+#define _enable_slp --enable-slp
+# RHEL6: xmms is outdated !
+#define _with_xmms --with-xmms
+%ifnarch s390 s390x
+%define _with_wifi --with-wifi
+%endif
+
+%define console_helper 1
+
+Name: trinity-kdenetwork
+Version: %{?version}
+Release: %{?release}%{?dist}%{?_variant}
+Summary: K Desktop Environment - Network Applications
+
+Vendor: Trinity Project
+Packager: Francois Andriot <francois.andriot@free.fr>
+URL: http://www.trinitydesktop.org/
+
+License: GPLv2
+Group: Applications/Internet
+
+Prefix: %{_prefix}
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+
+Provides: kdenetwork3 = %{version}-%{release}
+
+Source0: kdenetwork-%{version}.tar.gz
+Source1: kppp.pamd
+Source2: ktalk
+Source4: lisarc
+Source5: lisa.redhat
+
+# RedHat/Fedora legacy patches
+Patch3: kdenetwork-3.5.8-kppp.patch
+Patch4: kdenetwork-3.2.3-resolv.patch
+# include more/proper ppp headers
+Patch6: kdenetwork-3.5.9-krfb_httpd.patch
+
+Patch100: svn.patch
+
+Requires: %{name}-libs = %{version}-%{release}
+
+BuildRequires: gettext
+BuildRequires: trinity-kdelibs-devel
+BuildRequires: coreutils
+BuildRequires: openssl-devel
+%if 0%{?fedora} > 4 || 0%{?rhel} > 4
+BuildRequires: libXmu-devel libXScrnSaver-devel libXtst-devel libXxf86vm-devel
+%endif
+%if "%{?_with_wifi:1}" == "1"
+%if 0%{?fedora} > 5 || 0%{?rhel} > 4
+BuildRequires: wireless-tools-devel
+%else
+BuildRequires: wireless-tools
+%endif
+%endif
+%{?_enable_slp:BuildRequires: openslp-devel}
+## kopete:
+BuildRequires: libxml2-devel libxslt-devel
+%ifarch %{ix86}
+# BR: %{_includedir}/valgrind/valgrind.h
+BuildRequires: valgrind
+%endif
+#jabber
+BuildRequires: libidn-devel
+#jabber/jingle
+%{?_enable_jingle:BuildRequires: expat-devel glib2-devel ortp-devel speex-devel}
+# jabber/ssl
+#{?fedora:Requires(hint): qca-tls}
+# sametime
+BuildRequires: meanwhile-devel
+%{?_with_xmms:BuildRequires: xmms-devel}
+Requires: jasper
+## kppp
+Requires: ppp
+## krdc
+Requires: rdesktop
+## lisa
+Requires(preun): chkconfig
+Requires(post): chkconfig
+#Requires(hint): samba-client
+BuildRequires: avahi-qt3-devel
+
+%if 0%{?rhel} >= 6 || 0%{?fedora} >= 15
+BuildRequires: libv4l-devel
+%endif
+
+# The following libraries are not available on RHEL
+%if 0%{?fedora} >= 15
+BuildRequires: libgadu-devel
+BuildRequires: openslp-devel
+BuildRequires: libjingle-devel
+%endif
+
+%if 0%{?console_helper}
+Requires: usermode-gtk
+%endif
+
+
+%description
+Networking applications, including:
+* kget: downloader manager
+* kio_lan: lan browsing kio slave
+* knewsticker: RDF newsticker applet
+* kopete: chat client
+* kppp: dialer and front end for pppd
+* krdc: a client for Desktop Sharing and other VNC servers
+* krfb: Desktop Sharing server, allow others to access your desktop via VNC
+* lisa: lan information server
+
+%package devel
+Summary: Development files for %{name}
+Group: Development/Libraries
+Provides: kdenetwork3-devel = %{version}-%{release}
+Requires: %{name}-libs = %{version}-%{release}
+Requires: trinity-kdelibs-devel
+%description devel
+%{summary}.
+
+%package extras
+Summary: Extras packages for %{name}
+Group: Applications/Internet
+Requires: %{name}-libs = %{version}-%{release}
+%if "%{?_with_xmms:1}" == "1"
+Obsoletes: %{name}-nowlistening < %{version}-%{release}
+Provides: %{name}-nowlistening = %{version}-%{release}
+%endif
+%description extras
+More Networking applications for the K Desktop Environment:
+ * ksirc
+ * kdict
+ * ktalkd
+ * kpf
+ * kwifimanager
+%if "%{?_with_xmms:1}" == "1"
+ * nowlistening (xmms) plugin for Kopete.
+%endif
+
+%package libs
+Summary: %{name} runtime libraries
+Group: System Environment/Libraries
+Requires: trinity-kdelibs
+# helps multilib upgrades
+Obsoletes: %{name} < %{version}-%{release}
+# include to be paranoid, installing libs-only is still mostly untested -- Rex
+Requires: %{name} = %{version}-%{release}
+%description libs
+%{summary}.
+
+
+%prep
+%setup -q -n kdenetwork
+
+%if %{console_helper}
+%patch3 -p1 -b .kppp
+%endif
+%patch4 -p1 -b .resolv
+%patch6 -p1 -b .krfb_httpd
+
+%patch100 -p1
+
+
+%build
+unset QTDIR || : ; . /etc/profile.d/qt.sh
+export PATH="%{_bindir}:${PATH}"
+export PKG_CONFIG_PATH="%{_libdir}/pkgconfig"
+export CMAKE_INCLUDE_PATH="%{_includedir}:%{_includedir}/tqt"
+export LD_LIBRARY_PATH="%{_libdir}"
+
+%__mkdir build
+cd build
+%cmake \
+ -DWITH_JINGLE=ON \
+ -DWITH_SPEEX=ON \
+ -DWITH_WEBCAM=ON \
+ -DWITH_GSM=ON \
+ -DWITH_ARTS=ON \
+ -DBUILD_ALL=ON \
+ ..
+
+# Do not use '%{?_smp_mflags}' because it will fail to build !
+%__make
+
+
+%install
+export PATH="%{_bindir}:${PATH}"
+%__rm -rf %{buildroot}
+%__make install DESTDIR=%{buildroot} -C build
+
+
+## File lists
+# locale's
+%find_lang %{name} || touch %{name}.lang
+# HTML (1.0)
+HTML_DIR=$(kde-config --expandvars --install html)
+if [ -d %{buildroot}$HTML_DIR ]; then
+for lang_dir in %{buildroot}$HTML_DIR/* ; do
+ if [ -d $lang_dir ]; then
+ lang=$(basename $lang_dir)
+ echo "%lang($lang) $HTML_DIR/$lang/*" >> %{name}.lang
+ # replace absolute symlinks with relative ones
+ pushd $lang_dir
+ for i in *; do
+ [ -d $i -a -L $i/common ] && %{__rm} -f $i/common && ln -sf ../common $i/common
+ done
+ popd
+ fi
+done
+fi
+
+# Show only in KDE, FIXME, need to re-evaluate these -- Rex
+for i in fileshare kcmkrfb kcmktalkd kcmwifi krfb kppp kppplogview \
+ kwifimanager kget knewsticker ksirc kdict ; do
+ if [ -f %{buildroot}%{_datadir}/applications/kde/$i.desktop ] ; then
+ echo "OnlyShowIn=KDE;" >> %{buildroot}%{_datadir}/applications/kde/$i.desktop
+ fi
+done
+
+%if %console_helper
+# Run kppp through consolehelper
+install -p -m644 -D %{SOURCE1} %{buildroot}/etc/pam.d/kppp3
+mkdir -p %{buildroot}%{_sbindir}
+mv %{buildroot}%{_bindir}/kppp %{buildroot}%{_sbindir}
+ln -s consolehelper %{buildroot}%{_bindir}/kppp
+mkdir -p %{buildroot}/etc/security/console.apps
+cat > %{buildroot}/etc/security/console.apps/kppp3 <<EOF
+USER=root
+PROGRAM=%{_sbindir}/kppp
+SESSION=true
+EOF
+%endif
+
+# ktalk
+install -p -m 0644 -D %{SOURCE2} %{buildroot}%{_sysconfdir}/xinetd.d/ktalk
+
+# Add lisa startup script
+install -p -m 0644 -D %{SOURCE4} %{buildroot}%{_sysconfdir}/lisarc
+install -p -m 0755 -D %{SOURCE5} %{buildroot}%{_initrddir}/lisa
+
+%post
+/sbin/chkconfig --add lisa ||:
+for f in crystalsvg hicolor locolor ; do
+ touch --no-create %{_datadir}/icons/$f 2> /dev/null ||:
+ gtk-update-icon-cache -q %{_datadir}/icons/$f 2> /dev/null ||:
+done
+update-desktop-database %{_datadir}/applications > /dev/null 2>&1 || :
+
+%postun
+for f in crystalsvg hicolor locolor ; do
+ touch --no-create %{_datadir}/icons/$f 2> /dev/null ||:
+ gtk-update-icon-cache -q %{_datadir}/icons/$f 2> /dev/null ||:
+done
+update-desktop-database %{_datadir}/applications > /dev/null 2>&1 || :
+
+%preun
+if [ $1 -eq 0 ]; then
+ /sbin/chkconfig --del lisa ||:
+ /sbin/service lisa stop > /dev/null 2>&1 ||:
+fi
+
+%post libs -p /sbin/ldconfig
+
+%postun libs -p /sbin/ldconfig
+
+%post extras
+for f in crystalsvg hicolor ; do
+ touch --no-create %{_datadir}/icons/$f 2> /dev/null ||:
+ gtk-update-icon-cache -q %{_datadir}/icons/$f 2> /dev/null ||:
+done
+
+%postun extras
+for f in crystalsvg hicolor ; do
+ touch --no-create %{_datadir}/icons/$f 2> /dev/null ||:
+ gtk-update-icon-cache -q %{_datadir}/icons/$f 2> /dev/null ||:
+done
+
+
+%clean
+%__rm -rf %{buildroot}
+
+
+%files extras
+%defattr(-,root,root,-)
+
+# ksirc
+%{tde_docdir}/HTML/??/ksirc/
+%{_bindir}/ksirc
+%{_libdir}/libkdeinit_ksirc.*
+%{tde_libdir}/ksirc.*
+%{_datadir}/applications/kde/ksirc.desktop
+%{_datadir}/apps/ksirc/
+%config(noreplace) %{_datadir}/config/ksircrc
+%{_datadir}/icons/hicolor/*/apps/ksirc.*
+
+# kdict
+%{tde_docdir}/HTML/en/kdict
+%{_bindir}/kdict
+%{tde_libdir}/kdict*
+%{_libdir}/libkdeinit_kdict.*
+%{_datadir}/applications/kde/kdict.desktop
+%{_datadir}/apps/kdict
+%{_datadir}/apps/kicker/applets/kdictapplet.desktop
+%{_datadir}/icons/hicolor/*/apps/kdict.*
+
+# ktalk
+%{tde_docdir}/HTML/en/ktalkd
+%{_bindir}/ktalkd*
+%{tde_libdir}/kcm_ktalkd.*
+%{_datadir}/applications/kde/kcmktalkd.desktop
+%config(noreplace) %{_datadir}/config/ktalkdrc
+%{_datadir}/icons/crystalsvg/*/apps/ktalkd.*
+%{_datadir}/sounds/ktalkd.wav
+%config(noreplace) %{_sysconfdir}/xinetd.d/ktalk
+
+# kpf
+%{tde_docdir}/HTML/en/kpf
+%{tde_libdir}/kpf*
+%{_datadir}/apps/kicker/applets/kpfapplet.desktop
+%{_datadir}/icons/crystalsvg/*/apps/kpf.*
+%{_datadir}/services/kpfpropertiesdialogplugin.desktop
+
+%if "%{?_with_wifi:1}" == "1"
+# kwifimanager
+%doc %{tde_docdir}/HTML/en/kwifimanager
+%{_bindir}/kwifimanager
+%{tde_libdir}/kcm_wifi.*
+%{_datadir}/applications/kde/kcmwifi.desktop
+%{_datadir}/applications/kde/kwifimanager.desktop
+%{_datadir}/apps/kwifimanager
+%{_datadir}/icons/hicolor/*/apps/kwifimanager.png
+%endif
+
+%if "%{?_with_xmms:1}" == "1"
+#files nowlistening
+#defattr(-,root,root,-)
+%{_datadir}/apps/kopete/*nowlisteningchatui*
+%{_datadir}/apps/kopete/*nowlisteningui*
+%{_datadir}/services/kconfiguredialog/*nowlistening*
+%{_datadir}/services/*nowlistening*
+%{tde_libdir}/*nowlistening*
+%endif
+
+%files -f %{name}.lang
+%defattr(-,root,root,-)
+%doc AUTHORS COPYING README
+
+# ksirc
+%exclude %{_bindir}/ksirc
+%exclude %{_libdir}/libkdeinit_ksirc.*
+%exclude %{tde_libdir}/ksirc.*
+%exclude %{_datadir}/applications/kde/ksirc.desktop
+%exclude %{_datadir}/apps/ksirc/
+%exclude %{_datadir}/config/ksircrc
+%exclude %{tde_docdir}/HTML/??/ksirc/
+%exclude %{_datadir}/icons/hicolor/??x??/apps/ksirc.png
+
+# kdict
+%exclude %{tde_docdir}/HTML/en/kdict
+%exclude %{_bindir}/kdict
+%exclude %{tde_libdir}/kdict*
+%exclude %{_libdir}/libkdeinit_kdict.*
+%exclude %{_datadir}/applications/kde/kdict.desktop
+%exclude %{_datadir}/apps/kdict
+%exclude %{_datadir}/apps/kicker/applets/kdictapplet.desktop
+%exclude %{_datadir}/icons/hicolor/128x128/apps/kdict.png
+%exclude %{_datadir}/icons/hicolor/??x??/apps/kdict.png
+%exclude %{_datadir}/icons/hicolor/scalable/apps/kdict.svgz
+
+# ktalk
+%exclude %{tde_docdir}/HTML/en/ktalkd
+%exclude %{_sysconfdir}/xinetd.d/ktalk
+%exclude %{_bindir}/ktalkd*
+%exclude %{tde_libdir}/kcm_ktalkd.*
+%exclude %{_datadir}/applications/kde/kcmktalkd.desktop
+%exclude %{_datadir}/config/ktalkdrc
+%exclude %{_datadir}/icons/crystalsvg/128x128/apps/ktalkd.png
+%exclude %{_datadir}/icons/crystalsvg/??x??/apps/ktalkd.png
+%exclude %{_datadir}/sounds/ktalkd.wav
+
+# kpf
+%exclude %{tde_libdir}/kpf*
+%exclude %{_datadir}/apps/kicker/applets/kpfapplet.desktop
+%exclude %{tde_docdir}/HTML/en/kpf
+%exclude %{_datadir}/icons/crystalsvg/??x??/apps/kpf.png
+%exclude %{_datadir}/services/kpfpropertiesdialogplugin.desktop
+
+%ifnarch s390 s390x
+# kwifimanager
+%exclude %{_bindir}/kwifimanager
+%exclude %{tde_libdir}/kcm_wifi.*
+%exclude %{_datadir}/applications/kde/kcmwifi.desktop
+%exclude %{_datadir}/applications/kde/kwifimanager.desktop
+%exclude %{_datadir}/apps/kwifimanager
+%exclude %{tde_docdir}/HTML/en/kwifimanager
+%exclude %{_datadir}/icons/hicolor/128x128/apps/kwifimanager.png
+%exclude %{_datadir}/icons/hicolor/??x??/apps/kwifimanager.png
+%exclude %{_datadir}/icons/hicolor/scalable/apps/kwifimanager.svgz
+%endif
+
+# nowlistening
+%if "%{?_with_xmms:1}" == "1"
+%exclude %{_datadir}/apps/kopete/*nowlisteningchatui*
+%exclude %{_datadir}/apps/kopete/*nowlisteningui*
+%exclude %{_datadir}/services/kconfiguredialog/*nowlistening*
+%exclude %{_datadir}/services/*nowlistening*
+%exclude %{tde_libdir}/*nowlistening*
+%endif
+
+%if %console_helper
+%config(noreplace) /etc/security/console.apps/kppp3
+%config(noreplace) /etc/pam.d/kppp3
+%{_sbindir}/kppp
+%else
+%attr(4755,root,root) %{_bindir}/kppp
+%endif
+%config(noreplace) %{_sysconfdir}/lisarc
+%config(noreplace) %{_initrddir}/lisa
+%{_libdir}/libkdeinit_*.so
+%{tde_libdir}/*
+%{_libdir}/kconf_update_bin/*
+%{_bindir}/*
+%{_datadir}/apps/*
+%{_datadir}/applications/kde/*
+%{_datadir}/applnk/.hidden/*
+%{_datadir}/config/*
+%{_datadir}/config.kcfg/*
+%{_datadir}/icons/*/*/*/*
+%{_datadir}/mimelnk/*
+%{_datadir}/services/*
+%{_datadir}/servicetypes/*
+%{_datadir}/sounds/*
+
+%files libs
+%defattr(-,root,root,-)
+%{_libdir}/libkopete*.so.*
+%{_libdir}/libkopete*.la
+%{_libdir}/librss.so.*
+%{_libdir}/librss.la
+
+%files devel
+%defattr(-,root,root,-)
+%{_includedir}/*
+%{_libdir}/libkopete*.so
+%{_libdir}/librss.so
+
+
+%changelog
+* Tue Oct 25 2011 Francois Andriot <francois.andriot@free.fr> - 3.5.13-0
+- Initial version
+