summaryrefslogtreecommitdiffstats
path: root/redhat/applications
diff options
context:
space:
mode:
Diffstat (limited to 'redhat/applications')
-rw-r--r--redhat/applications/abakus/abakus-3.5.13.1-fix_install_icon.patch10
-rw-r--r--redhat/applications/abakus/trinity-abakus-3.5.13.1.spec126
-rw-r--r--redhat/applications/amarok/amarok-3.5.13.1-add_xine12_support.patch14
-rw-r--r--redhat/applications/amarok/amarok-3.5.13.1-fix_inotify_detection.patch30
-rw-r--r--redhat/applications/amarok/amarok-3.5.13.1-fix_rhel4_libs.patch15
-rw-r--r--redhat/applications/amarok/trinity-amarok-3.5.13.1.spec406
-rw-r--r--redhat/applications/amarok/trinity-amarok-3.5.13.spec (renamed from redhat/applications/amarok/trinity-amarok.spec)0
-rw-r--r--redhat/applications/basket/trinity-basket-3.5.13.1.spec165
-rw-r--r--redhat/applications/bibletime/trinity-bibletime-3.5.13.1.spec164
-rw-r--r--redhat/applications/bibletime/trinity-bibletime-3.5.13.spec (renamed from redhat/applications/bibletime/trinity-bibletime.spec)0
-rw-r--r--redhat/applications/digikam/trinity-digikam-3.5.13.1.spec (renamed from redhat/applications/digikam/trinity-digikam-3.5.13-sru.spec)108
-rw-r--r--redhat/applications/dolphin/trinity-dolphin-3.5.13.1.spec197
-rw-r--r--redhat/applications/filelight/trinity-filelight-3.5.13.1.spec158
l---------redhat/applications/gtk-qt-engine/gtk-qt-engine.rc.sh1
l---------redhat/applications/gtk-qt-engine/gtkrc-2.0-kde-kde41
l---------redhat/applications/gtk-qt-engine/gtkrc-2.0-kde41
-rw-r--r--redhat/applications/gtk-qt-engine/trinity-gtk-qt-engine-3.5.13.1.spec149
-rw-r--r--redhat/applications/gtk-qt-engine/trinity-gtk-qt-engine-3.5.13.spec (renamed from redhat/applications/gtk-qt-engine/trinity-gtk-qt-engine.spec)0
-rw-r--r--redhat/applications/gwenview-i18n/trinity-gwenview-i18n-3.5.13.1.spec180
-rw-r--r--redhat/applications/gwenview/trinity-gwenview-3.5.13.1.spec259
-rw-r--r--redhat/applications/k3b-i18n/k3b-i18n-trinity.patch11
-rw-r--r--redhat/applications/k3b-i18n/trinity-k3b-i18n-3.5.13.1.spec325
-rw-r--r--redhat/applications/k3b-i18n/trinity-k3b-i18n-3.5.13.spec308
-rw-r--r--redhat/applications/k3b/trinity-k3b-3.5.13.1.spec319
-rw-r--r--redhat/applications/k9copy/trinity-k9copy-3.5.13.1.spec148
-rw-r--r--redhat/applications/k9copy/trinity-k9copy-3.5.13.spec (renamed from redhat/applications/k9copy/trinity-k9copy.spec)0
-rw-r--r--redhat/applications/kaffeine-mozilla/trinity-kaffeine-mozilla-3.5.13.1.spec134
-rw-r--r--redhat/applications/kaffeine-mozilla/trinity-kaffeine-mozilla-3.5.13.spec (renamed from redhat/applications/kaffeine-mozilla/trinity-kaffeine-mozilla.spec)0
-rw-r--r--redhat/applications/kaffeine/kaffeine-3.5.13.1-add_xine12_support.patch14
-rw-r--r--redhat/applications/kaffeine/trinity-kaffeine-3.5.13.1.spec282
-rw-r--r--redhat/applications/kaffeine/trinity-kaffeine-3.5.13.spec (renamed from redhat/applications/kaffeine/trinity-kaffeine.spec)0
-rw-r--r--redhat/applications/katapult/trinity-katapult-3.5.13.1.spec196
-rw-r--r--redhat/applications/kbarcode/trinity-kbarcode-3.5.13.1.spec160
-rw-r--r--redhat/applications/kbarcode/trinity-kbarcode-3.5.13.spec (renamed from redhat/applications/kbarcode/trinity-kbarcode.spec)0
-rw-r--r--redhat/applications/kbfx/kbfx-3.5.13.1-fix_install_directories.patch12
-rw-r--r--redhat/applications/kbfx/trinity-kbfx-3.5.13.1.spec169
-rw-r--r--redhat/applications/kbfx/trinity-kbfx-3.5.13.spec (renamed from redhat/applications/kbfx/trinity-kbfx.spec)0
-rw-r--r--redhat/applications/kbookreader/trinity-kbookreader-3.5.13.1.spec156
-rw-r--r--redhat/applications/kchmviewer/trinity-kchmviewer-3.5.13.1.spec158
-rw-r--r--redhat/applications/kchmviewer/trinity-kchmviewer-3.5.13.spec (renamed from redhat/applications/kchmviewer/trinity-kchmviewer.spec)0
-rw-r--r--redhat/applications/kcmautostart/trinity-kcmautostart-3.5.13.1.spec125
-rw-r--r--redhat/applications/kcpuload/trinity-kcpuload-3.5.13.1.spec139
-rw-r--r--redhat/applications/kcpuload/trinity-kcpuload-3.5.13.spec (renamed from redhat/applications/kcpuload/trinity-kcpuload.spec)0
-rw-r--r--redhat/applications/kdbusnotification/trinity-kdbusnotification-3.5.13.1.spec129
-rw-r--r--redhat/applications/kde-guidance/kde-guidance-3.5.13-fix_wine_create_prefix.patch73
-rw-r--r--redhat/applications/kde-guidance/trinity-guidance-3.5.13.1.spec413
-rw-r--r--redhat/applications/kde-guidance/trinity-guidance-3.5.13.spec1
-rw-r--r--redhat/applications/kde-style-lipstik/trinity-kde-style-lipstik-3.5.13.1.spec129
-rw-r--r--redhat/applications/kde-style-qtcurve/kde-style-qtcurve-3.5.13-fix_config_ftbfs.patch101
-rw-r--r--redhat/applications/kde-style-qtcurve/kde-style-qtcurve-3.5.13-fix_kde_style_compilation.patch243
-rw-r--r--redhat/applications/kde-style-qtcurve/kde-style-qtcurve-3.5.13-fix_tqt_renaming.patch237
-rw-r--r--redhat/applications/kde-style-qtcurve/trinity-kde-style-qtcurve-3.5.13.1.spec141
-rw-r--r--redhat/applications/kde-style-qtcurve/trinity-kde-style-qtcurve-3.5.13.spec (renamed from redhat/applications/kde-style-qtcurve/trinity-kde-style-qtcurve.spec)53
-rw-r--r--redhat/applications/kde-systemsettings/trinity-kde-systemsettings-3.5.13.1.spec159
-rw-r--r--redhat/applications/kde-systemsettings/trinity-kde-systemsettings-3.5.13.spec (renamed from redhat/applications/kde-systemsettings/trinity-kde-systemsettings.spec)0
-rw-r--r--redhat/applications/kdesudo/trinity-kdesudo-3.5.13.1.spec139
-rw-r--r--redhat/applications/kdesvn/trinity-kdesvn-3.5.13.1.spec287
-rw-r--r--redhat/applications/kdesvn/trinity-kdesvn-3.5.13.spec (renamed from redhat/applications/kdesvn/trinity-kdesvn.spec)0
-rw-r--r--redhat/applications/kdiff3/trinity-kdiff3-3.5.13.1.spec159
-rw-r--r--redhat/applications/kdirstat/trinity-kdirstat-3.5.13.1.spec148
-rw-r--r--redhat/applications/kdirstat/trinity-kdirstat-3.5.13.spec (renamed from redhat/applications/kdirstat/trinity-kdirstat.spec)0
-rw-r--r--redhat/applications/kdmtheme/trinity-kdmtheme-3.5.13.1.spec130
-rw-r--r--redhat/applications/kdmtheme/trinity-kdmtheme-3.5.13.spec (renamed from redhat/applications/kdmtheme/trinity-kdmtheme.spec)0
-rw-r--r--redhat/applications/keep/trinity-keep-3.5.13.1.spec139
-rw-r--r--redhat/applications/keep/trinity-keep-3.5.13.spec (renamed from redhat/applications/keep/trinity-keep.spec)0
-rw-r--r--redhat/applications/kerry/trinity-kerry-3.5.13.1.spec158
-rw-r--r--redhat/applications/kerry/trinity-kerry-3.5.13.spec (renamed from redhat/applications/kerry/trinity-kerry.spec)0
-rw-r--r--redhat/applications/kgtk-qt3/trinity-kgtk-qt3-3.5.13.1.spec145
-rw-r--r--redhat/applications/kgtk-qt3/trinity-kgtk-qt3-3.5.13.spec (renamed from redhat/applications/kgtk-qt3/trinity-kgtk-qt3.spec)0
-rw-r--r--redhat/applications/kile/trinity-kile-3.5.13.1.spec210
-rw-r--r--redhat/applications/kile/trinity-kile-3.5.13.spec (renamed from redhat/applications/kile/trinity-kile.spec)0
-rw-r--r--redhat/applications/kima/trinity-kima-3.5.13.1.spec127
-rw-r--r--redhat/applications/kima/trinity-kima-3.5.13.spec (renamed from redhat/applications/kima/trinity-kima.spec)0
-rw-r--r--redhat/applications/kio-locate/trinity-kio-locate-3.5.13.1.spec135
-rw-r--r--redhat/applications/kio-umountwrapper/trinity-kio-umountwrapper-3.5.13.1.spec157
-rw-r--r--redhat/applications/kio-umountwrapper/trinity-kio-umountwrapper-3.5.13.spec (renamed from redhat/applications/kio-umountwrapper/trinity-kio-umountwrapper.spec)0
-rw-r--r--redhat/applications/kiosktool/trinity-kiosktool-3.5.13.1.spec159
-rw-r--r--redhat/applications/kiosktool/trinity-kiosktool-3.5.13.spec (renamed from redhat/applications/kiosktool/trinity-kiosktool.spec)0
-rw-r--r--redhat/applications/kmplayer/kmplayer-3.5.13.1-fix_xine12_support.patch14
-rw-r--r--redhat/applications/kmplayer/trinity-kmplayer-3.5.13.1.spec246
-rw-r--r--redhat/applications/kmplayer/trinity-kmplayer-3.5.13.spec (renamed from redhat/applications/kmplayer/trinity-kmplayer.spec)0
-rw-r--r--redhat/applications/kmyfirewall/trinity-kmyfirewall-3.5.13.1.spec208
-rw-r--r--redhat/applications/kmyfirewall/trinity-kmyfirewall-3.5.13.spec (renamed from redhat/applications/kmyfirewall/trinity-kmyfirewall.spec)0
-rw-r--r--redhat/applications/kmymoney/trinity-kmymoney-3.5.13.1.spec276
-rw-r--r--redhat/applications/knemo/trinity-knemo-3.5.13.1.spec143
-rw-r--r--redhat/applications/knemo/trinity-knemo-3.5.13.spec (renamed from redhat/applications/knemo/trinity-knemo.spec)0
-rw-r--r--redhat/applications/knetload/trinity-knetload-3.5.13.1.spec144
-rw-r--r--redhat/applications/knetload/trinity-knetload-3.5.13.spec (renamed from redhat/applications/knetload/trinity-knetload.spec)0
-rw-r--r--redhat/applications/knetstats/trinity-knetstats-3.5.13.1.spec132
-rw-r--r--redhat/applications/knetstats/trinity-knetstats-3.5.13.spec (renamed from redhat/applications/knetstats/trinity-knetstats.spec)0
-rw-r--r--redhat/applications/knetworkmanager/trinity-knetworkmanager-3.5.13.1.spec186
-rw-r--r--redhat/applications/knetworkmanager/trinity-knetworkmanager-3.5.13.spec (renamed from redhat/applications/knetworkmanager/trinity-knetworkmanager.spec)0
-rw-r--r--redhat/applications/knights/trinity-knights-3.5.13.1.spec145
-rw-r--r--redhat/applications/knights/trinity-knights-3.5.13.spec (renamed from redhat/applications/knights/trinity-knights.spec)0
-rw-r--r--redhat/applications/knowit/trinity-knowit-3.5.13.1.spec142
-rw-r--r--redhat/applications/knowit/trinity-knowit-3.5.13.spec (renamed from redhat/applications/knowit/trinity-knowit.spec)0
-rw-r--r--redhat/applications/knutclient/trinity-knutclient-3.5.13.1.spec141
-rw-r--r--redhat/applications/knutclient/trinity-knutclient-3.5.13.spec (renamed from redhat/applications/knutclient/trinity-knutclient.spec)0
-rw-r--r--redhat/applications/koffice-i18n/trinity-koffice-i18n-3.5.13.1.spec1086
-rw-r--r--redhat/applications/koffice-i18n/trinity-koffice-l10n-3.5.13.spec1090
-rw-r--r--redhat/applications/koffice/trinity-koffice-3.5.13.1.spec (renamed from redhat/applications/koffice/trinity-koffice-3.5.13-sru.spec)139
-rw-r--r--redhat/applications/konversation/trinity-konversation-3.5.13.1.spec190
-rw-r--r--redhat/applications/kopete-otr/trinity-kopete-otr-3.5.13.1.spec153
-rw-r--r--redhat/applications/kopete-otr/trinity-kopete-otr-3.5.13.spec (renamed from redhat/applications/kopete-otr/trinity-kopete-otr.spec)0
-rw-r--r--redhat/applications/kpicosim/trinity-kpicosim-3.5.13.1.spec135
-rw-r--r--redhat/applications/kpicosim/trinity-kpicosim-3.5.13.spec (renamed from redhat/applications/kpicosim/trinity-kpicosim.spec)0
-rw-r--r--redhat/applications/kpilot/trinity-kpilot-3.5.13.1.spec184
-rw-r--r--redhat/applications/kpilot/trinity-kpilot-3.5.13.spec (renamed from redhat/applications/kpilot/trinity-kpilot.spec)0
-rw-r--r--redhat/applications/kpowersave/trinity-kpowersave-3.5.13.1.spec158
-rw-r--r--redhat/applications/kradio/trinity-kradio-3.5.13.1.spec176
-rw-r--r--redhat/applications/kradio/trinity-kradio-3.5.13.spec (renamed from redhat/applications/kradio/trinity-kradio.spec)0
-rw-r--r--redhat/applications/krename/trinity-krename-3.5.13.1.spec155
-rw-r--r--redhat/applications/krusader/trinity-krusader-3.5.13.1.spec164
-rw-r--r--redhat/applications/krusader/trinity-krusader-3.5.13.spec (renamed from redhat/applications/krusader/trinity-krusader.spec)0
-rw-r--r--redhat/applications/ksplash-engine-moodin/trinity-ksplash-engine-moodin-3.5.13.1.spec134
-rw-r--r--redhat/applications/ksplash-engine-moodin/trinity-ksplash-engine-moodin-3.5.13.spec (renamed from redhat/applications/ksplash-engine-moodin/trinity-ksplash-engine-moodin.spec)0
-rw-r--r--redhat/applications/ksquirrel/trinity-ksquirrel-3.5.13.1.spec154
-rw-r--r--redhat/applications/ksquirrel/trinity-ksquirrel-3.5.13.spec (renamed from redhat/applications/ksquirrel/trinity-ksquirrel.spec)0
-rw-r--r--redhat/applications/kstreamripper/trinity-kstreamripper-3.5.13.1.spec129
-rw-r--r--redhat/applications/ksystemlog/trinity-ksystemlog-3.5.13.1.spec134
-rw-r--r--redhat/applications/ksystemlog/trinity-ksystemlog-3.5.13.spec (renamed from redhat/applications/ksystemlog/trinity-ksystemlog.spec)0
-rw-r--r--redhat/applications/ktechlab/ktechlab-3.5.13.1-remove_gpsim_link.patch11
-rw-r--r--redhat/applications/ktechlab/trinity-ktechlab-3.5.13.1.spec145
-rw-r--r--redhat/applications/ktechlab/trinity-ktechlab-3.5.13.spec (renamed from redhat/applications/ktechlab/trinity-ktechlab.spec)0
-rw-r--r--redhat/applications/ktorrent/trinity-ktorrent-3.5.13.1.spec182
-rw-r--r--redhat/applications/ktorrent/trinity-ktorrent-3.5.13.spec (renamed from redhat/applications/ktorrent/trinity-ktorrent.spec)0
-rw-r--r--redhat/applications/kuickshow/trinity-kuickshow-3.5.13.1.spec151
-rw-r--r--redhat/applications/kvirc/kvirc-3.5.13.1-directories.patch26
-rw-r--r--redhat/applications/kvirc/kvirc-3.5.13.1-fix_arts_detection.patch11
-rw-r--r--redhat/applications/kvirc/trinity-kvirc-3.5.13.1.spec (renamed from redhat/applications/kvirc/trinity-kvirc-3.5.13-sru.spec)54
-rw-r--r--redhat/applications/kvkbd/trinity-kvkbd-3.5.13.1.spec128
-rw-r--r--redhat/applications/kvkbd/trinity-kvkbd-3.5.13.spec (renamed from redhat/applications/kvkbd/trinity-kvkbd.spec)0
-rw-r--r--redhat/applications/kwin-style-crystal/trinity-kwin-style-crystal-3.5.13.1.spec124
-rw-r--r--redhat/applications/piklab/piklab-3.5.13.1-remove_gui_dir.patch7
-rw-r--r--redhat/applications/piklab/trinity-piklab-3.5.13.1.spec161
-rw-r--r--redhat/applications/piklab/trinity-piklab-3.5.13.spec (renamed from redhat/applications/piklab/trinity-piklab.spec)0
-rw-r--r--redhat/applications/potracegui/trinity-potracegui-3.5.13.1.spec134
-rw-r--r--redhat/applications/potracegui/trinity-potracegui-3.5.13.spec (renamed from redhat/applications/potracegui/trinity-potracegui.spec)0
-rw-r--r--redhat/applications/rosegarden/trinity-rosegarden-3.5.13.1.spec (renamed from redhat/applications/rosegarden/trinity-rosegarden-3.5.13-sru.spec)58
-rw-r--r--redhat/applications/smartcardauth/trinity-smartcardauth-3.5.13.1.spec156
-rw-r--r--redhat/applications/smartcardauth/trinity-smartcardauth-3.5.13.spec (renamed from redhat/applications/smartcardauth/trinity-smartcardauth.spec)0
-rw-r--r--redhat/applications/smb4k/trinity-smb4k-3.5.13.1.spec188
-rw-r--r--redhat/applications/smb4k/trinity-smb4k-3.5.13.spec (renamed from redhat/applications/smb4k/trinity-smb4k.spec)0
-rw-r--r--redhat/applications/soundkonverter/trinity-soundkonverter-3.5.13.1.spec181
-rw-r--r--redhat/applications/soundkonverter/trinity-soundkonverter-3.5.13.spec (renamed from redhat/applications/soundkonverter/trinity-soundkonverter.spec)0
-rw-r--r--redhat/applications/tellico/tellico-3.5.13.1-fix_ftbfs.patch11
-rw-r--r--redhat/applications/tellico/trinity-tellico-3.5.13.1.spec234
-rw-r--r--redhat/applications/tellico/trinity-tellico-3.5.13.spec (renamed from redhat/applications/tellico/trinity-tellico.spec)0
-rw-r--r--redhat/applications/wlassistant/trinity-wlassistant-3.5.13.1.spec134
-rw-r--r--redhat/applications/wlassistant/trinity-wlassistant-3.5.13.spec (renamed from redhat/applications/wlassistant/trinity-wlassistant.spec)0
-rw-r--r--redhat/applications/yakuake/trinity-yakuake-3.5.13.1.spec134
151 files changed, 16452 insertions, 148 deletions
diff --git a/redhat/applications/abakus/abakus-3.5.13.1-fix_install_icon.patch b/redhat/applications/abakus/abakus-3.5.13.1-fix_install_icon.patch
new file mode 100644
index 000000000..994fb39d5
--- /dev/null
+++ b/redhat/applications/abakus/abakus-3.5.13.1-fix_install_icon.patch
@@ -0,0 +1,10 @@
+--- abakus-3.5.13.1/CMakeLists.txt.ORI 2012-10-02 19:34:14.633927133 +0000
++++ abakus-3.5.13.1/CMakeLists.txt 2012-10-02 19:34:25.560708663 +0000
+@@ -66,6 +66,7 @@
+
+ ##### source directories ########################
+
++add_subdirectory( icons )
+ add_subdirectory( src )
+ tde_conditional_add_subdirectory( BUILD_DOC doc )
+ tde_conditional_add_subdirectory( BUILD_TRANSLATIONS po )
diff --git a/redhat/applications/abakus/trinity-abakus-3.5.13.1.spec b/redhat/applications/abakus/trinity-abakus-3.5.13.1.spec
new file mode 100644
index 000000000..af8ea636c
--- /dev/null
+++ b/redhat/applications/abakus/trinity-abakus-3.5.13.1.spec
@@ -0,0 +1,126 @@
+# Default version for this component
+%define kdecomp abakus
+
+# If TDE is built in a specific prefix (e.g. /opt/trinity), the release will be suffixed with ".opt".
+%if "%{?tde_prefix}" != "/usr"
+%define _variant .opt
+%endif
+
+# TDE 3.5.13 specific building variables
+%define tde_bindir %{tde_prefix}/bin
+%define tde_datadir %{tde_prefix}/share
+%define tde_docdir %{tde_datadir}/doc
+%define tde_includedir %{tde_prefix}/include
+%define tde_libdir %{tde_prefix}/%{_lib}
+%define tde_mandir %{tde_datadir}/man
+
+%define tde_tdeappdir %{tde_datadir}/applications/kde
+%define tde_tdedocdir %{tde_docdir}/tde
+%define tde_tdeincludedir %{tde_includedir}/tde
+%define tde_tdelibdir %{tde_libdir}/trinity
+
+%define _docdir %{tde_docdir}
+
+Name: trinity-%{kdecomp}
+Summary: Calculator for TDE
+Version: 0.91
+Release: 4%{?dist}%{?_variant}
+
+License: GPLv2+
+Group: Applications/Utilities
+
+Vendor: Trinity Project
+Packager: Francois Andriot <francois.andriot@free.fr>
+URL: http://www.trinitydesktop.org/
+
+Prefix: %{tde_prefix}
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+
+Source0: %{kdecomp}-3.5.13.1.tar.gz
+
+# [abakus] Fix install icon
+Patch1: abakus-3.5.13.1-fix_install_icon.patch
+
+BuildRequires: trinity-tqtinterface-devel >= 3.5.13.1
+BuildRequires: trinity-arts-devel >= 3.5.13.1
+BuildRequires: trinity-tdelibs-devel >= 3.5.13.1
+BuildRequires: desktop-file-utils
+BuildRequires: cmake >= 2.8
+BuildRequires: bison
+
+%description
+AbaKus is a complex calculator, which provides
+many different kinds of calculations.
+Think of it as bc (the command-line calculator) with a nice GUI.
+It also gives information about mathematical variables and
+has the user-friendly menu options of a normal TDE application.
+
+
+%if 0%{?suse_version}
+%debug_package
+%endif
+
+
+%prep
+%setup -q -n %{kdecomp}-3.5.13.1
+%patch1 -p1 -b .icon
+
+%build
+unset QTDIR; . /etc/profile.d/qt3.sh
+export PATH="%{tde_bindir}:${PATH}"
+export PKG_CONFIG_PATH="%{tde_libdir}/pkgconfig"
+export CMAKE_INCLUDE_PATH="%{tde_includedir}:%{tde_includedir}/tqt"
+
+# Do not build against any "/usr" installed KDE
+export KDEDIR=%{tde_prefix}
+
+# Specific path for RHEL4
+if [ -d /usr/X11R6 ]; then
+ export CXXFLAGS="${CXXFLAGS} -I/usr/X11R6/include -L/usr/X11R6/%{_lib}"
+fi
+
+%if 0%{?rhel} || 0%{?fedora} || 0%{?suse_version}
+%__mkdir_p build
+cd build
+%endif
+
+%cmake \
+ -DCMAKE_INSTALL_PREFIX=%{tde_prefix} \
+ -DSHARE_INSTALL_PREFIX=%{tde_datadir} \
+ -DBUILD_ALL=ON \
+ ..
+
+%__make %{?_smp_mflags}
+
+
+%install
+export PATH="%{tde_bindir}:${PATH}"
+%__rm -rf %{buildroot}
+%__make install DESTDIR=%{buildroot} -C build
+
+
+%clean
+%__rm -rf %{buildroot}
+
+
+%post
+touch --no-create %{tde_datadir}/icons/hicolor || :
+gtk-update-icon-cache --quiet %{tde_datadir}/icons/hicolor || :
+
+%postun
+touch --no-create %{tde_datadir}/icons/hicolor || :
+gtk-update-icon-cache --quiet %{tde_datadir}/icons/hicolor || :
+
+
+%files
+%defattr(-,root,root,-)
+%doc AUTHORS COPYING
+%{tde_bindir}/abakus
+%{tde_datadir}/apps/abakus/
+%{tde_datadir}/icons/hicolor/*/apps/abakus.png
+%{tde_tdedocdir}/HTML/en/abakus/
+%{tde_datadir}/applnk/Utilities/abakus.desktop
+
+%Changelog
+* Tue Oct 02 2012 Francois Andriot <francois.andriot@free.fr> - 0.91-4
+- Initial release for TDE 3.5.13.1
diff --git a/redhat/applications/amarok/amarok-3.5.13.1-add_xine12_support.patch b/redhat/applications/amarok/amarok-3.5.13.1-add_xine12_support.patch
new file mode 100644
index 000000000..2328a62b8
--- /dev/null
+++ b/redhat/applications/amarok/amarok-3.5.13.1-add_xine12_support.patch
@@ -0,0 +1,14 @@
+--- amarok-3.5.13.1/amarok/src/engine/xine/xine-engine.cpp.ORI 2012-10-02 20:00:20.751039350 +0000
++++ amarok-3.5.13.1/amarok/src/engine/xine/xine-engine.cpp 2012-10-02 20:05:34.336512276 +0000
+@@ -1131,7 +1131,11 @@
+
+ bool XineEngine::getAudioCDContents(const TQString &device, KURL::List &urls)
+ {
++#if XINE_MAJOR_VERSION > 1 || ( XINE_MAJOR_VERSION == 1 && XINE_MINOR_VERSION >= 2 )
++ const char * const* xine_urls = NULL;
++#else
+ char **xine_urls = NULL;
++#endif
+ int num;
+ int i = 0;
+
diff --git a/redhat/applications/amarok/amarok-3.5.13.1-fix_inotify_detection.patch b/redhat/applications/amarok/amarok-3.5.13.1-fix_inotify_detection.patch
new file mode 100644
index 000000000..ae5dc8c65
--- /dev/null
+++ b/redhat/applications/amarok/amarok-3.5.13.1-fix_inotify_detection.patch
@@ -0,0 +1,30 @@
+--- amarok-3.5.13.1/ConfigureChecks.cmake.ORI 2012-10-11 22:49:54.765461343 +0200
++++ amarok-3.5.13.1/ConfigureChecks.cmake 2012-10-11 22:49:59.897357764 +0200
+@@ -24,7 +24,7 @@
+
+ ##### check for inotify ###########################
+
+-# if( WITH_INOTIFY )
++if( WITH_INOTIFY )
+ check_include_file( "inotify.h" INOTIFY_FOUND )
+ check_include_file( "sys/inotify.h" INOTIFY_SYS_FOUND )
+ if( NOT INOTIFY_FOUND )
+@@ -39,7 +39,7 @@
+ set( HAVE_INOTIFY 1 )
+ set( HAVE_SYS_INOTIFY 1 )
+ endif( INOTIFY_SYS_FOUND )
+-# endif( )
++endif( )
+
+ check_function_exists( statvfs HAVE_STATVFS )
+
+--- amarok-3.5.13.1/CMakeLists.txt.ori 2012-10-11 22:50:45.323440818 +0200
++++ amarok-3.5.13.1/CMakeLists.txt 2012-10-11 22:51:00.569133033 +0200
+@@ -54,6 +54,7 @@
+ option( WITH_MTP "Enable mtp support" OFF )
+ option( WITH_RIOKARMA "Enable riokarma support" OFF )
+ option( WITH_DAAP "Enable daap support" OFF )
++option( WITH_INOTIFY "Enable inotify support" OFF )
+
+
+ ##### user requested modules ####################
diff --git a/redhat/applications/amarok/amarok-3.5.13.1-fix_rhel4_libs.patch b/redhat/applications/amarok/amarok-3.5.13.1-fix_rhel4_libs.patch
new file mode 100644
index 000000000..0b6d3259b
--- /dev/null
+++ b/redhat/applications/amarok/amarok-3.5.13.1-fix_rhel4_libs.patch
@@ -0,0 +1,15 @@
+--- amarok-3.5.13.1/amarok/src/engine/yauap/ConfigureChecks.cmake.ORI 2012-10-11 22:54:02.017468265 +0200
++++ amarok-3.5.13.1/amarok/src/engine/yauap/ConfigureChecks.cmake 2012-10-11 22:54:52.644445209 +0200
+@@ -16,8 +16,8 @@
+ endif( )
+
+ # dbus-tqt
+-pkg_search_module( DBUS_TQT dbus-tqt )
+-if( NOT DBUS_TQT_FOUND )
+- tde_message_fatal( "dbus-tqt is required, but was not found on your system" )
+-endif( )
++#pkg_search_module( DBUS_TQT dbus-tqt )
++#if( NOT DBUS_TQT_FOUND )
++# tde_message_fatal( "dbus-tqt is required, but was not found on your system" )
++#endif( )
+
diff --git a/redhat/applications/amarok/trinity-amarok-3.5.13.1.spec b/redhat/applications/amarok/trinity-amarok-3.5.13.1.spec
new file mode 100644
index 000000000..f45ad5611
--- /dev/null
+++ b/redhat/applications/amarok/trinity-amarok-3.5.13.1.spec
@@ -0,0 +1,406 @@
+# Basic package informations
+%define kdecomp amarok
+
+# If TDE is built in a specific prefix (e.g. /opt/trinity), the release will be suffixed with ".opt".
+%if "%{?tde_prefix}" != "/usr"
+%define _variant .opt
+%endif
+
+# TDE 3.5.13 specific building variables
+%define tde_bindir %{tde_prefix}/bin
+%define tde_datadir %{tde_prefix}/share
+%define tde_docdir %{tde_datadir}/doc
+%define tde_includedir %{tde_prefix}/include
+%define tde_libdir %{tde_prefix}/%{_lib}
+%define tde_mandir %{tde_datadir}/man
+
+%define tde_tdeappdir %{tde_datadir}/applications/kde
+%define tde_tdedocdir %{tde_docdir}/tde
+%define tde_tdeincludedir %{tde_includedir}/tde
+%define tde_tdelibdir %{tde_libdir}/trinity
+
+%define _docdir %{tde_docdir}
+
+
+Name: trinity-%{kdecomp}
+Summary: Media player
+Version: 1.4.10
+Release: 8%{?dist}%{?_variant}
+
+Group: Applications/Multimedia
+License: GPLv2+
+Url: http://amarok.kde.org
+
+Prefix: %{tde_prefix}
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+
+Source0: amarok-3.5.13.1.tar.gz
+
+Patch1: amarok-3.5.13.1-add_xine12_support.patch
+Patch2: amarok-3.5.13.1-fix_inotify_detection.patch
+Patch3: amarok-3.5.13.1-fix_rhel4_libs.patch
+
+BuildRequires: trinity-tqtinterface-devel >= 3.5.13.1
+BuildRequires: trinity-tdelibs-devel >= 3.5.13.1
+BuildRequires: trinity-tdebase-devel >= 3.5.13.1
+BuildRequires: trinity-akode-devel
+BuildRequires: trinity-konqueror-devel >= 3.5.13.1
+
+BuildRequires: alsa-lib-devel
+BuildRequires: desktop-file-utils
+BuildRequires: esound-devel
+BuildRequires: gettext
+BuildRequires: pcre-devel
+BuildRequires: taglib-devel
+
+%if 0%{?rhel} || 0%{?fedora} || 0%{?mgaversion} || 0%{?mdkversion}
+BuildRequires: libmp4v2-devel
+%endif
+
+BuildRequires: libtool
+%if 0%{?fedora} > 4 || 0%{?rhel} > 4
+BuildRequires: libtool-ltdl-devel
+%endif
+BuildRequires: libusb-devel
+BuildRequires: mysql-devel
+BuildRequires: postgresql-devel
+BuildRequires: SDL-devel
+BuildRequires: taglib-devel
+BuildRequires: sqlite-devel
+# not used anymore, in favor of libvisual ? -- Rex
+#%{?fedora:BuildRequires: xmms-devel}
+
+
+# DBUS support
+%if 0%{?suse_version}
+BuildRequires: dbus-1-devel
+%else
+BuildRequires: dbus-devel
+%endif
+%if 0%{?rhel} == 4
+BuildRequires: dbus-qt
+%else
+BuildRequires: trinity-dbus-tqt-devel >= 3.5.13.1
+%endif
+
+# IFP support
+%if 0%{?rhel} >= 5 || 0%{?fedora} || 0%{?mgaversion} || 0%{?mdkversion}
+%define with_ifp 1
+BuildRequires: libifp-devel
+%endif
+
+# KARMA support
+%if 0%{?mgaversion} || 0%{?mdkversion}
+%define with_karma 1
+BuildRequires: libkarma-devel
+BuildRequires: karma-sharp
+%endif
+
+%if 0%{?rhel} >= 5 || 0%{?fedora} || 0%{?mdkversion} || 0%{?mgaversion} || 0%{?suse_version}
+
+# GPOD (ipod) support
+%define with_gpod 1
+%if 0%{?rhel} == 5
+BuildRequires: trinity-libgpod-devel >= 0.4.2
+%else
+BuildRequires: libgpod-devel >= 0.4.2
+%endif
+
+# MTP players
+%define with_mtp 1
+BuildRequires: libmtp-devel
+BuildRequires: libmusicbrainz-devel
+
+# Creative Nomad Jukebox
+%define with_njb 1
+BuildRequires: libnjb-devel
+
+# VISUAL support
+%define with_libvisual 1
+BuildRequires: libvisual-devel
+
+# TUNEPIMP support
+BuildRequires: libtunepimp-devel
+
+# INOTIFY support
+%define with_inotify 1
+%if 0%{?mgaversion} || 0%{?mdkversion}
+BuildRequires: %{_lib}inotifytools-devel
+%endif
+
+# XINE support
+%define with_xine 1
+%if 0%{?mgaversion} || 0%{?mdkversion} || 0%{?suse_version}
+BuildRequires: libxine-devel
+%endif
+%if 0%{?rhel} || 0%{?fedora}
+BuildRequires: xine-lib-devel
+%endif
+
+# YAUAP support
+%define with_yauap 1
+
+%endif
+
+# ruby
+BuildRequires: ruby
+BuildRequires: ruby-devel
+
+# To open the selected browser, works with Patch2
+Requires: xdg-utils
+Requires(post): xdg-utils
+Requires(postun): xdg-utils
+
+
+%description
+Amarok is a multimedia player with:
+ - fresh playlist concept, very fast to use, with drag and drop
+ - plays all formats supported by the various engines
+ - audio effects, like reverb and compressor
+ - compatible with the .m3u and .pls formats for playlists
+ - nice GUI, integrates into the TDE look, but with a unique touch
+
+%files -f %{name}.lang
+%defattr(-,root,root,-)
+%doc COPYING AUTHORS ChangeLog README
+%{tde_bindir}/amarok
+%{tde_bindir}/amarokapp
+%{tde_bindir}/amarokcollectionscanner
+%{tde_bindir}/amarok_proxy.rb
+%{tde_datadir}/apps/amarok/
+%{tde_datadir}/icons/hicolor/*/*/*
+%{tde_datadir}/applications/kde/*.desktop
+%{tde_datadir}/servicetypes/*.desktop
+%{tde_datadir}/apps/profiles/amarok.profile.xml
+%{tde_datadir}/config/amarokrc
+%{tde_datadir}/config.kcfg/*.kcfg
+%{tde_datadir}/services/amarokitpc.protocol
+%{tde_datadir}/services/amaroklastfm.protocol
+%{tde_datadir}/services/amarokpcast.protocol
+# -libs ? -- Rex
+%{tde_libdir}/libamarok.so.0
+%{tde_libdir}/libamarok.so.0.0.0
+# DAAP
+%{tde_bindir}/amarok_daapserver.rb
+%{tde_tdelibdir}/libamarok_daap-mediadevice.*
+%{tde_datadir}/services/amarok_daap-mediadevice.desktop
+# Mass-storage
+%{tde_datadir}/services/amarok_massstorage-device.desktop
+%{tde_tdelibdir}/libamarok_massstorage-device.*
+# NFS
+%{tde_datadir}/services/amarok_nfs-device.desktop
+%{tde_tdelibdir}/libamarok_nfs-device.*
+# SMB
+%{tde_datadir}/services/amarok_smb-device.desktop
+%{tde_tdelibdir}/libamarok_smb-device.*
+# IPod
+%if 0%{?with_gpod}
+%{tde_datadir}/services/amarok_ipod-mediadevice.desktop
+%{tde_tdelibdir}/libamarok_ipod-mediadevice.*
+%endif
+# VFAT
+%{tde_datadir}/services/amarok_generic-mediadevice.desktop
+%{tde_tdelibdir}/libamarok_generic-mediadevice.*
+# iRiver
+%if 0%{?with_ifp}
+%{tde_datadir}/services/amarok_ifp-mediadevice.desktop
+%{tde_tdelibdir}/libamarok_ifp-mediadevice.*
+%endif
+# Creative Zen
+%if 0%{?with_njb}
+%{tde_datadir}/services/amarok_njb-mediadevice.desktop
+%{tde_tdelibdir}/libamarok_njb-mediadevice.*
+%endif
+# MTP players
+%if 0%{?with_mtp}
+%{tde_datadir}/services/amarok_mtp-mediadevice.desktop
+%{tde_tdelibdir}/libamarok_mtp-mediadevice.*
+%endif
+# Rio Karma
+%if 0%{?with_karma}
+%{tde_datadir}/services/amarok_riokarma-mediadevice.desktop
+%{tde_tdelibdir}/libamarok_riokarma-mediadevice.*
+%endif
+# Void engine (noop)
+%{tde_datadir}/services/amarok_void-engine_plugin.desktop
+%{tde_tdelibdir}/libamarok_void-engine_plugin.*
+# Xine engine
+%if 0%{?with_xine}
+%{tde_datadir}/services/amarok_xine-engine.desktop
+%{tde_tdelibdir}/libamarok_xine-engine.*
+%endif
+## Gstreamer engine
+#%{tde_datadir}/services/amarok_gst10engine_plugin.desktop
+#%{tde_tdelibdir}/libamarok_gst10engine_plugin.*
+# YAUAP
+%if 0%{?with_yauap}
+%{tde_datadir}/services/amarok_yauap-engine_plugin.desktop
+%{tde_tdelibdir}/libamarok_yauap-engine_plugin.*
+%endif
+# AKODE
+%{tde_datadir}/services/amarok_aKode-engine.desktop
+%{tde_tdelibdir}/libamarok_aKode-engine.*
+
+%post
+/sbin/ldconfig
+xdg-icon-resource forceupdate --theme hicolor 2> /dev/null || :
+xdg-desktop-menu forceupdate 2> /dev/null || :
+
+%postun
+/sbin/ldconfig
+xdg-icon-resource forceupdate --theme hicolor 2> /dev/null || :
+xdg-desktop-menu forceupdate 2> /dev/null || :
+
+
+##########
+
+%package ruby
+Summary: %{name} Ruby support
+Group: Applications/Multimedia
+Requires: %{name} = %{version}-%{release}
+# For dir ownership and some default plugins (lyrics)
+Requires: ruby
+
+%description ruby
+%{summary}.
+
+%files ruby
+%defattr(-,root,root,-)
+%{tde_libdir}/ruby_lib/*
+
+##########
+
+%package konqueror
+Summary: Amarok konqueror (service menus, sidebar) support
+Group: Applications/Multimedia
+
+Requires: %{name} = %{version}-%{release}
+Requires: trinity-konqueror
+
+%description konqueror
+%{summary}.
+
+%files konqueror
+%defattr(-,root,root,-)
+%{tde_datadir}/apps/konqueror/servicemenus/*.desktop
+%{tde_tdelibdir}/konqsidebar_universalamarok.*
+%{tde_datadir}/apps/konqsidebartng/*/amarok.desktop
+
+
+##########
+
+%if 0%{?with_libvisual}
+
+%package visualisation
+Summary: Visualisation plugins for Amarok
+Group: Applications/Multimedia
+Requires: %{name} = %{version}-%{release}
+# No plugins by default, we need libvisual-plugins
+#Requires: libvisual-plugins
+
+%description visualisation
+Amarok can use visualisation plugins from different origins.
+Right now, only xmms is supported, which means that you can
+use any of xmms' visualisation plugins with Amarok.
+
+%files visualisation
+%defattr(-,root,root,-)
+%{tde_bindir}/amarok_libvisual
+
+%endif
+
+##########
+
+%if 0%{?suse_version}
+%debug_package
+%endif
+
+##########
+
+%prep
+%setup -q -n amarok-3.5.13.1
+%patch1 -p1 -b .xine
+%patch2 -p1 -b .inotify
+%if 0%{?rhel} == 4
+%patch3 -p1 -b .rhel4
+%endif
+
+%build
+unset QTDIR; . /etc/profile.d/qt3.sh
+export PATH="%{tde_bindir}:${PATH}"
+export PKG_CONFIG_PATH="%{tde_libdir}/pkgconfig"
+export LDFLAGS="-L%{tde_libdir} -I%{tde_includedir}"
+export CMAKE_INCLUDE_PATH="%{tde_includedir}:%{tde_includedir}/tqt:%{tde_tdeincludedir}"
+
+# Do not build against any "/usr" installed KDE
+export KDEDIR=%{tde_prefix}
+
+# Specific path for RHEL4
+if [ -d /usr/X11R6 ]; then
+ export CXXFLAGS="${CXXFLAGS} -I/usr/X11R6/include -L/usr/X11R6/%{_lib}"
+fi
+
+%if 0%{?rhel} || 0%{?fedora} || 0%{?suse_version}
+%__mkdir_p build
+cd build
+%endif
+
+%cmake \
+ -DBIN_INSTALL_DIR=%{tde_bindir} \
+ -DINCLUDE_INSTALL_DIR=%{tde_tdeincludedir} \
+ -DLIB_INSTALL_DIR=%{tde_libdir} \
+ -DSHARE_INSTALL_PREFIX=%{tde_datadir} \
+ -DCMAKE_SKIP_RPATH="OFF" \
+ -DQT_LIBRARY_DIRS="${QTLIB:-${QTDIR}/%{_lib}}" \
+ %{?with_libvisual:-DWITH_LIBVISUAL=ON} \
+ -DWITH_KONQSIDEBAR=ON \
+ %{?with_xine:-DWITH_XINE=ON} \
+ %{?with_yauap:-DWITH_YAUAP=ON} \
+ -DWITH_AKODE=ON \
+ %{?with_gpod:-DWITH_IPOD=ON} \
+ %{?with_ifp:-DWITH_IFP=ON} \
+ %{?with_njb:-DWITH_NJB=ON} \
+ %{?with_mtp:-DWITH_MTP=ON} \
+ %{?with_karma:-DWITH_RIOKARMA=ON} \
+ %{?with_inotify:-DWITH_INOTIFY=ON} \
+ -DWITH_DAAP=ON \
+ -DBUILD_ALL=ON \
+ ..
+
+%__make %{?_smp_mflags}
+
+%install
+%__rm -fr $RPM_BUILD_ROOT
+%__make install DESTDIR=$RPM_BUILD_ROOT -C build
+
+
+# unpackaged files
+%__rm -f $RPM_BUILD_ROOT%{tde_libdir}/lib*.la
+# Removes '.so' to avoid automatic -devel dependency
+%__rm -f $RPM_BUILD_ROOT%{tde_libdir}/libamarok.so
+
+# HTML
+for lang_dir in $RPM_BUILD_ROOT%{tde_tdedocdir}/HTML/* ; do
+ if [ -d $lang_dir ]; then
+ lang=$(basename $lang_dir)
+ [ "$lang" == "en" ] && d=en/amarok || d=$lang
+ echo "%lang($lang) %doc %{tde_tdedocdir}/HTML/$d" >> %{name}.lang
+ fi
+done
+
+# Locales
+for locale in $RPM_BUILD_ROOT%{tde_datadir}/locale/* ; do
+ if [ -r $locale/LC_MESSAGES/amarok.mo ]; then
+ lang=$(basename $locale)
+ echo "%lang($lang) %{tde_datadir}/locale/$lang/LC_MESSAGES/amarok.mo" >> %{name}.lang
+ fi
+done
+
+
+%clean
+%__rm -fr $RPM_BUILD_ROOT
+
+
+%changelog
+* Tue Oct 02 2012 Francois Andriot <francois.andriot@free.fr> - 1.4.10-8
+- Initial release for TDE 3.5.13.1
diff --git a/redhat/applications/amarok/trinity-amarok.spec b/redhat/applications/amarok/trinity-amarok-3.5.13.spec
index a5eb0d8ae..a5eb0d8ae 100644
--- a/redhat/applications/amarok/trinity-amarok.spec
+++ b/redhat/applications/amarok/trinity-amarok-3.5.13.spec
diff --git a/redhat/applications/basket/trinity-basket-3.5.13.1.spec b/redhat/applications/basket/trinity-basket-3.5.13.1.spec
new file mode 100644
index 000000000..0fc6f878b
--- /dev/null
+++ b/redhat/applications/basket/trinity-basket-3.5.13.1.spec
@@ -0,0 +1,165 @@
+# Default version for this component
+%define kdecomp basket
+
+# If TDE is built in a specific prefix (e.g. /opt/trinity), the release will be suffixed with ".opt".
+%if "%{?tde_prefix}" != "/usr"
+%define _variant .opt
+%endif
+
+# TDE 3.5.13 specific building variables
+%define tde_bindir %{tde_prefix}/bin
+%define tde_datadir %{tde_prefix}/share
+%define tde_docdir %{tde_datadir}/doc
+%define tde_includedir %{tde_prefix}/include
+%define tde_libdir %{tde_prefix}/%{_lib}
+%define tde_mandir %{tde_datadir}/man
+
+%define tde_tdeappdir %{tde_datadir}/applications/kde
+%define tde_tdedocdir %{tde_docdir}/tde
+%define tde_tdeincludedir %{tde_includedir}/tde
+%define tde_tdelibdir %{tde_libdir}/trinity
+
+%define _docdir %{tde_docdir}
+
+
+Name: trinity-%{kdecomp}
+Summary: Taking care of your ideas.
+Version: 1.0.3.1
+Release: 3%{?dist}%{?_variant}
+
+License: GPLv2+
+Group: Applications/Utilities
+
+Vendor: Trinity Project
+Packager: Francois Andriot <francois.andriot@free.fr>
+URL: http://www.trinitydesktop.org/
+
+Prefix: %{tde_prefix}
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+
+Source0: %{kdecomp}-3.5.13.1.tar.gz
+
+# [basket] Fix compilation with GCC 4.7
+Patch1: basket-3.5.13-fix_gcc47_compilation.patch
+
+BuildRequires: trinity-tqtinterface-devel >= 3.5.13.1
+BuildRequires: trinity-tdelibs-devel >= 3.5.13.1
+BuildRequires: trinity-tdebase-devel >= 3.5.13.1
+BuildRequires: trinity-tdepim-devel >= 3.5.13.1
+BuildRequires: desktop-file-utils
+
+BuildRequires: gpgme-devel
+
+%description
+This application is mainly an all-purpose notes taker. It provide several baskets where
+to drop every sort of items: text, rich text, links, images, sounds, files, colors,
+application launcher... Objects can be edited, copied, dragged... So, you can arrange
+them as you want ! This application can be used to quickly drop web objects (link, text,
+images...) or notes, as well as to free your clutered desktop (if any). It is also useful
+to collect informations for a report. Those data can be shared with co-workers by exporting
+baskets to HTML.
+
+
+%if 0%{?suse_version}
+%debug_package
+%endif
+
+
+%prep
+%setup -q -n %{kdecomp}-3.5.13.1
+%patch1 -p1
+
+# Ugly hack to modify TQT include directory inside autoconf files.
+# If TQT detection fails, it fallbacks to TQT4 instead of TQT3 !
+%__sed -i admin/acinclude.m4.in \
+ -e "s|/usr/include/tqt|%{tde_includedir}/tqt|g" \
+ -e "s|kde_htmldir='.*'|kde_htmldir='%{tde_tdedocdir}/HTML'|g"
+
+%__cp -f "/usr/share/aclocal/libtool.m4" "admin/libtool.m4.in"
+%__cp -f "/usr/share/libtool/config/ltmain.sh" "admin/ltmain.sh" || %__cp -f "/usr/share/libtool/ltmain.sh" "admin/ltmain.sh"
+%__make -f "admin/Makefile.common"
+
+
+%build
+unset QTDIR; . /etc/profile.d/qt3.sh
+export PATH="%{tde_bindir}:${PATH}"
+export LDFLAGS="-L%{tde_libdir} -I%{tde_includedir}"
+
+%configure \
+ --prefix=%{tde_prefix} \
+ --exec-prefix=%{tde_prefix} \
+ --bindir=%{tde_bindir} \
+ --includedir=%{tde_tdeincludedir} \
+ --libdir=%{tde_libdir} \
+ --datadir=%{tde_datadir} \
+ --disable-rpath \
+ --with-extra-includes=%{tde_includedir}/tqt \
+ --disable-static
+
+%__make %{?_smp_mflags}
+
+
+%install
+export PATH="%{tde_bindir}:${PATH}"
+%__rm -rf %{buildroot}
+%__make install DESTDIR=%{buildroot}
+
+%find_lang %{kdecomp}
+
+%clean
+%__rm -rf %{buildroot}
+
+
+%post
+for f in crystalsvg ; do
+ touch --no-create %{tde_datadir}/icons/${f} || :
+ gtk-update-icon-cache --quiet %{tde_datadir}/icons/${f} || :
+done
+/sbin/ldconfig
+
+%postun
+for f in crystalsvg ; do
+ touch --no-create %{tde_datadir}/icons/${f} || :
+ gtk-update-icon-cache --quiet %{tde_datadir}/icons/${f} || :
+done
+/sbin/ldconfig
+
+
+%files -f %{kdecomp}.lang
+%defattr(-,root,root,-)
+%doc AUTHORS COPYING
+%{tde_bindir}/basket
+%{tde_tdeappdir}/basket.desktop
+%{tde_datadir}/apps/basket/
+%{tde_datadir}/apps/kontact/ksettingsdialog/kontact_basketplugin.setdlg
+%{tde_libdir}/libbasketcommon.la
+%{tde_libdir}/libbasketcommon.so
+%{tde_tdelibdir}/basketthumbcreator.la
+%{tde_tdelibdir}/basketthumbcreator.so
+%{tde_tdelibdir}/kcm_basket.la
+%{tde_tdelibdir}/kcm_basket.so
+%{tde_tdelibdir}/libbasketpart.la
+%{tde_tdelibdir}/libbasketpart.so
+%{tde_tdelibdir}/libkontact_basket.la
+%{tde_tdelibdir}/libkontact_basket.so
+%{tde_datadir}/config/magic/basket.magic
+%{tde_datadir}/icons/crystalsvg/*/*/*
+%{tde_datadir}/mimelnk/application/x-basket-archive.desktop
+%{tde_datadir}/mimelnk/application/x-basket-template.desktop
+%{tde_datadir}/services/basket_config_apps.desktop
+%{tde_datadir}/services/basket_config_baskets.desktop
+%{tde_datadir}/services/basket_config_features.desktop
+%{tde_datadir}/services/basket_config_general.desktop
+%{tde_datadir}/services/basket_config_new_notes.desktop
+%{tde_datadir}/services/basket_config_notes.desktop
+%{tde_datadir}/services/basket_config_notes_appearance.desktop
+%{tde_datadir}/services/basket_part.desktop
+%{tde_datadir}/services/basketthumbcreator.desktop
+%{tde_datadir}/services/kontact/basket.desktop
+%{tde_datadir}/services/kontact/basket_v4.desktop
+%{tde_tdedocdir}/HTML/en/basket/
+
+
+%Changelog
+* Tue Oct 02 2012 Francois Andriot <francois.andriot@free.fr> - 1.0.3.1-3
+- Initial release for TDE 3.5.13.1
diff --git a/redhat/applications/bibletime/trinity-bibletime-3.5.13.1.spec b/redhat/applications/bibletime/trinity-bibletime-3.5.13.1.spec
new file mode 100644
index 000000000..f19a8d741
--- /dev/null
+++ b/redhat/applications/bibletime/trinity-bibletime-3.5.13.1.spec
@@ -0,0 +1,164 @@
+# Default version for this component
+%define kdecomp bibletime
+
+# If TDE is built in a specific prefix (e.g. /opt/trinity), the release will be suffixed with ".opt".
+%if "%{?tde_prefix}" != "/usr"
+%define _variant .opt
+%endif
+
+# TDE 3.5.13 specific building variables
+%define tde_bindir %{tde_prefix}/bin
+%define tde_datadir %{tde_prefix}/share
+%define tde_docdir %{tde_datadir}/doc
+%define tde_includedir %{tde_prefix}/include
+%define tde_libdir %{tde_prefix}/%{_lib}
+%define tde_mandir %{tde_datadir}/man
+
+%define tde_tdeappdir %{tde_datadir}/applications/kde
+%define tde_tdedocdir %{tde_docdir}/tde
+%define tde_tdeincludedir %{tde_includedir}/tde
+%define tde_tdelibdir %{tde_libdir}/trinity
+
+%define _docdir %{tde_docdir}
+
+
+Name: trinity-%{kdecomp}
+Summary: A bible study tool for Trinity
+Version: 1.6.6.0
+Release: 3%{?dist}%{?_variant}
+
+License: GPLv2+
+Group: Applications/Utilities
+
+Vendor: Trinity Project
+Packager: Francois Andriot <francois.andriot@free.fr>
+URL: http://www.trinitydesktop.org
+
+Prefix: %{_prefix}
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+
+Source0: %{kdecomp}-3.5.13.1.tar.gz
+
+# Fix detection of older versions of clucene in Fedora >= 16
+Patch0: bibletime-3.5.13-clucene_detection.patch
+# [bibletime] Fix FTBFS on Mageia 2, error at linking with 'sword'
+Patch2: bibletime-3.5.13-fix_sword_linking.patch
+
+BuildRequires: trinity-tqtinterface-devel >= 3.5.13.1
+BuildRequires: trinity-tdelibs-devel >= 3.5.13.1
+BuildRequires: trinity-tdebase-devel >= 3.5.13.1
+BuildRequires: desktop-file-utils
+BuildRequires: gettext
+
+# Bibletime only works with clucene 0.9 ! Mageia 2 does not ship with that old version !
+%if 0%{?fedora} >= 16 || 0%{?suse_version}
+BuildRequires: clucene09-core-devel
+%else
+%if 0%{?mgaversion} || 0%{?mdkversion}
+BuildRequires: clucene-devel < 1.0
+%else
+BuildRequires: clucene-core-devel
+%endif
+%endif
+
+BuildRequires: sword-devel
+Requires: sword
+
+%description
+BibleTime is a free and easy to use bible study tool for UNIX systems.
+It requires a working KDE environment and the SWORD library.
+BibleTime provides easy handling of digitized texts (Bibles, commentaries
+and lexicons) and powerful features to work with these texts (search in
+texts, write own notes, save, print etc.).
+
+
+%if 0%{?suse_version}
+%debug_package
+%endif
+
+
+%prep
+%setup -q -n %{kdecomp}-3.5.13.1
+%patch0 -p0 -b .clucene
+%patch2 -p1 -b .ftbfs
+
+# Ugly hack to modify TQT include directory inside autoconf files.
+# If TQT detection fails, it fallbacks to TQT4 instead of TQT3 !
+%__sed -i admin/acinclude.m4.in \
+ -e "s|/usr/include/tqt|%{tde_includedir}/tqt|g" \
+ -e "s|kde_htmldir='.*'|kde_htmldir='%{tde_tdedocdir}/HTML'|g"
+
+%__cp -f "/usr/share/aclocal/libtool.m4" "admin/libtool.m4.in"
+%__cp -f "/usr/share/libtool/config/ltmain.sh" "admin/ltmain.sh" || %__cp -f "/usr/share/libtool/ltmain.sh" "admin/ltmain.sh"
+%__make -f "admin/Makefile.common"
+
+
+%build
+unset QTDIR; . /etc/profile.d/qt3.sh
+export PATH="%{tde_bindir}:${PATH}"
+export LDFLAGS="-L%{tde_libdir} -I%{tde_includedir}"
+
+%configure \
+ --prefix=%{tde_prefix} \
+ --exec-prefix=%{tde_prefix} \
+ --bindir=%{tde_bindir} \
+ --libdir=%{tde_libdir} \
+ --datadir=%{tde_datadir} \
+ --includedir=%{tde_tdeincludedir} \
+ --disable-rpath \
+ --with-extra-includes=%{tde_includedir}/tqt
+
+# Not SMP safe !
+%__make -C bibletime/frontend
+
+# SMP safe !
+%__make %{?_smp_mflags}
+
+
+%install
+export PATH="%{tde_bindir}:${PATH}"
+%__rm -rf %{buildroot}
+%__make install DESTDIR=%{buildroot}
+
+%__chmod 644 %{buildroot}%{tde_datadir}/apps/bibletime/pics/*
+%__chmod 644 %{buildroot}%{tde_datadir}/apps/bibletime/bibletimeui.rc
+%__chmod 644 %{buildroot}%{tde_datadir}/apps/bibletime/tips
+
+
+
+
+%clean
+%__rm -rf %{buildroot}
+
+
+%post
+touch --no-create %{tde_datadir}/icons/hicolor || :
+gtk-update-icon-cache --quiet %{tde_datadir}/icons/hicolor || :
+/sbin/ldconfig || :
+
+%postun
+touch --no-create %{tde_datadir}/icons/hicolor || :
+gtk-update-icon-cache --quiet %{tde_datadir}/icons/hicolor || :
+/sbin/ldconfig || :
+
+
+%files
+%defattr(-,root,root,-)
+%{tde_bindir}/bibletime
+%{tde_tdeincludedir}/bibletimeinterface.h
+%{tde_datadir}/applications/bibletime.desktop
+%{tde_datadir}/apps/bibletime/
+%{tde_datadir}/icons/hicolor/*/*/*.png
+%{tde_tdedocdir}/HTML/en/bibletime/
+
+
+%changelog
+* Wed Oct 03 2012 Francois Andriot <francois.andriot@free.fr> - 1.6.6.0-3
+- Initial build for TDE 3.5.13.1
+
+* Tue May 01 2012 Francois Andriot <francois.andriot@free.fr> - 1.6.6.0-2
+- Fix compilation on RHEL 5
+- Fix compilation with GCC 4.7
+
+* Tue Nov 29 2011 Francois Andriot <francois.andriot@free.fr> - 1.6.6.0-1
+- Initial build for RHEL 5, RHEL 6, Fedora 15, Fedora 16
diff --git a/redhat/applications/bibletime/trinity-bibletime.spec b/redhat/applications/bibletime/trinity-bibletime-3.5.13.spec
index d88da085b..d88da085b 100644
--- a/redhat/applications/bibletime/trinity-bibletime.spec
+++ b/redhat/applications/bibletime/trinity-bibletime-3.5.13.spec
diff --git a/redhat/applications/digikam/trinity-digikam-3.5.13-sru.spec b/redhat/applications/digikam/trinity-digikam-3.5.13.1.spec
index 9a1031d72..8daafb0cb 100644
--- a/redhat/applications/digikam/trinity-digikam-3.5.13-sru.spec
+++ b/redhat/applications/digikam/trinity-digikam-3.5.13.1.spec
@@ -15,8 +15,8 @@
%define tde_mandir %{tde_datadir}/man
%define tde_tdeappdir %{tde_datadir}/applications/kde
-%define tde_tdedocdir %{tde_docdir}/kde
-%define tde_tdeincludedir %{tde_includedir}/kde
+%define tde_tdedocdir %{tde_docdir}/tde
+%define tde_tdeincludedir %{tde_includedir}/tde
%define tde_tdelibdir %{tde_libdir}/trinity
%define _docdir %{tde_docdir}
@@ -37,40 +37,49 @@ URL: http://www.trinitydesktop.org/
Prefix: %{_prefix}
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
-Source0: %{kdecomp}-3.5.13.tar.gz
+Source0: %{kdecomp}-3.5.13.1.tar.gz
-# [digikam] Version 3.5.13-sru
-Patch0: digikam-3.5.13-sru-20120808.patch
# [digikam] Fix FTBFS on png >= 0.15 [Commit #18ecd512]
Patch9: digikam-3.5.13-fix_ftbfs_png_015.patch
-BuildRequires: tqtinterface-devel
-BuildRequires: trinity-arts-devel
-BuildRequires: trinity-tdelibs-devel
-BuildRequires: trinity-tdebase-devel
-BuildRequires: desktop-file-utils
-BuildRequires: gettext
-BuildRequires: trinity-libkexiv2-devel
-BuildRequires: trinity-libkdcraw-devel
-BuildRequires: trinity-libkipi-devel
+BuildRequires: trinity-tqtinterface-devel >= 3.5.13.1
+BuildRequires: trinity-arts-devel >= 3.5.13.1
+BuildRequires: trinity-tdelibs-devel >= 3.5.13.1
+BuildRequires: trinity-tdebase-devel >= 3.5.13.1
+BuildRequires: trinity-libkexiv2-devel >= 3.5.13.1
+BuildRequires: trinity-libkdcraw-devel >= 3.5.13.1
+BuildRequires: trinity-libkipi-devel >= 3.5.13.1
%if 0%{?rhel} == 5 || 0%{?mgaversion} || 0%{?mdkversion}
-BuildRequires: gphoto2-devel
+BuildRequires: gphoto2-devel
%else
-BuildRequires: libgphoto2-devel
+BuildRequires: libgphoto2-devel
%endif
-BuildRequires: libtiff-devel
-BuildRequires: jasper-devel
+BuildRequires: libtiff-devel
+BuildRequires: desktop-file-utils
+BuildRequires: gettext
+# JASPER support
+%if 0%{?suse_version}
+BuildRequires: libjasper-devel
+%else
+BuildRequires: jasper-devel
+%endif
+
+# EXIV2 support
%if 0%{?mgaversion} || 0%{?mdkversion}
BuildRequires: %{_lib}exiv2-devel
-%else
+%endif
+%if 0%{?suse_version}
+BuildRequires: libexiv2-devel
+%endif
+%if 0%{?rhel} || 0%{?fedora}
BuildRequires: exiv2-devel
%endif
-Requires: trinity-libkexiv2
-Requires: trinity-libkdcraw
-Requires: trinity-libkipi
+Requires: trinity-libkexiv2 >= 3.5.13.1
+Requires: trinity-libkdcraw >= 3.5.13.1
+Requires: trinity-libkipi >= 3.5.13.1
%description
An easy to use and powerful digital photo management
@@ -102,11 +111,13 @@ Requires: %{name} = %{version}
%{summary}
-%prep
-%setup -q -n applications/%{kdecomp}
+%if 0%{?suse_version}
+%debug_package
+%endif
-%patch0 -p1
+%prep
+%setup -q -n %{kdecomp}-3.5.13.1
%patch9 -p1 -b .png015
@@ -122,7 +133,7 @@ Requires: %{name} = %{version}
%build
-unset QTDIR || : ; source /etc/profile.d/qt.sh
+unset QTDIR || : ; source /etc/profile.d/qt3.sh
export PATH="%{tde_bindir}:${PATH}"
export LDFLAGS="-L%{tde_libdir} -I%{tde_tdeincludedir}"
@@ -186,12 +197,6 @@ update-desktop-database %{tde_appdir} 2> /dev/null || :
%{tde_tdelibdir}/kio_digikamalbums.so
%{tde_tdelibdir}/kio_digikamdates.la
%{tde_tdelibdir}/kio_digikamdates.so
-%{tde_tdelibdir}/kio_digikamsearch.la
-%{tde_tdelibdir}/kio_digikamsearch.so
-%{tde_tdelibdir}/kio_digikamtags.la
-%{tde_tdelibdir}/kio_digikamtags.so
-%{tde_tdelibdir}/kio_digikamthumbnail.la
-%{tde_tdelibdir}/kio_digikamthumbnail.so
%{tde_tdelibdir}/digikamimageplugin_adjustcurves.la
%{tde_tdelibdir}/digikamimageplugin_adjustcurves.so
%{tde_tdelibdir}/digikamimageplugin_adjustlevels.la
@@ -246,6 +251,12 @@ update-desktop-database %{tde_appdir} 2> /dev/null || :
%{tde_tdelibdir}/digikamimageplugin_texture.so
%{tde_tdelibdir}/digikamimageplugin_whitebalance.la
%{tde_tdelibdir}/digikamimageplugin_whitebalance.so
+%{tde_tdelibdir}/kio_digikamsearch.la
+%{tde_tdelibdir}/kio_digikamsearch.so
+%{tde_tdelibdir}/kio_digikamtags.la
+%{tde_tdelibdir}/kio_digikamtags.so
+%{tde_tdelibdir}/kio_digikamthumbnail.la
+%{tde_tdelibdir}/kio_digikamthumbnail.so
%{tde_tdeappdir}/digikam.desktop
%{tde_tdeappdir}/showfoto.desktop
%{tde_datadir}/apps/digikam/
@@ -289,7 +300,7 @@ update-desktop-database %{tde_appdir} 2> /dev/null || :
%{tde_datadir}/services/digikamthumbnail.protocol
%{tde_datadir}/servicetypes/digikamimageplugin.desktop
%{tde_mandir}/man*/*
-%{tde_tdedocdir}/HTML/en/digikam-apidocs/
+#%{tde_tdedocdir}/HTML/en/digikam-apidocs/
%files devel
@@ -299,7 +310,32 @@ update-desktop-database %{tde_appdir} 2> /dev/null || :
%{tde_libdir}/libdigikam.la
-%Changelog
-* Wed Aug 08 2012 Francois Andriot <francois.andriot@free.fr> - 0.9.6-4
-- Switch to v3.5.13-sru branch.
+%changelog
+* Wed Oct 03 2012 Francois Andriot <francois.andriot@free.fr> - 0.9.6-4
+- Initial build for TDE 3.5.13.1
+
+* Fri Aug 03 2012 Francois Andriot <francois.andriot@free.fr> - 0.9.6-3
+- Add support for Mageia 2 and Mandriva 2011
+- Removes old patches, adds GIT patches.
+- Fix digikam FTBFS due to jpeg code [Commit #b9419cd5]
+- Fix FTBFS due to png code [Bug #595] [Commit #3e27b07f]
+- Remove version.h. Cruft from an older version prior to 0.9.6.
+- Fix usage of obsolete libpng jmpbuf member [Commit #7d0d82b7]
+- GCC 4.7 fix. [Bug #958] [Commit #a9489034]
+- GCC 4.7 fix. [Bug #958] [Commit #a209c81b]
+- Fix 'format not a string literal' error [Commit #029218cd]
+- Update patch in GIT hash a9489034 to use reinterpret_cast. [Commit #5a043853]
+- Fix FTBFS on png >= 0.15 [Commit #18ecd512]
+
+* Sun Jul 08 2012 Francois Andriot <francois.andriot@free.fr> - 0.9.6-3
+- Fix man directory location
+- Fix postinstall
+- Fix description
+- Add "BuildRequires: exiv2-devel"
+
+* Tue May 01 2012 Francois Andriot <francois.andriot@free.fr> - 0.9.6-2
+- gcc 4.7 + libpng 1.5 patch for digikam (consolidated) [Bug #958]
+
+* Sun Nov 06 2011 Francois Andriot <francois.andriot@free.fr> - 0.9.6-1
+- Initial release for RHEL 6, RHEL 5 and Fedora 15
diff --git a/redhat/applications/dolphin/trinity-dolphin-3.5.13.1.spec b/redhat/applications/dolphin/trinity-dolphin-3.5.13.1.spec
new file mode 100644
index 000000000..57e270aea
--- /dev/null
+++ b/redhat/applications/dolphin/trinity-dolphin-3.5.13.1.spec
@@ -0,0 +1,197 @@
+# Default version for this component
+%define kdecomp dolphin
+
+# If TDE is built in a specific prefix (e.g. /opt/trinity), the release will be suffixed with ".opt".
+%if "%{?tde_prefix}" != "/usr"
+%define _variant .opt
+%endif
+
+# TDE 3.5.13 specific building variables
+%define tde_bindir %{tde_prefix}/bin
+%define tde_datadir %{tde_prefix}/share
+%define tde_docdir %{tde_datadir}/doc
+%define tde_includedir %{tde_prefix}/include
+%define tde_libdir %{tde_prefix}/%{_lib}
+%define tde_mandir %{tde_datadir}/man
+
+%define tde_tdeappdir %{tde_datadir}/applications/kde
+%define tde_tdedocdir %{tde_docdir}/tde
+%define tde_tdeincludedir %{tde_includedir}/tde
+%define tde_tdelibdir %{tde_libdir}/trinity
+
+%define _docdir %{tde_docdir}
+
+
+Name: trinity-%{kdecomp}
+Summary: File manager for TDE focusing on usability
+Version: 0.9.2
+Release: 6%{?dist}%{?_variant}
+
+License: GPLv2+
+Group: Applications/Utilities
+
+Vendor: Trinity Project
+Packager: Francois Andriot <francois.andriot@free.fr>
+URL: http://www.trinitydesktop.org/
+
+Prefix: %{_prefix}
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+
+Source0: %{kdecomp}-3.5.13.1.tar.gz
+
+BuildRequires: trinity-tqtinterface-devel >= 3.5.13.1
+BuildRequires: trinity-tdelibs-devel >= 3.5.13.1
+BuildRequires: trinity-tdebase-devel >= 3.5.13.1
+BuildRequires: desktop-file-utils
+BuildRequires: gettext
+
+
+%description
+Dolphin focuses on being only a file manager.
+This approach allows to optimize the user
+interface for the task of file management.
+
+
+%if 0%{?suse_version}
+%debug_package
+%endif
+
+
+%prep
+%setup -q -n %{kdecomp}-3.5.13.1
+
+# Ugly hack to modify TQT include directory inside autoconf files.
+# If TQT detection fails, it fallbacks to TQT4 instead of TQT3 !
+%__sed -i "admin/acinclude.m4.in" \
+ -e "s|/usr/include/tqt|%{tde_includedir}/tqt|g" \
+ -e "s|kde_htmldir='.*'|kde_htmldir='%{tde_tdedocdir}/HTML'|g"
+
+%__cp -f "/usr/share/aclocal/libtool.m4" "admin/libtool.m4.in"
+%__cp -f "/usr/share/libtool/config/ltmain.sh" "admin/ltmain.sh" || %__cp -f "/usr/share/libtool/ltmain.sh" "admin/ltmain.sh"
+%__make -f "admin/Makefile.common"
+
+
+%build
+unset QTDIR; . /etc/profile.d/qt3.sh
+export PATH="%{tde_bindir}:${PATH}"
+export LDFLAGS="-L%{tde_libdir} -I%{tde_includedir}"
+
+%configure \
+ --prefix=%{tde_prefix} \
+ --exec-prefix=%{tde_prefix} \
+ --bindir=%{tde_bindir} \
+ --datadir=%{tde_datadir} \
+ --includedir=%{tde_tdeincludedir} \
+ --docdir=%{tde_tdedocdir} \
+ --libdir=%{tde_libdir} \
+ --disable-rpath \
+ --with-extra-includes=%{tde_includedir}/tqt
+
+%__make %{?_smp_mflags}
+
+
+%install
+export PATH="%{tde_bindir}:${PATH}"
+%__rm -rf %{buildroot}
+%__make install DESTDIR=%{buildroot}
+
+# TDE 3.5.12: dirty hack to prevent duplicate line in file 'd3lphin.desktop'
+sed -i "%{buildroot}%{tde_datadir}/applications/kde/d3lphin.desktop" \
+ -e "/^Name\[pa\].*/d"
+
+desktop-file-install --vendor "" \
+ --delete-original \
+ --dir %{buildroot}%{tde_datadir}/applications/ \
+ %{buildroot}%{tde_datadir}/applications/kde/d3lphin.desktop
+
+
+## File lists
+# 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
+
+# Makes 'media_safelyremove.desktop' an alternative
+%__mv -f %{buildroot}%{tde_datadir}/apps/d3lphin/servicemenus/media_safelyremove.desktop %{buildroot}%{tde_datadir}/apps/d3lphin/servicemenus/media_safelyremove.desktop_d3lphin
+%__ln_s /etc/alternatives/media_safelyremove.desktop_d3lphin %{buildroot}%{tde_datadir}/apps/d3lphin/servicemenus/media_safelyremove.desktop
+
+%find_lang d3lphin
+
+%clean
+%__rm -rf %{buildroot}
+
+
+%post
+touch --no-create %{tde_datadir}/icons/hicolor || :
+gtk-update-icon-cache --quiet %{tde_datadir}/icons/hicolor || :
+%if 0%{?suse_version}
+update-alternatives --install \
+%else
+alternatives --install \
+%endif
+ %{tde_datadir}/apps/d3lphin/servicemenus/media_safelyremove.desktop \
+ media_safelyremove.desktop_d3lphin \
+ %{tde_datadir}/apps/d3lphin/servicemenus/media_safelyremove.desktop_d3lphin \
+ 10
+
+
+%postun
+touch --no-create %{tde_datadir}/icons/hicolor || :
+gtk-update-icon-cache --quiet %{tde_datadir}/icons/hicolor || :
+if [ $1 -eq 0 ]; then
+%if 0%{?suse_version}
+ update-alternatives --remove \
+%else
+ alternatives --remove \
+%endif
+ media_safelyremove.desktop_d3lphin \
+ %{tde_datadir}/apps/d3lphin/servicemenus/media_safelyremove.desktop_d3lphin
+fi
+
+
+%files -f d3lphin.lang
+%defattr(-,root,root,-)
+%doc AUTHORS ChangeLog COPYING TODO
+%{tde_bindir}/d3lphin
+%{tde_datadir}/applications/d3lphin.desktop
+%{tde_datadir}/apps/d3lphin/
+%{tde_datadir}/icons/hicolor/*/apps/d3lphin.png
+%lang(en) %{tde_tdedocdir}/HTML/en/d3lphin/
+
+
+%changelog
+* Wed Oct 03 2012 Francois Andriot <francois.andriot@free.fr> - 0.9.2-6
+- Initial build for TDE 3.5.13.1
+
+* Sun Jul 08 2012 Francois Andriot <francois.andriot@free.fr> - 0.9.2-5
+- Add alternatives with 'kio-umountwrapper'
+
+* Tue May 01 2012 Francois Andriot <francois.andriot@free.fr> - 0.9.2-4
+- Rebuild for Fedora 17
+- Fix HTML installation directory
+
+* Sun Oct 30 2011 Francois Andriot <francois.andriot@free.fr> - 0.9.2-3
+- Rebuilt for TDE 3.5.13 on RHEL 6, RHEL 5 and Fedora 15
+
+* Tue Sep 14 2011 Francois Andriot <francois.andriot@free.fr> - 0.9.2-2
+- Import to GIT
+
+* Mon Aug 22 2011 Francois Andriot <francois.andriot@free.fr> - 0.9.2-1
+- Correct macro to install under "/opt", if desired
+
+* Thu Jun 30 2011 Francois Andriot <francois.andriot@free.fr> - 0.9.2-0
+- Initial build for RHEL 6.0
+- Based on FC7 'Dolphin 0.8.2-2" SPEC file.
+
diff --git a/redhat/applications/filelight/trinity-filelight-3.5.13.1.spec b/redhat/applications/filelight/trinity-filelight-3.5.13.1.spec
new file mode 100644
index 000000000..8f2fa5ded
--- /dev/null
+++ b/redhat/applications/filelight/trinity-filelight-3.5.13.1.spec
@@ -0,0 +1,158 @@
+# Default version for this component
+%define kdecomp filelight
+
+# If TDE is built in a specific prefix (e.g. /opt/trinity), the release will be suffixed with ".opt".
+%if "%{?tde_prefix}" != "/usr"
+%define _variant .opt
+%endif
+
+# TDE 3.5.13 specific building variables
+%define tde_bindir %{tde_prefix}/bin
+%define tde_datadir %{tde_prefix}/share
+%define tde_docdir %{tde_datadir}/doc
+%define tde_includedir %{tde_prefix}/include
+%define tde_libdir %{tde_prefix}/%{_lib}
+%define tde_mandir %{tde_datadir}/man
+
+%define tde_tdeappdir %{tde_datadir}/applications/kde
+%define tde_tdedocdir %{tde_docdir}/tde
+%define tde_tdeincludedir %{tde_includedir}/tde
+%define tde_tdelibdir %{tde_libdir}/trinity
+
+%define _docdir %{tde_docdir}
+
+
+Name: trinity-%{kdecomp}
+Summary: Graphical disk usage display
+Version: 1.0
+Release: 5%{?dist}%{?_variant}
+
+License: GPLv2+
+Group: Applications/Utilities
+
+Vendor: Trinity Project
+Packager: Francois Andriot <francois.andriot@free.fr>
+URL: http://www.trinitydesktop.org/
+
+Prefix: %{_prefix}
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+
+Source0: %{kdecomp}-3.5.13.1.tar.gz
+
+BuildRequires: trinity-tqtinterface-devel >= 3.5.13.1
+BuildRequires: trinity-tdelibs-devel >= 3.5.13.1
+BuildRequires: trinity-tdebase-devel >= 3.5.13.1
+BuildRequires: desktop-file-utils
+
+Obsoletes: filelight-l10n < %{version}-%{release}
+Provides: filelight-l10n = %{version}-%{release}
+
+%description
+Filelight creates a complex, but data-rich graphical representation of the files and
+directories on your computer.
+
+
+%if 0%{?suse_version}
+%debug_package
+%endif
+
+
+%prep
+%setup -q -n %{kdecomp}-3.5.13.1
+
+# Ugly hack to modify TQT include directory inside autoconf files.
+# If TQT detection fails, it fallbacks to TQT4 instead of TQT3 !
+%__sed -i admin/acinclude.m4.in \
+ -e "s|/usr/include/tqt|%{tde_includedir}/tqt|g" \
+ -e "s|kde_htmldir='.*'|kde_htmldir='%{tde_tdedocdir}/HTML'|g"
+
+%__cp -f "/usr/share/aclocal/libtool.m4" "admin/libtool.m4.in"
+%__cp -f "/usr/share/libtool/config/ltmain.sh" "admin/ltmain.sh" || %__cp -f "/usr/share/libtool/ltmain.sh" "admin/ltmain.sh"
+%__make -f "admin/Makefile.common"
+
+
+%build
+unset QTDIR || : ; . /etc/profile.d/qt3.sh
+export PATH="%{tde_bindir}:${PATH}"
+export LDFLAGS="-L%{tde_libdir} -I%{tde_includedir}"
+
+%configure \
+ --prefix=%{tde_prefix} \
+ --exec-prefix=%{tde_prefix} \
+ --bindir=%{tde_bindir} \
+ --datadir=%{tde_datadir} \
+ --includedir=%{tde_tdeincludedir} \
+ --docdir=%{tde_tdedocdir} \
+ --libdir=%{tde_libdir} \
+ --disable-rpath \
+ --with-extra-includes=%{tde_includedir}/tqt
+
+%__make %{?_smp_mflags}
+
+
+%install
+export PATH="%{tde_bindir}:${PATH}"
+%__rm -rf %{buildroot}
+%__make install DESTDIR=%{buildroot}
+
+%find_lang %{kdecomp} --with-kde
+
+%clean
+%__rm -rf %{buildroot}
+
+
+%post
+for f in crystalsvg hicolor ; do
+ touch --no-create %{tde_datadir}/icons/${f} || :
+ gtk-update-icon-cache --quiet %{tde_datadir}/icons/${f} || :
+done
+
+%postun
+for f in crystalsvg hicolor ; do
+ touch --no-create %{tde_datadir}/icons/${f} || :
+ gtk-update-icon-cache --quiet %{tde_datadir}/icons/${f} || :
+done
+
+
+%files -f %{kdecomp}.lang
+%defattr(-,root,root,-)
+%doc AUTHORS COPYING
+%{tde_bindir}/filelight
+%{tde_tdeappdir}/filelight.desktop
+%{tde_datadir}/apps/filelight/
+%{tde_datadir}/icons/crystalsvg/*/actions/view_filelight.png
+%{tde_datadir}/icons/hicolor/*/apps/filelight.png
+%{tde_datadir}/config/filelightrc
+%{tde_datadir}/services/*.desktop
+%{tde_tdelibdir}/libfilelight.so
+%{tde_tdelibdir}/libfilelight.la
+%lang(da) %{tde_tdedocdir}/HTML/da/filelight/
+%lang(en) %{tde_tdedocdir}/HTML/en/filelight/
+%lang(es) %{tde_tdedocdir}/HTML/es/filelight/
+%lang(et) %{tde_tdedocdir}/HTML/et/filelight/
+%lang(it) %{tde_tdedocdir}/HTML/it/filelight/
+%lang(pt) %{tde_tdedocdir}/HTML/pt/filelight/
+%lang(ru) %{tde_tdedocdir}/HTML/ru/filelight/
+%lang(sv) %{tde_tdedocdir}/HTML/sv/filelight/
+
+%changelog
+* Wed Oct 03 2012 Francois Andriot <francois.andriot@free.fr> - 1.0-5
+- Initial build for TDE 3.5.13.1
+- Obsoletes package 'filelight-l10n'
+
+* Tue May 01 2012 Francois Andriot <francois.andriot@free.fr> - 1.0-4
+- Rebuilt for Fedora 17
+- Fix HTML directory location
+
+* Sun Oct 30 2011 Francois Andriot <francois.andriot@free.fr> - 1.0-3
+- Rebuilt for TDE 3.5.13 on RHEL 6, RHEL 5 and Fedora 15
+
+* Tue Sep 14 2011 Francois Andriot <francois.andriot@free.fr> - 1.0-2
+- Import to GIT
+
+* Wed Aug 24 2011 Francois Andriot <francois.andriot@free.fr> - 1.0-1
+- Correct macro to install under "/opt", if desired
+
+* Sun Aug 14 2011 Francois Andriot <francois.andriot@free.fr> - 1.0-0
+- Initial build for RHEL 6.0
+
diff --git a/redhat/applications/gtk-qt-engine/gtk-qt-engine.rc.sh b/redhat/applications/gtk-qt-engine/gtk-qt-engine.rc.sh
new file mode 120000
index 000000000..d22c56f35
--- /dev/null
+++ b/redhat/applications/gtk-qt-engine/gtk-qt-engine.rc.sh
@@ -0,0 +1 @@
+../../../ubuntu/maverick/applications/gtk-qt-engine/debian/gtk-qt-engine.rc.sh \ No newline at end of file
diff --git a/redhat/applications/gtk-qt-engine/gtkrc-2.0-kde-kde4 b/redhat/applications/gtk-qt-engine/gtkrc-2.0-kde-kde4
new file mode 120000
index 000000000..fbb967811
--- /dev/null
+++ b/redhat/applications/gtk-qt-engine/gtkrc-2.0-kde-kde4
@@ -0,0 +1 @@
+../../../ubuntu/maverick/applications/gtk-qt-engine/debian/.gtkrc-2.0-kde-kde4 \ No newline at end of file
diff --git a/redhat/applications/gtk-qt-engine/gtkrc-2.0-kde4 b/redhat/applications/gtk-qt-engine/gtkrc-2.0-kde4
new file mode 120000
index 000000000..122ae8e16
--- /dev/null
+++ b/redhat/applications/gtk-qt-engine/gtkrc-2.0-kde4
@@ -0,0 +1 @@
+../../../ubuntu/maverick/applications/gtk-qt-engine/debian/.gtkrc-2.0-kde4 \ No newline at end of file
diff --git a/redhat/applications/gtk-qt-engine/trinity-gtk-qt-engine-3.5.13.1.spec b/redhat/applications/gtk-qt-engine/trinity-gtk-qt-engine-3.5.13.1.spec
new file mode 100644
index 000000000..3633b0ee8
--- /dev/null
+++ b/redhat/applications/gtk-qt-engine/trinity-gtk-qt-engine-3.5.13.1.spec
@@ -0,0 +1,149 @@
+# Default version for this component
+%define kdecomp gtk-qt-engine
+
+# If TDE is built in a specific prefix (e.g. /opt/trinity), the release will be suffixed with ".opt".
+%if "%{?tde_prefix}" != "/usr"
+%define _variant .opt
+%endif
+
+# TDE 3.5.13 specific building variables
+%define tde_bindir %{tde_prefix}/bin
+%define tde_datadir %{tde_prefix}/share
+%define tde_docdir %{tde_datadir}/doc
+%define tde_includedir %{tde_prefix}/include
+%define tde_libdir %{tde_prefix}/%{_lib}
+%define tde_mandir %{tde_datadir}/man
+%define tde_appdir %{tde_datadir}/applications
+
+%define tde_tdeappdir %{tde_appdir}/kde
+%define tde_tdedocdir %{tde_docdir}/tde
+%define tde_tdeincludedir %{tde_includedir}/tde
+%define tde_tdelibdir %{tde_libdir}/trinity
+
+%define _docdir %{tde_docdir}
+
+
+Name: trinity-%{kdecomp}
+Summary: theme engine using Qt for GTK+ 2.x and Trinity
+Version: 0.8
+Release: 4%{?dist}%{?_variant}
+
+License: GPLv2+
+Group: Applications/Utilities
+
+Vendor: Trinity Project
+Packager: Francois Andriot <francois.andriot@free.fr>
+URL: http://www.trinitydesktop.org/
+
+Prefix: %{_prefix}
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+
+Source0: %{kdecomp}-3.5.13.1.tar.gz
+Source1: gtk-qt-engine.rc.sh
+Source2: gtkrc-2.0-kde4
+Source3: gtkrc-2.0-kde-kde4
+
+BuildRequires: trinity-tqtinterface-devel >= 3.5.13.1
+BuildRequires: trinity-tdelibs-devel >= 3.5.13.1
+BuildRequires: trinity-tdebase-devel >= 3.5.13.1
+BuildRequires: desktop-file-utils
+BuildRequires: gettext
+
+
+%description
+The GTK-Qt Theme Engine (also known as gtk-qt-engine) is a GTK 2 theme engine
+that calls Qt to do the actual drawing. This makes your GTK 2 applications
+look almost like real Qt applications and gives you a more unified desktop
+experience.
+
+Please note that this package is targeted at Trinity users and therefore provides
+a way to configure it from within KControl.
+
+
+%if 0%{?suse_version}
+%debug_package
+%endif
+
+
+%prep
+%setup -q -n %{kdecomp}-3.5.13.1
+
+# Renames the '.po' files
+for f in po/*/*.po; do
+ pushd ${f%/*}
+ mv -f *.po gtk-qt-engine.po
+ popd
+done
+
+# Ugly hack to modify TQT include directory inside autoconf files.
+# If TQT detection fails, it fallbacks to TQT4 instead of TQT3 !
+%__sed -i "CMakeLists.txt" \
+ -e "s|/usr/include/tqt|%{tde_includedir}/tqt|g"
+
+
+%build
+unset QTDIR || : ; . /etc/profile.d/qt3.sh
+export PATH="%{tde_bindir}:${PATH}"
+export PKG_CONFIG_PATH="%{tde_libdir}/pkgconfig:${PKG_CONFIG_PATH}"
+
+%if 0%{?rhel} || 0%{?fedora} || 0%{?suse_version}
+%__mkdir_p build
+cd build
+%endif
+
+%cmake \
+ -DCMAKE_INSTALL_PREFIX=%{tde_prefix} \
+ -DDATA_INSTALL_DIR=%{tde_datadir} \
+ -DLIB_INSTALL_DIR=%{tde_libdir} \
+ -DSHARE_INSTALL_PREFIX=%{tde_datadir} \
+ ..
+
+%__make %{?_smp_mflags}
+
+
+%install
+export PATH="%{tde_bindir}:${PATH}"
+%__rm -rf %{buildroot}
+%__make install DESTDIR=%{buildroot} -C build
+
+%find_lang %{kdecomp}
+
+# Adds TDE's specific GTKRC
+%__install -D -m 644 %{SOURCE1} %{buildroot}%{tde_datadir}/kgtk/gtk-qt-engine.rc.sh
+%__install -D -m 644 %{SOURCE2} %{buildroot}%{tde_datadir}/kgtk/.gtkrc-2.0-kde4
+%__install -D -m 644 %{SOURCE3} %{buildroot}%{tde_datadir}/kgtk/.gtkrc-2.0-kde-kde4
+
+%clean
+%__rm -rf %{buildroot}
+
+
+
+%files -f %{kdecomp}.lang
+%defattr(-,root,root,-)
+%doc AUTHORS ChangeLog COPYING NEWS README TODO
+%{tde_tdelibdir}/kcm_kcmgtk.la
+%{tde_tdelibdir}/kcm_kcmgtk.so
+%{tde_appdir}/kcmgtk.desktop
+%{tde_datadir}/kgtk/gtk-qt-engine.rc.sh
+%{tde_datadir}/kgtk/.gtkrc-2.0-kde4
+%{tde_datadir}/kgtk/.gtkrc-2.0-kde-kde4
+
+# The following files are outside TDE's directory
+%{_libdir}/gtk-2.0/2.10.0/engines/libqtengine.so
+%{_datadir}/themes/Qt/gtk-2.0/gtkrc
+
+
+%changelog
+* Wed Oct 03 2012 Francois Andriot <francois.andriot@free.fr> - 0.8-4
+- Initial build for TDE 3.5.13.1
+
+* Mon Aug 27 2012 Francois Andriot <francois.andriot@free.fr> - 0.8-3
+- Add missing gtkrc files
+
+* Tue May 01 2012 Francois Andriot <francois.andriot@free.fr> - 0.8-2
+- Rebuilt for Fedora 17
+- Fix FTBFS with newer glib
+- Removes useless post and postun
+
+* Sun Nov 20 2011 Francois Andriot <francois.andriot@free.fr> - 0.8-1
+- Initial build for RHEL 5, RHEL 6, Fedora 15, Fedora 16
diff --git a/redhat/applications/gtk-qt-engine/trinity-gtk-qt-engine.spec b/redhat/applications/gtk-qt-engine/trinity-gtk-qt-engine-3.5.13.spec
index 409e4c706..409e4c706 100644
--- a/redhat/applications/gtk-qt-engine/trinity-gtk-qt-engine.spec
+++ b/redhat/applications/gtk-qt-engine/trinity-gtk-qt-engine-3.5.13.spec
diff --git a/redhat/applications/gwenview-i18n/trinity-gwenview-i18n-3.5.13.1.spec b/redhat/applications/gwenview-i18n/trinity-gwenview-i18n-3.5.13.1.spec
new file mode 100644
index 000000000..bdfe3bf99
--- /dev/null
+++ b/redhat/applications/gwenview-i18n/trinity-gwenview-i18n-3.5.13.1.spec
@@ -0,0 +1,180 @@
+# Default version for this component
+%define kdecomp gwenview-i18n
+
+# If TDE is built in a specific prefix (e.g. /opt/trinity), the release will be suffixed with ".opt".
+%if "%{?tde_prefix}" != "/usr"
+%define _variant .opt
+%endif
+
+# TDE 3.5.13 specific building variables
+%define tde_bindir %{tde_prefix}/bin
+%define tde_datadir %{tde_prefix}/share
+%define tde_docdir %{tde_datadir}/doc
+%define tde_includedir %{tde_prefix}/include
+%define tde_libdir %{tde_prefix}/%{_lib}
+%define tde_mandir %{tde_datadir}/man
+%define tde_appdir %{tde_datadir}/applications
+
+%define tde_tdeappdir %{tde_appdir}/kde
+%define tde_tdedocdir %{tde_docdir}/tde
+%define tde_tdeincludedir %{tde_includedir}/tde
+%define tde_tdelibdir %{tde_libdir}/trinity
+
+%define _docdir %{tde_docdir}
+
+
+Name: trinity-%{kdecomp}
+Summary: Gwenview is an image viewer for KDE.
+Version: 1.4.2
+Release: 1%{?dist}%{?_variant}
+
+License: GPLv2+
+Group: Applications/Utilities
+
+Vendor: Trinity Project
+Packager: Francois Andriot <francois.andriot@free.fr>
+URL: http://www.trinitydesktop.org/
+
+Prefix: %{_prefix}
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+
+BuildArch: noarch
+
+Source0: %{kdecomp}-3.5.13.1.tar.gz
+
+
+BuildRequires: trinity-tqtinterface-devel >= 3.5.13.1
+BuildRequires: trinity-arts-devel >= 3.5.13.1
+BuildRequires: trinity-tdelibs-devel >= 3.5.13.1
+BuildRequires: trinity-tdebase-devel >= 3.5.13.1
+BuildRequires: desktop-file-utils
+BuildRequires: gettext
+
+# EXIV2 support
+%if 0%{?mgaversion} || 0%{?mdkversion}
+BuildRequires: %{_lib}exiv2-devel
+%endif
+%if 0%{?suse_version}
+BuildRequires: libexiv2-devel
+%endif
+%if 0%{?rhel} || 0%{?fedora}
+BuildRequires: exiv2-devel
+%endif
+
+%if "%{?tde_prefix}" == "/usr"
+Conflicts: kdegraphics
+%endif
+
+
+%description
+Gwenview is a fast and easy to use image viewer/browser for TDE.
+All common image formats are supported, such as PNG(including transparency),
+JPEG(including EXIF tags and lossless transformations), GIF, XCF (Gimp
+image format), BMP, XPM and others. Standard features include slideshow,
+fullscreen view, image thumbnails, drag'n'drop, image zoom, full network
+transparency using the KIO framework, including basic file operations and
+browsing in compressed archives, non-blocking GUI with adjustable views.
+Gwenview also provides image and directory KParts components for use e.g. in
+Konqueror. Additional features, such as image renaming, comparing,
+converting, and batch processing, HTML gallery and others are provided by the
+KIPI image framework.
+
+
+%if 0%{?suse_version}
+%debug_package
+%endif
+
+
+%prep
+%setup -q -n %{kdecomp}-3.5.13.1
+
+# Ugly hack to modify TQT include directory inside autoconf files.
+# If TQT detection fails, it fallbacks to TQT4 instead of TQT3 !
+%__sed -i admin/acinclude.m4.in \
+ -e "s|/usr/include/tqt|%{tde_includedir}/tqt|g" \
+ -e "s|kde_htmldir='.*'|kde_htmldir='%{tde_tdedocdir}/HTML'|g"
+
+%__cp -f "/usr/share/aclocal/libtool.m4" "admin/libtool.m4.in"
+%__cp -f "/usr/share/libtool/config/ltmain.sh" "admin/ltmain.sh" || %__cp -f "/usr/share/libtool/ltmain.sh" "admin/ltmain.sh"
+%__make -f "admin/Makefile.common"
+
+
+%build
+unset QTDIR || : ; source /etc/profile.d/qt3.sh
+export PATH="%{tde_bindir}:${PATH}"
+export LDFLAGS="-L%{tde_libdir} -I%{tde_includedir}"
+
+./configure \
+ --prefix=%{tde_prefix} \
+ --exec-prefix=%{tde_prefix} \
+ --bindir=%{tde_bindir} \
+ --datadir=%{tde_datadir} \
+ --docdir=%{tde_tdedocdir} \
+ --includedir=%{tde_tdeincludedir} \
+ --libdir=%{tde_libdir} \
+ --mandir=%{tde_mandir} \
+ --disable-rpath \
+ --with-extra-includes=%{tde_includedir}/tqt \
+ --enable-closure
+
+%__make %{?_smp_mflags}
+
+
+%install
+export PATH="%{tde_bindir}:${PATH}"
+%__rm -rf %{buildroot}
+%__make install DESTDIR=%{buildroot}
+
+
+
+
+## File lists
+%find_lang gwenview
+
+# 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/*" >> gwenview.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
+
+
+# Removes useless files (-devel ?)
+%__rm -f %{?buildroot}%{tde_libdir}/libgwenviewcore.so
+
+%clean
+%__rm -rf %{buildroot}
+
+
+%post
+for f in crystalsvg hicolor ; do
+ touch --no-create %{tde_datadir}/icons/${f} || :
+ gtk-update-icon-cache --quiet %{tde_datadir}/icons/${f} || :
+done
+/sbin/ldconfig
+
+%postun
+for f in crystalsvg hicolor ; do
+ touch --no-create %{tde_datadir}/icons/${f} || :
+ gtk-update-icon-cache --quiet %{tde_datadir}/icons/${f} || :
+done
+/sbin/ldconfig
+
+%files -f gwenview.lang
+%defattr(-,root,root,-)
+%doc AUTHORS ChangeLog COPYING TODO
+
+%changelog
+* Wed Oct 03 2012 Francois Andriot <francois.andriot@free.fr> - 1.4.2-1
+- Initial build for TDE 3.5.13.1
+
diff --git a/redhat/applications/gwenview/trinity-gwenview-3.5.13.1.spec b/redhat/applications/gwenview/trinity-gwenview-3.5.13.1.spec
new file mode 100644
index 000000000..4713df46e
--- /dev/null
+++ b/redhat/applications/gwenview/trinity-gwenview-3.5.13.1.spec
@@ -0,0 +1,259 @@
+# Default version for this component
+%define kdecomp gwenview
+
+# If TDE is built in a specific prefix (e.g. /opt/trinity), the release will be suffixed with ".opt".
+%if "%{?tde_prefix}" != "/usr"
+%define _variant .opt
+%endif
+
+# TDE 3.5.13 specific building variables
+%define tde_bindir %{tde_prefix}/bin
+%define tde_datadir %{tde_prefix}/share
+%define tde_docdir %{tde_datadir}/doc
+%define tde_includedir %{tde_prefix}/include
+%define tde_libdir %{tde_prefix}/%{_lib}
+%define tde_mandir %{tde_datadir}/man
+%define tde_appdir %{tde_datadir}/applications
+
+%define tde_tdeappdir %{tde_appdir}/kde
+%define tde_tdedocdir %{tde_docdir}/tde
+%define tde_tdeincludedir %{tde_includedir}/tde
+%define tde_tdelibdir %{tde_libdir}/trinity
+
+%define _docdir %{tde_docdir}
+
+
+Name: trinity-%{kdecomp}
+Summary: Gwenview is an image viewer for KDE.
+Version: 1.4.2
+Release: 9%{?dist}%{?_variant}
+
+License: GPLv2+
+Group: Applications/Utilities
+
+Vendor: Trinity Project
+Packager: Francois Andriot <francois.andriot@free.fr>
+URL: http://www.trinitydesktop.org/
+
+Prefix: %{_prefix}
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+
+Source0: %{kdecomp}-3.5.13.1.tar.gz
+
+# [gwenview] Rename a few stragglers [Commit #b4881a61]
+Patch4: gwenview-3.5.13-rename_a_few_stragglers.patch
+# [gwenview] Fix FTBFS [Commit #1ca2f739]
+Patch5: gwenview-3.5.13-fix_ftbfs.patch
+# [gwenview] Define QT_CLEAN_NAMESPACE during libmng checks [Commit #59c7639f]
+Patch11: gwenview-3.5.13-fix_libmng_check.patch
+
+
+BuildRequires: trinity-tqtinterface-devel >= 3.5.13.1
+BuildRequires: trinity-arts-devel >= 3.5.13.1
+BuildRequires: trinity-tdelibs-devel >= 3.5.13.1
+BuildRequires: trinity-tdebase-devel >= 3.5.13.1
+BuildRequires: desktop-file-utils
+BuildRequires: gettext
+
+# EXIV2 support
+%if 0%{?mgaversion} || 0%{?mdkversion}
+BuildRequires: %{_lib}exiv2-devel
+%endif
+%if 0%{?suse_version}
+BuildRequires: libexiv2-devel
+%endif
+%if 0%{?rhel} || 0%{?fedora}
+BuildRequires: exiv2-devel
+%endif
+
+%if "%{?tde_prefix}" == "/usr"
+Conflicts: kdegraphics
+%endif
+
+
+%description
+Gwenview is a fast and easy to use image viewer/browser for TDE.
+All common image formats are supported, such as PNG(including transparency),
+JPEG(including EXIF tags and lossless transformations), GIF, XCF (Gimp
+image format), BMP, XPM and others. Standard features include slideshow,
+fullscreen view, image thumbnails, drag'n'drop, image zoom, full network
+transparency using the KIO framework, including basic file operations and
+browsing in compressed archives, non-blocking GUI with adjustable views.
+Gwenview also provides image and directory KParts components for use e.g. in
+Konqueror. Additional features, such as image renaming, comparing,
+converting, and batch processing, HTML gallery and others are provided by the
+KIPI image framework.
+
+
+%if 0%{?suse_version}
+%debug_package
+%endif
+
+
+%prep
+%setup -q -n %{kdecomp}-3.5.13.1
+%patch4 -p1
+%patch5 -p1
+%patch11 -p1 -b .libmng
+
+# Ugly hack to modify TQT include directory inside autoconf files.
+# If TQT detection fails, it fallbacks to TQT4 instead of TQT3 !
+%__sed -i admin/acinclude.m4.in \
+ -e "s|/usr/include/tqt|%{tde_includedir}/tqt|g" \
+ -e "s|kde_htmldir='.*'|kde_htmldir='%{tde_tdedocdir}/HTML'|g"
+
+%__cp -f "/usr/share/aclocal/libtool.m4" "admin/libtool.m4.in"
+%__cp -f "/usr/share/libtool/config/ltmain.sh" "admin/ltmain.sh" || %__cp -f "/usr/share/libtool/ltmain.sh" "admin/ltmain.sh"
+%__make -f "admin/Makefile.common"
+
+
+%build
+unset QTDIR || : ; source /etc/profile.d/qt3.sh
+export PATH="%{tde_bindir}:${PATH}"
+export LDFLAGS="-L%{tde_libdir} -I%{tde_includedir}"
+
+%configure \
+ --prefix=%{tde_prefix} \
+ --exec-prefix=%{tde_prefix} \
+ --bindir=%{tde_bindir} \
+ --datadir=%{tde_datadir} \
+ --docdir=%{tde_tdedocdir} \
+ --includedir=%{tde_tdeincludedir} \
+ --libdir=%{tde_libdir} \
+ --mandir=%{tde_mandir} \
+ --disable-rpath \
+ --with-extra-includes=%{tde_includedir}/tqt \
+ --enable-closure
+
+%__make %{?_smp_mflags}
+
+
+%install
+export PATH="%{tde_bindir}:${PATH}"
+%__rm -rf %{buildroot}
+%__make install DESTDIR=%{buildroot}
+
+
+
+## File lists
+# 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
+
+%if 0%{?rhel} == 5
+echo "%lang(en) %{tde_tdedocdir}/HTML/en/gwenview/" >"%{kdecomp}.lang"
+%else
+%find_lang %{kdecomp} --with-kde --without-mo
+%endif
+
+# Removes useless files (-devel ?)
+%__rm -f %{?buildroot}%{tde_libdir}/libgwenviewcore.so
+
+%clean
+%__rm -rf %{buildroot}
+
+
+%post
+for f in crystalsvg hicolor ; do
+ touch --no-create %{tde_datadir}/icons/${f} || :
+ gtk-update-icon-cache --quiet %{tde_datadir}/icons/${f} || :
+done
+/sbin/ldconfig
+
+%postun
+for f in crystalsvg hicolor ; do
+ touch --no-create %{tde_datadir}/icons/${f} || :
+ gtk-update-icon-cache --quiet %{tde_datadir}/icons/${f} || :
+done
+/sbin/ldconfig
+
+%files -f %{kdecomp}.lang
+%defattr(-,root,root,-)
+%doc AUTHORS COPYING
+%{tde_bindir}/gwenview
+%{tde_libdir}/libgwenviewcore.la
+%{tde_libdir}/libgwenviewcore.so.1
+%{tde_libdir}/libgwenviewcore.so.1.0.0
+%{tde_libdir}/libkdeinit_gwenview.la
+%{tde_libdir}/libkdeinit_gwenview.so
+%{tde_tdelibdir}/gwenview.la
+%{tde_tdelibdir}/gwenview.so
+%{tde_tdelibdir}/libgvdirpart.la
+%{tde_tdelibdir}/libgvdirpart.so
+%{tde_tdelibdir}/libgvimagepart.la
+%{tde_tdelibdir}/libgvimagepart.so
+%{tde_tdeappdir}/gwenview.desktop
+%{tde_datadir}/apps/gwenview/
+%{tde_datadir}/apps/gvdirpart/gvdirpart.rc
+%{tde_datadir}/apps/gvimagepart/gvimagepart.rc
+%{tde_datadir}/apps/gvimagepart/gvimagepartpopup.rc
+%{tde_datadir}/apps/kconf_update/gwenview_1.4_osdformat.sh
+%{tde_datadir}/apps/kconf_update/gwenview_1.4_osdformat.upd
+%{tde_datadir}/apps/kconf_update/gwenview_thumbnail_size.sh
+%{tde_datadir}/apps/kconf_update/gwenview_thumbnail_size.upd
+%{tde_datadir}/apps/konqueror/servicemenus/konqgwenview.desktop
+%{tde_datadir}/config.kcfg/fileoperationconfig.kcfg
+%{tde_datadir}/config.kcfg/fileviewconfig.kcfg
+%{tde_datadir}/config.kcfg/fullscreenconfig.kcfg
+%{tde_datadir}/config.kcfg/gvdirpartconfig.kcfg
+%{tde_datadir}/config.kcfg/imageviewconfig.kcfg
+%{tde_datadir}/config.kcfg/miscconfig.kcfg
+%{tde_datadir}/config.kcfg/slideshowconfig.kcfg
+%{tde_datadir}/icons/crystalsvg/*/apps/gvdirpart.png
+%{tde_datadir}/icons/crystalsvg/scalable/apps/gvdirpart.svg
+%{tde_datadir}/icons/hicolor/*/apps/gwenview.png
+%{tde_datadir}/icons/hicolor/*/apps/gvdirpart.png
+%{tde_datadir}/icons/hicolor/scalable/apps/gvdirpart.svg
+%{tde_datadir}/icons/hicolor/scalable/apps/gwenview.svgz
+%{tde_datadir}/man/man1/gwenview.1*
+%{tde_datadir}/services/gvdirpart.desktop
+%{tde_datadir}/services/gvimagepart.desktop
+%{tde_tdedocdir}/HTML/en/gwenview/
+
+%changelog
+* Wed Oct 03 2012 Francois Andriot <francois.andriot@free.fr> - 1.4.2-9
+- Initial build for TDE 3.5.13.1
+
+* Sat Aug 04 2012 Francois Andriot <francois.andriot@free.fr> - 1.4.2-8
+- Add support for Mageia 2 and Mandriva 2011
+- Define QT_CLEAN_NAMESPACE during libmng checks [Commit #59c7639f]
+
+* Tue May 01 2012 Francois Andriot <francois.andriot@free.fr> - 1.4.2-7
+- Rebuilt for Fedora 17
+- Fix post and postun
+- Adds patches from GIT
+
+* Fri Nov 25 2011 Francois Andriot <francois.andriot@free.fr> - 1.4.2-6
+- Fix HTML directory location
+
+* Fri Nov 04 2011 Francois Andriot <francois.andriot@free.fr> - 1.4.2-5
+- Adds missing files
+
+* Sun Oct 30 2011 Francois Andriot <francois.andriot@free.fr> - 1.4.2-4
+- Rebuilt for TDE 3.5.13 on RHEL 6, RHEL 5 and Fedora 15
+
+* Tue Sep 14 2011 Francois Andriot <francois.andriot@free.fr> - 1.4.2-3
+- Import to GIT
+
+* Wed Aug 24 2011 Francois Andriot <francois.andriot@free.fr> - 1.4.2-2
+- Add fix for Fedora 15
+
+* Mon Aug 22 2011 Francois Andriot <francois.andriot@free.fr> - 1.4.2-1
+- Correct macro to install under "/opt", if desired
+
+* Sat Aug 13 2011 Francois Andriot <francois.andriot@free.fr> - 1.4.2-0
+- Initial build for RHEL 6.0
+
diff --git a/redhat/applications/k3b-i18n/k3b-i18n-trinity.patch b/redhat/applications/k3b-i18n/k3b-i18n-trinity.patch
new file mode 100644
index 000000000..dccbfa1ae
--- /dev/null
+++ b/redhat/applications/k3b-i18n/k3b-i18n-trinity.patch
@@ -0,0 +1,11 @@
+--- k3b-i18n-1.0.5/admin/cvs.sh.ORI 2012-05-09 19:45:56.106421990 +0200
++++ k3b-i18n-1.0.5/admin/cvs.sh 2012-05-09 19:46:16.264708192 +0200
+@@ -68,7 +68,7 @@
+ echo "*** KDE requires automake $required_automake_version"
+ exit 1
+ ;;
+- automake*1.6.* | automake*1.7* | automake*1.8* | automake*1.9* | automake*1.10*)
++ automake*1.6.* | automake*1.7* | automake*1.8* | automake*1.9* | automake*1.1[0-9]*)
+ echo "*** $AUTOMAKE_STRING found."
+ UNSERMAKE=no
+ ;;
diff --git a/redhat/applications/k3b-i18n/trinity-k3b-i18n-3.5.13.1.spec b/redhat/applications/k3b-i18n/trinity-k3b-i18n-3.5.13.1.spec
new file mode 100644
index 000000000..2691b3956
--- /dev/null
+++ b/redhat/applications/k3b-i18n/trinity-k3b-i18n-3.5.13.1.spec
@@ -0,0 +1,325 @@
+# 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
+%endif
+
+# TDE 3.5.13 specific building variables
+%define tde_bindir %{tde_prefix}/bin
+%define tde_datadir %{tde_prefix}/share
+%define tde_docdir %{tde_datadir}/doc
+%define tde_includedir %{tde_prefix}/include
+%define tde_libdir %{tde_prefix}/%{_lib}
+%define tde_mandir %{tde_datadir}/man
+%define tde_appdir %{tde_datadir}/applications
+
+%define tde_tdeappdir %{tde_appdir}/kde
+%define tde_tdedocdir %{tde_docdir}/tde
+%define tde_tdeincludedir %{tde_includedir}/tde
+%define tde_tdelibdir %{tde_libdir}/trinity
+
+%define _docdir %{tde_docdir}
+
+
+Name: trinity-k3b-i18n
+Summary: Locale files for K3B
+Version: 1.0.5
+Release: 2%{?dist}%{?_variant}
+
+Vendor: Trinity Project
+Packager: Francois Andriot <francois.andriot@free.fr>
+URL: http://www.trinitydesktop.org/
+
+BuildArch: noarch
+
+# Speed build options
+%define debug_package %{nil}
+%define __spec_install_post %{nil}
+AutoReq: no
+
+Prefix: %{_prefix}
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+
+Group: Applications/Archiving
+License: GPLv2+
+
+Source0: k3b-i18n-3.5.13.1.tar.gz
+
+BuildRequires: trinity-tdelibs-devel >= 3.5.13.1
+BuildRequires: desktop-file-utils
+BuildRequires: gettext
+
+Requires(post): coreutils
+Requires(postun): coreutils
+
+Requires: trinity-k3b
+
+
+%description
+K3b provides a comfortable user interface to perform most CD/DVD
+burning tasks. While the experienced user can take influence in all
+steps of the burning process the beginner may find comfort in the
+automatic settings and the reasonable k3b defaults which allow a quick
+start.
+
+%package da
+Group: Applications/Archiving
+Requires: trinity-k3b
+Summary: Danish (da) translations for K3B [Trinity]
+%description da
+This package contains the Danish translations for K3B.
+
+%package de
+Group: Applications/Archiving
+Requires: trinity-k3b
+Summary: German (de) translations for K3B [Trinity]
+%description de
+This package contains the German translations for K3B.
+
+%package el
+Group: Applications/Archiving
+Requires: trinity-k3b >= %{version}
+Summary: Greek (el) translations for K3B [Trinity]
+%description el
+This package contains the greek translations for K3B.
+
+%package es
+Group: Applications/Archiving
+Requires: trinity-k3b
+Summary: Spanish (es) translations for K3B [Trinity]
+%description es
+This package contains the Spanish translations for K3B.
+
+%package et
+Group: Applications/Archiving
+Requires: trinity-k3b
+Summary: Estonian (et) translations for K3B [Trinity]
+%description et
+This package contains the Estonian translations for K3B.
+
+%package fr
+Group: Applications/Archiving
+Requires: trinity-k3b
+Summary: French (fr) translations for K3B [Trinity]
+%description fr
+This package contains the French translations for K3B.
+
+%package it
+Group: Applications/Archiving
+Requires: trinity-k3b
+Summary: Italian (it) translations for K3B [Trinity]
+%description it
+This package contains the Italian translations for K3B.
+
+%package nl
+Group: Applications/Archiving
+Requires: trinity-k3b
+Summary: Dutch (nl) translations for K3B [Trinity]
+%description nl
+This package contains the Dutch translations for K3B.
+
+%package pl
+Group: Applications/Archiving
+Requires: trinity-k3b
+Summary: Polish (pl) translations for K3B [Trinity]
+%description pl
+This package contains the Polish translations for K3B.
+
+%package pt
+Group: Applications/Archiving
+Requires: trinity-k3b
+Summary: Portuguese (pt) translations for K3B [Trinity]
+%description pt
+This package contains the Portuguese translations for K3B.
+
+%package ptbr
+Group: Applications/Archiving
+Requires: trinity-k3b
+Summary: Brazilian Portuguese (pt_BR) translations for K3B [Trinity]
+%description ptbr
+This package contains the Brazilian Portuguese translations for K3B.
+
+%package ru
+Group: Applications/Archiving
+Requires: trinity-k3b
+Summary: Russian (ru) translations for K3B [Trinity]
+%description ru
+This package contains the Russian translations for K3B.
+
+%package sv
+Group: Applications/Archiving
+Requires: trinity-k3b
+Summary: Swedish (sv) translations for K3B [Trinity]
+%description sv
+This package contains the Swedish translations for K3B.
+
+%package uk
+Group: Applications/Archiving
+Requires: trinity-k3b
+Summary: Ukrainian (uk) translations for K3B [Trinity]
+%description uk
+This package contains the Ukrainian translations for K3B.
+
+
+%prep
+%setup -q -n k3b-i18n-3.5.13.1
+
+
+# Ugly hack to modify TQT include directory inside autoconf files.
+# If TQT detection fails, it fallbacks to TQT4 instead of TQT3 !
+%__sed -i "admin/acinclude.m4.in" \
+ -e "s|/usr/include/tqt|%{tde_includedir}/tqt|g" \
+ -e "s|kde_htmldir='.*'|kde_htmldir='%{tde_tdedocdir}/HTML'|g"
+
+%__cp -f "/usr/share/aclocal/libtool.m4" "admin/libtool.m4.in"
+%__cp -f "/usr/share/libtool/config/ltmain.sh" "admin/ltmain.sh" || %__cp -f "/usr/share/libtool/ltmain.sh" "admin/ltmain.sh"
+%__make -f "admin/Makefile.common"
+
+
+%build
+unset QTDIR || : ; . /etc/profile.d/qt3.sh
+export PATH="%{tde_bindir}:${PATH}"
+export LDFLAGS="-L%{tde_libdir} -I%{tde_includedir}"
+
+./configure \
+ --prefix=%{tde_prefix} \
+ --exec-prefix=%{tde_prefix} \
+ --bindir=%{tde_bindir} \
+ --datadir=%{tde_datadir} \
+ --docdir=%{tde_tdedocdir} \
+ --includedir=%{tde_tdeincludedir} \
+ --libdir=%{tde_libdir} \
+ --mandir=%{tde_mandir} \
+ --disable-rpath \
+ --with-extra-includes=%{tde_includedir}/tqt \
+ --enable-closure
+
+%__make %{?_smp_mflags}
+
+%install
+%__rm -rf %{buildroot}
+%__make install DESTDIR=%{buildroot}
+
+%__rm -rf %{buildroot}%{tde_datadir}/locale/af
+%__rm -rf %{buildroot}%{tde_datadir}/locale/ar
+%__rm -rf %{buildroot}%{tde_datadir}/locale/bg
+%__rm -rf %{buildroot}%{tde_datadir}/locale/br
+%__rm -rf %{buildroot}%{tde_datadir}/locale/bs
+%__rm -rf %{buildroot}%{tde_datadir}/locale/ca
+%__rm -rf %{buildroot}%{tde_datadir}/locale/cs
+%__rm -rf %{buildroot}%{tde_datadir}/locale/cy
+%__rm -rf %{buildroot}%{tde_datadir}/locale/en_GB
+%__rm -rf %{buildroot}%{tde_datadir}/locale/eu
+%__rm -rf %{buildroot}%{tde_datadir}/locale/fa
+%__rm -rf %{buildroot}%{tde_datadir}/locale/fi
+%__rm -rf %{buildroot}%{tde_datadir}/locale/ga
+%__rm -rf %{buildroot}%{tde_datadir}/locale/gl
+%__rm -rf %{buildroot}%{tde_datadir}/locale/he
+%__rm -rf %{buildroot}%{tde_datadir}/locale/hi
+%__rm -rf %{buildroot}%{tde_datadir}/locale/hu
+%__rm -rf %{buildroot}%{tde_datadir}/locale/is
+%__rm -rf %{buildroot}%{tde_datadir}/locale/ja
+%__rm -rf %{buildroot}%{tde_datadir}/locale/ka
+%__rm -rf %{buildroot}%{tde_datadir}/locale/km
+%__rm -rf %{buildroot}%{tde_datadir}/locale/lt
+%__rm -rf %{buildroot}%{tde_datadir}/locale/mk
+%__rm -rf %{buildroot}%{tde_datadir}/locale/ms
+%__rm -rf %{buildroot}%{tde_datadir}/locale/nb
+%__rm -rf %{buildroot}%{tde_datadir}/locale/nds
+%__rm -rf %{buildroot}%{tde_datadir}/locale/ne
+%__rm -rf %{buildroot}%{tde_datadir}/locale/nn
+%__rm -rf %{buildroot}%{tde_datadir}/locale/pa
+%__rm -rf %{buildroot}%{tde_datadir}/locale/rw
+%__rm -rf %{buildroot}%{tde_datadir}/locale/se
+%__rm -rf %{buildroot}%{tde_datadir}/locale/sk
+%__rm -rf %{buildroot}%{tde_datadir}/locale/sr
+%__rm -rf %{buildroot}%{tde_datadir}/locale/sr@Latn
+%__rm -rf %{buildroot}%{tde_datadir}/locale/ta
+%__rm -rf %{buildroot}%{tde_datadir}/locale/tr
+%__rm -rf %{buildroot}%{tde_datadir}/locale/uz
+%__rm -rf %{buildroot}%{tde_datadir}/locale/uz@cyrillic
+%__rm -rf %{buildroot}%{tde_datadir}/locale/zh_CN
+%__rm -rf %{buildroot}%{tde_datadir}/locale/zh_TW
+
+
+%clean
+%__rm -rf %{buildroot}
+
+
+%files da
+%defattr(-,root,root,-)
+%lang(da) %{tde_tdedocdir}/HTML/da/k3b
+%lang(da) %{tde_datadir}/locale/da/LC_MESSAGES/*.mo
+
+%files de
+%defattr(-,root,root,-)
+%lang(de) %{tde_tdedocdir}/HTML/de/k3b
+%lang(de) %{tde_datadir}/locale/de/LC_MESSAGES/*.mo
+
+%files el
+%defattr(-,root,root,-)
+#%lang(el) %{tde_tdedocdir}/HTML/el/k3b
+%lang(el) %{tde_datadir}/locale/el/LC_MESSAGES/*.mo
+
+%files es
+%defattr(-,root,root,-)
+%lang(es) %{tde_tdedocdir}/HTML/es/k3b
+%lang(es) %{tde_datadir}/locale/es/LC_MESSAGES/*.mo
+
+%files et
+%defattr(-,root,root,-)
+%lang(et) %{tde_tdedocdir}/HTML/et/k3b
+%lang(et) %{tde_datadir}/locale/et/LC_MESSAGES/*.mo
+
+%files fr
+%defattr(-,root,root,-)
+%lang(fr) %{tde_tdedocdir}/HTML/fr/k3b
+%lang(fr) %{tde_datadir}/locale/fr/LC_MESSAGES/*.mo
+
+%files it
+%defattr(-,root,root,-)
+%lang(it) %{tde_tdedocdir}/HTML/it/k3b
+%lang(it) %{tde_datadir}/locale/it/LC_MESSAGES/*.mo
+
+%files nl
+%defattr(-,root,root,-)
+%lang(nl) %{tde_tdedocdir}/HTML/nl/k3b
+%lang(nl) %{tde_datadir}/locale/nl/LC_MESSAGES/*.mo
+
+%files pl
+%defattr(-,root,root,-)
+%lang(pl) %{tde_tdedocdir}/HTML/pl/k3b
+%lang(pl) %{tde_datadir}/locale/pl/LC_MESSAGES/*.mo
+
+%files pt
+%defattr(-,root,root,-)
+%lang(pt) %{tde_tdedocdir}/HTML/pt/k3b
+%lang(pt) %{tde_datadir}/locale/pt/LC_MESSAGES/*.mo
+
+%files ptbr
+%defattr(-,root,root,-)
+%lang(pt_BR) %{tde_tdedocdir}/HTML/pt_BR/k3b
+%lang(pt_BR) %{tde_datadir}/locale/pt_BR/LC_MESSAGES/*.mo
+
+%files ru
+%defattr(-,root,root,-)
+%lang(ru) %{tde_tdedocdir}/HTML/ru/k3b
+%lang(ru) %{tde_datadir}/locale/ru/LC_MESSAGES/*.mo
+
+%files sv
+%defattr(-,root,root,-)
+%lang(sv) %{tde_tdedocdir}/HTML/sv/k3b
+%lang(sv) %{tde_datadir}/locale/sv/LC_MESSAGES/*.mo
+
+%files uk
+%defattr(-,root,root,-)
+%lang(uk) %{tde_tdedocdir}/HTML/uk/k3b
+%lang(uk) %{tde_datadir}/locale/uk/LC_MESSAGES/*.mo
+
+
+
+%changelog
+* Wed Oct 03 2012 Francois Andriot <francois.andriot@free.fr> - 1.0.5-2
+- Initial build for TDE 3.5.13.1
+
+* Thu May 10 2012 Francois Andriot <francois.andriot@free.fr> - 1.0.5-1
+- Initial build for TDE 3.5.13
diff --git a/redhat/applications/k3b-i18n/trinity-k3b-i18n-3.5.13.spec b/redhat/applications/k3b-i18n/trinity-k3b-i18n-3.5.13.spec
new file mode 100644
index 000000000..fa2b67c60
--- /dev/null
+++ b/redhat/applications/k3b-i18n/trinity-k3b-i18n-3.5.13.spec
@@ -0,0 +1,308 @@
+# 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 %{_datadir}/doc
+%endif
+
+# TDE 3.5.13 specific building variables
+BuildRequires: autoconf automake libtool m4
+%define tde_docdir %{_docdir}/kde
+%define tde_includedir %{_includedir}/kde
+%define tde_libdir %{_libdir}/trinity
+
+
+Name: trinity-k3b-i18n
+Summary: Locale files for K3B
+Version: 1.0.5
+Release: 1%{?dist}%{?_variant}
+
+Vendor: Trinity Project
+Packager: Francois Andriot <francois.andriot@free.fr>
+URL: http://www.trinitydesktop.org/
+
+BuildArch: noarch
+
+# Speed build options
+%define debug_package %{nil}
+%define __spec_install_post %{nil}
+AutoReq: no
+
+Prefix: %{_prefix}
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+
+Group: Applications/Archiving
+License: GPLv2+
+
+Source0: k3b-i18n-1.0.5.tar.bz2
+
+# [kde-i18n] Fix automake detection
+Patch1: k3b-i18n-trinity.patch
+
+BuildRequires: trinity-kdelibs-devel
+BuildRequires: desktop-file-utils
+BuildRequires: gettext
+
+Requires(post): coreutils
+Requires(postun): coreutils
+
+Requires: trinity-k3b
+
+
+%description
+K3b provides a comfortable user interface to perform most CD/DVD
+burning tasks. While the experienced user can take influence in all
+steps of the burning process the beginner may find comfort in the
+automatic settings and the reasonable k3b defaults which allow a quick
+start.
+
+%package da
+Group: Applications/Archiving
+Requires: trinity-k3b
+Summary: Danish (da) translations for K3B [Trinity]
+%description da
+This package contains the Danish translations for K3B.
+
+%package de
+Group: Applications/Archiving
+Requires: trinity-k3b
+Summary: German (de) translations for K3B [Trinity]
+%description de
+This package contains the German translations for K3B.
+
+%package el
+Group: Applications/Archiving
+Requires: trinity-k3b >= %{version}
+Summary: Greek (el) translations for K3B [Trinity]
+%description el
+This package contains the greek translations for K3B.
+
+%package es
+Group: Applications/Archiving
+Requires: trinity-k3b
+Summary: Spanish (es) translations for K3B [Trinity]
+%description es
+This package contains the Spanish translations for K3B.
+
+%package et
+Group: Applications/Archiving
+Requires: trinity-k3b
+Summary: Estonian (et) translations for K3B [Trinity]
+%description et
+This package contains the Estonian translations for K3B.
+
+%package fr
+Group: Applications/Archiving
+Requires: trinity-k3b
+Summary: French (fr) translations for K3B [Trinity]
+%description fr
+This package contains the French translations for K3B.
+
+%package it
+Group: Applications/Archiving
+Requires: trinity-k3b
+Summary: Italian (it) translations for K3B [Trinity]
+%description it
+This package contains the Italian translations for K3B.
+
+%package nl
+Group: Applications/Archiving
+Requires: trinity-k3b
+Summary: Dutch (nl) translations for K3B [Trinity]
+%description nl
+This package contains the Dutch translations for K3B.
+
+%package pl
+Group: Applications/Archiving
+Requires: trinity-k3b
+Summary: Polish (pl) translations for K3B [Trinity]
+%description pl
+This package contains the Polish translations for K3B.
+
+%package pt
+Group: Applications/Archiving
+Requires: trinity-k3b
+Summary: Portuguese (pt) translations for K3B [Trinity]
+%description pt
+This package contains the Portuguese translations for K3B.
+
+%package ptbr
+Group: Applications/Archiving
+Requires: trinity-k3b
+Summary: Brazilian Portuguese (pt_BR) translations for K3B [Trinity]
+%description ptbr
+This package contains the Brazilian Portuguese translations for K3B.
+
+%package ru
+Group: Applications/Archiving
+Requires: trinity-k3b
+Summary: Russian (ru) translations for K3B [Trinity]
+%description ru
+This package contains the Russian translations for K3B.
+
+%package sv
+Group: Applications/Archiving
+Requires: trinity-k3b
+Summary: Swedish (sv) translations for K3B [Trinity]
+%description sv
+This package contains the Swedish translations for K3B.
+
+%package uk
+Group: Applications/Archiving
+Requires: trinity-k3b
+Summary: Ukrainian (uk) translations for K3B [Trinity]
+%description uk
+This package contains the Ukrainian translations for K3B.
+
+
+%prep
+%setup -q -n k3b-i18n-%{version}
+
+# set in k3brc too
+%patch1 -p1 -b .automake
+
+
+# Ugly hack to modify TQT include directory inside autoconf files.
+# If TQT detection fails, it fallbacks to TQT4 instead of TQT3 !
+%__sed -i "admin/acinclude.m4.in" \
+ -e "s|/opt/kde3|%{_prefix}|g" \
+ -e "s|kde3/plugins|trinity/plugins|g" \
+ -e "s|/usr/include/tqt|%{_includedir}/tqt|g" \
+ -e "s|kde_htmldir='.*'|kde_htmldir='%{tde_docdir}/HTML'|g"
+
+%__cp -f "/usr/share/aclocal/libtool.m4" "admin/libtool.m4.in"
+%__cp -f "/usr/share/libtool/config/ltmain.sh" "admin/ltmain.sh" || %__cp -f "/usr/share/libtool/ltmain.sh" "admin/ltmain.sh"
+%__make -f "admin/Makefile.common"
+
+
+%build
+unset QTDIR || : ; . /etc/profile.d/qt.sh
+export PATH="%{_bindir}:${PATH}"
+export LDFLAGS="-L%{_libdir} -I%{_includedir}"
+
+%configure \
+ --target=%{_host}
+%__make %{?_smp_mflags}
+
+%install
+%__rm -rf %{buildroot}
+%__make install DESTDIR=%{buildroot}
+
+%clean
+%__rm -rf %{buildroot}
+
+
+%files da
+%defattr(-,root,root,-)
+%lang(da) %{tde_docdir}/HTML/da/k3b
+%lang(da) %{_datadir}/locale/da/LC_MESSAGES/*.mo
+
+%files de
+%defattr(-,root,root,-)
+%lang(de) %{tde_docdir}/HTML/de/k3b
+%lang(de) %{_datadir}/locale/de/LC_MESSAGES/*.mo
+
+%files el
+%defattr(-,root,root,-)
+#%lang(el) %{tde_docdir}/HTML/el/k3b
+%lang(el) %{_datadir}/locale/el/LC_MESSAGES/*.mo
+
+%files es
+%defattr(-,root,root,-)
+%lang(es) %{tde_docdir}/HTML/es/k3b
+%lang(es) %{_datadir}/locale/es/LC_MESSAGES/*.mo
+
+%files et
+%defattr(-,root,root,-)
+%lang(et) %{tde_docdir}/HTML/et/k3b
+%lang(et) %{_datadir}/locale/et/LC_MESSAGES/*.mo
+
+%files fr
+%defattr(-,root,root,-)
+%lang(fr) %{tde_docdir}/HTML/fr/k3b
+%lang(fr) %{_datadir}/locale/fr/LC_MESSAGES/*.mo
+
+%files it
+%defattr(-,root,root,-)
+%lang(it) %{tde_docdir}/HTML/it/k3b
+%lang(it) %{_datadir}/locale/it/LC_MESSAGES/*.mo
+
+%files nl
+%defattr(-,root,root,-)
+%lang(nl) %{tde_docdir}/HTML/nl/k3b
+%lang(nl) %{_datadir}/locale/nl/LC_MESSAGES/*.mo
+
+%files pl
+%defattr(-,root,root,-)
+%lang(pl) %{tde_docdir}/HTML/pl/k3b
+%lang(pl) %{_datadir}/locale/pl/LC_MESSAGES/*.mo
+
+%files pt
+%defattr(-,root,root,-)
+%lang(pt) %{tde_docdir}/HTML/pt/k3b
+%lang(pt) %{_datadir}/locale/pt/LC_MESSAGES/*.mo
+
+%files ptbr
+%defattr(-,root,root,-)
+%lang(pt_BR) %{tde_docdir}/HTML/pt_BR/k3b
+%lang(pt_BR) %{_datadir}/locale/pt_BR/LC_MESSAGES/*.mo
+
+%files ru
+%defattr(-,root,root,-)
+%lang(ru) %{tde_docdir}/HTML/ru/k3b
+%lang(ru) %{_datadir}/locale/ru/LC_MESSAGES/*.mo
+
+%files sv
+%defattr(-,root,root,-)
+%lang(sv) %{tde_docdir}/HTML/sv/k3b
+%lang(sv) %{_datadir}/locale/sv/LC_MESSAGES/*.mo
+
+%files uk
+%defattr(-,root,root,-)
+%lang(uk) %{tde_docdir}/HTML/uk/k3b
+%lang(uk) %{_datadir}/locale/uk/LC_MESSAGES/*.mo
+
+%exclude %{_datadir}/locale/af
+%exclude %{_datadir}/locale/ar
+%exclude %{_datadir}/locale/bg
+%exclude %{_datadir}/locale/br
+%exclude %{_datadir}/locale/bs
+%exclude %{_datadir}/locale/ca
+%exclude %{_datadir}/locale/cs
+%exclude %{_datadir}/locale/cy
+%exclude %{_datadir}/locale/en_GB
+%exclude %{_datadir}/locale/eu
+%exclude %{_datadir}/locale/fa
+%exclude %{_datadir}/locale/fi
+%exclude %{_datadir}/locale/ga
+%exclude %{_datadir}/locale/gl
+%exclude %{_datadir}/locale/he
+%exclude %{_datadir}/locale/hi
+%exclude %{_datadir}/locale/hu
+%exclude %{_datadir}/locale/is
+%exclude %{_datadir}/locale/ja
+%exclude %{_datadir}/locale/ka
+%exclude %{_datadir}/locale/km
+%exclude %{_datadir}/locale/lt
+%exclude %{_datadir}/locale/mk
+%exclude %{_datadir}/locale/ms
+%exclude %{_datadir}/locale/nb
+%exclude %{_datadir}/locale/nds
+%exclude %{_datadir}/locale/ne
+%exclude %{_datadir}/locale/nn
+%exclude %{_datadir}/locale/pa
+%exclude %{_datadir}/locale/rw
+%exclude %{_datadir}/locale/se
+%exclude %{_datadir}/locale/sk
+%exclude %{_datadir}/locale/sr
+%exclude %{_datadir}/locale/sr@Latn
+%exclude %{_datadir}/locale/ta
+%exclude %{_datadir}/locale/tr
+%exclude %{_datadir}/locale/uz
+%exclude %{_datadir}/locale/uz@cyrillic
+%exclude %{_datadir}/locale/zh_CN
+%exclude %{_datadir}/locale/zh_TW
+
+
+%changelog
+* Thu May 10 2012 Francois Andriot <francois.andriot@free.fr> - 1.0.5-1
+- Initial build for TDE 3.5.13
diff --git a/redhat/applications/k3b/trinity-k3b-3.5.13.1.spec b/redhat/applications/k3b/trinity-k3b-3.5.13.1.spec
new file mode 100644
index 000000000..a04f41b61
--- /dev/null
+++ b/redhat/applications/k3b/trinity-k3b-3.5.13.1.spec
@@ -0,0 +1,319 @@
+# If TDE is built in a specific prefix (e.g. /opt/trinity), the release will be suffixed with ".opt".
+%if "%{?tde_prefix}" != "/usr"
+%define _variant .opt
+%endif
+
+# TDE 3.5.13 specific building variables
+%define tde_bindir %{tde_prefix}/bin
+%define tde_datadir %{tde_prefix}/share
+%define tde_docdir %{tde_datadir}/doc
+%define tde_includedir %{tde_prefix}/include
+%define tde_libdir %{tde_prefix}/%{_lib}
+%define tde_mandir %{tde_datadir}/man
+%define tde_appdir %{tde_datadir}/applications
+
+%define tde_tdeappdir %{tde_appdir}/kde
+%define tde_tdedocdir %{tde_docdir}/tde
+%define tde_tdeincludedir %{tde_includedir}/tde
+%define tde_tdelibdir %{tde_libdir}/trinity
+
+%define _docdir %{tde_docdir}
+
+
+Name: trinity-k3b
+Summary: CD/DVD burning application
+Version: 3.5.13.1
+Release: 1%{?dist}%{?_variant}
+
+Vendor: Trinity Project
+Packager: Francois Andriot <francois.andriot@free.fr>
+URL: http://www.trinitydesktop.org/
+
+Prefix: %{tde_prefix}
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+
+Group: Applications/Archiving
+License: GPLv2+
+
+Source0: k3b-%{version}.tar.gz
+Source2: k3brc
+
+# Legacy RedHat / Fedora patches
+# manual bufsize (upstream?)
+Patch4: k3b-1.0.4-manualbufsize.patch
+# RHEL6: Fix K3B icon
+Patch106: trinity-k3b-icons.patch
+
+BuildRequires: trinity-tqtinterface-devel >= 3.5.13.1
+BuildRequires: trinity-dbus-tqt-devel >= 3.5.13.1
+BuildRequires: trinity-tdelibs-devel >= 3.5.13.1
+BuildRequires: trinity-arts-devel >= 3.5.13.1
+BuildRequires: desktop-file-utils
+BuildRequires: alsa-lib-devel
+BuildRequires: audiofile-devel
+BuildRequires: hal-devel
+BuildRequires: gettext
+BuildRequires: libdvdread-devel
+BuildRequires: libmpcdec-devel
+BuildRequires: libmusicbrainz-devel
+BuildRequires: libsamplerate-devel
+BuildRequires: libsndfile-devel
+BuildRequires: libvorbis-devel
+BuildRequires: taglib-devel
+BuildRequires: zlib-devel
+
+%if 0%{?mgaversion} || 0%{?mdkversion}
+BuildRequires: %{_lib}flac-devel
+BuildRequires: %{_lib}flac++-devel
+%else
+BuildRequires: flac-devel
+%endif
+
+Requires(post): coreutils
+Requires(postun): coreutils
+
+Requires: %{name}-libs = %{version}-%{release}
+Requires: %{name}-common = %{version}-%{release}
+
+Requires: cdrecord mkisofs
+Requires: cdrdao
+Requires: dvd+rw-tools
+
+%description
+K3b provides a comfortable user interface to perform most CD/DVD
+burning tasks. While the experienced user can take influence in all
+steps of the burning process the beginner may find comfort in the
+automatic settings and the reasonable k3b defaults which allow a quick
+start.
+
+%files
+%defattr(-,root,root,-)
+%doc AUTHORS README COPYING TODO ChangeLog
+%{tde_bindir}/k3b
+%{tde_tdelibdir}/kfile_k3b.la
+%{tde_tdelibdir}/kfile_k3b.so
+%{tde_tdelibdir}/kio_videodvd.la
+%{tde_tdelibdir}/kio_videodvd.so
+%{tde_tdelibdir}/libk3balsaoutputplugin.la
+%{tde_tdelibdir}/libk3balsaoutputplugin.so
+%{tde_tdelibdir}/libk3bartsoutputplugin.la
+%{tde_tdelibdir}/libk3bartsoutputplugin.so
+%{tde_tdelibdir}/libk3baudiometainforenamerplugin.la
+%{tde_tdelibdir}/libk3baudiometainforenamerplugin.so
+%{tde_tdelibdir}/libk3baudioprojectcddbplugin.la
+%{tde_tdelibdir}/libk3baudioprojectcddbplugin.so
+%{tde_tdelibdir}/libk3bexternalencoder.la
+%{tde_tdelibdir}/libk3bexternalencoder.so
+%{tde_tdelibdir}/libk3bflacdecoder.la
+%{tde_tdelibdir}/libk3bflacdecoder.so
+%{tde_tdelibdir}/libk3blibsndfiledecoder.la
+%{tde_tdelibdir}/libk3blibsndfiledecoder.so
+%{tde_tdelibdir}/libk3bmpcdecoder.la
+%{tde_tdelibdir}/libk3bmpcdecoder.so
+%{tde_tdelibdir}/libk3boggvorbisdecoder.la
+%{tde_tdelibdir}/libk3boggvorbisdecoder.so
+%{tde_tdelibdir}/libk3boggvorbisencoder.la
+%{tde_tdelibdir}/libk3boggvorbisencoder.so
+%{tde_tdelibdir}/libk3bsoxencoder.la
+%{tde_tdelibdir}/libk3bsoxencoder.so
+%{tde_tdelibdir}/libk3bwavedecoder.la
+%{tde_tdelibdir}/libk3bwavedecoder.so
+%lang(en) %{tde_tdedocdir}/HTML/en/k3b/
+
+
+##########
+
+%package common
+Summary: Common files of %{name}
+Group: Applications/Archiving
+Requires: %{name} = %{version}-%{release}
+%if 0%{?rhel} >= 6 || 0%{?fedora} >= 15 || 0%{?mgaversion} || 0%{?mdkversion}
+BuildArch: noarch
+%endif
+
+%description common
+%{summary}.
+
+%files common
+%defattr(-,root,root,-)
+%{tde_tdeappdir}/k3b.desktop
+%{tde_datadir}/applnk/.hidden/k3b-cue.desktop
+%{tde_datadir}/applnk/.hidden/k3b-iso.desktop
+%{tde_datadir}/apps/k3b/
+%{tde_datadir}/apps/konqsidebartng/virtual_folders/services/videodvd.desktop
+%{tde_datadir}/apps/konqueror/servicemenus/k3b_audiocd_rip.desktop
+%{tde_datadir}/apps/konqueror/servicemenus/k3b_cd_copy.desktop
+%{tde_datadir}/apps/konqueror/servicemenus/k3b_dvd_copy.desktop
+%{tde_datadir}/apps/konqueror/servicemenus/k3b_handle_empty_cd.desktop
+%{tde_datadir}/apps/konqueror/servicemenus/k3b_handle_empty_dvd.desktop
+%{tde_datadir}/apps/konqueror/servicemenus/k3b_videodvd_rip.desktop
+%{tde_datadir}/config/k3brc
+%{tde_datadir}/mimelnk/application/x-k3b.desktop
+%{tde_datadir}/icons/hicolor/*/apps/k3b.png
+%{tde_datadir}/services/kfile_k3b.desktop
+%{tde_datadir}/services/videodvd.protocol
+%{tde_datadir}/sounds/k3b_error1.wav
+%{tde_datadir}/sounds/k3b_success1.wav
+%{tde_datadir}/sounds/k3b_wait_media1.wav
+
+
+%post common
+touch --no-create %{tde_datadir}/icons/hicolor ||:
+
+%postun common
+if [ $1 -eq 0 ] ; then
+ touch --no-create %{tde_datadir}/icons/hicolor &> /dev/null
+ gtk-update-icon-cache %{tde_datadir}/icons/hicolor &> /dev/null || :
+ update-desktop-database %{tde_appdir} -q &> /dev/null
+fi
+
+%posttrans common
+gtk-update-icon-cache %{tde_datadir}/icons/hicolor &> /dev/null || :
+update-desktop-database %{tde_appdir} -q &> /dev/null
+
+##########
+
+%package libs
+Summary: Runtime libraries for %{name}
+Group: System Environment/Libraries
+Requires: %{name} = %{version}-%{release}
+
+%description libs
+%{summary}.
+
+%files libs
+%defattr(-,root,root,-)
+%{tde_libdir}/libk3b.so.3
+%{tde_libdir}/libk3b.so.3.0.0
+%{tde_libdir}/libk3bdevice.so.5
+%{tde_libdir}/libk3bdevice.so.5.0.0
+
+%post libs
+/sbin/ldconfig
+
+%postun libs
+/sbin/ldconfig
+
+##########
+
+%package devel
+Summary: Files for the development of applications which will use %{name}
+Group: Development/Libraries
+Requires: %{name}-libs = %{version}-%{release}
+
+%description devel
+%{summary}.
+
+%files devel
+%defattr(-,root,root,-)
+%{tde_tdeincludedir}/*.h
+%{tde_libdir}/libk3b.so
+%{tde_libdir}/libk3bdevice.so
+
+%post devel
+/sbin/ldconfig
+
+%postun devel
+/sbin/ldconfig
+
+##########
+
+%if 0%{?suse_version}
+%debug_package
+%endif
+
+
+%prep
+%setup -q -a 0 -n k3b-3.5.13.1
+
+# set in k3brc too
+%patch4 -p1 -b .manualbufsize
+%patch106 -p1 -b .desktopfile
+
+
+# Ugly hack to modify TQT include directory inside autoconf files.
+# If TQT detection fails, it fallbacks to TQT4 instead of TQT3 !
+%__sed -i "admin/acinclude.m4.in" \
+ -e "s|/usr/include/tqt|%{tde_includedir}/tqt|g" \
+ -e "s|kde_htmldir='.*'|kde_htmldir='%{tde_tdedocdir}/HTML'|g"
+
+%__cp -f "/usr/share/aclocal/libtool.m4" "admin/libtool.m4.in"
+%__cp -f "/usr/share/libtool/config/ltmain.sh" "admin/ltmain.sh" || %__cp -f "/usr/share/libtool/ltmain.sh" "admin/ltmain.sh"
+%__make -f "admin/Makefile.common"
+
+
+%build
+unset QTDIR || : ; . /etc/profile.d/qt3.sh
+export PATH="%{tde_bindir}:${PATH}"
+export LDFLAGS="-L%{tde_libdir} -I%{tde_includedir}"
+
+%configure \
+ --prefix=%{tde_prefix} \
+ --exec-prefix=%{tde_prefix} \
+ --bindir=%{tde_bindir} \
+ --datadir=%{tde_datadir} \
+ --libdir=%{tde_libdir} \
+ --mandir=%{tde_mandir} \
+ --includedir=%{tde_tdeincludedir} \
+ --disable-rpath \
+ --enable-new-ldflags \
+ --disable-debug --disable-warnings \
+ --disable-dependency-tracking --enable-final \
+ --with-k3bsetup=no \
+ --without-cdrecord-suid-root \
+ --with-oggvorbis \
+ --with-flac \
+ --with-external-libsamplerate \
+ --with-libdvdread \
+ --with-musicbrainz \
+ --with-sndfile \
+ --without-ffmpeg --without-lame --without-libmad \
+ --with-musepack \
+ --with-extra-includes=%{tde_includedir}/tqt:%{tde_includedir}
+
+%__make %{?_smp_mflags}
+
+%install
+export PATH="%{tde_bindir}:${PATH}"
+%__rm -rf %{buildroot}
+%__make install DESTDIR=%{buildroot}
+%__install -D -m 644 -p %{SOURCE2} %{buildroot}%{tde_datadir}/config/k3brc
+
+# remove the .la files
+%__rm -f %{buildroot}%{tde_libdir}/libk3b*.la
+
+# remove i18n for Plattdeutsch (Low Saxon)
+#%__rm -fr %{buildroot}%{tde_datadir}/locale/nds
+
+
+
+%clean
+%__rm -rf %{buildroot}
+
+
+
+%changelog
+* Wed Oct 03 2012 Francois Andriot <francois.andriot@free.fr> - 3.5.13.1-1
+- Initial build for TDE 3.5.13.1
+- Remove requirement for resmgr
+
+* Sat Aug 04 2012 Francois Andriot <francois.andriot@free.fr> - 3.5.13-5
+- Add support for Mageia 2 and Mandriva 2011
+- Fix DBUS-TQT detection that prevented HAL support
+- Adds requirement for resmgr
+
+* Wed May 09 2012 Francois Andriot <francois.andriot@free.fr> - 3.5.13-4
+- Removes i18 files (built separately)
+
+* Tue May 01 2012 Francois Andriot <francois.andriot@free.fr> - 3.5.13-3
+- Rebuilt for Fedora 17
+- Fix compilation with GCC 4.7 [Bug #958]
+
+* Sat Nov 05 2011 Francois Andriot <francois.andriot@free.fr> - 3.5.13-2
+- Updates BuildRequires
+
+* Sun Oct 30 2011 Francois Andriot <francois.andriot@free.fr> - 3.5.13-1
+- Initial release for RHEL 6, RHEL 5 and Fedora 15
+
+* Sun Sep 11 2011 Francois Andriot <francois.andriot@free.fr> - 3.5.13-0
+- Import to GIT
diff --git a/redhat/applications/k9copy/trinity-k9copy-3.5.13.1.spec b/redhat/applications/k9copy/trinity-k9copy-3.5.13.1.spec
new file mode 100644
index 000000000..b2f1dbe45
--- /dev/null
+++ b/redhat/applications/k9copy/trinity-k9copy-3.5.13.1.spec
@@ -0,0 +1,148 @@
+# Default version for this component
+%define kdecomp k9copy
+
+# If TDE is built in a specific prefix (e.g. /opt/trinity), the release will be suffixed with ".opt".
+%if "%{?tde_prefix}" != "/usr"
+%define _variant .opt
+%endif
+
+# TDE 3.5.13 specific building variables
+%define tde_bindir %{tde_prefix}/bin
+%define tde_datadir %{tde_prefix}/share
+%define tde_docdir %{tde_datadir}/doc
+%define tde_includedir %{tde_prefix}/include
+%define tde_libdir %{tde_prefix}/%{_lib}
+%define tde_mandir %{tde_datadir}/man
+%define tde_appdir %{tde_datadir}/applications
+
+%define tde_tdeappdir %{tde_appdir}/kde
+%define tde_tdedocdir %{tde_docdir}/tde
+%define tde_tdeincludedir %{tde_includedir}/tde
+%define tde_tdelibdir %{tde_libdir}/trinity
+
+%define _docdir %{tde_docdir}
+
+
+Name: trinity-%{kdecomp}
+Summary: DVD backup tool for Trinity
+Version: 1.2.3
+Release: 3%{?dist}%{?_variant}
+
+License: GPLv2+
+Group: Applications/Utilities
+
+Vendor: Trinity Project
+Packager: Francois Andriot <francois.andriot@free.fr>
+URL: http://www.trinitydesktop.org/
+
+Prefix: %{tde_prefix}
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+
+Source0: %{kdecomp}-3.5.13.1.tar.gz
+
+BuildRequires: trinity-tqtinterface-devel >= 3.5.13.1
+BuildRequires: trinity-tdelibs-devel >= 3.5.13.1
+BuildRequires: trinity-tdebase-devel >= 3.5.13.1
+BuildRequires: trinity-arts-devel >= 3.5.13.1
+BuildRequires: desktop-file-utils
+
+# Warning: the target distribution must have ffmpeg !
+BuildRequires: ffmpeg-devel
+#Requires: ffmpeg
+
+%description
+k9copy is a tabbed tool that allows to copy of one or more titles from a DVD9
+to a DVD5, in thesame way than DVDShrink for Microsoft Windows (R).
+This is the Trinity version
+
+
+%if 0%{?suse_version}
+%debug_package
+%endif
+
+
+%prep
+%setup -q -n %{kdecomp}-3.5.13.1
+
+# Ugly hack to modify TQT include directory inside autoconf files.
+# If TQT detection fails, it fallbacks to TQT4 instead of TQT3 !
+%__sed -i admin/acinclude.m4.in \
+ -e "s|/usr/include/tqt|%{tde_includedir}/tqt|g" \
+ -e "s|kde_htmldir='.*'|kde_htmldir='%{tde_tdedocdir}/HTML'|g"
+
+%__cp -f "/usr/share/aclocal/libtool.m4" "admin/libtool.m4.in"
+%__cp -f "/usr/share/libtool/config/ltmain.sh" "admin/ltmain.sh" || %__cp -f "/usr/share/libtool/ltmain.sh" "admin/ltmain.sh"
+%__make -f "admin/Makefile.common"
+
+
+
+%build
+unset QTDIR || : ; . /etc/profile.d/qt3.sh
+export PATH="%{tde_bindir}:${PATH}"
+export LDFLAGS="-L%{tde_libdir} -I%{tde_includedir}"
+
+%configure \
+ --prefix=%{tde_prefix} \
+ --exec-prefix=%{tde_prefix} \
+ --bindir=%{tde_bindir} \
+ --datadir=%{tde_datadir} \
+ --includedir=%{tde_tdeincludedir} \
+ --disable-rpath \
+ --with-extra-includes=%{tde_includedir}/tqt \
+ --enable-closure
+
+%__make %{?_smp_mflags}
+
+
+%install
+export PATH="%{tde_bindir}:${PATH}"
+%__rm -rf %{buildroot}
+%__make install DESTDIR=%{buildroot}
+
+%find_lang %{kdecomp}
+
+%clean
+%__rm -rf %{buildroot}
+
+
+%post
+touch --no-create %{tde_datadir}/icons/hicolor || :
+gtk-update-icon-cache --quiet %{tde_datadir}/icons/hicolor || :
+update-desktop-database %{tde_appdir} &> /dev/null
+
+%postun
+touch --no-create %{tde_datadir}/icons/hicolor || :
+gtk-update-icon-cache --quiet %{tde_datadir}/icons/hicolor || :
+update-desktop-database %{tde_appdir} &> /dev/null
+
+
+%files -f %{kdecomp}.lang
+%defattr(-,root,root,-)
+%doc AUTHORS COPYING
+%{tde_bindir}/k9copy
+%{tde_tdeappdir}/k9copy.desktop
+%{tde_datadir}/apps/k9copy/
+%{tde_datadir}/apps/konqueror/servicemenus/k9copy_open.desktop
+%lang(en) %{tde_tdedocdir}/HTML/en/k9copy/
+%{tde_datadir}/icons/hicolor/*/apps/k9copy.png
+
+
+%changelog
+* Wed Oct 03 2012 Francois Andriot <francois.andriot@free.fr> - 1.2.3-3
+- Initial build for TDE 3.5.13.1
+
+* Sat Aug 04 2012 Francois Andriot <francois.andriot@free.fr> - 1.2.3-2
+- Add support for MGA2 and MDV2011
+- Fix 'format not a string literal' error. Clean up warning. [Commit #3bfc84b0]
+- Fix FTBFS [Commit #62acebb7]
+- Fix 'format not a string literal' error [Commit #d9ed8b32]
+- Fix remaining string format errors [Commit #a8e98ad9]
+- Fix another string format error [Commit #b3bb8a8f]
+- Fix FTBFS [Commit #ca864ede]
+- Fix format string error [Commit #a016df82]
+
+* Fri Nov 25 2011 Francois Andriot <francois.andriot@free.fr> - 1.2.3-2
+- Fix HTML directory location
+
+* Sat Nov 19 2011 Francois Andriot <francois.andriot@free.fr> - 1.2.3-1
+- Initial build for RHEL 5, RHEL 6, Fedora 15, Fedora 16
diff --git a/redhat/applications/k9copy/trinity-k9copy.spec b/redhat/applications/k9copy/trinity-k9copy-3.5.13.spec
index cf6993ed6..cf6993ed6 100644
--- a/redhat/applications/k9copy/trinity-k9copy.spec
+++ b/redhat/applications/k9copy/trinity-k9copy-3.5.13.spec
diff --git a/redhat/applications/kaffeine-mozilla/trinity-kaffeine-mozilla-3.5.13.1.spec b/redhat/applications/kaffeine-mozilla/trinity-kaffeine-mozilla-3.5.13.1.spec
new file mode 100644
index 000000000..418c9cb7a
--- /dev/null
+++ b/redhat/applications/kaffeine-mozilla/trinity-kaffeine-mozilla-3.5.13.1.spec
@@ -0,0 +1,134 @@
+# Default version for this component
+%define kdecomp kaffeine-mozilla
+
+# If TDE is built in a specific prefix (e.g. /opt/trinity), the release will be suffixed with ".opt".
+%if "%{?tde_prefix}" != "/usr"
+%define _variant .opt
+%endif
+
+# TDE 3.5.13 specific building variables
+%define tde_bindir %{tde_prefix}/bin
+%define tde_datadir %{tde_prefix}/share
+%define tde_docdir %{tde_datadir}/doc
+%define tde_includedir %{tde_prefix}/include
+%define tde_libdir %{tde_prefix}/%{_lib}
+%define tde_mandir %{tde_datadir}/man
+%define tde_appdir %{tde_datadir}/applications
+
+%define tde_tdeappdir %{tde_appdir}/kde
+%define tde_tdedocdir %{tde_docdir}/tde
+%define tde_tdeincludedir %{tde_includedir}/tde
+%define tde_tdelibdir %{tde_libdir}/trinity
+
+%define _docdir %{tde_docdir}
+
+
+Name: trinity-%{kdecomp}
+Summary: mozilla plugin that lanches kaffeine for supported media types [Trinity]
+Version: 0.4.3.1
+Release: 3%{?dist}%{?_variant}
+
+License: GPLv2+
+Group: Applications/Multimedia
+
+Vendor: Trinity Project
+Packager: Francois Andriot <francois.andriot@free.fr>
+URL: http://www.trinitydesktop.org/
+
+Prefix: %{tde_prefix}
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+
+Source0: %{kdecomp}-3.5.13.1.tar.gz
+
+# Fix 'nspr' includes location
+Patch1: kaffeine-mozilla-3.5.13-fix_nspr_include.patch
+
+BuildRequires: trinity-tqtinterface-devel >= 3.5.13.1
+BuildRequires: trinity-tdelibs-devel >= 3.5.13.1
+BuildRequires: trinity-tdebase-devel >= 3.5.13.1
+BuildRequires: desktop-file-utils
+
+%if 0%{?suse_version}
+BuildRequires: mozilla-nspr-devel
+%else
+BuildRequires: nspr-devel
+%endif
+
+%if 0%{?mgaversion} || 0%{?mdkversion}
+BuildRequires: %{_lib}xaw-devel
+%else
+BuildRequires: libXaw-devel
+%endif
+
+Requires: trinity-kaffeine
+
+%description
+This mozilla plugin launches kaffeine, the xine-based media player for KDE,
+when a page containing a supported media format is loaded.
+
+
+%if 0%{?suse_version}
+%debug_package
+%endif
+
+
+%prep
+unset QTDIR; . /etc/profile.d/qt3.sh
+%setup -q -n %{kdecomp}-3.5.13.1
+%patch1 -p1
+
+%__cp -f "/usr/share/aclocal/libtool.m4" .
+%__cp -f "/usr/share/libtool/config/ltmain.sh" . || %__cp "/usr/share/libtool/ltmain.sh" .
+
+autoreconf -fiv
+
+
+%build
+export PATH="%{tde_bindir}:${PATH}"
+export LDFLAGS="-L%{tde_libdir} -I%{tde_includedir}"
+
+%configure \
+ --disable-rpath \
+ --with-extra-includes=%{tde_includedir}/tqt \
+ --enable-closure \
+ --prefix=%{_libdir}/mozilla
+
+%__make %{?_smp_mflags}
+
+%install
+export PATH="%{tde_bindir}:${PATH}"
+%__rm -rf %{buildroot}
+%__make install DESTDIR=%{buildroot}
+
+# Remove useless filess
+%__rm -f %{?buildroot}%{_libdir}/mozilla/plugins/kaffeineplugin.a
+
+%clean
+%__rm -rf %{buildroot}
+
+
+%post
+/sbin/ldconfig || :
+
+%postun
+/sbin/ldconfig || :
+
+
+%files
+%defattr(-,root,root,-)
+%doc AUTHORS ChangeLog COPYING README
+# These files are installed outside TDE prefix
+%{_libdir}/mozilla/plugins/kaffeineplugin.la
+%{_libdir}/mozilla/plugins/kaffeineplugin.so
+
+
+%changelog
+* Wed Oct 03 2012 Francois Andriot <francois.andriot@free.fr> - 0.4.3.1-3
+- Initial build for TDE 3.5.13.1
+
+* Thu Apr 26 2012 Francois Andriot <francois.andriot@free.fr> - 0.4.3.1-2
+- Rebuild with nicer patch.
+
+* Sat Dec 03 2011 Francois Andriot <francois.andriot@free.fr> - 0.4.3.1.dfsg-1
+- Initial build for RHEL 5, RHEL 6, Fedora 15, Fedora 16
+
diff --git a/redhat/applications/kaffeine-mozilla/trinity-kaffeine-mozilla.spec b/redhat/applications/kaffeine-mozilla/trinity-kaffeine-mozilla-3.5.13.spec
index 01b03b014..01b03b014 100644
--- a/redhat/applications/kaffeine-mozilla/trinity-kaffeine-mozilla.spec
+++ b/redhat/applications/kaffeine-mozilla/trinity-kaffeine-mozilla-3.5.13.spec
diff --git a/redhat/applications/kaffeine/kaffeine-3.5.13.1-add_xine12_support.patch b/redhat/applications/kaffeine/kaffeine-3.5.13.1-add_xine12_support.patch
new file mode 100644
index 000000000..386488625
--- /dev/null
+++ b/redhat/applications/kaffeine/kaffeine-3.5.13.1-add_xine12_support.patch
@@ -0,0 +1,14 @@
+--- kaffeine-3.5.13.1/kaffeine/src/player-parts/xine-part/kxinewidget.cpp.ORI 2012-10-03 21:39:27.711879801 +0200
++++ kaffeine-3.5.13.1/kaffeine/src/player-parts/xine-part/kxinewidget.cpp 2012-10-03 21:40:35.174370892 +0200
+@@ -2642,7 +2642,11 @@
+
+ bool KXineWidget::getAutoplayPluginURLS(const TQString& plugin, TQStringList& list)
+ {
++#if XINE_MAJOR_VERSION > 1 || ( XINE_MAJOR_VERSION == 1 && XINE_MINOR_VERSION >= 2 )
++ const char* const* urls = NULL;
++#else
+ char** urls = NULL;
++#endif
+ int num;
+ int i = 0;
+
diff --git a/redhat/applications/kaffeine/trinity-kaffeine-3.5.13.1.spec b/redhat/applications/kaffeine/trinity-kaffeine-3.5.13.1.spec
new file mode 100644
index 000000000..744b1c066
--- /dev/null
+++ b/redhat/applications/kaffeine/trinity-kaffeine-3.5.13.1.spec
@@ -0,0 +1,282 @@
+# Default version for this component
+%define kdecomp kaffeine
+
+# If TDE is built in a specific prefix (e.g. /opt/trinity), the release will be suffixed with ".opt".
+%if "%{?tde_prefix}" != "/usr"
+%define _variant .opt
+%endif
+
+# TDE 3.5.13 specific building variables
+%define tde_bindir %{tde_prefix}/bin
+%define tde_datadir %{tde_prefix}/share
+%define tde_docdir %{tde_datadir}/doc
+%define tde_includedir %{tde_prefix}/include
+%define tde_libdir %{tde_prefix}/%{_lib}
+%define tde_mandir %{tde_datadir}/man
+
+%define tde_tdeappdir %{tde_datadir}/applications/kde
+%define tde_tdedocdir %{tde_docdir}/tde
+%define tde_tdeincludedir %{tde_includedir}/tde
+%define tde_tdelibdir %{tde_libdir}/trinity
+
+%define _docdir %{tde_docdir}
+
+Name: trinity-%{kdecomp}
+Summary: Xine-based media player
+
+Version: 0.8.8
+Release: 4%{?dist}%{?_variant}
+
+License: GPLv2+
+Group: Applications/Multimedia
+URL: http://kaffeine.sourceforge.net/
+
+Source0: kaffeine-3.5.13.1.tar.gz
+
+# [kaffeine] Add Xine 1.2 support
+Patch1: kaffeine-3.5.13.1-add_xine12_support.patch
+
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+
+BuildRequires: gettext
+BuildRequires: trinity-tdelibs-devel >= 3.5.13.1
+BuildRequires: libvorbis-devel
+BuildRequires: libcdio-devel
+
+%if 0%{?mgaversion} || 0%{?mdkversion}
+BuildRequires: libcdda-devel
+BuildRequires: %{_lib}xext%{?mgaversion:6}-devel
+BuildRequires: %{_lib}xtst-devel
+BuildRequires: %{_lib}xinerama%{?mgaversion:1}-devel
+# dvb
+BuildRequires: kernel-headers
+BuildRequires: libgstreamer-devel >= 0.10
+BuildRequires: libgstreamer-plugins-base-devel >= 0.10
+%else
+BuildRequires: cdparanoia
+BuildRequires: cdparanoia-devel
+%if 0%{?suse_version}
+BuildRequires: libcdio-paranoia-devel
+%endif
+BuildRequires: libXext-devel
+BuildRequires: libXtst-devel
+BuildRequires: libXinerama-devel
+# dvb
+BuildRequires: gstreamer-devel >= 0.10
+%if 0%{?suse_version}
+BuildRequires: gstreamer-0_10-plugins-base-devel
+%else
+BuildRequires: gstreamer-plugins-base-devel >= 0.10
+BuildRequires: glibc-kernheaders
+%endif
+%endif
+
+%if 0%{?rhel} >= 6 || 0%{?fedora} >= 15
+BuildRequires: libxcb-devel
+%endif
+
+# xine-lib
+%if 0%{?mgaversion} || 0%{?mdkversion} || 0%{?suse_version}
+BuildRequires: libxine-devel
+%endif
+%if 0%{?rhel} || 0%{?fedora}
+BuildRequires: xine-lib-devel
+%endif
+
+Requires: %{name}-libs = %{version}-%{release}
+
+%description
+Kaffeine is a xine-based media player for KDE. It plays back CDs,
+and VCDs, and can decode all (local or streamed) multimedia formats
+supported by xine-lib.
+Additionally, Kaffeine is fully integrated in KDE, it supports drag
+and drop and provides an editable playlist, a bookmark system, a
+Konqueror plugin, OSD and much more.
+
+%files -f %{kdecomp}.lang
+%defattr(-,root,root,-)
+%doc AUTHORS ChangeLog COPYING README TODO
+%{tde_bindir}/kaffeine
+%{tde_libdir}/libkaffeinepart.so
+%{tde_tdelibdir}/lib*.*
+%{tde_datadir}/appl*/*/*.desktop
+%{tde_datadir}/apps/gstreamerpart/
+%{tde_datadir}/apps/kaffeine/
+%{tde_datadir}/apps/konqueror/servicemenus/*.desktop
+%{tde_datadir}/apps/profiles/
+%{tde_datadir}/icons/hicolor/*/*/*
+%{tde_datadir}/mimelnk/*/*.desktop
+%{tde_datadir}/service*/*.desktop
+%{tde_tdedocdir}/HTML/en/kaffeine/
+
+%post
+touch --no-create %{tde_datadir}/icons/hicolor ||:
+gtk-update-icon-cache -q %{tde_datadir}/icons/hicolor 2> /dev/null ||:
+update-desktop-database >& /dev/null ||:
+/sbin/ldconfig || :
+
+%postun
+touch --no-create %{_datadir}/icons/hicolor ||:
+gtk-update-icon-cache -q %{_datadir}/icons/hicolor 2> /dev/null ||:
+update-desktop-database >& /dev/null ||:
+/sbin/ldconfig || :
+
+##########
+
+%package devel
+Summary: Development files for %{name}
+Group: Development/Libraries
+Requires: %{name}-libs = %{version}-%{release}
+Requires: trinity-tdelibs-devel
+
+%description devel
+%{summary}.
+
+%files devel
+%defattr(-,root,root,-)
+%{tde_tdeincludedir}/kaffeine/
+%{tde_libdir}/lib*.so
+%exclude %{tde_libdir}/libkaffeinepart.so
+
+%post devel
+/sbin/ldconfig || :
+
+%postun devel
+/sbin/ldconfig || :
+
+##########
+
+%package libs
+Summary: %{name} runtime libraries
+Group: System Environment/Libraries
+
+# include to be paranoid, installing libs-only is still mostly untested -- Rex
+Requires: %{name} = %{version}-%{release}
+
+%description libs
+%{summary}.
+
+%files libs
+%defattr(-,root,root,-)
+%{tde_libdir}/lib*.so.*
+
+%post libs
+/sbin/ldconfig || :
+
+%postun libs
+/sbin/ldconfig || :
+
+##########
+
+
+%if 0%{?suse_version}
+%debug_package
+%endif
+
+
+%prep
+%setup -q -n kaffeine-3.5.13.1
+%patch1 -p1 -b .xine12
+
+# Ugly hack to modify TQT include directory inside autoconf files.
+# If TQT detection fails, it fallbacks to TQT4 instead of TQT3 !
+%__sed -i admin/acinclude.m4.in \
+ -e "s|/usr/include/tqt|%{tde_includedir}/tqt|g" \
+ -e "s|kde_htmldir='.*'|kde_htmldir='%{tde_tdedocdir}/HTML'|g"
+
+%__cp "/usr/share/aclocal/libtool.m4" "admin/libtool.m4.in"
+%__cp "/usr/share/libtool/config/ltmain.sh" "admin/ltmain.sh" || %__cp "/usr/share/libtool/ltmain.sh" "admin/ltmain.sh"
+%__make -f "admin/Makefile.common"
+
+%build
+unset QTDIR || : ; source /etc/profile.d/qt3.sh
+export PATH="%{tde_bindir}:${PATH}"
+export LDFLAGS="-L%{tde_libdir} -I%{tde_includedir}"
+
+
+%configure \
+ --prefix=%{tde_prefix} \
+ --exec-prefix=%{tde_prefix} \
+ --bindir=%{tde_bindir} \
+ --libdir=%{tde_libdir} \
+ --datadir=%{tde_datadir} \
+ --includedir=%{tde_tdeincludedir} \
+ --mandir=%{tde_mandir} \
+ --enable-new-ldflags \
+ --disable-debug --disable-warnings \
+ --disable-dependency-tracking --enable-final \
+ --disable-rpath \
+ --with-xinerama \
+ --with-gstreamer \
+ --without-lame \
+ --with-extra-includes=%{tde_includedir}/tqt \
+ --with-extra-libs=%{_prefix}/%{_lib} \
+ --enable-closure \
+%if 0%{?rhel} > 0 && 0%{?rhel} <= 5
+ --without-dvb \
+%endif
+
+
+%__make %{?_smp_mflags}
+
+
+%install
+export PATH="%{tde_bindir}:${PATH}"
+%__rm -rf $RPM_BUILD_ROOT
+%__make install DESTDIR=$RPM_BUILD_ROOT
+
+## File lists
+# locale's
+%find_lang %{kdecomp}
+# HTML (1.0)
+HTML_DIR=$(kde-config --expandvars --install html)
+if [ -d $RPM_BUILD_ROOT$HTML_DIR ]; then
+for lang_dir in $RPM_BUILD_ROOT$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
+
+# Unpackaged files
+rm -f $RPM_BUILD_ROOT%{tde_libdir}/lib*.la
+rm -f $RPM_BUILD_ROOT%{tde_datadir}/mimelnk/application/x-mplayer2.desktop
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+
+
+%changelog
+* Wed Oct 03 2012 Francois Andriot <francois.andriot@free.fr> - 0.8.8-4
+- Initial build for TDE 3.5.13.1
+
+* Fri Aug 03 2012 Francois Andriot <francois.andriot@free.fr> - 0.8.8-3
+- Add support for Mageia 2 and Mandriva 2011
+- Added automake initialization with proper program name and version [Bug #858] [Commit #4e982fa3]
+- Fixed online hyperlink to win32 codecs download location. [Commit #5086f358]
+
+* Tue May 01 2012 Francois Andriot <francois.andriot@free.fr> - 0.8.8-2
+- Rebuilt for Fedora 17
+- Adds more patches from GIT.
+
+* Mon Apr 23 2012 Francois Andriot <francois.andriot@free.fr> - 0.8.8-1
+- Updates version to 0.8.8
+- Fix nominal "tqt" typos and fix slow DVB start. [Bug #729, #899]
+- Change location where Kaffeine stores temporary pipe files from $HOME to the more appropriate $KDEHOME/tmp-$HOSTNAME.
+- Work around Xine crash when displaying still logo image by creating a small movie file to replace it [Bug #511, #559]
+- Add man page
+
+* Sun Dec 04 2011 Francois Andriot <francois.andriot@free.fr> - 0.8.6-2
+- Disable 'libxcb-devel' for RHEL 5 compilation
+- Fix HTML directory location
+
+* Wed Nov 09 2011 Francois Andriot <francois.andriot@free.fr> - 0.8.6-1
+- Spec file based on Fedora 8 'kaffeine-0.8.6-3'
diff --git a/redhat/applications/kaffeine/trinity-kaffeine.spec b/redhat/applications/kaffeine/trinity-kaffeine-3.5.13.spec
index dbc3aefbc..dbc3aefbc 100644
--- a/redhat/applications/kaffeine/trinity-kaffeine.spec
+++ b/redhat/applications/kaffeine/trinity-kaffeine-3.5.13.spec
diff --git a/redhat/applications/katapult/trinity-katapult-3.5.13.1.spec b/redhat/applications/katapult/trinity-katapult-3.5.13.1.spec
new file mode 100644
index 000000000..1e3215db1
--- /dev/null
+++ b/redhat/applications/katapult/trinity-katapult-3.5.13.1.spec
@@ -0,0 +1,196 @@
+# Default version for this component
+%define kdecomp katapult
+
+# If TDE is built in a specific prefix (e.g. /opt/trinity), the release will be suffixed with ".opt".
+%if "%{?tde_prefix}" != "/usr"
+%define _variant .opt
+%endif
+
+# TDE 3.5.13 specific building variables
+%define tde_bindir %{tde_prefix}/bin
+%define tde_datadir %{tde_prefix}/share
+%define tde_docdir %{tde_datadir}/doc
+%define tde_includedir %{tde_prefix}/include
+%define tde_libdir %{tde_prefix}/%{_lib}
+%define tde_mandir %{tde_datadir}/man
+%define tde_appdir %{tde_datadir}/applications
+
+%define tde_tdeappdir %{tde_appdir}/kde
+%define tde_tdedocdir %{tde_docdir}/tde
+%define tde_tdeincludedir %{tde_includedir}/tde
+%define tde_tdelibdir %{tde_libdir}/trinity
+
+%define _docdir %{tde_docdir}
+
+
+Name: trinity-%{kdecomp}
+Summary: Faster access to applications, bookmarks, and other items.
+Version: 0.3.2.1
+Release: 5%{?dist}%{?_variant}
+
+License: GPLv2+
+Group: Applications/Utilities
+
+Vendor: Trinity Project
+Packager: Francois Andriot <francois.andriot@free.fr>
+URL: http://www.trinitydesktop.org/
+
+Prefix: %{tde_prefix}
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+
+Source0: %{kdecomp}-3.5.13.1.tar.gz
+
+
+BuildRequires: trinity-tqtinterface-devel >= 3.5.13.1
+BuildRequires: trinity-tdelibs-devel >= 3.5.13.1
+BuildRequires: trinity-tdebase-devel >= 3.5.13.1
+BuildRequires: desktop-file-utils
+
+%description
+Katapult is an application for TDE, designed to allow faster access to
+applications, bookmarks, and other items. It is plugin-based, so it can
+launch anything that is has a plugin for. Its display is driven by
+plugins as well, so its appearance is completely customizable. It was
+inspired by Quicksilver for OS X.
+
+
+%if 0%{?suse_version}
+%debug_package
+%endif
+
+
+%prep
+%setup -q -n %{kdecomp}-3.5.13.1
+
+# Ugly hack to modify TQT include directory inside autoconf files.
+# If TQT detection fails, it fallbacks to TQT4 instead of TQT3 !
+%__sed -i "admin/acinclude.m4.in" \
+ -e "s|/usr/include/tqt|%{tde_includedir}/tqt|g" \
+ -e "s|kde_htmldir='.*'|kde_htmldir='%{tde_tdedocdir}/HTML'|g"
+
+%__cp "/usr/share/aclocal/libtool.m4" "admin/libtool.m4.in"
+%__cp "/usr/share/libtool/config/ltmain.sh" "admin/ltmain.sh" || %__cp "/usr/share/libtool/ltmain.sh" "admin/ltmain.sh"
+%__make -f admin/Makefile.common
+
+
+%build
+unset QTDIR; . /etc/profile.d/qt3.sh
+export PATH="%{tde_bindir}:${PATH}"
+export LDFLAGS="-L%{tde_libdir} -I%{tde_includedir}"
+
+%configure \
+ --prefix=%{tde_prefix} \
+ --exec-prefix=%{tde_prefix} \
+ --bindir=%{tde_bindir} \
+ --libdir=%{tde_libdir} \
+ --datadir=%{tde_datadir} \
+ --includedir=%{tde_tdeincludedir} \
+ --disable-rpath \
+ --with-extra-includes=%{tde_includedir}/tqt \
+ --enable-closure
+
+%__make %{?_smp_mflags}
+
+
+%install
+export PATH="%{tde_bindir}:${PATH}"
+%__rm -rf %{buildroot}
+%__make install DESTDIR=%{buildroot}
+
+%find_lang %{kdecomp}
+
+# Removes useless files (-devel ?)
+%__rm -f %{?buildroot}%{tde_libdir}/*.so
+%__rm -f %{?buildroot}%{tde_libdir}/*.la
+
+%clean
+%__rm -rf %{buildroot}
+
+
+%post
+for f in crystalsvg hicolor ; do
+ touch --no-create %{tde_datadir}/icons/${f} || :
+ gtk-update-icon-cache --quiet %{tde_datadir}/icons/${f} || :
+done
+/sbin/ldconfig || :
+update-desktop-database %{tde_appdir} &> /dev/null
+
+%postun
+for f in crystalsvg hicolor ; do
+ touch --no-create %{tde_datadir}/icons/${f} || :
+ gtk-update-icon-cache --quiet %{tde_datadir}/icons/${f} || :
+done
+/sbin/ldconfig || :
+update-desktop-database %{tde_appdir} &> /dev/null
+
+
+%files -f %{kdecomp}.lang
+%defattr(-,root,root,-)
+%doc AUTHORS COPYING
+%{tde_bindir}/katapult
+%{tde_libdir}/libkatapult.so.2
+%{tde_libdir}/libkatapult.so.2.0.0
+%{tde_tdelibdir}/katapult_amarokcatalog.la
+%{tde_tdelibdir}/katapult_amarokcatalog.so
+%{tde_tdelibdir}/katapult_bookmarkcatalog.la
+%{tde_tdelibdir}/katapult_bookmarkcatalog.so
+%{tde_tdelibdir}/katapult_calculatorcatalog.la
+%{tde_tdelibdir}/katapult_calculatorcatalog.so
+%{tde_tdelibdir}/katapult_documentcatalog.la
+%{tde_tdelibdir}/katapult_documentcatalog.so
+%{tde_tdelibdir}/katapult_execcatalog.la
+%{tde_tdelibdir}/katapult_execcatalog.so
+%{tde_tdelibdir}/katapult_glassdisplay.la
+%{tde_tdelibdir}/katapult_glassdisplay.so
+%{tde_tdelibdir}/katapult_googlecatalog.la
+%{tde_tdelibdir}/katapult_googlecatalog.so
+%{tde_tdelibdir}/katapult_o2display.la
+%{tde_tdelibdir}/katapult_o2display.so
+%{tde_tdelibdir}/katapult_programcatalog.la
+%{tde_tdelibdir}/katapult_programcatalog.so
+%{tde_tdelibdir}/katapult_puredisplay.la
+%{tde_tdelibdir}/katapult_puredisplay.so
+%{tde_tdelibdir}/katapult_spellcatalog.la
+%{tde_tdelibdir}/katapult_spellcatalog.so
+%{tde_tdeappdir}/katapult.desktop
+%{tde_datadir}/icons/crystalsvg/128x128/actions/katapultspellcheck.png
+%{tde_datadir}/icons/crystalsvg/scalable/actions/katapultspellcheck.svgz
+%{tde_datadir}/icons/hicolor/128x128/actions/checkmark.png
+%{tde_datadir}/icons/hicolor/128x128/actions/no.png
+%{tde_datadir}/icons/hicolor/128x128/apps/xcalc.png
+%{tde_datadir}/icons/hicolor/*/apps/katapult.png
+%{tde_datadir}/icons/hicolor/scalable/apps/katapult.svgz
+%{tde_datadir}/services/katapult_amarokcatalog.desktop
+%{tde_datadir}/services/katapult_bookmarkcatalog.desktop
+%{tde_datadir}/services/katapult_calculatorcatalog.desktop
+%{tde_datadir}/services/katapult_documentcatalog.desktop
+%{tde_datadir}/services/katapult_execcatalog.desktop
+%{tde_datadir}/services/katapult_glassdisplay.desktop
+%{tde_datadir}/services/katapult_googlecatalog.desktop
+%{tde_datadir}/services/katapult_o2display.desktop
+%{tde_datadir}/services/katapult_programcatalog.desktop
+%{tde_datadir}/services/katapult_puredisplay.desktop
+%{tde_datadir}/services/katapult_spellcatalog.desktop
+%{tde_datadir}/servicetypes/katapultcatalog.desktop
+%{tde_datadir}/servicetypes/katapultdisplay.desktop
+%{tde_tdedocdir}/HTML/en/katapult/
+
+
+%changelog
+* Wed Oct 03 2012 Francois Andriot <francois.andriot@free.fr> - 0.3.2.1-5
+- Initial build for TDE 3.5.13.1
+
+* Tue May 01 2012 Francois Andriot <francois.andriot@free.fr> - 0.3.2.1-4
+- Rebuilt for Fedora 17
+- Fix post and postun
+
+* Fri Nov 25 2011 Francois Andriot <francois.andriot@free.fr> - 0.3.2.1-3
+- Fix HTML directory location
+
+* Sun Oct 30 2011 Francois Andriot <francois.andriot@free.fr> - 0.3.2.1-2
+- Rebuilt for TDE 3.5.13 on RHEL 6, RHEL 5 and Fedora 15
+
+* Tue Sep 14 2011 Francois Andriot <francois.andriot@free.fr> - 0.3.2.1-1
+- Initial build for RHEL 6.0
+- Import to GIT
+
diff --git a/redhat/applications/kbarcode/trinity-kbarcode-3.5.13.1.spec b/redhat/applications/kbarcode/trinity-kbarcode-3.5.13.1.spec
new file mode 100644
index 000000000..15aa61434
--- /dev/null
+++ b/redhat/applications/kbarcode/trinity-kbarcode-3.5.13.1.spec
@@ -0,0 +1,160 @@
+# Default version for this component
+%define kdecomp kbarcode
+
+# If TDE is built in a specific prefix (e.g. /opt/trinity), the release will be suffixed with ".opt".
+%if "%{?tde_prefix}" != "/usr"
+%define _variant .opt
+%endif
+
+# TDE 3.5.13 specific building variables
+%define tde_bindir %{tde_prefix}/bin
+%define tde_datadir %{tde_prefix}/share
+%define tde_docdir %{tde_datadir}/doc
+%define tde_includedir %{tde_prefix}/include
+%define tde_libdir %{tde_prefix}/%{_lib}
+%define tde_mandir %{tde_datadir}/man
+%define tde_appdir %{tde_datadir}/applications
+
+%define tde_tdeappdir %{tde_appdir}/kde
+%define tde_tdedocdir %{tde_docdir}/tde
+%define tde_tdeincludedir %{tde_includedir}/tde
+%define tde_tdelibdir %{tde_libdir}/trinity
+
+%define _docdir %{tde_docdir}
+
+
+Name: trinity-%{kdecomp}
+Summary: barcode and label printing application for Trinity
+Version: 2.0.6
+Release: 2%{?dist}%{?_variant}
+
+License: GPLv2+
+Group: Applications/Utilities
+
+Vendor: Trinity Project
+Packager: Francois Andriot <francois.andriot@free.fr>
+URL: http://www.kbarcode.net
+
+Prefix: %{tde_prefix}
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+
+Source0: %{kdecomp}-3.5.13.1.tar.gz
+
+
+BuildRequires: trinity-tqtinterface-devel >= 3.5.13.1
+BuildRequires: trinity-tdelibs-devel >= 3.5.13.1
+BuildRequires: trinity-tdebase-devel >= 3.5.13.1
+BuildRequires: desktop-file-utils
+BuildRequires: gettext
+
+
+%description
+KBarcode is a barcode and label printing application for Trinity. It can be used
+to print everything from simple business cards up to complex labels with
+several barcodes (e.g. article descriptions).
+
+KBarcode comes with an easy to use WYSIWYG label designer, a setup wizard,
+batch import of data for batch printing labels (directly from the delivery
+note), thousands of predefined labels, database management tools and
+translations in many languages. Even printing more than 10.000 labels in one
+go is no problem for KBarcode. Data for printing can be imported from several
+different data sources, including SQL databases, CSV files and the KDE address
+book.
+
+Additionally it is a simple barcode generator (similar to the old xbarcode you
+might know). All major types of barcodes like EAN, UPC, CODE39 and ISBN are
+supported. Even complex 2D barcodes are supported using third party tools. The
+generated barcodes can be directly printed or you can export them into images
+to use them in another application.
+
+
+%if 0%{?suse_version}
+%debug_package
+%endif
+
+
+%prep
+%setup -q -n %{kdecomp}-3.5.13.1
+
+# Ugly hack to modify TQT include directory inside autoconf files.
+# If TQT detection fails, it fallbacks to TQT4 instead of TQT3 !
+%__sed -i "admin/acinclude.m4.in" \
+ -e "s|/usr/include/tqt|%{tde_includedir}/tqt|g" \
+ -e "s|kde_htmldir='.*'|kde_htmldir='%{tde_tdedocdir}/HTML'|g"
+
+%__cp "/usr/share/aclocal/libtool.m4" "admin/libtool.m4.in"
+%__cp "/usr/share/libtool/config/ltmain.sh" "admin/ltmain.sh" || %__cp "/usr/share/libtool/ltmain.sh" "admin/ltmain.sh"
+%__make -f "admin/Makefile.common"
+
+
+%build
+unset QTDIR; . /etc/profile.d/qt3.sh
+export PATH="%{tde_bindir}:${PATH}"
+export LDFLAGS="-L%{tde_libdir} -I%{tde_includedir}"
+
+%configure \
+ --prefix=%{tde_prefix} \
+ --exec-prefix=%{tde_prefix} \
+ --bindir=%{tde_bindir} \
+ --libdir=%{tde_libdir} \
+ --datadir=%{tde_datadir} \
+ --includedir=%{tde_tdeincludedir} \
+ --disable-rpath \
+ --with-extra-includes=%{_includedir}/tqt
+
+# SMP safe !
+%__make %{?_smp_mflags}
+
+
+%install
+export PATH="%{tde_bindir}:${PATH}"
+%__rm -rf %{buildroot}
+%__make install DESTDIR=%{buildroot}
+
+
+%find_lang %{kdecomp} || touch %{kdecomp}.lang
+
+
+
+%clean
+%__rm -rf %{buildroot}
+
+
+%post
+touch --no-create %{tde_datadir}/icons/hicolor || :
+gtk-update-icon-cache --quiet %{tde_datadir}/icons/hicolor || :
+update-desktop-database %{tde_appdir} &> /dev/null
+
+%postun
+touch --no-create %{tde_datadir}/icons/hicolor || :
+gtk-update-icon-cache --quiet %{tde_datadir}/icons/hicolor || :
+update-desktop-database %{tde_appdir} &> /dev/null
+
+
+%files -f %{kdecomp}.lang
+%defattr(-,root,root,-)
+%doc AUTHORS ChangeLog COPYING NEWS README TODO
+%{tde_bindir}/kbarcode
+%{tde_tdelibdir}/kfile_kbarcode.la
+%{tde_tdelibdir}/kfile_kbarcode.so
+%{tde_tdeappdir}/kbarcode-batch.desktop
+%{tde_tdeappdir}/kbarcode-editor.desktop
+%{tde_tdeappdir}/kbarcode-label.desktop
+%{tde_tdeappdir}/kbarcode-single.desktop
+%{tde_tdeappdir}/kbarcode.desktop
+%{tde_datadir}/apps/kbarcode/
+%{tde_datadir}/icons/hicolor/*/actions/barcode.png
+%{tde_datadir}/icons/hicolor/*/actions/kbarcodeellipse.png
+%{tde_datadir}/icons/hicolor/*/actions/kbarcodegrid.png
+%{tde_datadir}/icons/hicolor/*/actions/kbarcodelinetool.png
+%{tde_datadir}/icons/hicolor/*/actions/kbarcoderect.png
+%{tde_datadir}/icons/hicolor/*/apps/kbarcode.png
+%{tde_datadir}/services/kfile_kbarcode.desktop
+
+
+%changelog
+* Wed Oct 03 2012 Francois Andriot <francois.andriot@free.fr> - 2.0.6-2
+- Initial build for TDE 3.5.13.1
+
+* Wed Nov 30 2011 Francois Andriot <francois.andriot@free.fr> - 2.0.6-1
+- Initial build for RHEL 5, RHEL 6, Fedora 15, Fedora 16
diff --git a/redhat/applications/kbarcode/trinity-kbarcode.spec b/redhat/applications/kbarcode/trinity-kbarcode-3.5.13.spec
index 83e71e5a2..83e71e5a2 100644
--- a/redhat/applications/kbarcode/trinity-kbarcode.spec
+++ b/redhat/applications/kbarcode/trinity-kbarcode-3.5.13.spec
diff --git a/redhat/applications/kbfx/kbfx-3.5.13.1-fix_install_directories.patch b/redhat/applications/kbfx/kbfx-3.5.13.1-fix_install_directories.patch
new file mode 100644
index 000000000..93d0a406e
--- /dev/null
+++ b/redhat/applications/kbfx/kbfx-3.5.13.1-fix_install_directories.patch
@@ -0,0 +1,12 @@
+--- kbfx-3.5.13.1/doc/CMakeLists.txt.dir 2012-07-05 19:59:27.000000000 +0200
++++ kbfx-3.5.13.1/doc/CMakeLists.txt 2012-10-03 22:55:59.145960716 +0200
+@@ -13,5 +13,8 @@
+ # TODO
+ )
+
++#add_subdirectory( common )
++#add_subdirectory( en )
++
+ INSTALL(FILES ${DOCFILES}
+- DESTINATION ${SHARE_INSTALL_PREFIX}/doc/kbfx)
++ DESTINATION ${DOC_INSTALL_DIR}/kbfx)
diff --git a/redhat/applications/kbfx/trinity-kbfx-3.5.13.1.spec b/redhat/applications/kbfx/trinity-kbfx-3.5.13.1.spec
new file mode 100644
index 000000000..ce10f2139
--- /dev/null
+++ b/redhat/applications/kbfx/trinity-kbfx-3.5.13.1.spec
@@ -0,0 +1,169 @@
+# Default version for this component
+%define kdecomp kbfx
+
+# If TDE is built in a specific prefix (e.g. /opt/trinity), the release will be suffixed with ".opt".
+%if "%{?tde_prefix}" != "/usr"
+%define _variant .opt
+%endif
+
+# TDE 3.5.13 specific building variables
+%define tde_bindir %{tde_prefix}/bin
+%define tde_datadir %{tde_prefix}/share
+%define tde_docdir %{tde_datadir}/doc
+%define tde_includedir %{tde_prefix}/include
+%define tde_libdir %{tde_prefix}/%{_lib}
+%define tde_mandir %{tde_datadir}/man
+%define tde_appdir %{tde_datadir}/applications
+
+%define tde_tdeappdir %{tde_appdir}/kde
+%define tde_tdedocdir %{tde_docdir}/tde
+%define tde_tdeincludedir %{tde_includedir}/tde
+%define tde_tdelibdir %{tde_libdir}/trinity
+
+%define _docdir %{tde_docdir}
+
+
+Name: trinity-%{kdecomp}
+Summary: an alternative to K-Menu for KDE [Trinity]
+Version: 0.4.9.3.1
+Release: 2%{?dist}%{?_variant}
+
+License: GPLv2+
+Group: Applications/Utilities
+
+Vendor: Trinity Project
+Packager: Francois Andriot <francois.andriot@free.fr>
+URL: http://www.trinitydesktop.org/
+
+Prefix: %{tde_prefix}
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+
+Source0: %{kdecomp}-3.5.13.1.tar.gz
+
+# [kbfx] Some files are installed in wrong directories ...
+Patch2: kbfx-3.5.13.1-fix_install_directories.patch
+
+
+BuildRequires: trinity-tqtinterface-devel >= 3.5.13.1
+BuildRequires: trinity-tdelibs-devel >= 3.5.13.1
+BuildRequires: trinity-tdebase-devel >= 3.5.13.1
+BuildRequires: desktop-file-utils
+
+%description
+KBFX is an alternative to the classical K-Menu button and its menu.
+It improves the user experience by enabling him to set a bigger (and thus more
+visible) start button and by finally replacing the Win95-like K-Menu.
+If you still want the old menu, because you're used to it, it is still
+available as an option in kbfx. We recommend, however, that you give the Spinx
+bar a try.
+
+Homepage: http://www.kbfx.org
+
+
+%if 0%{?suse_version}
+%debug_package
+%endif
+
+
+%prep
+%setup -q -n %{kdecomp}-3.5.13.1
+%patch2 -p1 -b .dir
+
+# Fix TDE executable path in 'CMakeLists.txt' ...
+%__sed -i "CMakeLists.txt" \
+ -e "s|/usr/bin/uic-tqt|%{tde_bindir}/uic-tqt|" \
+ -e "s|/usr/bin/tmoc|%{tde_bindir}/tmoc|" \
+ -e "s|/usr/include/tqt|%{tde_includedir}/tqt|"
+
+%build
+unset QTDIR || : ; . /etc/profile.d/qt3.sh
+export PATH="%{tde_bindir}:${PATH}"
+export PKG_CONFIG_PATH="%{tde_libdir}/pkgconfig"
+export CMAKE_INCLUDE_PATH="%{tde_includedir}:%{tde_tdeincludedir}:%{tde_includedir}/tqt"
+
+%if 0%{?rhel} || 0%{?fedora} || 0%{?suse_version}
+%__mkdir_p build
+cd build
+%endif
+
+%cmake \
+ -DCMAKE_INSTALL_PREFIX=%{tde_prefix} \
+ -DINCLUDE_INSTALL_DIR=%{tde_tdeincludedir} \
+ -DDATA_INSTALL_DIR=%{tde_datadir}/apps \
+ -DMIME_INSTALL_DIR=%{tde_datadir}/mimelnk \
+ -DXDG_APPS_INSTALL_DIR=%{tde_tdeappdir} \
+ -DDOC_INSTALL_DIR=%{tde_tdedocdir} \
+ -DLIB_INSTALL_DIR=%{tde_libdir} \
+ -DUSE_STRIGI=OFF \
+ -DUSE_MENUDRAKE=OFF \
+ -DBUILD_DOC=ON \
+ -DBUILD_ALL=OFF \
+ ..
+
+# Not SMP safe !
+%__make
+
+
+%install
+export PATH="%{tde_bindir}:${PATH}"
+%__rm -rf %{buildroot}
+%__make install DESTDIR=%{buildroot} -C build VERBOSE=1
+
+
+%clean
+%__rm -rf %{buildroot}
+
+
+%post
+/sbin/ldconfig
+touch --no-create %{tde_datadir}/icons/hicolor || :
+gtk-update-icon-cache --quiet %{tde_datadir}/icons/hicolor || :
+update-desktop-database %{tde_appdir} &> /dev/null
+
+%postun
+/sbin/ldconfig
+touch --no-create %{tde_datadir}/icons/hicolor || :
+gtk-update-icon-cache --quiet %{tde_datadir}/icons/hicolor || :
+update-desktop-database %{tde_appdir} &> /dev/null
+
+
+%files
+%defattr(-,root,root,-)
+%{tde_bindir}/kbfxconfigapp
+%{tde_tdeincludedir}/kbfx/
+%{tde_libdir}/kbfx/plugins/libkbfxplasmadataplasmoid.la
+%{tde_libdir}/kbfx/plugins/libkbfxplasmadataplasmoid.so
+%{tde_libdir}/kbfx/plugins/libkbfxplasmadatasettings.la
+%{tde_libdir}/kbfx/plugins/libkbfxplasmadatasettings.so
+%{tde_libdir}/kbfx/plugins/libkbfxplasmadatastub.la
+%{tde_libdir}/kbfx/plugins/libkbfxplasmadatastub.so
+%{tde_libdir}/kbfx/plugins/libkbfxplasmarecentstuff.la
+%{tde_libdir}/kbfx/plugins/libkbfxplasmarecentstuff.so
+%{tde_libdir}/libkbfxcommon.la
+%{tde_libdir}/libkbfxcommon.so
+%{tde_libdir}/libkbfxdata.la
+%{tde_libdir}/libkbfxdata.so
+%{tde_tdelibdir}/kbfxspinx.la
+%{tde_tdelibdir}/kbfxspinx.so
+%{tde_tdeappdir}/kbfx_theme.desktop
+%{tde_tdeappdir}/kbfxconfigapp.desktop
+%{tde_datadir}/apps/kbfx/skins/*/*
+%{tde_datadir}/apps/kbfxconfigapp/kbfxconfigappui.rc
+%{tde_datadir}/apps/kicker/applets/kbfxspinx.desktop
+%{tde_datadir}/apps/konqueror/servicemenus/kbfx_install_theme.desktop
+%{tde_datadir}/apps/konqueror/servicemenus/kbfx_prepare_theme.desktop
+#%{tde_tdedocdir}/HTML/en/common/kbfx-*.jpg
+#%{tde_tdedocdir}/HTML/en/kbfxconfigapp/
+%{tde_tdedocdir}/kbfx/
+%{tde_datadir}/icons/hicolor/*/apps/kbfx.png
+%{tde_datadir}/icons/hicolor/*/apps/kbfxconfigapp.png
+#%{tde_datadir}/locale/*/LC_MESSAGES/kbfxconfigapp.mo
+%{tde_datadir}/mimelnk/application/x-kbfxtheme.desktop
+
+
+%changelog
+* Wed Oct 03 2012 Francois Andriot <francois.andriot@free.fr> - 0.4.9.3.1-2
+- Initial build for TDE 3.5.13.1
+
+* Sun Nov 20 2011 Francois Andriot <francois.andriot@free.fr> - 0.4.9.3.1-1
+- Initial build for RHEL 5, RHEL 6, Fedora 15, Fedora 16
diff --git a/redhat/applications/kbfx/trinity-kbfx.spec b/redhat/applications/kbfx/trinity-kbfx-3.5.13.spec
index 7c8887c04..7c8887c04 100644
--- a/redhat/applications/kbfx/trinity-kbfx.spec
+++ b/redhat/applications/kbfx/trinity-kbfx-3.5.13.spec
diff --git a/redhat/applications/kbookreader/trinity-kbookreader-3.5.13.1.spec b/redhat/applications/kbookreader/trinity-kbookreader-3.5.13.1.spec
new file mode 100644
index 000000000..b7465f237
--- /dev/null
+++ b/redhat/applications/kbookreader/trinity-kbookreader-3.5.13.1.spec
@@ -0,0 +1,156 @@
+# Default version for this component
+%define kdecomp kbookreader
+
+# If TDE is built in a specific prefix (e.g. /opt/trinity), the release will be suffixed with ".opt".
+%if "%{?tde_prefix}" != "/usr"
+%define _variant .opt
+%endif
+
+# TDE 3.5.13 specific building variables
+%define tde_bindir %{tde_prefix}/bin
+%define tde_datadir %{tde_prefix}/share
+%define tde_docdir %{tde_datadir}/doc
+%define tde_includedir %{tde_prefix}/include
+%define tde_libdir %{tde_prefix}/%{_lib}
+%define tde_mandir %{tde_datadir}/man
+%define tde_appdir %{tde_datadir}/applications
+
+%define tde_tdeappdir %{tde_appdir}/kde
+%define tde_tdedocdir %{tde_docdir}/tde
+%define tde_tdeincludedir %{tde_includedir}/tde
+%define tde_tdelibdir %{tde_libdir}/trinity
+
+%define _docdir %{tde_docdir}
+
+
+Name: trinity-%{kdecomp}
+Summary: eBook reader for Trinity.
+Version: 0.2.0
+Release: 3%{?dist}%{?_variant}
+
+License: GPLv2+
+Group: Applications/Utilities
+
+Vendor: Trinity Project
+Packager: Francois Andriot <francois.andriot@free.fr>
+URL: http://www.trinitydesktop.org/
+
+Prefix: %{_prefix}
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+
+Source0: %{kdecomp}-3.5.13.1.tar.gz
+
+
+BuildRequires: trinity-tqtinterface-devel >= 3.5.13.1
+BuildRequires: trinity-arts-devel >= 3.5.13.1
+BuildRequires: trinity-tdelibs-devel >= 3.5.13.1
+BuildRequires: trinity-tdebase-devel >= 3.5.13.1
+BuildRequires: desktop-file-utils
+
+
+%description
+kbookreader is an application which allows you to view eBooks
+within the Trinity Desktop Environment.
+
+
+%if 0%{?suse_version}
+%debug_package
+%endif
+
+
+%prep
+%setup -q -n %{kdecomp}-3.5.13.1
+
+# Ugly hack to modify TQT include directory inside autoconf files.
+# If TQT detection fails, it fallbacks to TQT4 instead of TQT3 !
+%__sed -i admin/acinclude.m4.in \
+ -e "s|/usr/include/tqt|%{tde_includedir}/tqt|g" \
+ -e "s|kde_htmldir='.*'|kde_htmldir='%{tde_tdedocdir}/HTML'|g"
+
+%__cp "/usr/share/aclocal/libtool.m4" "admin/libtool.m4.in"
+%__cp "/usr/share/libtool/config/ltmain.sh" "admin/ltmain.sh" || %__cp "/usr/share/libtool/ltmain.sh" "admin/ltmain.sh"
+%__make -f admin/Makefile.common
+
+
+%build
+unset QTDIR; . /etc/profile.d/qt3.sh
+export PATH="%{tde_bindir}:${PATH}"
+export LDFLAGS="-L%{tde_libdir} -I%{tde_includedir}"
+
+%configure \
+ --prefix=%{tde_prefix} \
+ --exec-prefix=%{tde_prefix} \
+ --bindir=%{tde_bindir} \
+ --libdir=%{tde_libdir} \
+ --datadir=%{tde_datadir} \
+ --includedir=%{tde_tdeincludedir} \
+ --disable-rpath \
+ --with-extra-includes=%{tde_includedir}/tqt \
+ --enable-closure
+
+%__make %{?_smp_mflags}
+
+
+%install
+export PATH="%{tde_bindir}:${PATH}"
+%__rm -rf %{buildroot}
+%__make install DESTDIR=%{buildroot}
+
+
+
+## File lists
+# 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
+
+
+%clean
+%__rm -rf %{buildroot}
+
+
+%post
+touch --no-create %{tde_datadir}/icons/hicolor || :
+gtk-update-icon-cache --quiet %{tde_datadir}/icons/hicolor || :
+
+%postun
+touch --no-create %{tde_datadir}/icons/hicolor || :
+gtk-update-icon-cache --quiet %{tde_datadir}/icons/hicolor || :
+
+%files
+%defattr(-,root,root,-)
+%doc AUTHORS COPYING
+%{tde_bindir}/bookreader
+%{tde_bindir}/bookreader_client
+%{tde_datadir}/applnk/Utilities/bookreader.desktop
+%{tde_datadir}/apps/bookreader/
+%{tde_datadir}/config.kcfg/bookreader.kcfg
+%{tde_tdedocdir}/HTML/en/bookreader/
+%{tde_datadir}/icons/hicolor/*/apps/bookreader.png
+
+
+
+
+%changelog
+* Wed Oct 03 2012 Francois Andriot <francois.andriot@free.fr> - 0.2.0-3
+- Initial build for TDE 3.5.13.1
+
+* Tue May 01 2012 Francois Andriot <francois.andriot@free.fr> - 0.2.0-2
+- Rebuilt for Fedora 17
+- Fix post and postun
+- Fix HTML directory location
+
+* Sun Oct 30 2011 Francois Andriot <francois.andriot@free.fr> - 0.2.0-1
+- Initial release for TDE 3.5.13 on RHEL 6, RHEL 5 and Fedora 15
diff --git a/redhat/applications/kchmviewer/trinity-kchmviewer-3.5.13.1.spec b/redhat/applications/kchmviewer/trinity-kchmviewer-3.5.13.1.spec
new file mode 100644
index 000000000..aa5cdfad0
--- /dev/null
+++ b/redhat/applications/kchmviewer/trinity-kchmviewer-3.5.13.1.spec
@@ -0,0 +1,158 @@
+# Default version for this component
+%define kdecomp kchmviewer
+
+# If TDE is built in a specific prefix (e.g. /opt/trinity), the release will be suffixed with ".opt".
+%if "%{?tde_prefix}" != "/usr"
+%define _variant .opt
+%endif
+
+# TDE 3.5.13 specific building variables
+%define tde_bindir %{tde_prefix}/bin
+%define tde_datadir %{tde_prefix}/share
+%define tde_docdir %{tde_datadir}/doc
+%define tde_includedir %{tde_prefix}/include
+%define tde_libdir %{tde_prefix}/%{_lib}
+%define tde_mandir %{tde_datadir}/man
+%define tde_appdir %{tde_datadir}/applications
+
+%define tde_tdeappdir %{tde_appdir}/kde
+%define tde_tdedocdir %{tde_docdir}/tde
+%define tde_tdeincludedir %{tde_includedir}/tde
+%define tde_tdelibdir %{tde_libdir}/trinity
+
+%define _docdir %{tde_docdir}
+
+
+Name: trinity-%{kdecomp}
+Summary: CHM viewer for Trinity
+Version: 3.1.2
+Release: 3%{?dist}%{?_variant}
+
+License: GPLv2+
+Group: Applications/Utilities
+
+Vendor: Trinity Project
+Packager: Francois Andriot <francois.andriot@free.fr>
+URL: http://www.trinitydesktop.org/
+
+Prefix: %{_prefix}
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+
+Source0: %{kdecomp}-3.5.13.1.tar.gz
+
+# [kchmviewer] Missing LDFLAGS cause FTBFS on Mageia 2 / Mandriva 2011
+Patch0: kchmviewer-3.5.13-missing_ldflags.patch
+
+BuildRequires: trinity-tqtinterface-devel >= 3.5.13.1
+BuildRequires: trinity-tdelibs-devel >= 3.5.13.1
+BuildRequires: trinity-tdebase-devel >= 3.5.13.1
+BuildRequires: desktop-file-utils
+
+%description
+KchmViewer is a chm (MS HTML help file format) viewer, written in C++.
+Unlike most existing CHM viewers for Unix, it uses Trolltech Qt widget
+library, and does not depend on KDE or GNOME. However, it may be compiled
+with full Trinity support, including Trinity widgets and KIO/KHTML.
+
+The main advantage of KchmViewer is non-English language support. Unlike
+others, KchmViewer in most cases correctly detects help file encoding,
+correctly shows tables of context of Russian, Korean, Chinese and Japanese
+help files, and correctly searches in non-English help files (search for
+MBCS languages - ja/ko/ch is still in progress).
+
+Completely safe and harmless. Does not support JavaScript in any way,
+optionally warns you before opening an external web page, or switching to
+another help file. Shows an appropriate image for every TOC entry.
+
+KchmViewer Has complete chm index support, including multiple index entries,
+cross-links and parent/child entries in index as well as Persistent bookmarks
+support. Correctly detects and shows encoding of any valid chm file.
+
+
+%if 0%{?suse_version}
+%debug_package
+%endif
+
+
+%prep
+%setup -q -n %{kdecomp}-3.5.13.1
+%patch0 -p1
+
+# Ugly hack to modify TQT include directory inside autoconf files.
+# If TQT detection fails, it fallbacks to TQT4 instead of TQT3 !
+%__sed -i admin/acinclude.m4.in \
+ -e "s|/usr/include/tqt|%{tde_includedir}/tqt|g" \
+ -e "s|kde_htmldir='.*'|kde_htmldir='%{tde_tdedocdir}/HTML'|g"
+
+%__cp "/usr/share/aclocal/libtool.m4" "admin/libtool.m4.in"
+%__cp "/usr/share/libtool/config/ltmain.sh" "admin/ltmain.sh" || %__cp "/usr/share/libtool/ltmain.sh" "admin/ltmain.sh"
+%__make -f "admin/Makefile.common"
+
+
+%build
+unset QTDIR || : ; . /etc/profile.d/qt3.sh
+export PATH="%{tde_bindir}:${PATH}"
+export LDFLAGS="-L%{tde_libdir} -I%{_includedir}"
+
+%configure \
+ --prefix=%{tde_prefix} \
+ --exec-prefix=%{tde_prefix} \
+ --bindir=%{tde_bindir} \
+ --libdir=%{tde_libdir} \
+ --datadir=%{tde_datadir} \
+ --includedir=%{tde_tdeincludedir} \
+ --disable-rpath \
+ --with-x \
+ --with-kde \
+ --with-extra-includes=%{_includedir}/tqt \
+ --enable-closure
+
+
+%__make %{?_smp_mflags}
+
+
+%install
+export PATH="%{tde_bindir}:${PATH}"
+%__rm -rf %{buildroot}
+%__make install DESTDIR=%{buildroot}
+
+%find_lang %{kdecomp}
+
+# Removes useless files
+%__rm -f %{?buildroot}%{tde_libdir}/*.a
+
+%clean
+%__rm -rf %{buildroot}
+
+
+%post
+touch --no-create %{tde_datadir}/icons/crystalsvg || :
+gtk-update-icon-cache --quiet %{tde_datadir}/icons/crystalsvg || :
+
+%postun
+touch --no-create %{tde_datadir}/icons/crystalsvg || :
+gtk-update-icon-cache --quiet %{tde_datadir}/icons/crystalsvg || :
+
+
+%files -f %{kdecomp}.lang
+%defattr(-,root,root,-)
+%doc ChangeLog COPYING FAQ README
+%{tde_bindir}/kchmviewer
+%{tde_tdelibdir}/kio_msits.la
+%{tde_tdelibdir}/kio_msits.so
+%{tde_datadir}/applnk/kchmviewer.desktop
+%{tde_datadir}/icons/crystalsvg/*/apps/kchmviewer.png
+%{tde_datadir}/services/msits.protocol
+
+
+%changelog
+* Wed Oct 03 2012 Francois Andriot <francois.andriot@free.fr> - 3.1.2-3
+- Initial build for TDE 3.5.13.1
+
+* Tue May 01 2012 Francois Andriot <francois.andriot@free.fr> - 3.1.2-2
+- Rebuilt for Fedora 17
+- Fix post and postun
+- Fix HTML directory location
+
+* Sat Nov 19 2011 Francois Andriot <francois.andriot@free.fr> - 3.1.2-1
+- Initial build for RHEL 5, RHEL 6, Fedora 15, Fedora 16
diff --git a/redhat/applications/kchmviewer/trinity-kchmviewer.spec b/redhat/applications/kchmviewer/trinity-kchmviewer-3.5.13.spec
index c3fb589ab..c3fb589ab 100644
--- a/redhat/applications/kchmviewer/trinity-kchmviewer.spec
+++ b/redhat/applications/kchmviewer/trinity-kchmviewer-3.5.13.spec
diff --git a/redhat/applications/kcmautostart/trinity-kcmautostart-3.5.13.1.spec b/redhat/applications/kcmautostart/trinity-kcmautostart-3.5.13.1.spec
new file mode 100644
index 000000000..7c9c6949c
--- /dev/null
+++ b/redhat/applications/kcmautostart/trinity-kcmautostart-3.5.13.1.spec
@@ -0,0 +1,125 @@
+# Default version for this component
+%define kdecomp kchmviewer
+
+# If TDE is built in a specific prefix (e.g. /opt/trinity), the release will be suffixed with ".opt".
+%if "%{?tde_prefix}" != "/usr"
+%define _variant .opt
+%endif
+
+# TDE 3.5.13 specific building variables
+%define tde_bindir %{tde_prefix}/bin
+%define tde_datadir %{tde_prefix}/share
+%define tde_docdir %{tde_datadir}/doc
+%define tde_includedir %{tde_prefix}/include
+%define tde_libdir %{tde_prefix}/%{_lib}
+%define tde_mandir %{tde_datadir}/man
+%define tde_appdir %{tde_datadir}/applications
+
+%define tde_tdeappdir %{tde_appdir}/kde
+%define tde_tdedocdir %{tde_docdir}/tde
+%define tde_tdeincludedir %{tde_includedir}/tde
+%define tde_tdelibdir %{tde_libdir}/trinity
+
+%define _docdir %{tde_docdir}
+
+
+Name: trinity-kcmautostart
+Summary: Manage applications automatic startup.
+Version: 1.0
+Release: 2%{?dist}%{?_variant}
+
+License: GPLv2+
+Group: Applications/Utilities
+
+Vendor: Trinity Project
+Packager: Francois Andriot <francois.andriot@free.fr>
+URL: http://www.trinitydesktop.org/
+
+Prefix: %{_prefix}
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+
+Source0: kcmautostart-3.5.13.tar.gz
+
+# [kcmautostart] Fix FTBFS with TDE 3.5.13
+Patch1: kcmautostart-3.5.13-ftbfs.patch
+# [kcmautostart] Add French support
+Patch2: kcmautostart-3.5.13-add_french.patch
+
+BuildRequires: trinity-tqtinterface-devel >= 3.5.13.1
+BuildRequires: trinity-arts-devel >= 3.5.13.1
+BuildRequires: trinity-tdelibs-devel >= 3.5.13.1
+BuildRequires: trinity-tdebase-devel >= 3.5.13.1
+BuildRequires: desktop-file-utils
+BuildRequires: gcc-c++
+
+Requires: trinity-kdebase
+
+%description
+%{summary}
+
+%if 0%{?suse_version}
+%debug_package
+%endif
+
+
+%prep
+%setup -q -a 0 -n applications/kcmautostart
+%patch1 -p1
+%patch2 -p1
+
+# Ugly hack to modify TQT include directory inside autoconf files.
+# If TQT detection fails, it fallbacks to TQT4 instead of TQT3 !
+%__sed -i admin/acinclude.m4.in \
+ -e "s|/usr/include/tqt|%{tde_includedir}/tqt|g" \
+ -e "s|kde_htmldir='.*'|kde_htmldir='%{tde_tdedocdir}/HTML'|g"
+
+%__cp -f "/usr/share/aclocal/libtool.m4" "admin/libtool.m4.in"
+%__cp -f "/usr/share/libtool/config/ltmain.sh" "admin/ltmain.sh" || %__cp -f "/usr/share/libtool/ltmain.sh" "admin/ltmain.sh"
+%__make -f "admin/Makefile.common"
+
+
+%build
+unset QTDIR || : ; . /etc/profile.d/qt3.sh
+export PATH="%{tde_bindir}:${PATH}"
+export LDFLAGS="-L%{tde_libdir} -I%{tde_includedir}"
+
+%configure \
+ --prefix=%{tde_prefix} \
+ --exec-prefix=%{tde_prefix} \
+ --bindir=%{tde_bindir} \
+ --libdir=%{tde_libdir} \
+ --datadir=%{tde_datadir} \
+ --includedir=%{tde_tdeincludedir} \
+ --disable-rpath \
+ --with-extra-includes=%{tde_includedir}/tqt \
+ --disable-static
+
+%__make %{?_smp_mflags}
+
+
+%install
+export PATH="%{tde_bindir}:${PATH}"
+%__rm -rf %{buildroot}
+%__make install DESTDIR=%{buildroot}
+
+%find_lang autostart
+
+%clean
+%__rm -rf %{buildroot}
+
+
+%files -f autostart.lang
+%defattr(-,root,root,-)
+%doc AUTHORS ChangeLog COPYING INSTALL NEWS README TODO
+%{tde_tdelibdir}/kcm_autostart.la
+%{tde_tdelibdir}/kcm_autostart.so
+%{tde_tdeappdir}/autostart.desktop
+%{tde_tdedocdir}/HTML/en/autostart/
+
+
+%changelog
+* Wed Oct 03 2012 Francois Andriot <francois.andriot@free.fr> - 1.0-2
+- Initial build for TDE 3.5.13.1
+
+* Thu May 10 2012 Francois Andriot <francois.andriot@free.fr> - 1.0-1
+- Initial build for TDE 3.5.13
diff --git a/redhat/applications/kcpuload/trinity-kcpuload-3.5.13.1.spec b/redhat/applications/kcpuload/trinity-kcpuload-3.5.13.1.spec
new file mode 100644
index 000000000..5c688778a
--- /dev/null
+++ b/redhat/applications/kcpuload/trinity-kcpuload-3.5.13.1.spec
@@ -0,0 +1,139 @@
+# Default version for this component
+%define kdecomp kcpuload
+
+# If TDE is built in a specific prefix (e.g. /opt/trinity), the release will be suffixed with ".opt".
+%if "%{?tde_prefix}" != "/usr"
+%define _variant .opt
+%endif
+
+# TDE 3.5.13 specific building variables
+%define tde_bindir %{tde_prefix}/bin
+%define tde_datadir %{tde_prefix}/share
+%define tde_docdir %{tde_datadir}/doc
+%define tde_includedir %{tde_prefix}/include
+%define tde_libdir %{tde_prefix}/%{_lib}
+%define tde_mandir %{tde_datadir}/man
+%define tde_appdir %{tde_datadir}/applications
+
+%define tde_tdeappdir %{tde_appdir}/kde
+%define tde_tdedocdir %{tde_docdir}/tde
+%define tde_tdeincludedir %{tde_includedir}/tde
+%define tde_tdelibdir %{tde_libdir}/trinity
+
+%define _docdir %{tde_docdir}
+
+
+Name: trinity-%{kdecomp}
+Summary: a CPU meter for Kicker [Trinity]
+Version: 2.00
+Release: 3%{?dist}%{?_variant}
+
+License: GPLv2+
+Group: Applications/Utilities
+
+Vendor: Trinity Project
+Packager: Francois Andriot <francois.andriot@free.fr>
+URL: http://www.trinitydesktop.org/
+
+Prefix: %{_prefix}
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+
+Source0: %{kdecomp}-3.5.13.1.tar.gz
+
+BuildRequires: trinity-tqtinterface-devel >= 3.5.13.1
+BuildRequires: trinity-tdelibs-devel >= 3.5.13.1
+BuildRequires: trinity-tdebase-devel >= 3.5.13.1
+BuildRequires: desktop-file-utils
+BuildRequires: gettext
+
+
+%description
+KCPULoad is a small program for Kicker (the TDE panel). It shows a
+recent history of CPU usage in the form of one or two configurable
+diagrams in the system tray. These diagrams have settings for colours
+and various different styles.
+
+KCPULoad has support for SMP and separate user/system loads.
+
+
+%if 0%{?suse_version}
+%debug_package
+%endif
+
+
+%prep
+%setup -q -n %{kdecomp}-3.5.13.1
+
+# Ugly hack to modify TQT include directory inside autoconf files.
+# If TQT detection fails, it fallbacks to TQT4 instead of TQT3 !
+%__sed -i admin/acinclude.m4.in \
+ -e "s|/usr/include/tqt|%{tde_includedir}/tqt|g" \
+ -e "s|kde_htmldir='.*'|kde_htmldir='%{tde_tdedocdir}/HTML'|g"
+
+%__cp "/usr/share/aclocal/libtool.m4" "admin/libtool.m4.in"
+%__cp "/usr/share/libtool/config/ltmain.sh" "admin/ltmain.sh" || %__cp "/usr/share/libtool/ltmain.sh" "admin/ltmain.sh"
+%__make -f "admin/Makefile.common"
+
+
+%build
+unset QTDIR || : ; . /etc/profile.d/qt3.sh
+export PATH="%{tde_bindir}:${PATH}"
+export LDFLAGS="-L%{tde_libdir} -I%{tde_includedir}"
+
+%configure \
+ --prefix=%{tde_prefix} \
+ --exec-prefix=%{tde_prefix} \
+ --bindir=%{tde_bindir} \
+ --libdir=%{tde_libdir} \
+ --datadir=%{tde_datadir} \
+ --includedir=%{tde_tdeincludedir} \
+ --disable-rpath \
+ --with-extra-includes=%{tde_includedir}/tqt
+
+%__make %{?_smp_mflags}
+
+
+%install
+export PATH="%{tde_bindir}:${PATH}"
+%__rm -rf %{buildroot}
+%__make install DESTDIR=%{buildroot}
+
+
+%clean
+%__rm -rf %{buildroot}
+
+
+%post
+for f in crystalsvg locolor ; do
+ touch --no-create %{tde_datadir}/icons/${f} || :
+ gtk-update-icon-cache --quiet %{tde_datadir}/icons/${f} || :
+done
+
+%postun
+for f in crystalsvg locolor ; do
+ touch --no-create %{tde_datadir}/icons/${f} || :
+ gtk-update-icon-cache --quiet %{tde_datadir}/icons/${f} || :
+done
+
+
+%files
+%defattr(-,root,root,-)
+%{tde_bindir}/kcpuload
+%{tde_datadir}/applnk/System/kcpuload.desktop
+%{tde_datadir}/apps/kcpuload/icons/*/*/*/*.png
+%{tde_datadir}/icons/crystalsvg/*/apps/kcpuload.png
+%{tde_datadir}/icons/locolor/*/apps/kcpuload.png
+%{tde_tdedocdir}/HTML/en/kcpuload/
+
+
+%changelog
+* Wed Oct 03 2012 Francois Andriot <francois.andriot@free.fr> - 2.00-3
+- Initial build for TDE 3.5.13.1
+
+* Tue May 01 2012 Francois Andriot <francois.andriot@free.fr> - 2.00-2
+- Rebuilt for Fedora 17
+- Fix post and postun
+- Fix HTML directory location
+
+* Sat Nov 19 2011 Francois Andriot <francois.andriot@free.fr> - 2.00-1
+- Initial build for RHEL 5, RHEL 6, Fedora 15, Fedora 16
diff --git a/redhat/applications/kcpuload/trinity-kcpuload.spec b/redhat/applications/kcpuload/trinity-kcpuload-3.5.13.spec
index e1fde24ab..e1fde24ab 100644
--- a/redhat/applications/kcpuload/trinity-kcpuload.spec
+++ b/redhat/applications/kcpuload/trinity-kcpuload-3.5.13.spec
diff --git a/redhat/applications/kdbusnotification/trinity-kdbusnotification-3.5.13.1.spec b/redhat/applications/kdbusnotification/trinity-kdbusnotification-3.5.13.1.spec
new file mode 100644
index 000000000..c75906dd0
--- /dev/null
+++ b/redhat/applications/kdbusnotification/trinity-kdbusnotification-3.5.13.1.spec
@@ -0,0 +1,129 @@
+# Default version for this component
+%define kdecomp kdbusnotification
+
+# If TDE is built in a specific prefix (e.g. /opt/trinity), the release will be suffixed with ".opt".
+%if "%{?tde_prefix}" != "/usr"
+%define _variant .opt
+%endif
+
+# TDE 3.5.13 specific building variables
+%define tde_bindir %{tde_prefix}/bin
+%define tde_datadir %{tde_prefix}/share
+%define tde_docdir %{tde_datadir}/doc
+%define tde_includedir %{tde_prefix}/include
+%define tde_libdir %{tde_prefix}/%{_lib}
+%define tde_mandir %{tde_datadir}/man
+%define tde_appdir %{tde_datadir}/applications
+
+%define tde_tdeappdir %{tde_appdir}/kde
+%define tde_tdedocdir %{tde_docdir}/tde
+%define tde_tdeincludedir %{tde_includedir}/tde
+%define tde_tdelibdir %{tde_libdir}/trinity
+
+%define _docdir %{tde_docdir}
+
+
+Name: trinity-%{kdecomp}
+Summary: a DBUS notification service [Trinity]
+
+Version: 0.1
+Release: 3%{?dist}%{?_variant}
+
+License: GPLv2+
+Group: Applications/Utilities
+
+Vendor: Trinity Project
+Packager: Francois Andriot <francois.andriot@free.fr>
+URL: http://www.trinitydesktop.org/
+
+Prefix: %{tde_prefix}
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+
+Source0: %{kdecomp}-3.5.13.1.tar.gz
+
+BuildRequires: trinity-tqtinterface-devel >= 3.5.13.1
+BuildRequires: trinity-arts-devel >= 3.5.13.1
+BuildRequires: trinity-tdelibs-devel >= 3.5.13.1
+BuildRequires: trinity-tdebase-devel >= 3.5.13.1
+BuildRequires: desktop-file-utils
+BuildRequires: gtk2-devel
+
+%if 0%{?suse_version}
+BuildRequires: dbus-1-glib-devel
+%else
+BuildRequires: dbus-glib-devel
+%endif
+
+%description
+kdbusnotification is a small program for Trinity that displays
+DBUS notifications via unobtrusive, easily dismissed passive popups.
+
+
+%if 0%{?suse_version}
+%debug_package
+%endif
+
+
+%prep
+%setup -q -n %{kdecomp}-3.5.13.1
+
+# Ugly hack to modify TQT include directory inside autoconf files.
+# If TQT detection fails, it fallbacks to TQT4 instead of TQT3 !
+%__sed -i admin/acinclude.m4.in \
+ -e "s|/usr/include/tqt|%{tde_includedir}/tqt|g" \
+ -e "s|kde_htmldir='.*'|kde_htmldir='%{tde_tdedocdir}/HTML'|g"
+
+%__cp -f "/usr/share/aclocal/libtool.m4" "admin/libtool.m4.in"
+%__cp -f "/usr/share/libtool/config/ltmain.sh" "admin/ltmain.sh" || %__cp -f "/usr/share/libtool/ltmain.sh" "admin/ltmain.sh"
+%__make -f "admin/Makefile.common"
+
+
+%build
+unset QTDIR || : ; . /etc/profile.d/qt3.sh
+export PATH="%{tde_bindir}:${PATH}"
+export LDFLAGS="-L%{tde_libdir} -I%{tde_includedir}"
+
+%configure \
+ --prefix=%{tde_prefix} \
+ --exec-prefix=%{tde_prefix} \
+ --bindir=%{tde_bindir} \
+ --libdir=%{tde_libdir} \
+ --datadir=%{tde_datadir} \
+ --includedir=%{tde_tdeincludedir} \
+ --disable-rpath \
+ --with-extra-includes=%{tde_includedir}/tqt \
+ --enable-closure
+
+%__make %{?_smp_mflags}
+
+
+%install
+export PATH="%{tde_bindir}:${PATH}"
+%__rm -rf %{buildroot}
+%__make install DESTDIR=%{buildroot}
+
+
+
+%clean
+%__rm -rf %{buildroot}
+
+
+
+%files
+%defattr(-,root,root,-)
+%{tde_bindir}/notification-daemon-tde
+%{tde_datadir}/autostart/kdbusnotification-autostart.desktop
+
+
+
+%changelog
+* Wed Oct 03 2012 Francois Andriot <francois.andriot@free.fr> - 0.1-3
+- Initial build for TDE 3.5.13.1
+
+* Tue May 01 2012 Francois Andriot <francois.andriot@free.fr> - 0.1-2
+- Rebuilt for Fedora 17
+- Fix HTML directory location
+- Removes post and postun
+
+* Sun Oct 30 2011 Francois Andriot <francois.andriot@free.fr> - 0.1-1
+- Initial release for TDE 3.5.13 on RHEL 6, RHEL 5 and Fedora 15
diff --git a/redhat/applications/kde-guidance/kde-guidance-3.5.13-fix_wine_create_prefix.patch b/redhat/applications/kde-guidance/kde-guidance-3.5.13-fix_wine_create_prefix.patch
new file mode 100644
index 000000000..9bb5fa5b4
--- /dev/null
+++ b/redhat/applications/kde-guidance/kde-guidance-3.5.13-fix_wine_create_prefix.patch
@@ -0,0 +1,73 @@
+--- kde-guidance/wineconfig/winewrite.py.wine 2010-08-12 05:25:24.000000000 +0200
++++ kde-guidance/wineconfig/winewrite.py 2012-08-07 18:43:48.291577133 +0200
+@@ -60,14 +60,14 @@
+ SetShellLinks(drives[26:])
+
+ def SetShellLinks(shelllinks):
+- existingshelllinks = os.listdir(wineread.winepath + "/dosdevices/c:/windows/profiles/" + os.environ['USER'])
++ existingshelllinks = os.listdir(wineread.winepath + "/dosdevices/c:/users/" + os.environ['USER'])
+ set(existingshelllinks)
+ shellregistry = wineread.GetShellRegistry()
+
+ for link in shelllinks:
+ createLink = False
+ if link[1] in existingshelllinks: # The link exists
+- linkpath = wineread.winepath + "/dosdevices/c:/windows/profiles/" + os.environ['USER'] + "/" + link[1]
++ linkpath = wineread.winepath + "/dosdevices/c:/users/" + os.environ['USER'] + "/" + link[1]
+ if link[2]: # The folder is mapped
+ # Compare for changes
+ changed = False
+@@ -98,7 +98,7 @@
+ continue
+
+ if createLink:
+- os.symlink(link[2], wineread.winepath + "/dosdevices/c:/windows/profiles/" + os.environ['USER'] + "/" + link[1])
++ os.symlink(link[2], wineread.winepath + "/dosdevices/c:/windows/users/" + os.environ['USER'] + "/" + link[1])
+ if shellregistry.has_key(link[1]):
+ SetShellRegistry(link)
+
+@@ -426,7 +426,7 @@
+ if not path:
+ path = wineread.default_winepath
+
+- os.system("WINEPREFIX=" + path + " wineprefixcreate --wait")
++ os.system("WINEPREFIX=" + path + " wineboot")
+
+ # ----- Theming -----
+
+@@ -486,4 +486,4 @@
+ winport = ports_translation[port.rstrip("012345678")] +\
+ str(int(port.lstrip("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ")) + 1)
+ os.symlink("/dev/" + port, wineread.winepath + "/dosdevices/" + winport)
+-
+\ Pas de fin de ligne à la fin du fichier
++
+--- kde-guidance/wineconfig/wineread.py.ORI 2012-08-07 18:44:08.910051574 +0200
++++ kde-guidance/wineconfig/wineread.py 2012-08-07 18:44:38.675294351 +0200
+@@ -23,7 +23,7 @@
+ # Assumes the fake windows is installed in ~/.wine
+ default_winepath = os.environ['HOME'] + "/.wine"
+ winepath = default_winepath
+-defaultwinfolderspath = "c:\\windows\\profiles\\" + os.environ['USER']
++defaultwinfolderspath = "c:\\users\\" + os.environ['USER']
+
+ # Where the dll's are
+ default_winebuildpath = "/usr/lib/wine"
+@@ -113,7 +113,7 @@
+ [30,"My Video","","","",""])
+
+ folder_nonexistent = "This folder does not exist, please map it."
+-profilesdirectory = winepath + "/dosdevices/c:/windows/profiles/" + os.environ['USER']
++profilesdirectory = winepath + "/dosdevices/c:/users/" + os.environ['USER']
+
+ def GetEmptyShellLinks():
+ """ Returns a list of important windows folders """
+@@ -537,7 +537,7 @@
+ if not path:
+ path = self.default_winepath
+
+- return os.path.exists(path + "/dosdevices/c:/windows/profiles/" + os.environ['USER']) and \
++ return os.path.exists(path + "/dosdevices/c:/users/" + os.environ['USER']) and \
+ os.path.exists(path + "/dosdevices/c:/windows/system32") and \
+ os.path.exists(path + "/system.reg") and os.path.exists(path + "/userdef.reg") and \
+ os.path.exists(path + "/user.reg")
diff --git a/redhat/applications/kde-guidance/trinity-guidance-3.5.13.1.spec b/redhat/applications/kde-guidance/trinity-guidance-3.5.13.1.spec
new file mode 100644
index 000000000..7fb1419d0
--- /dev/null
+++ b/redhat/applications/kde-guidance/trinity-guidance-3.5.13.1.spec
@@ -0,0 +1,413 @@
+%{!?python_sitearch:%global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
+
+# If TDE is built in a specific prefix (e.g. /opt/trinity), the release will be suffixed with ".opt".
+%if "%{?tde_prefix}" != "/usr"
+%define _variant .opt
+%endif
+
+# TDE 3.5.13 specific building variables
+%define tde_bindir %{tde_prefix}/bin
+%define tde_datadir %{tde_prefix}/share
+%define tde_docdir %{tde_datadir}/doc
+%define tde_includedir %{tde_prefix}/include
+%define tde_libdir %{tde_prefix}/%{_lib}
+%define tde_mandir %{tde_datadir}/man
+%define tde_appdir %{tde_datadir}/applications
+
+%define tde_tdeappdir %{tde_appdir}/kde
+%define tde_tdedocdir %{tde_docdir}/tde
+%define tde_tdeincludedir %{tde_includedir}/tde
+%define tde_tdelibdir %{tde_libdir}/trinity
+
+%define _docdir %{tde_docdir}
+
+%define __arch_install_post %{nil}
+
+Name: trinity-guidance
+Summary: A collection of system administration tools for Trinity
+Version: 0.8.0svn20080103
+Release: 4%{?dist}%{?_variant}
+
+License: GPLv2+
+Group: Applications/Utilities
+
+Vendor: Trinity Project
+Packager: Francois Andriot <francois.andriot@free.fr>
+URL: http://www.simonzone.com/software/guidance
+
+Prefix: %{tde_prefix}
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+
+Source0: kde-guidance-3.5.13.1.tar.gz
+
+BuildRequires: trinity-tqtinterface-devel >= 3.5.13.1
+BuildRequires: trinity-tdelibs-devel >= 3.5.13.1
+BuildRequires: trinity-tdebase-devel >= 3.5.13.1
+BuildRequires: desktop-file-utils
+BuildRequires: gettext
+
+BuildRequires: trinity-pykdeextensions
+BuildRequires: trinity-libpythonize0-devel
+BuildRequires: python-trinity
+BuildRequires: chrpath
+BuildRequires: gcc-c++
+
+# SIP support
+%if 0%{?mgaversion} || 0%{?mdkversion}
+BuildRequires: python-sip
+%endif
+%if 0%{?suse_version}
+BuildRequires: python-sip-devel
+%endif
+%if 0%{?rhel} == 5
+BuildRequires: trinity-sip-devel
+%endif
+%if 0%{?rhel} >= 6 || 0%{?fedora}
+BuildRequires: sip-devel
+%endif
+
+# PYTHON-QT support
+%if 0%{?mgaversion} || 0%{?mdkversion}
+BuildRequires: python-qt
+Requires: python-qt
+%endif
+%if 0%{?rhel} == 5 || 0%{?suse_version}
+BuildRequires: trinity-PyQt-devel
+Requires: trinity-PyQt
+%endif
+%if 0%{?rhel} >= 6 || 0%{?fedora}
+BuildRequires: PyQt-devel
+Requires: PyQt
+%endif
+
+
+Requires: python-trinity
+Requires: %{name}-backends
+Requires: python
+%if 0%{?rhel} || 0%{?fedora} || 0%{?mgaversion} || 0%{?mdkversion}
+Requires: hwdata
+%endif
+
+
+%if "%{tde_prefix}" == "/usr"
+Conflicts: guidance-power-manager
+Conflicts: kde-guidance-powermanager
+%endif
+
+%description
+Guidance currently consists of four programs designed to help you
+look after your system:
+ o userconfig - User and Group administration
+ o serviceconfig - Service/daemon administration
+ o mountconfig - Disk and filesystem administration
+ o wineconfig - Wine configuration
+
+These tools are available in Trinity Control Center, System Settings
+or can be run as standalone applications.
+
+
+
+%package backends
+Group: Applications/Utilities
+Summary: collection of system administration tools for GNU/Linux [Trinity]
+%if 0%{?rhel} || 0%{?fedora} || 0%{?mgaversion} || 0%{?mdkversion}
+Requires: hwdata
+%endif
+Requires: python
+
+%description backends
+This package contains the platform neutral backends used in the
+Guidance configuration tools.
+
+
+%package powermanager
+Group: Applications/Utilities
+Summary: HAL based power manager applet [Trinity]
+Requires: %{name} = %{version}-%{release}
+
+%description powermanager
+A power management applet to indicate battery levels and perform hibernate or
+suspend using HAL.
+
+
+%if 0%{?suse_version}
+%debug_package
+%endif
+
+
+%prep
+%setup -q -n kde-guidance-3.5.13.1
+
+
+%build
+unset QTDIR; . /etc/profile.d/qt3.sh
+export PATH="%{tde_bindir}:${PATH}"
+export PYTHONPATH=%{python_sitearch}/trinity-sip:%{python_sitearch}/trinity-PyQt
+export LDFLAGS="-L%{tde_libdir} -I%{tde_includedir}"
+export EXTRA_MODULE_DIR="%{python_sitearch}/%{name}"
+export KDEDIR=%{tde_prefix}
+
+# Avoids 'error: byte-compiling is disabled.' on Mandriva/Mageia
+export PYTHONDONTWRITEBYTECODE=
+
+./setup.py build
+
+
+%install
+unset QTDIR; . /etc/profile.d/qt3.sh
+export PATH="%{tde_bindir}:${PATH}"
+export PYTHONPATH=%{python_sitearch}/trinity-sip:%{python_sitearch}/trinity-PyQt
+export LDFLAGS="-L%{tde_libdir} -I%{tde_includedir}"
+export EXTRA_MODULE_DIR="%{python_sitearch}/%{name}"
+
+# Avoids 'error: byte-compiling is disabled.' on Mandriva/Mageia
+export PYTHONDONTWRITEBYTECODE=
+
+%__rm -rf %{buildroot}
+./setup.py install \
+ --prefix=%{tde_prefix} \
+ --root=%{buildroot}
+
+# Fix building directories stored inside .py files
+for f in %{buildroot}%{tde_datadir}/apps/guidance/*.py; do
+ %__sed -i "${f}" -e "s|%{buildroot}||g"
+done
+
+##### MAIN PACKAGE INSTALLATION
+# install icons to right place
+%__mkdir_p %{buildroot}%{tde_datadir}/icons/crystalsvg/32x32/apps
+%__mv -f %{buildroot}%{tde_datadir}/apps/guidance/pics/hi32-app-daemons.png \
+ %{buildroot}%{tde_datadir}/icons/crystalsvg/32x32/apps/daemons.png
+%__mv -f %{buildroot}%{tde_datadir}/apps/guidance/pics/kcmpartitions.png \
+ %{buildroot}%{tde_datadir}/icons/crystalsvg/32x32/apps/disksfilesystems.png
+%__mv -f %{buildroot}%{tde_datadir}/apps/guidance/pics/hi32-user.png \
+ %{buildroot}%{tde_datadir}/icons/crystalsvg/32x32/apps/userconfig.png
+%__mv -f %{buildroot}%{tde_datadir}/apps/guidance/pics/hi32-display.png \
+ %{buildroot}%{tde_datadir}/icons/crystalsvg/32x32/apps/displayconfig.png
+%__mv -f %{buildroot}%{tde_datadir}/apps/guidance/pics/32-wine.png \
+ %{buildroot}%{tde_datadir}/icons/crystalsvg/32x32/apps/wineconfig.png
+%__install -D -p -m0644 kde/wineconfig/pics/16x16/wineconfig.png \
+ %{buildroot}%{tde_datadir}/icons/crystalsvg/16x16/apps/wineconfig.png
+
+# fix binary-or-shlib-defines-rpath
+chrpath -d %{buildroot}%{tde_tdelibdir}/kcm_*.so
+
+# fix executable-not-elf-or-script
+%__chmod 0644 %{buildroot}%{tde_datadir}/apps/guidance/pics/kdewinewizard.png
+
+# move python modules in %{python_sitearch}
+%__mkdir_p %{buildroot}%{python_sitearch}/%{name}
+%__mv -f %{buildroot}%{tde_datadir}/apps/guidance/*.py %{buildroot}%{python_sitearch}/%{name}
+
+# fix the link properly
+%__rm -f %{buildroot}%{tde_bindir}/*
+#%__ln_s -f %{python_sitearch}/%{name}/displayconfig.py %{buildroot}%{tde_bindir}/displayconfig
+%__ln_s -f %{python_sitearch}/%{name}/mountconfig.py %{buildroot}%{tde_bindir}/mountconfig
+%__ln_s -f %{python_sitearch}/%{name}/serviceconfig.py %{buildroot}%{tde_bindir}/serviceconfig
+%__ln_s -f %{python_sitearch}/%{name}/userconfig.py %{buildroot}%{tde_bindir}/userconfig
+%__ln_s -f %{python_sitearch}/%{name}/wineconfig.py %{buildroot}%{tde_bindir}/wineconfig
+%__ln_s -f %{python_sitearch}/%{name}/grubconfig.py %{buildroot}%{tde_bindir}/grubconfig
+
+# (obsolete) put this here since gnome people probably don't want it by default
+#%__ln_s -f %{_python_sitearch}/%{name}/displayconfig-restore.py %{buildroot}%{tde_bindir}/displayconfig-restore
+
+# fix script-not-executable
+%__chmod 0755 %{buildroot}%{python_sitearch}/%{name}/fuser.py
+%__chmod 0755 %{buildroot}%{python_sitearch}/%{name}/grubconfig.py
+
+%__mv -f %{buildroot}%{tde_datadir}/applications/kde/displayconfig.desktop %{buildroot}%{tde_datadir}/applications/kde/guidance-displayconfig.desktop
+
+##### BACKENDS INSTALLATION
+# install displayconfig-hwprobe.py script
+%__install -D -p -m0755 displayconfig/displayconfig-hwprobe.py \
+ %{buildroot}%{python_sitearch}/%{name}/displayconfig-hwprobe.py
+
+# The xf86misc stuff should not go under /opt/trinity bur under /usr !!!
+%__mv -f %{buildroot}%{tde_libdir}/python*/site-packages/ixf86misc.so %{buildroot}%{python_sitearch}
+%__mv -f %{buildroot}%{tde_libdir}/python*/site-packages/xf86misc.py* %{buildroot}%{python_sitearch}/%{name}
+
+%if 0%{?rhel} || 0%{?fedora} || 0%{?mgaversion} || 0%{?mdkversion}
+%__rm -f %{buildroot}%{tde_datadir}/apps/guidance/MonitorsDB
+%__ln_s -f /usr/share/hwdata/MonitorsDB %{buildroot}%{tde_datadir}/apps/guidance/MonitorsDB
+%endif
+
+
+##### POWERMANAGER INSTALLATION
+# install icon to right place
+%__install -D -p -m0644 kde/powermanager/pics/battery-charging-100.png \
+ %{buildroot}%{tde_datadir}/icons/hicolor/22x22/apps/power-manager.png
+%__install -D -p -m0644 kde/powermanager/pics/*.png \
+ %{buildroot}%{tde_datadir}/apps/guidance/pics/
+
+# install desktop file
+%__install -D -p -m0644 powermanager/guidance-power-manager.desktop \
+ %{buildroot}%{tde_datadir}/autostart/guidance-power-manager.desktop
+
+# copy python modules in PYSUPPORT_PATH
+%__cp powermanager/guidance_power_manager_ui.py %{buildroot}%{python_sitearch}/%{name}
+%__cp powermanager/notify.py %{buildroot}%{python_sitearch}/%{name}
+%__cp powermanager/tooltip.py %{buildroot}%{python_sitearch}/%{name}
+
+# generate guidance-power-manager script
+cat <<EOF >%{buildroot}%{tde_bindir}/guidance-power-manager
+#!/bin/sh
+export PYTHONPATH=%{python_sitearch}/%{name}
+%{python_sitearch}/%{name}/guidance-power-manager.py &
+EOF
+chmod +x %{buildroot}%{tde_bindir}/guidance-power-manager
+
+# fix script-not-executable
+chmod 0755 %{buildroot}%{python_sitearch}/%{name}/powermanage.py
+chmod 0755 %{buildroot}%{python_sitearch}/%{name}/gpmhelper.py
+
+
+# Replace all '#!' calls to python with /usr/bin/python
+# and make them executable
+for i in `find %{buildroot} -type f`; do
+ sed '1s,#!.*python[^ ]*\(.*\),#! /usr/bin/python\1,' \
+ $i > $i.temp;
+ if cmp --quiet $i $i.temp; then
+ rm -f $i.temp;
+ else
+ mv -f $i.temp $i;
+ chmod 755 $i;
+ echo "fixed interpreter: $i";
+ fi;
+done
+
+# Removes useless files
+find %{buildroot} -name "*.egg-info" -exec rm -f {} \;
+find %{buildroot}%{tde_libdir} -name "*.a" -exec rm -f {} \;
+
+# Removes obsolete display config manager
+%__rm -f %{?buildroot}/etc/X11/Xsession.d/40guidance-displayconfig_restore
+%__rm -f %{?buildroot}%{tde_tdelibdir}/kcm_displayconfig.*
+%__rm -f %{?buildroot}%{python_sitearch}/%{name}/displayconfig.py
+%__rm -f %{?buildroot}%{python_sitearch}/%{name}/displayconfigwidgets.py
+
+
+%clean
+%__rm -rf %{buildroot}
+
+
+%post
+touch --no-create %{tde_datadir}/icons/crystalsvg || :
+gtk-update-icon-cache --quiet %{tde_datadir}/icons/crystalsvg || :
+/sbin/ldconfig || :
+
+%postun
+touch --no-create %{tde_datadir}/icons/crystalsvg || :
+gtk-update-icon-cache --quiet %{tde_datadir}/icons/crystalsvg || :
+/sbin/ldconfig || :
+
+%post powermanager
+touch --no-create %{tde_datadir}/icons/hicolor || :
+gtk-update-icon-cache --quiet %{tde_datadir}/icons/hicolor || :
+
+%postun powermanager
+touch --no-create %{tde_datadir}/icons/hicolor || :
+gtk-update-icon-cache --quiet %{tde_datadir}/icons/hicolor || :
+
+
+%files
+%defattr(-,root,root,-)
+%doc ChangeLog COPYING README TODO
+#%{tde_bindir}/displayconfig
+#%{tde_bindir}/displayconfig-restore
+%{tde_bindir}/grubconfig
+%{tde_bindir}/mountconfig
+%{tde_bindir}/serviceconfig
+%{tde_bindir}/userconfig
+%{tde_bindir}/wineconfig
+%attr(0644,root,root) %{tde_tdelibdir}/*.so
+%attr(0644,root,root) %{tde_tdelibdir}/*.la
+%{tde_datadir}/apps/guidance/
+%{tde_datadir}/applications/kde/*.desktop
+%{tde_datadir}/icons/crystalsvg/*/*/*.png
+%{tde_datadir}/icons/crystalsvg/*/*/*.svg
+%{python_sitearch}/%{name}/SMBShareSelectDialog.py*
+%{python_sitearch}/%{name}/SimpleCommandRunner.py*
+%{python_sitearch}/%{name}/fuser.py*
+%{python_sitearch}/%{name}/fuser_ui.py*
+%{python_sitearch}/%{name}/grubconfig.py*
+%{python_sitearch}/%{name}/ktimerdialog.py*
+%{python_sitearch}/%{name}/mountconfig.py*
+%{python_sitearch}/%{name}/servertestdialog.py*
+%{python_sitearch}/%{name}/serviceconfig.py*
+%{python_sitearch}/%{name}/sizeview.py*
+%{python_sitearch}/%{name}/unixauthdb.py*
+%{python_sitearch}/%{name}/userconfig.py*
+%{python_sitearch}/%{name}/wineconfig.py*
+%{tde_tdedocdir}/HTML/en/guidance/
+
+# Files from backends
+%exclude %{tde_datadir}/apps/guidance/vesamodes
+%exclude %{tde_datadir}/apps/guidance/extramodes
+%exclude %{tde_datadir}/apps/guidance/widescreenmodes
+%exclude %{tde_datadir}/apps/guidance/Cards+
+%exclude %{tde_datadir}/apps/guidance/pcitable
+%exclude %{tde_datadir}/apps/guidance/MonitorsDB
+
+# Files from powermanager
+%exclude %{tde_datadir}/icons/hicolor/22x22/apps/power-manager.png
+%exclude %{tde_datadir}/apps/guidance/pics/ac-adapter.png
+%exclude %{tde_datadir}/apps/guidance/pics/battery*.png
+%exclude %{tde_datadir}/apps/guidance/pics/processor.png
+
+%files -n trinity-guidance-backends
+%defattr(-,root,root,-)
+%{python_sitearch}/%{name}/MicroHAL.py*
+%{python_sitearch}/%{name}/ScanPCI.py*
+%{python_sitearch}/%{name}/infimport.py*
+%{python_sitearch}/%{name}/displayconfigabstraction.py*
+%{python_sitearch}/%{name}/displayconfig-hwprobe.py*
+%{python_sitearch}/%{name}/displayconfig-restore.py*
+%{python_sitearch}/%{name}/drivedetect.py*
+%{python_sitearch}/%{name}/execwithcapture.py*
+%{python_sitearch}/%{name}/wineread.py*
+%{python_sitearch}/%{name}/winewrite.py*
+%{python_sitearch}/%{name}/xf86misc.py*
+%{python_sitearch}/%{name}/xorgconfig.py*
+%{python_sitearch}/ixf86misc.so
+%{tde_datadir}/apps/guidance/vesamodes
+%{tde_datadir}/apps/guidance/extramodes
+%{tde_datadir}/apps/guidance/widescreenmodes
+%{tde_datadir}/apps/guidance/Cards+
+%{tde_datadir}/apps/guidance/pcitable
+%{tde_datadir}/apps/guidance/MonitorsDB
+
+
+
+%files powermanager
+%defattr(-,root,root,-)
+%{tde_bindir}/guidance-power-manager
+%{python_sitearch}/%{name}/MicroHAL.py*
+%{python_sitearch}/%{name}/guidance-power-manager.py*
+%{python_sitearch}/%{name}/powermanage.py*
+%{python_sitearch}/%{name}/gpmhelper.py*
+%{python_sitearch}/%{name}/powermanager_ui.py*
+%{python_sitearch}/%{name}/guidance_power_manager_ui.py*
+%{python_sitearch}/%{name}/notify.py*
+%{python_sitearch}/%{name}/tooltip.py*
+%{tde_datadir}/icons/hicolor/22x22/apps/power-manager.png
+%{tde_datadir}/apps/guidance/pics/ac-adapter.png
+%{tde_datadir}/apps/guidance/pics/battery*.png
+%{tde_datadir}/apps/guidance/pics/processor.png
+%{tde_datadir}/autostart/guidance-power-manager.desktop
+
+
+
+%changelog
+* Wed Oct 03 2012 Francois Andriot <francois.andriot@free.fr> - 0.8.0svn20080103-4
+- Initial build for TDE 3.5.13.1
+
+* Fri May 11 2012 Francois Andriot <francois.andriot@free.fr> - 0.8.0svn20080103-3
+- Fix Python search dir
+
+* Tue May 01 2012 Francois Andriot <francois.andriot@free.fr> - 0.8.0svn20080103-2
+- Rebuilt for Fedora 17
+- Fix post and postun
+- Fix library locations
+
+* Thu Dec 01 2011 Francois Andriot <francois.andriot@free.fr> - 0.8.0svn20080103-1
+- Initial build for RHEL 5, RHEL 6, Fedora 15, Fedora 16
diff --git a/redhat/applications/kde-guidance/trinity-guidance-3.5.13.spec b/redhat/applications/kde-guidance/trinity-guidance-3.5.13.spec
index d592fda62..4d9452f32 100644
--- a/redhat/applications/kde-guidance/trinity-guidance-3.5.13.spec
+++ b/redhat/applications/kde-guidance/trinity-guidance-3.5.13.spec
@@ -123,6 +123,7 @@ export PATH="%{tde_bindir}:${PATH}"
export PYTHONPATH=%{python_sitearch}/trinity-sip:%{python_sitearch}/trinity-PyQt
export LDFLAGS="-L%{tde_libdir} -I%{tde_includedir}"
export EXTRA_MODULE_DIR="%{python_sitearch}/%{name}"
+export KDEDIR=%{tde_prefix}
# Avoids 'error: byte-compiling is disabled.' on Mandriva/Mageia
export PYTHONDONTWRITEBYTECODE=
diff --git a/redhat/applications/kde-style-lipstik/trinity-kde-style-lipstik-3.5.13.1.spec b/redhat/applications/kde-style-lipstik/trinity-kde-style-lipstik-3.5.13.1.spec
new file mode 100644
index 000000000..e7cf039c9
--- /dev/null
+++ b/redhat/applications/kde-style-lipstik/trinity-kde-style-lipstik-3.5.13.1.spec
@@ -0,0 +1,129 @@
+# Default version for this component
+%define kdecomp kde-style-lipstik
+
+# If TDE is built in a specific prefix (e.g. /opt/trinity), the release will be suffixed with ".opt".
+%if "%{?tde_prefix}" != "/usr"
+%define _variant .opt
+%endif
+
+# TDE 3.5.13 specific building variables
+%define tde_bindir %{tde_prefix}/bin
+%define tde_datadir %{tde_prefix}/share
+%define tde_docdir %{tde_datadir}/doc
+%define tde_includedir %{tde_prefix}/include
+%define tde_libdir %{tde_prefix}/%{_lib}
+%define tde_mandir %{tde_datadir}/man
+%define tde_appdir %{tde_datadir}/applications
+
+%define tde_tdeappdir %{tde_appdir}/kde
+%define tde_tdedocdir %{tde_docdir}/tde
+%define tde_tdeincludedir %{tde_includedir}/tde
+%define tde_tdelibdir %{tde_libdir}/trinity
+
+%define _docdir %{tde_docdir}
+
+
+Name: trinity-style-lipstik
+Summary: Lipstik style for TDE
+Version: 2.2.3
+Release: 3%{?dist}%{?_variant}
+
+License: GPLv2+
+Group: Applications/Utilities
+
+Vendor: Trinity Project
+Packager: Francois Andriot <francois.andriot@free.fr>
+URL: http://www.trinitydesktop.org/
+
+Prefix: %{tde_prefix}
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+
+Source0: %{kdecomp}-3.5.13.1.tar.gz
+
+Obsoletes: trinity-kde-style-lipstik
+
+BuildRequires: trinity-tqtinterface-devel >= 3.5.13.1
+BuildRequires: trinity-tdelibs-devel >= 3.5.13.1
+BuildRequires: trinity-tdebase-devel >= 3.5.13.1
+BuildRequires: desktop-file-utils
+BuildRequires: gettext
+
+
+%description
+Based on the plastik style, Lipstik is a purified style with many options to
+tune your desktop look.
+
+Lipstik also provides Lipstik-color-schemes
+
+
+%if 0%{?suse_version}
+%debug_package
+%endif
+
+
+%prep
+%setup -q -n %{kdecomp}-3.5.13.1
+
+# Ugly hack to modify TQT include directory inside autoconf files.
+# If TQT detection fails, it fallbacks to TQT4 instead of TQT3 !
+%__sed -i admin/acinclude.m4.in \
+ -e "s|/usr/include/tqt|%{tde_includedir}/tqt|g" \
+ -e "s|kde_htmldir='.*'|kde_htmldir='%{tde_tdedocdir}/HTML'|g"
+
+%__cp -f "/usr/share/aclocal/libtool.m4" "admin/libtool.m4.in"
+%__cp -f "/usr/share/libtool/config/ltmain.sh" "admin/ltmain.sh" || %__cp -f "/usr/share/libtool/ltmain.sh" "admin/ltmain.sh"
+%__make -f "admin/Makefile.common"
+
+
+%build
+unset QTDIR; . /etc/profile.d/qt3.sh
+export PATH="%{tde_bindir}:${PATH}"
+export LDFLAGS="-L%{tde_libdir} -I%{tde_includedir}"
+
+%configure \
+ --prefix=%{tde_prefix} \
+ --exec-prefix=%{tde_prefix} \
+ --datadir=%{tde_datadir} \
+ --includedir=%{tde_tdeincludedir} \
+ --libdir=%{tde_libdir} \
+ --disable-rpath \
+ --with-extra-includes=%{tde_includedir}/tqt
+
+%__make %{?_smp_mflags}
+
+
+%install
+export PATH="%{tde_bindir}:${PATH}"
+%__rm -rf %{buildroot}
+%__make install DESTDIR=%{buildroot}
+
+
+%clean
+%__rm -rf %{buildroot}
+
+
+
+%files
+%defattr(-,root,root,-)
+%doc AUTHORS COPYING
+%{tde_tdelibdir}/kstyle_lipstik_config.la
+%{tde_tdelibdir}/kstyle_lipstik_config.so
+%{tde_tdelibdir}/plugins/styles/lipstik.la
+%{tde_tdelibdir}/plugins/styles/lipstik.so
+%{tde_datadir}/apps/kdisplay/color-schemes/lipstiknoble.kcsrc
+%{tde_datadir}/apps/kdisplay/color-schemes/lipstikstandard.kcsrc
+%{tde_datadir}/apps/kdisplay/color-schemes/lipstikwhite.kcsrc
+%{tde_datadir}/apps/kstyle/themes/lipstik.themerc
+
+
+%changelog
+* Wed Oct 03 2012 Francois Andriot <francois.andriot@free.fr> - 2.2.3-3
+- Initial build for TDE 3.5.13.1
+
+* Tue May 01 2012 Francois Andriot <francois.andriot@free.fr> - 2.2.3-2
+- Rebuilt for Fedora 17
+- Fix HTML directory location
+- Removes post and postun
+
+* Sat Nov 19 2011 Francois Andriot <francois.andriot@free.fr> - 2.2.3-1
+- Initial build for RHEL 5, RHEL 6, Fedora 15, Fedora 16
diff --git a/redhat/applications/kde-style-qtcurve/kde-style-qtcurve-3.5.13-fix_config_ftbfs.patch b/redhat/applications/kde-style-qtcurve/kde-style-qtcurve-3.5.13-fix_config_ftbfs.patch
new file mode 100644
index 000000000..18c9e9ee7
--- /dev/null
+++ b/redhat/applications/kde-style-qtcurve/kde-style-qtcurve-3.5.13-fix_config_ftbfs.patch
@@ -0,0 +1,101 @@
+--- a/config/qtcurveconfig.cpp.ORI 2012-08-29 22:09:16.845292598 +0200
++++ a/config/qtcurveconfig.cpp 2012-08-29 22:13:35.992935999 +0200
+@@ -671,7 +671,7 @@
+ connect(activeTabAppearance, SIGNAL(activated(int)), SLOT(activeTabAppearanceChanged()));
+ connect(toolbarSeparators, SIGNAL(activated(int)), SLOT(updateChanged()));
+ connect(splitters, SIGNAL(activated(int)), SLOT(updateChanged()));
+- connect(fixParentlessDialogs, SIGNAL(toggled(bool)), SLOT(updateChanged()));
++// connect(fixParentlessDialogs, SIGNAL(toggled(bool)), SLOT(updateChanged()));
+ connect(fillSlider, SIGNAL(toggled(bool)), SLOT(updateChanged()));
+ connect(sliderStyle, SIGNAL(activated(int)), SLOT(updateChanged()));
+ connect(roundMbTopOnly, SIGNAL(toggled(bool)), SLOT(updateChanged()));
+@@ -749,10 +749,10 @@
+ connect(gtkButtonOrder, SIGNAL(toggled(bool)), SLOT(updateChanged()));
+ connect(mapKdeIcons, SIGNAL(toggled(bool)), SLOT(updateChanged()));
+ connect(passwordChar, SIGNAL(clicked()), SLOT(passwordCharClicked()));
+- connect(framelessGroupBoxes, SIGNAL(toggled(bool)), SLOT(updateChanged()));
++// connect(framelessGroupBoxes, SIGNAL(toggled(bool)), SLOT(updateChanged()));
+ connect(colorMenubarMouseOver, SIGNAL(toggled(bool)), SLOT(updateChanged()));
+ connect(useHighlightForMenu, SIGNAL(toggled(bool)), SLOT(updateChanged()));
+- connect(groupBoxLine, SIGNAL(toggled(bool)), SLOT(updateChanged()));
++// connect(groupBoxLine, SIGNAL(toggled(bool)), SLOT(updateChanged()));
+ connect(fadeLines, SIGNAL(toggled(bool)), SLOT(updateChanged()));
+ connect(menuIcons, SIGNAL(toggled(bool)), SLOT(updateChanged()));
+ connect(stdBtnSizes, SIGNAL(toggled(bool)), SLOT(updateChanged()));
+@@ -1436,7 +1436,7 @@
+ opts.shadeMenubarOnlyWhenActive=shadeMenubarOnlyWhenActive->isChecked();
+ opts.thinnerMenuItems=thinnerMenuItems->isChecked();
+ opts.thinnerBtns=thinnerBtns->isChecked();
+- opts.fixParentlessDialogs=fixParentlessDialogs->isChecked();
++// opts.fixParentlessDialogs=fixParentlessDialogs->isChecked();
+ opts.animatedProgress=animatedProgress->isChecked();
+ opts.stripedProgress=(EStripe)stripedProgress->currentItem();
+ opts.lighterPopupMenuBgnd=lighterPopupMenuBgnd->value();
+@@ -1526,11 +1526,11 @@
+ opts.gtkButtonOrder=gtkButtonOrder->isChecked();
+ opts.mapKdeIcons=mapKdeIcons->isChecked();
+ opts.passwordChar=toInt(passwordChar->text());
+- opts.framelessGroupBoxes=framelessGroupBoxes->isChecked();
++// opts.framelessGroupBoxes=framelessGroupBoxes->isChecked();
+ opts.customGradient=customGradient;
+ opts.colorMenubarMouseOver=colorMenubarMouseOver->isChecked();
+ opts.useHighlightForMenu=useHighlightForMenu->isChecked();
+- opts.groupBoxLine=groupBoxLine->isChecked();
++// opts.groupBoxLine=groupBoxLine->isChecked();
+ opts.fadeLines=fadeLines->isChecked();
+ opts.menuIcons=menuIcons->isChecked();
+ opts.stdBtnSizes=stdBtnSizes->isChecked();
+@@ -1575,7 +1575,7 @@
+ shadeMenubarOnlyWhenActive->setChecked(opts.shadeMenubarOnlyWhenActive);
+ thinnerMenuItems->setChecked(opts.thinnerMenuItems);
+ thinnerBtns->setChecked(opts.thinnerBtns);
+- fixParentlessDialogs->setChecked(opts.fixParentlessDialogs);
++// fixParentlessDialogs->setChecked(opts.fixParentlessDialogs);
+ animatedProgress->setChecked(opts.animatedProgress);
+ stripedProgress->setCurrentItem(opts.stripedProgress);
+ embolden->setChecked(opts.embolden);
+@@ -1651,7 +1651,7 @@
+ customCheckRadioColor->setColor(opts.customCheckRadioColor);
+ colorMenubarMouseOver->setChecked(opts.colorMenubarMouseOver);
+ useHighlightForMenu->setChecked(opts.useHighlightForMenu);
+- groupBoxLine->setChecked(opts.groupBoxLine);
++// groupBoxLine->setChecked(opts.groupBoxLine);
+ fadeLines->setChecked(opts.fadeLines);
+ menuIcons->setChecked(opts.menuIcons);
+ stdBtnSizes->setChecked(opts.stdBtnSizes);
+@@ -1678,7 +1678,7 @@
+ gtkButtonOrder->setChecked(opts.gtkButtonOrder);
+ mapKdeIcons->setChecked(opts.mapKdeIcons);
+ setPasswordChar(opts.passwordChar);
+- framelessGroupBoxes->setChecked(opts.framelessGroupBoxes);
++// framelessGroupBoxes->setChecked(opts.framelessGroupBoxes);
+ customGradient=opts.customGradient;
+ gradCombo->setCurrentItem(APPEARANCE_CUSTOM1);
+
+@@ -1731,7 +1731,7 @@
+ shadeMenubarOnlyWhenActive->isChecked()!=currentStyle.shadeMenubarOnlyWhenActive ||
+ thinnerMenuItems->isChecked()!=currentStyle.thinnerMenuItems ||
+ thinnerBtns->isChecked()!=currentStyle.thinnerBtns ||
+- fixParentlessDialogs->isChecked()!=currentStyle.fixParentlessDialogs ||
++// fixParentlessDialogs->isChecked()!=currentStyle.fixParentlessDialogs ||
+ animatedProgress->isChecked()!=currentStyle.animatedProgress ||
+ stripedProgress->currentItem()!=currentStyle.stripedProgress ||
+ lighterPopupMenuBgnd->value()!=currentStyle.lighterPopupMenuBgnd ||
+@@ -1796,7 +1796,7 @@
+ splitters->currentItem()!=currentStyle.splitters ||
+ colorMenubarMouseOver->isChecked()!=currentStyle.colorMenubarMouseOver ||
+ useHighlightForMenu->isChecked()!=currentStyle.useHighlightForMenu ||
+- groupBoxLine->isChecked()!=currentStyle.groupBoxLine ||
++// groupBoxLine->isChecked()!=currentStyle.groupBoxLine ||
+ fadeLines->isChecked()!=currentStyle.fadeLines ||
+ menuIcons->isChecked()!=currentStyle.menuIcons ||
+ stdBtnSizes->isChecked()!=currentStyle.stdBtnSizes ||
+@@ -1819,7 +1819,7 @@
+ gtkComboMenus->isChecked()!=currentStyle.gtkComboMenus ||
+ gtkButtonOrder->isChecked()!=currentStyle.gtkButtonOrder ||
+ mapKdeIcons->isChecked()!=currentStyle.mapKdeIcons ||
+- framelessGroupBoxes->isChecked()!=currentStyle.framelessGroupBoxes ||
++// framelessGroupBoxes->isChecked()!=currentStyle.framelessGroupBoxes ||
+
+ getSquareFlags()!=currentStyle.square ||
+ getWindowBorderFlags()!=currentStyle.windowBorder||
diff --git a/redhat/applications/kde-style-qtcurve/kde-style-qtcurve-3.5.13-fix_kde_style_compilation.patch b/redhat/applications/kde-style-qtcurve/kde-style-qtcurve-3.5.13-fix_kde_style_compilation.patch
new file mode 100644
index 000000000..f328720a7
--- /dev/null
+++ b/redhat/applications/kde-style-qtcurve/kde-style-qtcurve-3.5.13-fix_kde_style_compilation.patch
@@ -0,0 +1,243 @@
+--- kde-style-qtcurve/cmake/QtCurveQt3.cmake.ORI 2012-08-29 19:47:59.470536207 +0200
++++ kde-style-qtcurve/cmake/QtCurveQt3.cmake 2012-08-29 19:48:50.268522398 +0200
+@@ -1,5 +1,5 @@
+ FILE(GLOB GLOB_PATHS_BIN /usr/lib/qt-3*/bin/)
+-FIND_PATH(QT_PLUGINS_DIR imageformats
++FIND_PATH(QT_PLUGINS_DIR designer
+ $ENV{QTDIR}/plugins
+ ${GLOB_PATHS_BIN}
+ /usr/local/qt/plugins
+--- a/config/CMakeLists.txt.module 2011-08-22 00:39:00.000000000 +0200
++++ a/config/CMakeLists.txt 2012-08-29 22:21:41.673500945 +0200
+@@ -4,9 +4,23 @@
+ set(kstyle_qtcurve_config_PART_SRCS qtcurveconfig.cpp)
+ endif (QTC_STYLE_SUPPORT)
+
+-include_directories(${CMAKE_SOURCE_DIR} ${CMAKE_SOURCE_DIR}/common ${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_BINARY_DIR} ${KDE3_INCLUDE_DIR} ${QT_INCLUDE_DIR})
+-trinity_add_ui_files(kstyle_qtcurve_config_PART_SRCS qtcurveconfigbase.ui)
+-trinity_add_kpart(kstyle_qtcurve_config ${kstyle_qtcurve_config_PART_SRCS})
+-trinity_automoc(${kstyle_qtcurve_config_PART_SRCS})
+-target_link_libraries(kstyle_qtcurve_config ${QT_AND_KDECORE_LIBS} kio kdeui)
+-install(TARGETS kstyle_qtcurve_config DESTINATION ${KDE3_LIB_DIR}/trinity)
++include_directories(
++ ${CMAKE_SOURCE_DIR}
++ ${CMAKE_SOURCE_DIR}/common
++ ${CMAKE_CURRENT_BINARY_DIR}
++ ${CMAKE_BINARY_DIR}
++ ${TDE_INCLUDE_DIR}
++ ${QT_INCLUDE_DIR}
++)
++
++link_directories(
++ ${TQT_LIBRARY_DIRS}
++)
++
++tde_add_ui_files(kstyle_qtcurve_config_PART_SRCS qtcurveconfigbase.ui)
++tde_add_kpart(kstyle_qtcurve_config
++ MODULE
++ SOURCES ${kstyle_qtcurve_config_PART_SRCS}
++ LINK ${QT_AND_KDECORE_LIBS} kio kdeui
++ DESTINATION ${TDE_LIB_DIR}/trinity)
++tde_automoc(${kstyle_qtcurve_config_PART_SRCS})
+--- a/CMakeLists.txt.module 2012-08-29 20:30:59.679915086 +0200
++++ b/CMakeLists.txt 2012-08-29 22:09:03.118576286 +0200
+@@ -3,7 +3,7 @@
+
+ set(CPACK_PACKAGE_DESCRIPTION_FILE "${CMAKE_CURRENT_SOURCE_DIR}/README")
+ set(CPACK_GENERATOR "DEB;RPM;TGZ")
+-set(DEBIAN_PACKAGE_DESCRIPTION "QtCurve for Qt3/KDE3")
++set(DEBIAN_PACKAGE_DESCRIPTION "QtCurve for Qt3/TDE")
+ set(DEBIAN_PACKAGE_SECTION "kde")
+ set(CPACK_SOURCE_GENERATOR "TBZ2")
+ set(CPACK_PACKAGE_VERSION_MAJOR "1")
+@@ -16,39 +16,64 @@
+ set(CPACK_PACKAGE_FILE_NAME "${CMAKE_PROJECT_NAME}-${QTCURVE_VERSION_FULL}")
+ include(CPack)
+
++##### include essential cmake modules ###########
++
++include( FindPkgConfig )
++include( CheckIncludeFile )
++include( CheckSymbolExists )
++include( CheckFunctionExists )
++include( CheckCSourceCompiles )
++include( CheckCXXSourceCompiles )
++include( CheckTypeSize )
++include( CheckCSourceRuns )
++include( CheckLibraryExists )
++
++##### include our cmake modules #################
++
++set( CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake/modules" )
++include( TDEMacros )
++include( TDESetupPaths )
++
++##### setup and find essential stuff ############
++
++tde_setup_paths( )
++find_package( TQt )
++
++
+ if(COMMAND cmake_policy)
+ cmake_policy(SET CMP0003 NEW)
+ endif(COMMAND cmake_policy)
+
+ if (QTC_BUILD_CONFIG_MODULE)
+ if (NOT QTC_QT_ONLY)
+- find_package(KDE3)
+- if (NOT KDE3_FOUND)
++ find_package(TDE)
++ if (NOT TDE_VERSION)
+ set(QTC_QT_ONLY true)
+- message("INFO: KDE3 not found! Compiling for Qt only! (Not building the config module)")
+- endif (NOT KDE3_FOUND)
++ message("INFO: Trinity not found! Compiling for Qt only! (Not building the config module)")
++ endif (NOT TDE_VERSION)
+ endif (NOT QTC_QT_ONLY)
+ else (QTC_BUILD_CONFIG_MODULE)
+ set(QTC_QT_ONLY true)
+ endif (QTC_BUILD_CONFIG_MODULE)
+
+ if (NOT QTC_QT_ONLY)
+- include(KDE3Macros)
++ include(TDEMacros)
+ else (NOT QTC_QT_ONLY)
+- if (NOT KDE3PREFIX)
+- SET(KDE3PREFIX "/opt/trinity")
+- endif (NOT KDE3PREFIX)
++ if (NOT TDEPREFIX)
++ SET(TDEPREFIX "/opt/trinity")
++ endif (NOT TDEPREFIX)
++endif (NOT QTC_QT_ONLY)
+
+ set(QT_MT_REQUIRED TRUE)
+ find_package(Qt3 REQUIRED)
+ set(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake )
+ include(QtCurveQt3)
++ set( CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake/modules" )
+ if (QT_PLUGINS_DIR MATCHES NOTFOUND)
+ MESSAGE(STATUS_ERROR "Qt3 package not found--assuming TQt4")
+ SET(QT_INCLUDE_DIR "/usr/include/qt4")
+- SET(QT_PLUGINS_DIR "${KDE3PREFIX}/lib${LIB_SUFFIX}/trinity/plugins")
++ SET(QT_PLUGINS_DIR "${TDEPREFIX}/lib${LIB_SUFFIX}/trinity/plugins")
+ endif (QT_PLUGINS_DIR MATCHES NOTFOUND)
+-endif (NOT QTC_QT_ONLY)
+
+ #if (NOT QTC_QT_ONLY)
+ exec_program(kde-config
+@@ -56,18 +81,15 @@
+ OUTPUT_VARIABLE CMAKE_INSTALL_PREFIX)
+ #endif (NOT QTC_QT_ONLY)
+
+-SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -I/usr/include/tqt -include tqt.h -DTQT_THREAD_SUPPORT")
++SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -I/opt/trinity/include/tqt -include tqt.h -DTQT_THREAD_SUPPORT")
+
+ # NASTY HACK TO FORCE COMPILATION
+ # REMOVE WHEN FIXED
+ SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -I/opt/trinity/include")
+
+-SET(QT_UIC_EXECUTABLE "/usr/bin/uic-tqt" CACHE FILEPATH "")
+-SET(QT_MOC_EXECUTABLE "/usr/bin/tmoc" CACHE FILEPATH "")
+-
+ exec_program(kde-config
+ ARGS --install locale --expandvars
+- OUTPUT_VARIABLE KDE3_LOCALE_PREFIX)
++ OUTPUT_VARIABLE TDE_LOCALE_PREFIX)
+
+ file(TO_CMAKE_PATH "$ENV{KDEDIRS}" _KDEDIRS)
+
+@@ -87,31 +109,31 @@
+ endif(KDE4_KDECONFIG_EXECUTABLE)
+
+ if(NOT KDE4PREFIX)
+- set(KDE4PREFIX ${KDE3PREFIX})
++ set(KDE4PREFIX ${TDEPREFIX})
+ endif(NOT KDE4PREFIX)
+
+ configure_file (config.h.cmake ${CMAKE_BINARY_DIR}/config.h)
+ #if (NOT QTC_QT_ONLY)
+- add_definitions(${QT_DEFINITIONS} ${KDE3_DEFINITIONS})
+- include_directories (${CMAKE_SOURCE_DIR} ${CMAKE_BINARY_DIR} ${KDE3_INCLUDES})
++ add_definitions(${QT_DEFINITIONS} ${TDE_DEFINITIONS})
++ include_directories (${CMAKE_SOURCE_DIR} ${CMAKE_BINARY_DIR} ${TDE_INCLUDES})
+ #else (NOT QTC_QT_ONLY)
+ # add_definitions(${QT_DEFINITIONS})
+ # include_directories (${CMAKE_SOURCE_DIR} ${CMAKE_BINARY_DIR})
+ #endif (NOT QTC_QT_ONLY)
+
+-set(DATA_INSTALL_DIR ${KDE3PREFIX}/share/apps)
++set(DATA_INSTALL_DIR ${TDEPREFIX}/share/apps)
+
+-if(QTC_DEFAULT_TO_KDE3)
+- message("INFO: Defaulting to reading KDE3 settings if KDE_SESSION_VERSION is not set")
+-else(QTC_DEFAULT_TO_KDE3)
++if(QTC_DEFAULT_TO_TDE)
++ message("INFO: Defaulting to reading TDE settings if KDE_SESSION_VERSION is not set")
++else(QTC_DEFAULT_TO_TDE)
+ message("INFO: Defaulting to reading KDE4 settings if KDE_SESSION_VERSION is not set")
+-endif(QTC_DEFAULT_TO_KDE3)
++endif(QTC_DEFAULT_TO_TDE)
+
+ add_subdirectory(style)
+ #if (NOT QTC_QT_ONLY)
+ if (QTC_BUILD_CONFIG_MODULE)
+ message("**************************************************************\n"
+- "Warning: The KDE3 config module is deprecated, and is no longer\n"
++ "Warning: The TDE config module is deprecated, and is no longer\n"
+ " actively maintained. This module NO LONGER COMPILES!\n"
+ " It is recommended to use the KDE4 version instead.\n"
+ "**************************************************************\n")
+--- kde-style-qtcurve/po/CMakeLists.txt.ORI 2012-08-30 20:03:49.306967361 +0200
++++ kde-style-qtcurve/po/CMakeLists.txt 2012-08-30 20:03:55.714827822 +0200
+@@ -18,7 +18,7 @@
+ add_custom_command(TARGET translations
+ COMMAND ${GETTEXT_MSGFMT_EXECUTABLE} --check -o ${_gmoFile} ${_poFile}
+ DEPENDS ${_poFile})
+- install(FILES ${_gmoFile} DESTINATION ${KDE3_LOCALE_PREFIX}/${_langCode}/LC_MESSAGES/ RENAME ${catalogname}.mo)
++ install(FILES ${_gmoFile} DESTINATION ${TDE_LOCALE_PREFIX}/${_langCode}/LC_MESSAGES/ RENAME ${catalogname}.mo)
+ endif( _langCode )
+ endforeach(_poFile ${PO_FILES})
+ endif(NOT GETTEXT_MSGFMT_EXECUTABLE)
+--- kde-style-qtcurve/style/CMakeLists.txt.cmake 2011-08-22 00:39:00.000000000 +0200
++++ kde-style-qtcurve/style/CMakeLists.txt 2012-08-30 20:20:04.645840572 +0200
+@@ -1,14 +1,25 @@
+ if (NOT QTC_QT_ONLY)
+ set(qtcurve_SRCS qtcurve.cpp pixmaps.h)
+ add_definitions(-DQT_PLUGIN)
+- include_directories(${CMAKE_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_BINARY_DIR} ${KDE3_INCLUDE_DIR} ${QT_INCLUDE_DIR} ${CMAKE_SOURCE_DIR}/common)
+- link_directories(${KDE3_LIB_DIR})
+- trinity_automoc(${qtcurve_SRCS})
+- add_library(qtcurve MODULE ${qtcurve_SRCS})
+- set_target_properties(qtcurve PROPERTIES PREFIX "")
+- target_link_libraries(qtcurve ${QT_LIBRARIES} kdefx)
+- install(TARGETS qtcurve LIBRARY DESTINATION ${KDE3_LIB_DIR}/trinity/plugins/styles)
+- install(FILES qtcurve.themerc DESTINATION ${KDE3PREFIX}/share/apps/kstyle/themes)
++ include_directories(
++ ${CMAKE_SOURCE_DIR}
++ ${CMAKE_CURRENT_BINARY_DIR}
++ ${CMAKE_BINARY_DIR}
++ ${TDE_INCLUDE_DIR}
++ ${QT_INCLUDE_DIR}
++ ${CMAKE_SOURCE_DIR}/common
++ )
++ link_directories(
++ ${TDE_LIB_DIR}
++ )
++ tde_add_library(qtcurve
++ MODULE
++ PROPERTIES PREFIX ""
++ SOURCES ${qtcurve_SRCS}
++ LINK ${QT_LIBRARIES} kdefx
++ DESTINATION ${TDE_LIB_DIR}/trinity/plugins/styles
++ )
++ install(FILES qtcurve.themerc DESTINATION ${TDEPREFIX}/share/apps/kstyle/themes)
+ else (NOT QTC_QT_ONLY)
+ set(qtcurve_MOC_CLASSES qtcurve.h qtc_kstyle.h)
+ QTCURVE_QT_WRAP_CPP(qtcurve_MOC_SRCS ${qtcurve_MOC_CLASSES})
+--- a/style/qtcurve.cpp.ORI 2012-08-30 20:57:36.256639146 +0200
++++ a/style/qtcurve.cpp 2012-08-30 20:57:40.338552798 +0200
+@@ -8684,4 +8684,3 @@
+ resetHover();
+ }
+
+-#include "qtcurve.moc"
diff --git a/redhat/applications/kde-style-qtcurve/kde-style-qtcurve-3.5.13-fix_tqt_renaming.patch b/redhat/applications/kde-style-qtcurve/kde-style-qtcurve-3.5.13-fix_tqt_renaming.patch
new file mode 100644
index 000000000..c12fa1ebb
--- /dev/null
+++ b/redhat/applications/kde-style-qtcurve/kde-style-qtcurve-3.5.13-fix_tqt_renaming.patch
@@ -0,0 +1,237 @@
+--- a/style/qtcurve.h.ORI 2012-08-30 20:50:02.179242022 +0200
++++ a/style/qtcurve.h 2012-08-30 20:51:22.372546460 +0200
+@@ -1,5 +1,5 @@
+-#ifndef __TQTCURVE_H__
+-#define __TQTCURVE_H__
++#ifndef __QTCURVE_H__
++#define __QTCURVE_H__
+
+ /*
+ TQtCurve (C) Craig Drummond, 2003 - 2010 craig.p.drummond@gmail.com
+@@ -51,7 +51,7 @@
+ */
+
+ #include "config.h"
+-#ifdef TQTC_TQT_ONLY
++#ifdef QTC_QT_ONLY
+ #include "tqtc_kstyle.h"
+ #else
+ #include <kdeversion.h>
+@@ -68,7 +68,7 @@
+ class TQTimer;
+ class TQSlider;
+
+-#ifdef TQTC_TQT_ONLY
++#ifdef QTC_QT_ONLY
+ #define BASE_STYLE TQtCKStyle
+ #else
+ #define BASE_STYLE KStyle
+@@ -126,7 +126,7 @@
+ ENTRY_NONE
+ };
+
+-#ifdef TQTC_STYLE_SUPPORT
++#ifdef QTC_STYLE_SUPPORT
+ TQtCurveStyle(const TQString &name=TQString());
+ #else
+ TQtCurveStyle();
+@@ -278,7 +278,7 @@
+ mutable TQColor itsColoredBackgroundCols[TOTAL_SHADES+1];
+ EApp itsThemedApp;
+ mutable TQCache<TQPixmap> itsPixmapCache;
+-#if defined TQTC_TQT_ONLY || !defined KDE_VERSION || KDE_VERSION >= 0x30200
++#if defined QTC_QT_ONLY || !defined KDE_VERSION || KDE_VERSION >= 0x30200
+ bool itsIsTransKicker;
+ #endif
+ EHover itsHover;
+--- a/style/qtcurve.cpp.tqt 2012-08-30 21:28:00.664141509 +0200
++++ a/style/qtcurve.cpp 2012-08-30 21:28:18.078781087 +0200
+@@ -62,7 +62,7 @@
+ #include <tqtable.h>
+
+ #include "config.h"
+-#ifndef TQTC_TQT_ONLY
++#ifndef QTC_QT_ONLY
+ #include <kdeversion.h>
+ #endif
+ #include <tqsettings.h>
+@@ -196,7 +196,7 @@
+ ? atoi(sessionVersion)<4
+ ? 3
+ : 4
+-#ifdef TQTC_DEFAULT_TO_KDE3
++#ifdef QTC_DEFAULT_TO_KDE3
+ : 3;
+ #else
+ : getenv("TDE_FULL_SESSION")
+@@ -292,7 +292,7 @@
+ return kdeHome[trinity ? 0 : 1];
+ }
+
+-#ifdef TQTC_STYLE_SUPPORT
++#ifdef QTC_STYLE_SUPPORT
+ static void getStyles(const TQString &dir, const char *sub, TQStringList &styles)
+ {
+ TQDir d(dir+sub);
+@@ -349,7 +349,7 @@
+ TQStringList list;
+ list << "TQtCurve";
+
+-#ifdef TQTC_STYLE_SUPPORT
++#ifdef QTC_STYLE_SUPPORT
+ getStyles(kdeHome(useTQt3Settings()), list);
+ getStyles(kdeHome(!useTQt3Settings()), list);
+ getStyles(KDE_PREFIX(useTQt3Settings() ? 3 : 4), list);
+@@ -363,7 +363,7 @@
+ {
+ return "qtcurve"==s.lower()
+ ? new TQtCurveStyle
+-#ifdef TQTC_STYLE_SUPPORT
++#ifdef QTC_STYLE_SUPPORT
+ : 0==s.find(THEME_PREFIX)
+ ? new TQtCurveStyle(s)
+ #endif
+@@ -375,7 +375,7 @@
+
+ #define SKIP_TASKBAR (APP_SKIP_TASKBAR==itsThemedApp || APP_KPRINTER==itsThemedApp || APP_KDIALOG==itsThemedApp)
+
+-#if defined TQTC_TQT_ONLY || !defined KDE_VERSION || KDE_VERSION >= 0x30200
++#if defined QTC_QT_ONLY || !defined KDE_VERSION || KDE_VERSION >= 0x30200
+ #include <tqfile.h>
+ #endif
+
+@@ -393,7 +393,7 @@
+
+ #define DW_BGND 105
+
+-#if defined TQTC_TQT_ONLY || !defined KDE_VERSION || KDE_VERSION >= 0x30200
++#if defined QTC_QT_ONLY || !defined KDE_VERSION || KDE_VERSION >= 0x30200
+ // Try to read $KDEHOME/share/config/kickerrc to find out if kicker is transparent...
+
+ static bool kickerIsTrans()
+@@ -802,7 +802,7 @@
+ p->restore();
+ }
+
+-#ifdef TQTC_STYLE_SUPPORT
++#ifdef QTC_STYLE_SUPPORT
+ TQtCurveStyle::TQtCurveStyle(const TQString &name)
+ #else
+ TQtCurveStyle::TQtCurveStyle()
+@@ -820,7 +820,7 @@
+ itsMdiColors(0L),
+ itsThemedApp(APP_OTHER),
+ itsPixmapCache(150000, 499),
+-#if defined TQTC_TQT_ONLY || !defined KDE_VERSION || KDE_VERSION >= 0x30200
++#if defined QTC_QT_ONLY || !defined KDE_VERSION || KDE_VERSION >= 0x30200
+ itsIsTransKicker(false),
+ #endif
+ itsHover(HOVER_NONE),
+@@ -835,7 +835,7 @@
+ itsDragWidget(0L),
+ itsDragWidgetHadMouseTracking(false)
+ {
+-#ifdef TQTC_STYLE_SUPPORT
++#ifdef QTC_STYLE_SUPPORT
+ TQString rcFile;
+ if(!name.isEmpty())
+ {
+@@ -1161,7 +1161,7 @@
+ if ("kicker"==appName || "appletproxy"==appName)
+ {
+ itsThemedApp=APP_KICKER;
+-#if defined TQTC_TQT_ONLY || !defined KDE_VERSION || KDE_VERSION >= 0x30200
++#if defined QTC_QT_ONLY || !defined KDE_VERSION || KDE_VERSION >= 0x30200
+ itsIsTransKicker=kickerIsTrans();
+ #endif
+ }
+@@ -1196,7 +1196,7 @@
+ else if ("korn"==appName)
+ {
+ itsThemedApp=APP_KORN;
+-#if defined TQTC_TQT_ONLY || !defined KDE_VERSION || KDE_VERSION >= 0x30200
++#if defined QTC_QT_ONLY || !defined KDE_VERSION || KDE_VERSION >= 0x30200
+ itsIsTransKicker=kickerIsTrans();
+ #endif
+ }
+@@ -1236,7 +1236,7 @@
+
+ if(SHADE_NONE!=opts.menuStripe && opts.noMenuStripeApps.contains(appName))
+ opts.menuStripe=SHADE_NONE;
+-#ifdef TQTC_ENABLE_PARENTLESS_DIALOG_FIX_SUPPORT
++#ifdef QTC_ENABLE_PARENTLESS_DIALOG_FIX_SUPPORT
+ if(opts.fixParentlessDialogs && (opts.noDlgFixApps.contains(appName) || opts.noDlgFixApps.contains("kde")))
+ opts.fixParentlessDialogs=false;
+ #endif
+@@ -1762,7 +1762,7 @@
+ ((TQGroupBox *)widget)->setFlat(false);
+ ((TQGroupBox *)widget)->setFrameShape(TQFrame::NoFrame);
+ }
+-#ifdef TQTC_ENABLE_PARENTLESS_DIALOG_FIX_SUPPORT
++#ifdef QTC_ENABLE_PARENTLESS_DIALOG_FIX_SUPPORT
+ else if(opts.fixParentlessDialogs && ::tqqt_cast<TQDialog *>(widget))
+ {
+ TQDialog *dlg=(TQDialog *)widget;
+@@ -1931,7 +1931,7 @@
+ }
+ else if(widget->inherits("KTabCtl"))
+ widget->removeEventFilter(this);
+-#ifdef TQTC_ENABLE_PARENTLESS_DIALOG_FIX_SUPPORT
++#ifdef QTC_ENABLE_PARENTLESS_DIALOG_FIX_SUPPORT
+ else if(opts.fixParentlessDialogs && ::tqqt_cast<TQDialog *>(widget))
+ widget->removeEventFilter(this);
+ #endif
+@@ -2277,7 +2277,7 @@
+ break;
+ }
+
+-#ifdef TQTC_ENABLE_PARENTLESS_DIALOG_FIX_SUPPORT
++#ifdef QTC_ENABLE_PARENTLESS_DIALOG_FIX_SUPPORT
+ if(opts.fixParentlessDialogs && ::tqqt_cast<TQDialog *>(object))
+ {
+ TQDialog *dlg=(TQDialog *)object;
+@@ -3152,7 +3152,7 @@
+ if(flags&Style_Down)
+ flags=((flags|Style_Down)^Style_Down)| Style_Sunken;
+ flags|=Style_Enabled;
+-#if defined TQTC_TQT_ONLY || !defined KDE_VERSION || KDE_VERSION >= 0x30200
++#if defined QTC_QT_ONLY || !defined KDE_VERSION || KDE_VERSION >= 0x30200
+ #if defined KDE_VERSION && KDE_VERSION >= 0x30400 && KDE_VERSION < 0x30500
+ if(HOVER_KICKER==itsHover && itsHoverWidget) // && itsHoverWidget==p->device())
+ flags|=Style_MouseOver;
+@@ -3161,7 +3161,7 @@
+ #endif
+ drawLightBevel(p, r, cg, flags|Style_Horizontal, ROUNDED_ALL,
+ getFill(flags, use), use, true, false);
+-#if defined TQTC_TQT_ONLY || !defined KDE_VERSION || KDE_VERSION >= 0x30200
++#if defined QTC_QT_ONLY || !defined KDE_VERSION || KDE_VERSION >= 0x30200
+ itsFormMode=false;
+ #endif
+ }
+@@ -3313,7 +3313,7 @@
+ ? cg.background().dark(DW_BGND)
+ : */cg.background(),
+ p, r, cg, glassMod ? flags : flags|Style_Horizontal,
+-#if defined TQTC_TQT_ONLY || !defined KDE_VERSION || KDE_VERSION >= 0x30200
++#if defined QTC_QT_ONLY || !defined KDE_VERSION || KDE_VERSION >= 0x30200
+ (APP_KORN==itsThemedApp && itsIsTransKicker && PE_ButtonTool==pe) ||
+ #endif
+ operaMdi || mdi
+@@ -3345,7 +3345,7 @@
+
+ drawLightBevel(p, r, cg, glassMod ? flags : flags|Style_Horizontal,
+ flags&CHECK_BUTTON
+-#if defined TQTC_TQT_ONLY || !defined KDE_VERSION || KDE_VERSION >= 0x30200
++#if defined QTC_QT_ONLY || !defined KDE_VERSION || KDE_VERSION >= 0x30200
+ || (APP_KORN==itsThemedApp && itsIsTransKicker && PE_ButtonTool==pe)
+ #endif
+ ? ROUNDED_NONE : ROUNDED_ALL,
+@@ -5540,7 +5540,7 @@
+ bflags|=NO_ETCH_BUTTON;
+
+ // If we're pressed, on, or raised...
+-#if defined TQTC_TQT_ONLY || !defined KDE_VERSION || KDE_VERSION >= 0x30200
++#if defined QTC_QT_ONLY || !defined KDE_VERSION || KDE_VERSION >= 0x30200
+ if(bflags &(Style_Down | Style_On | Style_Raised) || onControlButtons)
+ #else
+ if(bflags &(Style_Down | Style_On | Style_Raised | Style_MouseOver) ||
diff --git a/redhat/applications/kde-style-qtcurve/trinity-kde-style-qtcurve-3.5.13.1.spec b/redhat/applications/kde-style-qtcurve/trinity-kde-style-qtcurve-3.5.13.1.spec
new file mode 100644
index 000000000..4580ee12a
--- /dev/null
+++ b/redhat/applications/kde-style-qtcurve/trinity-kde-style-qtcurve-3.5.13.1.spec
@@ -0,0 +1,141 @@
+# Default version for this component
+%define kdecomp kde-style-qtcurve
+
+# If TDE is built in a specific prefix (e.g. /opt/trinity), the release will be suffixed with ".opt".
+%if "%{?tde_prefix}" != "/usr"
+%define _variant .opt
+%endif
+
+# TDE 3.5.13 specific building variables
+%define tde_bindir %{tde_prefix}/bin
+%define tde_datadir %{tde_prefix}/share
+%define tde_docdir %{tde_datadir}/doc
+%define tde_includedir %{tde_prefix}/include
+%define tde_libdir %{tde_prefix}/%{_lib}
+%define tde_mandir %{tde_datadir}/man
+%define tde_appdir %{tde_datadir}/applications
+
+%define tde_tdeappdir %{tde_appdir}/kde
+%define tde_tdedocdir %{tde_docdir}/tde
+%define tde_tdeincludedir %{tde_includedir}/tde
+%define tde_tdelibdir %{tde_libdir}/trinity
+
+%define _docdir %{tde_docdir}
+
+
+Name: trinity-style-qtcurve
+Summary: This is a set of widget styles for Trinity based apps
+Version: 0.55.2
+Release: 4%{?dist}%{?_variant}
+
+License: GPLv2+
+Group: Applications/Utilities
+
+Vendor: Trinity Project
+Packager: Francois Andriot <francois.andriot@free.fr>
+URL: http://www.trinitydesktop.org/
+
+Prefix: %{tde_prefix}
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+
+Source0: %{kdecomp}-3.5.13.1.tar.gz
+
+BuildRequires: trinity-tqtinterface-devel >= 3.5.13.1
+BuildRequires: trinity-tdelibs-devel >= 3.5.13.1
+BuildRequires: trinity-tdebase-devel >= 3.5.13.1
+BuildRequires: desktop-file-utils
+BuildRequires: gettext
+
+Obsoletes: trinity-kde-style-qtcurve
+Provides: trinity-kde-style-qtcurve
+
+%description
+This package together with gtk2-engines-qtcurve aim to provide a unified look
+and feel on the desktop when using TDE and Gnome applications.
+
+This package is most useful when installed together with
+gtk2-engines-qtcurve.
+
+
+%if 0%{?suse_version}
+%debug_package
+%endif
+
+
+%prep
+%setup -q -n %{kdecomp}-3.5.13.1
+
+
+# Ugly hack to modify TQT include directory inside autoconf files.
+# If TQT detection fails, it fallbacks to TQT4 instead of TQT3 !
+%__sed -i "CMakeLists.txt" \
+ -e "s|/usr/include/tqt|%{tde_includedir}/tqt|g" \
+ -e "s|/usr/bin/uic-tqt|%{tde_bindir}/uic-tqt|g" \
+ -e "s|/usr/bin/tmoc|%{tde_bindir}/tmoc|g"
+
+
+%build
+unset QTDIR || : ; . /etc/profile.d/qt3.sh
+export PATH="%{tde_bindir}:${PATH}"
+export PKG_CONFIG_PATH="%{tde_libdir}/pkgconfig:${PKG_CONFIG_PATH}"
+
+export CXXFLAGS="-I${QTINC} -I%{tde_tdeincludedir} ${CXXFLAGS}"
+
+%if 0%{?rhel} || 0%{?fedora} || 0%{?suse_version}
+%__mkdir_p build
+cd build
+%endif
+
+%cmake \
+ -DBIN_INSTALL_DIR=%{tde_bindir} \
+ -DINCLUDE_INSTALL_DIR=%{tde_tdeincludedir} \
+ -DLIB_INSTALL_DIR=%{tde_libdir} \
+ -DSHARE_INSTALL_PREFIX=%{tde_datadir} \
+ -DCMAKE_SKIP_RPATH="OFF" \
+ -DTDE_INCLUDE_DIR=%{tde_tdeincludedir} \
+ -DQTC_QT_ONLY=false \
+ -DQTC_STYLE_SUPPORT=true \
+ -DBUILD_ALL=on \
+ ..
+
+%__make %{?_smp_mflags}
+
+
+%install
+export PATH="%{tde_bindir}:${PATH}"
+%__rm -rf %{buildroot}
+%__make install DESTDIR=%{buildroot} -C build
+
+%find_lang qtcurve
+
+
+%clean
+%__rm -rf %{buildroot}
+
+
+
+%files -f qtcurve.lang
+%defattr(-,root,root,-)
+%doc AUTHORS COPYING
+%{tde_tdelibdir}/kstyle_qtcurve_config.la
+%{tde_tdelibdir}/kstyle_qtcurve_config.so
+%{tde_tdelibdir}/plugins/styles/qtcurve.so
+%{tde_tdelibdir}/plugins/styles/qtcurve.la
+%{tde_datadir}/apps/kdisplay/color-schemes/QtCurve.kcsrc
+%{tde_datadir}/apps/kstyle/themes/qtcurve.themerc
+%{tde_datadir}/apps/QtCurve/*.qtcurve
+
+
+%changelog
+* Wed Oct 03 2012 Francois Andriot <francois.andriot@free.fr> - 0.55.2-4
+- Initial build for TDE 3.5.13.1
+
+* Sun Sep 09 2012 Francois Andriot <francois.andriot@free.fr> - 0.55.2-3
+- Switch to v3.5.13-sru branch
+
+* Tue May 01 2012 Francois Andriot <francois.andriot@free.fr> - 0.55.2-2
+- Rebuilt for Fedora 17
+- Removes post and postun
+
+* Sat Nov 19 2011 Francois Andriot <francois.andriot@free.fr> - 0.55.2-1
+- Initial build for RHEL 5, RHEL 6, Fedora 15, Fedora 16
diff --git a/redhat/applications/kde-style-qtcurve/trinity-kde-style-qtcurve.spec b/redhat/applications/kde-style-qtcurve/trinity-kde-style-qtcurve-3.5.13.spec
index b859075ba..2fcec0dd2 100644
--- a/redhat/applications/kde-style-qtcurve/trinity-kde-style-qtcurve.spec
+++ b/redhat/applications/kde-style-qtcurve/trinity-kde-style-qtcurve-3.5.13.spec
@@ -26,7 +26,7 @@
Name: trinity-style-qtcurve
Summary: This is a set of widget styles for Trinity based apps
Version: 0.55.2
-Release: 2%{?dist}%{?_variant}
+Release: 3%{?dist}%{?_variant}
License: GPLv2+
Group: Applications/Utilities
@@ -39,8 +39,10 @@ Prefix: %{tde_prefix}
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Source0: %{kdecomp}-3.5.13.tar.gz
+Source1: cmake-3.5.13.tar.gz
-Patch0: kde-style-qtcurve-1.6.2-libsuffix.patch
+# [qtcurve] Version 3.5.13-sru
+Patch0: kde-style-qtcurve-3.5.13-sru-20120909.patch
BuildRequires: tqtinterface-devel
BuildRequires: trinity-tdelibs-devel
@@ -49,6 +51,7 @@ BuildRequires: desktop-file-utils
BuildRequires: gettext
Obsoletes: trinity-kde-style-qtcurve
+Provides: trinity-kde-style-qtcurve
%description
This package together with gtk2-engines-qtcurve aim to provide a unified look
@@ -60,17 +63,23 @@ gtk2-engines-qtcurve.
%prep
%setup -q -n applications/%{kdecomp}
+%setup -q -n applications/%{kdecomp} -a 1
+%__mv -f cmake-3.5.13/* cmake/
+
%patch0 -p1
# Ugly hack to modify TQT include directory inside autoconf files.
# If TQT detection fails, it fallbacks to TQT4 instead of TQT3 !
-%__sed -i CMakeLists.txt \
- -e "s|/usr/include/tqt|%{tde_includedir}/tqt|g"
+%__sed -i "CMakeLists.txt" \
+ -e "s|/usr/include/tqt|%{tde_includedir}/tqt|g" \
+ -e "s|/usr/bin/uic-tqt|%{tde_bindir}/uic-tqt|g" \
+ -e "s|/usr/bin/tmoc|%{tde_bindir}/tmoc|g"
%build
unset QTDIR || : ; . /etc/profile.d/qt.sh
export PATH="%{tde_bindir}:${PATH}"
+export PKG_CONFIG_PATH="%{tde_libdir}/pkgconfig:${PKG_CONFIG_PATH}"
export CXXFLAGS="-I${QTINC} -I%{tde_tdeincludedir} ${CXXFLAGS}"
@@ -80,8 +89,16 @@ cd build
%endif
%cmake \
- -DKDE3PREFIX=%{tde_prefix} \
- ..
+ -DBIN_INSTALL_DIR=%{tde_bindir} \
+ -DINCLUDE_INSTALL_DIR=%{tde_tdeincludedir} \
+ -DLIB_INSTALL_DIR=%{tde_libdir} \
+ -DSHARE_INSTALL_PREFIX=%{tde_datadir} \
+ -DCMAKE_SKIP_RPATH="OFF" \
+ -DTDE_INCLUDE_DIR=%{tde_tdeincludedir} \
+ -DQTC_QT_ONLY=false \
+ -DQTC_STYLE_SUPPORT=true \
+ -DBUILD_ALL=on \
+ ..
%__make %{?_smp_mflags}
@@ -91,32 +108,30 @@ export PATH="%{tde_bindir}:${PATH}"
%__rm -rf %{buildroot}
%__make install DESTDIR=%{buildroot} -C build
+%find_lang qtcurve
+
%clean
%__rm -rf %{buildroot}
-%files
+%files -f qtcurve.lang
%defattr(-,root,root,-)
%doc AUTHORS COPYING
+%{tde_tdelibdir}/kstyle_qtcurve_config.la
+%{tde_tdelibdir}/kstyle_qtcurve_config.so
%{tde_tdelibdir}/plugins/styles/qtcurve.so
-%{tde_datadir}/apps/QtCurve/Agua.qtcurve
-%{tde_datadir}/apps/QtCurve/Agua_II.qtcurve
-%{tde_datadir}/apps/QtCurve/Curve.qtcurve
-%{tde_datadir}/apps/QtCurve/Flat.qtcurve
-%{tde_datadir}/apps/QtCurve/Human.qtcurve
-%{tde_datadir}/apps/QtCurve/Inverted.qtcurve
-%{tde_datadir}/apps/QtCurve/Klearlooks.qtcurve
-%{tde_datadir}/apps/QtCurve/Milk.qtcurve
-%{tde_datadir}/apps/QtCurve/Murrine.qtcurve
-%{tde_datadir}/apps/QtCurve/Ozone.qtcurve
-%{tde_datadir}/apps/QtCurve/Plastic.qtcurve
-%{tde_datadir}/apps/QtCurve/Silk.qtcurve
+%{tde_tdelibdir}/plugins/styles/qtcurve.la
%{tde_datadir}/apps/kdisplay/color-schemes/QtCurve.kcsrc
+%{tde_datadir}/apps/kstyle/themes/qtcurve.themerc
+%{tde_datadir}/apps/QtCurve/*.qtcurve
%Changelog
+* Sun Sep 09 2012 Francois Andriot <francois.andriot@free.fr> - 0.55.2-3
+- Switch to v3.5.13-sru branch
+
* Tue May 01 2012 Francois Andriot <francois.andriot@free.fr> - 0.55.2-2
- Rebuilt for Fedora 17
- Removes post and postun
diff --git a/redhat/applications/kde-systemsettings/trinity-kde-systemsettings-3.5.13.1.spec b/redhat/applications/kde-systemsettings/trinity-kde-systemsettings-3.5.13.1.spec
new file mode 100644
index 000000000..a9f5dd45a
--- /dev/null
+++ b/redhat/applications/kde-systemsettings/trinity-kde-systemsettings-3.5.13.1.spec
@@ -0,0 +1,159 @@
+# Default version for this component
+%define kdecomp kde-systemsettings
+
+# If TDE is built in a specific prefix (e.g. /opt/trinity), the release will be suffixed with ".opt".
+%if "%{?tde_prefix}" != "/usr"
+%define _variant .opt
+# Currently, menu files under /etc/xdg conflict with KDE4
+%define tde_sysconfdir %{tde_prefix}/etc
+%endif
+
+# TDE 3.5.13 specific building variables
+%define tde_bindir %{tde_prefix}/bin
+%define tde_datadir %{tde_prefix}/share
+%define tde_docdir %{tde_datadir}/doc
+%define tde_includedir %{tde_prefix}/include
+%define tde_libdir %{tde_prefix}/%{_lib}
+%define tde_mandir %{tde_datadir}/man
+%define tde_appdir %{tde_datadir}/applications
+
+%define tde_tdeappdir %{tde_appdir}/kde
+%define tde_tdedocdir %{tde_docdir}/tde
+%define tde_tdeincludedir %{tde_includedir}/tde
+%define tde_tdelibdir %{tde_libdir}/trinity
+
+%define _docdir %{tde_docdir}
+
+
+Name: trinity-systemsettings
+Summary: easy to use control centre for TDE
+Version: 0.0svn20070312
+Release: 5%{?dist}%{?_variant}
+
+License: GPLv2+
+Group: Applications/Utilities
+
+Vendor: Trinity Project
+Packager: Francois Andriot <francois.andriot@free.fr>
+URL: http://www.trinitydesktop.org
+
+Prefix: %{tde_prefix}
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+
+Source0: %{kdecomp}-3.5.13.1.tar.gz
+Source1: kde-settings-laptops.directory
+
+Provides: trinity-kde-systemsettings = %{version}-%{release}
+Obsoletes: trinity-kde-systemsettings < %{version}-%{release}
+
+BuildRequires: trinity-tqtinterface-devel >= 3.5.13.1
+BuildRequires: trinity-tdelibs-devel >= 3.5.13.1
+BuildRequires: trinity-tdebase-devel >= 3.5.13.1
+BuildRequires: desktop-file-utils
+
+Requires: trinity-guidance
+
+%description
+System preferences is a replacement for the TDE
+Control Centre with an improved user interface.
+
+
+%if 0%{?suse_version}
+%debug_package
+%endif
+
+
+%prep
+%setup -q -n %{kdecomp}-3.5.13.1
+
+# Ugly hack to modify TQT include directory inside autoconf files.
+# If TQT detection fails, it fallbacks to TQT4 instead of TQT3 !
+%__sed -i admin/acinclude.m4.in \
+ -e "s|/usr/include/tqt|%{tde_includedir}/tqt|g" \
+ -e "s|kde_htmldir='.*'|kde_htmldir='%{tde_tdedocdir}/HTML'|g"
+
+%__cp -f "/usr/share/aclocal/libtool.m4" "admin/libtool.m4.in"
+%__cp -f "/usr/share/libtool/config/ltmain.sh" "admin/ltmain.sh" || %__cp -f "/usr/share/libtool/ltmain.sh" "admin/ltmain.sh"
+%__make -f "admin/Makefile.common"
+
+
+%build
+unset QTDIR; . /etc/profile.d/qt3.sh
+export PATH="%{tde_bindir}:${PATH}"
+export LDFLAGS="-L%{tde_libdir} -I%{tde_includedir}"
+
+%configure \
+ --prefix=%{tde_prefix} \
+ --exec-prefix=%{tde_prefix} \
+ --bindir=%{tde_bindir} \
+ --datadir=%{tde_datadir} \
+ --includedir=%{tde_tdeincludedir} \
+ --sysconfdir=%{tde_sysconfdir} \
+ --disable-rpath \
+ --with-extra-includes=%{tde_includedir}/tqt \
+ --enable-closure
+
+%__make %{?_smp_mflags}
+
+
+%install
+export PATH="%{tde_bindir}:${PATH}"
+%__rm -rf %{buildroot}
+%__make install DESTDIR=%{buildroot}
+
+%__install -D -m 644 %{SOURCE1} %{buildroot}%{tde_datadir}/desktop-directories/
+
+# Unwanted files
+%__rm -f %{buildroot}%{tde_datadir}/applications/kde/kcmfontinst.desktop
+%__rm -f %{buildroot}%{tde_datadir}/desktop-directories/kde-settings-power.directory
+%__rm -f %{buildroot}%{tde_datadir}/desktop-directories/kde-settings-system.directory
+
+%clean
+%__rm -rf %{buildroot}
+
+
+%post
+touch --no-create %{tde_datadir}/icons/crystalsvg || :
+gtk-update-icon-cache --quiet %{tde_datadir}/icons/crystalsvg || :
+xdg-user-dirs-update
+
+%postun
+touch --no-create %{tde_datadir}/icons/crystalsvg || :
+gtk-update-icon-cache --quiet %{tde_datadir}/icons/crystalsvg || :
+xdg-user-dirs-update
+
+%files
+%defattr(-,root,root,-)
+%doc README TODO
+%{tde_sysconfdir}/xdg/menus/applications-merged/system-settings-merge.menu
+%{tde_sysconfdir}/xdg/menus/system-settings.menu
+%{tde_bindir}/systemsettings
+%{tde_datadir}/applications/kde/audioencoding.desktop
+%{tde_datadir}/applications/kde/defaultapplication.desktop
+%{tde_datadir}/applications/kde/kcm_knetworkconfmodule_ss.desktop
+%{tde_datadir}/applications/kde/laptoppowermanagement.desktop
+%{tde_datadir}/applications/kde/medianotifications.desktop
+%{tde_datadir}/applications/kde/systemsettings.desktop
+%{tde_datadir}/apps/systemsettings/systemsettingsui.rc
+%{tde_datadir}/config/systemsettingsrc
+%{tde_datadir}/desktop-directories/*.directory
+%{tde_datadir}/icons/crystalsvg/*/apps/systemsettings.png
+
+
+
+%changelog
+* Wed Oct 03 2012 Francois Andriot <francois.andriot@free.fr> - 0.0svn20070312-5
+- Initial build for TDE 3.5.13.1
+
+* Wed Jul 11 2012 Francois Andriot <francois.andriot@free.fr> - 0.0svn20070312-4
+- Fix XDG menu directory location (again)
+
+* Sun Jul 08 2012 Francois Andriot <francois.andriot@free.fr> - 0.0svn20070312-3
+- Updates 'Requires: trinity-guidance' to reflect package renaming
+
+* Wed Dec 14 2011 Francois Andriot <francois.andriot@free.fr> - 0.0svn20070312-2
+- Fix XDG menu directory location
+
+* Sat Dec 03 2011 Francois Andriot <francois.andriot@free.fr> - 0.0svn20070312-1
+- Initial build for RHEL 5, RHEL 6, Fedora 15, Fedora 16
+
diff --git a/redhat/applications/kde-systemsettings/trinity-kde-systemsettings.spec b/redhat/applications/kde-systemsettings/trinity-kde-systemsettings-3.5.13.spec
index ed156aba8..ed156aba8 100644
--- a/redhat/applications/kde-systemsettings/trinity-kde-systemsettings.spec
+++ b/redhat/applications/kde-systemsettings/trinity-kde-systemsettings-3.5.13.spec
diff --git a/redhat/applications/kdesudo/trinity-kdesudo-3.5.13.1.spec b/redhat/applications/kdesudo/trinity-kdesudo-3.5.13.1.spec
new file mode 100644
index 000000000..48cadbca8
--- /dev/null
+++ b/redhat/applications/kdesudo/trinity-kdesudo-3.5.13.1.spec
@@ -0,0 +1,139 @@
+# Default version for this component
+%define kdecomp kdesudo
+
+# If TDE is built in a specific prefix (e.g. /opt/trinity), the release will be suffixed with ".opt".
+%if "%{?tde_prefix}" != "/usr"
+%define _variant .opt
+%endif
+
+# TDE 3.5.13 specific building variables
+%define tde_bindir %{tde_prefix}/bin
+%define tde_datadir %{tde_prefix}/share
+%define tde_docdir %{tde_datadir}/doc
+%define tde_includedir %{tde_prefix}/include
+%define tde_libdir %{tde_prefix}/%{_lib}
+%define tde_mandir %{tde_datadir}/man
+%define tde_appdir %{tde_datadir}/applications
+
+%define tde_tdeappdir %{tde_appdir}/kde
+%define tde_tdedocdir %{tde_docdir}/tde
+%define tde_tdeincludedir %{tde_includedir}/tde
+%define tde_tdelibdir %{tde_libdir}/trinity
+
+%define _docdir %{tde_docdir}
+
+
+Name: trinity-%{kdecomp}
+Summary: sudo frontend for Trinity
+
+Version: 2.5.1
+Release: 3%{?dist}%{?_variant}
+
+License: GPLv2+
+Group: Applications/Utilities
+
+Vendor: Trinity Project
+Packager: Francois Andriot <francois.andriot@free.fr>
+URL: http://www.trinitydesktop.org/
+
+Prefix: %{_prefix}
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+
+Source0: %{kdecomp}-3.5.13.1.tar.gz
+
+BuildRequires: trinity-tqtinterface-devel >= 3.5.13.1
+BuildRequires: trinity-arts-devel >= 3.5.13.1
+BuildRequires: trinity-tdelibs-devel >= 3.5.13.1
+BuildRequires: trinity-tdebase-devel >= 3.5.13.1
+BuildRequires: desktop-file-utils
+
+
+%description
+KdeSudo is a graphical frontend for the sudo utility.
+It allows you to run programs as another user by entering your password.
+
+
+%if 0%{?suse_version}
+%debug_package
+%endif
+
+
+%prep
+%setup -q -n %{kdecomp}-3.5.13.1
+
+# Ugly hack to modify TQT include directory inside autoconf files.
+# If TQT detection fails, it fallbacks to TQT4 instead of TQT3 !
+%__sed -i admin/acinclude.m4.in \
+ -e "s|/usr/include/tqt|%{tde_includedir}/tqt|g" \
+ -e "s|kde_htmldir='.*'|kde_htmldir='%{tde_tdedocdir}/HTML'|g"
+
+%__cp -f "/usr/share/aclocal/libtool.m4" "admin/libtool.m4.in"
+%__cp -f "/usr/share/libtool/config/ltmain.sh" "admin/ltmain.sh" || %__cp -f "/usr/share/libtool/ltmain.sh" "admin/ltmain.sh"
+%__make -f "admin/Makefile.common"
+
+
+%build
+unset QTDIR || : ; source /etc/profile.d/qt3.sh
+export PATH="%{tde_bindir}:${PATH}"
+export LDFLAGS="-L%{tde_libdir} -I%{tde_includedir}"
+
+%configure \
+ --prefix=%{tde_prefix} \
+ --exec-prefix=%{tde_prefix} \
+ --bindir=%{tde_bindir} \
+ --includedir=%{tde_tdeincludedir} \
+ --disable-rpath \
+ --with-extra-includes=%{tde_includedir}/tqt
+
+%__make %{?_smp_mflags}
+
+
+%install
+export PATH="%{tde_bindir}:${PATH}"
+%__rm -rf %{buildroot}
+%__make install DESTDIR=%{buildroot}
+
+
+
+## File lists
+# 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
+
+%find_lang %{kdecomp}
+
+%clean
+%__rm -rf %{buildroot}
+
+
+
+%files -f %{kdecomp}.lang
+%defattr(-,root,root,-)
+%{tde_bindir}/kdesudo
+%{tde_tdedocdir}/HTML/en/kdesudo/
+
+
+%changelog
+* Wed Oct 03 2012 Francois Andriot <francois.andriot@free.fr> - 2.5.1-3
+- Initial build for TDE 3.5.13.1
+
+* Tue May 01 2012 Francois Andriot <francois.andriot@free.fr> - 2.5.1-2
+- Rebuilt for Fedora 17
+- Fix HTML directory location
+- Removes post and postun
+
+* Wed Nov 02 2011 Francois Andriot <francois.andriot@free.fr> - 2.5.1-1
+- Initial release for TDE 3.5.13 on RHEL 6, RHEL 5 and Fedora 15
diff --git a/redhat/applications/kdesvn/trinity-kdesvn-3.5.13.1.spec b/redhat/applications/kdesvn/trinity-kdesvn-3.5.13.1.spec
new file mode 100644
index 000000000..3ab0bd8be
--- /dev/null
+++ b/redhat/applications/kdesvn/trinity-kdesvn-3.5.13.1.spec
@@ -0,0 +1,287 @@
+# Default version for this component
+%define kdecomp kdesvn
+
+# If TDE is built in a specific prefix (e.g. /opt/trinity), the release will be suffixed with ".opt".
+%if "%{?tde_prefix}" != "/usr"
+%define _variant .opt
+%endif
+
+# TDE 3.5.13 specific building variables
+%define tde_bindir %{tde_prefix}/bin
+%define tde_datadir %{tde_prefix}/share
+%define tde_docdir %{tde_datadir}/doc
+%define tde_includedir %{tde_prefix}/include
+%define tde_libdir %{tde_prefix}/%{_lib}
+%define tde_mandir %{tde_datadir}/man
+%define tde_appdir %{tde_datadir}/applications
+
+%define tde_tdeappdir %{tde_appdir}/kde
+%define tde_tdedocdir %{tde_docdir}/tde
+%define tde_tdeincludedir %{tde_includedir}/tde
+%define tde_tdelibdir %{tde_libdir}/trinity
+
+%define _docdir %{tde_docdir}
+
+
+Name: trinity-%{kdecomp}
+Summary: subversion client with tight KDE integration [Trinity]
+Version: 1.0.4
+Release: 4%{?dist}%{?_variant}
+
+License: GPLv2+
+Group: Applications/Utilities
+
+Vendor: Trinity Project
+Packager: Francois Andriot <francois.andriot@free.fr>
+URL: http://www.elliptique.net/~ken/kima/
+
+Prefix: %{_prefix}
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+
+Source0: %{kdecomp}-3.5.13.1.tar.gz
+
+# [kdesvn] Fix "not a string literal" error
+Patch2: kdesvn-3.5.13-fix_not_a_string_literal_error.patch
+
+BuildRequires: trinity-tqtinterface-devel >= 3.5.13.1
+BuildRequires: trinity-tdelibs-devel >= 3.5.13.1
+BuildRequires: trinity-tdebase-devel >= 3.5.13.1
+BuildRequires: desktop-file-utils
+BuildRequires: gettext
+
+BuildRequires: subversion-devel
+Requires: trinity-kdesvn-kio-plugins = %{version}-%{release}
+
+
+%description
+KDESvn is a graphical client for the subversion revision control
+system (svn).
+
+Besides offering common and advanced svn operations, it features
+a tight integration into KDE and can be embedded into other KDE
+applications like konqueror via the KDE component technology KParts.
+
+
+%package -n trinity-libsvnqt
+Group: Development/Libraries
+Summary: Qt wrapper library for subversion [Trinity]
+
+%description -n trinity-libsvnqt
+This package provides svnqt, a Qt wrapper library around the
+subversion library.
+
+It is based on the RapidSvn SvnCpp library, a subversion client API
+written in C++.
+
+%package -n trinity-libsvnqt-devel
+Group: Development/Libraries
+Requires: trinity-libsvnqt = %{version}-%{release}
+Requires: qt-devel
+Requires: subversion-devel
+Summary: Qt wrapper library for subversion (development files) [Trinity]
+
+%description -n trinity-libsvnqt-devel
+This package contains the header files and symbolic links that developers
+using svnqt will need.
+
+
+%package kio-plugins
+Group: Development/Libraries
+Conflicts: trinity-kdesdk-kio-plugins
+Summary: subversion I/O slaves for Trinity
+
+%description kio-plugins
+This packages includes KIO slaves for svn, svn+file, svn+http,
+svn+https, svn+ssh. This allows you to access subversion repositories
+inside any KIO enabled KDE application.
+
+This package is part of tdesvn-trinity.
+
+
+%if 0%{?suse_version}
+%debug_package
+%endif
+
+
+%prep
+%setup -q -n %{kdecomp}-3.5.13.1
+%patch2 -p1 -b .stringliteral
+
+# Ugly hack to modify TQT include directory inside autoconf files.
+# If TQT detection fails, it fallbacks to TQT4 instead of TQT3 !
+find . -name CMakeLists.txt -exec %__sed -i {} \
+ -e "s,/usr/include/tqt,%{tde_includedir}/tqt,g" \
+ -e "s,/usr/bin/tmoc,%{tde_bindir}/tmoc,g" \
+ -e "s,/usr/bin/uic-tqt,%{tde_bindir}/uic-tqt,g" \
+ \;
+
+# More ugly hack to add TQT include directory in CMakeLists.txt
+%__sed -i CMakeLists.txt \
+ -e "s,^\(INCLUDE_DIRECTORIES (\)$,\1\n%{tde_includedir}/tqt,"
+
+# Moves HTML files to the correect location
+find . -name "*.cmake" -exec %__sed -i {} \
+ -e "s,/doc/HTML,/doc/kde/HTML,g" \
+ \;
+
+%build
+unset QTDIR; . /etc/profile.d/qt3.sh
+export PATH="%{tde_bindir}:${QTDIR}/bin:${PATH}"
+export LDFLAGS="-L%{tde_libdir} -I%{tde_includedir}"
+
+export CMAKE_INCLUDE_PATH="%{tde_tdeincludedir}"
+
+%if 0%{?rhel} || 0%{?fedora} || 0%{?suse_version}
+%__mkdir_p build
+cd build
+%endif
+
+%cmake \
+ -DCMAKE_INSTALL_PREFIX=%{tde_prefix} \
+ -DBIN_INSTALL_DIR=%{tde_bindir} \
+ -DINCLUDE_INSTALL_DIR=%{tde_includedir} \
+ -DLIB_INSTALL_DIR=%{tde_libdir} \
+ -DMAN_INSTALL_DIR=%{tde_mandir}/man1 \
+ -DDATA_INSTALL_DIR=%{tde_datadir} \
+ -DPKGCONFIG_INSTALL_DIR=%{tde_tdelibdir}/pkgconfig \
+ -DSHARE_INSTALL_PREFIX=%{tde_datadir} \
+ -DCMAKE_SKIP_RPATH="OFF" \
+ ..
+
+# SMP safe !
+%__make %{?_smp_mflags}
+
+
+%install
+export PATH="%{_bindir}:${PATH}"
+%__rm -rf %{buildroot}
+%__make install DESTDIR=%{buildroot} -C build
+
+
+%find_lang %{kdecomp} || touch %{kdecomp}.lang
+
+# Installs SVN protocols as alternatives
+%__mv -f %{?buildroot}%{tde_datadir}/services/svn+file.protocol %{?buildroot}%{tde_datadir}/services/svn+file.protocol_tdesvn
+%__mv -f %{?buildroot}%{tde_datadir}/services/svn+http.protocol %{?buildroot}%{tde_datadir}/services/svn+http.protocol_tdesvn
+%__mv -f %{?buildroot}%{tde_datadir}/services/svn+https.protocol %{?buildroot}%{tde_datadir}/services/svn+https.protocol_tdesvn
+%__mv -f %{?buildroot}%{tde_datadir}/services/svn+ssh.protocol %{?buildroot}%{tde_datadir}/services/svn+ssh.protocol_tdesvn
+%__mv -f %{?buildroot}%{tde_datadir}/services/svn.protocol %{?buildroot}%{tde_datadir}/services/svn.protocol_tdesvn
+%__ln_s /etc/alternatives/svn+file.protocol %{?buildroot}%{tde_datadir}/services/svn+file.protocol
+%__ln_s /etc/alternatives/svn+http.protocol %{?buildroot}%{tde_datadir}/services/svn+http.protocol
+%__ln_s /etc/alternatives/svn+https.protocol %{?buildroot}%{tde_datadir}/services/svn+https.protocol
+%__ln_s /etc/alternatives/svn+ssh.protocol %{?buildroot}%{tde_datadir}/services/svn+ssh.protocol
+%__ln_s /etc/alternatives/svn.protocol %{?buildroot}%{tde_datadir}/services/svn.protocol
+
+
+%clean
+%__rm -rf %{buildroot}
+
+
+%post
+touch --no-create %{_datadir}/icons/hicolor || :
+gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
+
+%postun
+touch --no-create %{_datadir}/icons/hicolor || :
+gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
+
+%post -n trinity-libsvnqt
+/sbin/ldconfig || :
+
+%post kio-plugins
+for proto in svn+file svn+http svn+https svn+ssh svn; do
+%if 0%{?suse_version}
+ update-alternatives --install \
+%else
+ alternatives --install \
+%endif
+ %{tde_datadir}/services/${proto}.protocol \
+ ${proto}.protocol \
+ %{tde_datadir}/services/${proto}.protocol_tdesvn \
+ 20
+done
+
+%preun kio-plugins
+if [ $1 -eq 0 ]; then
+ for proto in svn+file svn+http svn+https svn+ssh svn; do
+%if 0%{?suse_version}
+ update-alternatives --remove \
+%else
+ alternatives --remove \
+%endif
+ ${proto}.protocol \
+ %{tde_datadir}/services/${proto}.protocol_tdesvn
+ done
+fi
+
+
+
+%postun -n trinity-libsvnqt
+/sbin/ldconfig || :
+
+
+%files -f %{kdecomp}.lang
+%defattr(-,root,root,-)
+%doc AUTHORS ChangeLog COPYING NEWS README TODO
+%{tde_bindir}/kdesvn
+%{tde_bindir}/kdesvnaskpass
+%{tde_tdelibdir}/libkdesvnpart.la
+%{tde_tdelibdir}/libkdesvnpart.so
+%{tde_datadir}/applications/kde/kdesvn.desktop
+%{tde_datadir}/apps/kconf_update/kdesvn-use-external-update.sh
+%{tde_datadir}/apps/kconf_update/kdesvnpartrc-use-external.upd
+%{tde_datadir}/apps/kdesvn/kdesvnui.rc
+%{tde_datadir}/apps/kdesvnpart/kdesvn_part.rc
+%{tde_datadir}/apps/konqueror/servicemenus/kdesvn_subversion.desktop
+%{tde_datadir}/config.kcfg/kdesvn_part.kcfg
+%{tde_datadir}/icons/hicolor/*/*/*.png
+%{tde_datadir}/icons/hicolor/*/*/*.svgz
+%{tde_mandir}/man1/kdesvn.1
+%{tde_mandir}/man1/kdesvnaskpass.1
+%{tde_tdedocdir}/HTML/*/
+
+%files -n trinity-libsvnqt
+%{tde_libdir}/libsvnqt.so.4
+%{tde_libdir}/libsvnqt.so.4.2.2
+
+%files -n trinity-libsvnqt-devel
+%{tde_includedir}/svnqt
+%{tde_libdir}/libsvnqt.so
+
+%files kio-plugins
+%{tde_datadir}/services/kded/kdesvnd.desktop
+%{tde_datadir}/services/ksvn+file.protocol
+%{tde_datadir}/services/ksvn+http.protocol
+%{tde_datadir}/services/ksvn+https.protocol
+%{tde_datadir}/services/ksvn+ssh.protocol
+%{tde_datadir}/services/ksvn.protocol
+%{tde_datadir}/services/svn+file.protocol
+%{tde_datadir}/services/svn+http.protocol
+%{tde_datadir}/services/svn+https.protocol
+%{tde_datadir}/services/svn+ssh.protocol
+%{tde_datadir}/services/svn.protocol
+%{tde_datadir}/services/svn+file.protocol_tdesvn
+%{tde_datadir}/services/svn+http.protocol_tdesvn
+%{tde_datadir}/services/svn+https.protocol_tdesvn
+%{tde_datadir}/services/svn+ssh.protocol_tdesvn
+%{tde_datadir}/services/svn.protocol_tdesvn
+%{tde_tdelibdir}/kio_ksvn.la
+%{tde_tdelibdir}/kio_ksvn.so
+%{tde_tdelibdir}/kded_kdesvnd.la
+%{tde_tdelibdir}/kded_kdesvnd.so
+
+
+%changelog
+* Wed Oct 03 2012 Francois Andriot <francois.andriot@free.fr> - 1.0.4-4
+- Initial build for TDE 3.5.13.1
+
+* Mon Jul 30 2012 Francois Andriot <francois.andriot@free.fr> - 1.0.4-3
+- Installs SVN protocols as alternative, avoids conlict with TDESDK
+
+* Tue May 01 2012 Francois Andriot <francois.andriot@free.fr> - 1.0.4-2
+- Rebuilt for Fedora 17
+- Fix post and postun
+- Fix compilation with GCC 4.7
+
+* Thu Dec 01 2011 Francois Andriot <francois.andriot@free.fr> - 1.0.4-1
+- Initial build for RHEL 5, RHEL 6, Fedora 15, Fedora 16
diff --git a/redhat/applications/kdesvn/trinity-kdesvn.spec b/redhat/applications/kdesvn/trinity-kdesvn-3.5.13.spec
index ce67e8923..ce67e8923 100644
--- a/redhat/applications/kdesvn/trinity-kdesvn.spec
+++ b/redhat/applications/kdesvn/trinity-kdesvn-3.5.13.spec
diff --git a/redhat/applications/kdiff3/trinity-kdiff3-3.5.13.1.spec b/redhat/applications/kdiff3/trinity-kdiff3-3.5.13.1.spec
new file mode 100644
index 000000000..87f99bb67
--- /dev/null
+++ b/redhat/applications/kdiff3/trinity-kdiff3-3.5.13.1.spec
@@ -0,0 +1,159 @@
+# Default version for this component
+%define kdecomp kdiff3
+
+# If TDE is built in a specific prefix (e.g. /opt/trinity), the release will be suffixed with ".opt".
+%if "%{?tde_prefix}" != "/usr"
+%define _variant .opt
+%endif
+
+# TDE 3.5.13 specific building variables
+%define tde_bindir %{tde_prefix}/bin
+%define tde_datadir %{tde_prefix}/share
+%define tde_docdir %{tde_datadir}/doc
+%define tde_includedir %{tde_prefix}/include
+%define tde_libdir %{tde_prefix}/%{_lib}
+%define tde_mandir %{tde_datadir}/man
+%define tde_appdir %{tde_datadir}/applications
+
+%define tde_tdeappdir %{tde_appdir}/kde
+%define tde_tdedocdir %{tde_docdir}/tde
+%define tde_tdeincludedir %{tde_includedir}/tde
+%define tde_tdelibdir %{tde_libdir}/trinity
+
+%define _docdir %{tde_docdir}
+
+
+Name: trinity-%{kdecomp}
+Summary: KDiff3 is a utility for comparing and/or merging two or three text files or directories.
+Version: 0.9.91
+Release: 5%{?dist}%{?_variant}
+
+License: GPLv2+
+Group: Applications/Utilities
+
+Vendor: Trinity Project
+Packager: Francois Andriot <francois.andriot@free.fr>
+URL: http://www.trinitydesktop.org/
+
+Prefix: %{tde_prefix}
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+
+Source0: %{kdecomp}-3.5.13.1.tar.gz
+
+BuildRequires: trinity-tqtinterface-devel >= 3.5.13.1
+BuildRequires: trinity-arts-devel >= 3.5.13.1
+BuildRequires: trinity-tdelibs-devel >= 3.5.13.1
+BuildRequires: trinity-tdebase-devel >= 3.5.13.1
+BuildRequires: desktop-file-utils
+
+%description
+Shows the differences line by line and character by character (!).
+Provides an automatic merge-facility and
+an integrated editor for comfortable solving of merge-conflicts.
+Supports KIO on TDE (allows accessing ftp, sftp, fish, smb etc.).
+Unicode & UTF-8 support
+
+
+%if 0%{?suse_version}
+%debug_package
+%endif
+
+
+%prep
+%setup -q -n %{kdecomp}-3.5.13.1
+
+# Ugly hack to modify TQT include directory inside autoconf files.
+# If TQT detection fails, it fallbacks to TQT4 instead of TQT3 !
+%__sed -i admin/acinclude.m4.in \
+ -e "s|/usr/include/tqt|%{tde_includedir}/tqt|g" \
+ -e "s|kde_htmldir='.*'|kde_htmldir='%{tde_tdedocdir}/HTML'|g"
+
+%__cp -f "/usr/share/aclocal/libtool.m4" "admin/libtool.m4.in"
+%__cp -f "/usr/share/libtool/config/ltmain.sh" "admin/ltmain.sh" || %__cp -f "/usr/share/libtool/ltmain.sh" "admin/ltmain.sh"
+%__make -f "admin/Makefile.common"
+
+
+%build
+unset QTDIR; . /etc/profile.d/qt3.sh
+export PATH="%{tde_bindir}:${PATH}"
+export LDFLAGS="-L%{tde_libdir} -I%{tde_includedir}"
+
+%configure \
+ --prefix=%{tde_prefix} \
+ --exec-prefix=%{tde_prefix} \
+ --bindir=%{tde_bindir} \
+ --datadir=%{tde_datadir} \
+ --includedir=%{tde_tdeincludedir} \
+ --libdir=%{tde_libdir} \
+ --mandir=%{tde_mandir} \
+ --disable-rpath \
+ --with-extra-includes=%{tde_includedir}/tqt \
+ --enable-closure
+
+%__make %{?_smp_mflags}
+
+
+%install
+export PATH="%{tde_bindir}:${PATH}"
+%__rm -rf %{buildroot}
+%__make install DESTDIR=%{buildroot}
+
+%find_lang %{kdecomp}
+
+%clean
+%__rm -rf %{buildroot}
+
+
+%post
+for f in hicolor locolor; do
+ touch --no-create %{tde_datadir}/icons/${f} || :
+ gtk-update-icon-cache --quiet %{tde_datadir}/icons/${f} &>/dev/null || :
+done
+
+%postun
+for f in hicolor locolor; do
+ touch --no-create %{tde_datadir}/icons/${f} || :
+ gtk-update-icon-cache --quiet %{tde_datadir}/icons/${f} &>/dev/null || :
+done
+
+
+%files -f %{kdecomp}.lang
+%defattr(-,root,root,-)
+%doc AUTHORS COPYING
+%{tde_bindir}/*
+%{tde_datadir}/apps/*/
+%{tde_datadir}/icons/hicolor/*/*/*
+%{tde_datadir}/icons/locolor/*/*/*
+%{tde_tdedocdir}/HTML/*/*
+%{tde_datadir}/services/*.desktop
+%{tde_datadir}/applnk/Development/*.desktop
+%{tde_datadir}/applnk/.hidden/kdiff3plugin.desktop
+%{tde_mandir}/man*/*
+
+%{tde_tdelibdir}/*.so
+%{tde_tdelibdir}/*.la
+
+%changelog
+* Wed Oct 03 2012 Francois Andriot <francois.andriot@free.fr> - 0.9.91-5
+- Initial build for TDE 3.5.13.1
+
+* Tue May 01 2012 Francois Andriot <francois.andriot@free.fr> - 0.9.91-4
+- Rebuilt for Fedora 17
+- Fix HTML directory location
+- Fix post and postun
+- Rename old tq methods that no longer need a unique name [Commit #c7e29c46]
+- Remove additional unneeded tq method conversions [Commit #9b57232f]
+- Rename obsolete tq methods to standard names [Commit #d654b107]
+
+* Sun Oct 30 2011 Francois Andriot <francois.andriot@free.fr> - 0.9.91-3
+- Rebuilt for TDE 3.5.13 on RHEL 6, RHEL 5 and Fedora 15
+
+* Tue Sep 14 2011 Francois Andriot <francois.andriot@free.fr> - 0.9.91-2
+- Import to GIT
+
+* Wed Aug 24 2011 Francois Andriot <francois.andriot@free.fr> - 0.9.91-1
+- Correct macro to install under "/opt", if desired
+
+* Sun Aug 14 2011 Francois Andriot <francois.andriot@free.fr> - 0.9.91-0
+- Initial build for RHEL 6.0
+
diff --git a/redhat/applications/kdirstat/trinity-kdirstat-3.5.13.1.spec b/redhat/applications/kdirstat/trinity-kdirstat-3.5.13.1.spec
new file mode 100644
index 000000000..32c01a6b9
--- /dev/null
+++ b/redhat/applications/kdirstat/trinity-kdirstat-3.5.13.1.spec
@@ -0,0 +1,148 @@
+# Default version for this component
+%define kdecomp kdirstat
+
+# If TDE is built in a specific prefix (e.g. /opt/trinity), the release will be suffixed with ".opt".
+%if "%{?tde_prefix}" != "/usr"
+%define _variant .opt
+%endif
+
+# TDE 3.5.13 specific building variables
+%define tde_bindir %{tde_prefix}/bin
+%define tde_datadir %{tde_prefix}/share
+%define tde_docdir %{tde_datadir}/doc
+%define tde_includedir %{tde_prefix}/include
+%define tde_libdir %{tde_prefix}/%{_lib}
+%define tde_mandir %{tde_datadir}/man
+%define tde_appdir %{tde_datadir}/applications
+
+%define tde_tdeappdir %{tde_appdir}/kde
+%define tde_tdedocdir %{tde_docdir}/tde
+%define tde_tdeincludedir %{tde_includedir}/tde
+%define tde_tdelibdir %{tde_libdir}/trinity
+
+%define _docdir %{tde_docdir}
+
+
+Name: trinity-%{kdecomp}
+Summary: graphical disk usage display with cleanup facilities [Trinity]
+Version: 2.4.4
+Release: 3%{?dist}%{?_variant}
+
+License: GPLv2+
+Group: Applications/Utilities
+
+Vendor: Trinity Project
+Packager: Francois Andriot <francois.andriot@free.fr>
+URL: http://www.trinitydesktop.org
+
+Prefix: %{tde_prefix}
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+
+Source0: %{kdecomp}-3.5.13.1.tar.gz
+
+BuildRequires: trinity-tqtinterface-devel >= 3.5.13.1
+BuildRequires: trinity-tdelibs-devel >= 3.5.13.1
+BuildRequires: trinity-tdebase-devel >= 3.5.13.1
+BuildRequires: desktop-file-utils
+BuildRequires: gettext
+
+
+%description
+KDirStat (KDE Directory Statistics) is a small utility program that sums
+up disk usage for directory trees, very much like the Unix 'du' command.
+It displays the disk space used up by a directory tree, both numerically
+and graphically. It is network transparent (i.e., you can use it to sum
+up FTP servers), and comes with predefined and user configurable cleanup
+actions. You can directly open a directory branch in Konqueror or the
+shell of your choice, compress it to a .tar.bz2 archive, or define your
+own cleanup actions.
+
+
+%if 0%{?suse_version}
+%debug_package
+%endif
+
+
+%prep
+%setup -q -n %{kdecomp}-3.5.13.1
+
+# Ugly hack to modify TQT include directory inside autoconf files.
+# If TQT detection fails, it fallbacks to TQT4 instead of TQT3 !
+%__sed -i admin/acinclude.m4.in \
+ -e "s|/usr/include/tqt|%{tde_includedir}/tqt|g" \
+ -e "s|kde_htmldir='.*'|kde_htmldir='%{tde_tdedocdir}/HTML'|g"
+
+%__cp -f "/usr/share/aclocal/libtool.m4" "admin/libtool.m4.in"
+%__cp -f "/usr/share/libtool/config/ltmain.sh" "admin/ltmain.sh" || %__cp -f "/usr/share/libtool/ltmain.sh" "admin/ltmain.sh"
+%__make -f "admin/Makefile.common"
+
+
+%build
+unset QTDIR; . /etc/profile.d/qt3.sh
+export PATH="%{tde_bindir}:${PATH}"
+export LDFLAGS="-L%{tde_libdir} -I%{tde_includedir}"
+
+%configure \
+ --prefix=%{tde_prefix} \
+ --exec-prefix=%{tde_prefix} \
+ --bindir=%{tde_bindir} \
+ --datadir=%{tde_datadir} \
+ --includedir=%{tde_tdeincludedir} \
+ --libdir=%{tde_libdir} \
+ --mandir=%{tde_mandir} \
+ --disable-rpath \
+ --with-extra-includes=%{tde_includedir}/tqt:%{tde_includedir}
+
+# SMP safe !
+%__make %{?_smp_mflags}
+
+
+%install
+export PATH="%{tde_bindir}:${PATH}"
+%__rm -rf %{buildroot}
+%__make install DESTDIR=%{buildroot}
+
+
+%find_lang %{kdecomp}
+
+
+
+%clean
+%__rm -rf %{buildroot}
+
+
+%post
+for f in hicolor locolor; do
+ touch --no-create %{tde_datadir}/icons/${f} || :
+ gtk-update-icon-cache --quiet %{tde_datadir}/icons/${f} || :
+done
+
+%postun
+for f in hicolor locolor; do
+ touch --no-create %{tde_datadir}/icons/${f} || :
+ gtk-update-icon-cache --quiet %{tde_datadir}/icons/${f} || :
+done
+
+
+%files -f %{kdecomp}.lang
+%defattr(-,root,root,-)
+%{tde_bindir}/kdirstat
+%{tde_datadir}/applnk/Utilities/kdirstat.desktop
+%{tde_datadir}/apps/kconf_update/fix_move_to_trash_bin.pl
+%{tde_datadir}/apps/kconf_update/kdirstat.upd
+%{tde_datadir}/apps/kdirstat/
+%{tde_tdedocdir}/HTML/en/kdirstat/
+%{tde_datadir}/icons/hicolor/*/apps/kdirstat.png
+%{tde_datadir}/icons/locolor/*/apps/kdirstat.png
+
+
+%changelog
+* Wed Oct 03 2012 Francois Andriot <francois.andriot@free.fr> - 2.4.4-3
+- Initial build for TDE 3.5.13.1
+
+* Tue May 01 2012 Francois Andriot <francois.andriot@free.fr> - 2.4.4-2
+- Rebuilt for Fedora 17
+- Fix post and postun
+
+* Wed Nov 30 2011 Francois Andriot <francois.andriot@free.fr> - 2.4.4-1
+- Initial build for RHEL 5, RHEL 6, Fedora 15, Fedora 16
diff --git a/redhat/applications/kdirstat/trinity-kdirstat.spec b/redhat/applications/kdirstat/trinity-kdirstat-3.5.13.spec
index 90691838f..90691838f 100644
--- a/redhat/applications/kdirstat/trinity-kdirstat.spec
+++ b/redhat/applications/kdirstat/trinity-kdirstat-3.5.13.spec
diff --git a/redhat/applications/kdmtheme/trinity-kdmtheme-3.5.13.1.spec b/redhat/applications/kdmtheme/trinity-kdmtheme-3.5.13.1.spec
new file mode 100644
index 000000000..6b1e6bd62
--- /dev/null
+++ b/redhat/applications/kdmtheme/trinity-kdmtheme-3.5.13.1.spec
@@ -0,0 +1,130 @@
+# Default version for this component
+%define kdecomp kdmtheme
+
+# If TDE is built in a specific prefix (e.g. /opt/trinity), the release will be suffixed with ".opt".
+%if "%{?tde_prefix}" != "/usr"
+%define _variant .opt
+%endif
+
+# TDE 3.5.13 specific building variables
+%define tde_bindir %{tde_prefix}/bin
+%define tde_datadir %{tde_prefix}/share
+%define tde_docdir %{tde_datadir}/doc
+%define tde_includedir %{tde_prefix}/include
+%define tde_libdir %{tde_prefix}/%{_lib}
+%define tde_mandir %{tde_datadir}/man
+%define tde_appdir %{tde_datadir}/applications
+
+%define tde_tdeappdir %{tde_appdir}/kde
+%define tde_tdedocdir %{tde_docdir}/tde
+%define tde_tdeincludedir %{tde_includedir}/tde
+%define tde_tdelibdir %{tde_libdir}/trinity
+
+%define _docdir %{tde_docdir}
+
+
+Name: trinity-%{kdecomp}
+Summary: theme manager for KDM [Trinity]
+Version: 1.2.2
+Release: 3%{?dist}%{?_variant}
+
+License: GPLv2+
+Group: Applications/Utilities
+
+Vendor: Trinity Project
+Packager: Francois Andriot <francois.andriot@free.fr>
+URL: http://beta.smileaf.org/projects
+
+Prefix: %{tde_prefix}
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+
+Source0: %{kdecomp}-3.5.13.1.tar.gz
+
+BuildRequires: trinity-tqtinterface-devel >= 3.5.13.1
+BuildRequires: trinity-tdelibs-devel >= 3.5.13.1
+BuildRequires: trinity-tdebase-devel >= 3.5.13.1
+BuildRequires: desktop-file-utils
+BuildRequires: gettext
+
+
+%description
+kdmtheme is a theme manager for KDM. It provides a TDE Control Module (KCM)
+that allows you to easily install, remove and change your KDM themes.
+
+
+
+%if 0%{?suse_version}
+%debug_package
+%endif
+
+
+%prep
+%setup -q -n %{kdecomp}-3.5.13.1
+
+# Ugly hack to modify TQT include directory inside autoconf files.
+# If TQT detection fails, it fallbacks to TQT4 instead of TQT3 !
+%__sed -i admin/acinclude.m4.in \
+ -e "s|/usr/include/tqt|%{tde_includedir}/tqt|g" \
+ -e "s|kde_htmldir='.*'|kde_htmldir='%{tde_tdedocdir}/HTML'|g"
+
+%__cp -f "/usr/share/aclocal/libtool.m4" "admin/libtool.m4.in"
+%__cp -f "/usr/share/libtool/config/ltmain.sh" "admin/ltmain.sh" || %__cp -f "/usr/share/libtool/ltmain.sh" "admin/ltmain.sh"
+%__make -f "admin/Makefile.common"
+
+
+%build
+unset QTDIR; . /etc/profile.d/qt3.sh
+export PATH="%{tde_bindir}:${PATH}"
+export LDFLAGS="-L%{tde_libdir} -I%{tde_includedir}"
+
+%configure \
+ --prefix=%{tde_prefix} \
+ --exec-prefix=%{tde_prefix} \
+ --bindir=%{tde_bindir} \
+ --datadir=%{tde_datadir} \
+ --includedir=%{tde_tdeincludedir} \
+ --libdir=%{tde_libdir} \
+ --mandir=%{tde_mandir} \
+ --disable-rpath \
+ --with-extra-includes=%{tde_includedir}/tqt
+
+%__make %{?_smp_mflags}
+
+
+%install
+export PATH="%{tde_bindir}:${PATH}"
+%__rm -rf %{buildroot}
+%__make install DESTDIR=%{buildroot}
+
+
+%clean
+%__rm -rf %{buildroot}
+
+
+
+%files
+%defattr(-,root,root,-)
+%{tde_tdelibdir}/kcm_kdmtheme.la
+%{tde_tdelibdir}/kcm_kdmtheme.so
+%{tde_tdeappdir}/kdmtheme.desktop
+%{tde_tdedocdir}/HTML/en/kdmtheme/
+
+
+%post
+update-desktop-database %{tde_appdir} &> /dev/null
+
+%postun
+update-desktop-database %{tde_appdir} &> /dev/null
+
+
+%changelog
+* Wed Oct 03 2012 Francois Andriot <francois.andriot@free.fr> - 1.2.2-3
+- Initial build for TDE 3.5.13.1
+
+* Tue May 01 2012 Francois Andriot <francois.andriot@free.fr> - 1.2.2-2
+- Rebuilt for Fedora 17
+- Removes post and postun
+- Removes the 'lintian' stuff from Debian
+
+* Fri Nov 25 2011 Francois Andriot <francois.andriot@free.fr> - 1.2.2-1
+- Initial build for RHEL 5, RHEL 6, Fedora 15, Fedora 16
diff --git a/redhat/applications/kdmtheme/trinity-kdmtheme.spec b/redhat/applications/kdmtheme/trinity-kdmtheme-3.5.13.spec
index 71d5dbdf0..71d5dbdf0 100644
--- a/redhat/applications/kdmtheme/trinity-kdmtheme.spec
+++ b/redhat/applications/kdmtheme/trinity-kdmtheme-3.5.13.spec
diff --git a/redhat/applications/keep/trinity-keep-3.5.13.1.spec b/redhat/applications/keep/trinity-keep-3.5.13.1.spec
new file mode 100644
index 000000000..71b012ff2
--- /dev/null
+++ b/redhat/applications/keep/trinity-keep-3.5.13.1.spec
@@ -0,0 +1,139 @@
+# Default version for this component
+%define kdecomp keep
+
+# If TDE is built in a specific prefix (e.g. /opt/trinity), the release will be suffixed with ".opt".
+%if "%{?tde_prefix}" != "/usr"
+%define _variant .opt
+%endif
+
+# TDE 3.5.13 specific building variables
+%define tde_bindir %{tde_prefix}/bin
+%define tde_datadir %{tde_prefix}/share
+%define tde_docdir %{tde_datadir}/doc
+%define tde_includedir %{tde_prefix}/include
+%define tde_libdir %{tde_prefix}/%{_lib}
+%define tde_mandir %{tde_datadir}/man
+%define tde_appdir %{tde_datadir}/applications
+
+%define tde_tdeappdir %{tde_appdir}/kde
+%define tde_tdedocdir %{tde_docdir}/tde
+%define tde_tdeincludedir %{tde_includedir}/tde
+%define tde_tdelibdir %{tde_libdir}/trinity
+
+%define _docdir %{tde_docdir}
+
+
+Name: trinity-%{kdecomp}
+Summary: backup system for KDE [Trinity]
+Version: 0.4.0
+Release: 3%{?dist}%{?_variant}
+
+License: GPLv2+
+Group: Applications/Utilities
+
+Vendor: Trinity Project
+Packager: Francois Andriot <francois.andriot@free.fr>
+URL: http://www.trinitydesktop.org/
+
+Prefix: %{tde_prefix}
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+
+Source0: %{kdecomp}-3.5.13.1.tar.gz
+
+BuildRequires: trinity-tqtinterface-devel >= 3.5.13.1
+BuildRequires: trinity-tdelibs-devel >= 3.5.13.1
+BuildRequires: trinity-tdebase-devel >= 3.5.13.1
+BuildRequires: desktop-file-utils
+BuildRequires: gettext
+
+Requires: rdiff-backup
+
+%description
+Keep is an automatic backup program that allows users to set the parameters of
+the backup, including the frequency and the number of backups.
+
+Homepage: http://jr.falleri.free.fr/keep
+
+
+%if 0%{?suse_version}
+%debug_package
+%endif
+
+
+%prep
+%setup -q -n %{kdecomp}-3.5.13.1
+
+# Ugly hack to modify TQT include directory inside autoconf files.
+# If TQT detection fails, it fallbacks to TQT4 instead of TQT3 !
+%__sed -i admin/acinclude.m4.in \
+ -e "s|/usr/include/tqt|%{tde_includedir}/tqt|g" \
+ -e "s|kde_htmldir='.*'|kde_htmldir='%{tde_tdedocdir}/HTML'|g"
+
+%__cp -f "/usr/share/aclocal/libtool.m4" "admin/libtool.m4.in"
+%__cp -f "/usr/share/libtool/config/ltmain.sh" "admin/ltmain.sh" || %__cp -f "/usr/share/libtool/ltmain.sh" "admin/ltmain.sh"
+%__make -f "admin/Makefile.common"
+
+
+%build
+unset QTDIR; . /etc/profile.d/qt3.sh
+export PATH="%{tde_bindir}:${PATH}"
+export LDFLAGS="-L%{tde_libdir} -I%{tde_includedir}"
+
+%configure \
+ --prefix=%{tde_prefix} \
+ --exec-prefix=%{tde_prefix} \
+ --bindir=%{tde_bindir} \
+ --datadir=%{tde_datadir} \
+ --includedir=%{tde_tdeincludedir} \
+ --libdir=%{tde_libdir} \
+ --mandir=%{tde_mandir} \
+ --disable-rpath \
+ --with-extra-includes=%{tde_includedir}/tqt
+
+%__make %{?_smp_mflags}
+
+
+%install
+export PATH="%{tde_bindir}:${PATH}"
+%__rm -rf %{buildroot}
+%__make install DESTDIR=%{buildroot}
+
+%find_lang %{kdecomp}
+
+%clean
+%__rm -rf %{buildroot}
+
+
+%post
+touch --no-create %{tde_datadir}/icons/hicolor || :
+gtk-update-icon-cache --quiet %{tde_datadir}/icons/hicolor || :
+update-desktop-database %{tde_appdir} &> /dev/null
+
+%postun
+touch --no-create %{tde_datadir}/icons/hicolor || :
+gtk-update-icon-cache --quiet %{tde_datadir}/icons/hicolor || :
+update-desktop-database %{tde_appdir} &> /dev/null
+
+
+%files -f %{kdecomp}.lang
+%defattr(-,root,root,-)
+%{tde_bindir}/keep
+%{tde_tdelibdir}/kded_keep.la
+%{tde_tdelibdir}/kded_keep.so
+%{tde_tdeappdir}/keep.desktop
+%{tde_datadir}/icons/hicolor/scalable/apps/keep.svgz
+%{tde_datadir}/apps/keep/
+%{tde_datadir}/config.kcfg/keepsettings.kcfg
+%{tde_datadir}/icons/hicolor/*/apps/keep.png
+%{tde_datadir}/services/kded/keep.desktop
+
+
+%changelog
+* Wed Oct 03 2012 Francois Andriot <francois.andriot@free.fr> - 0.4.0-3
+- Initial build for TDE 3.5.13.1
+
+* Tue May 01 2012 Francois Andriot <francois.andriot@free.fr> - 0.4.0-2
+- Rebuilt for Fedora 17
+
+* Thu Nov 24 2011 Francois Andriot <francois.andriot@free.fr> - 0.4.0-1
+- Initial build for RHEL 5, RHEL 6, Fedora 15, Fedora 16
diff --git a/redhat/applications/keep/trinity-keep.spec b/redhat/applications/keep/trinity-keep-3.5.13.spec
index a9e17885c..a9e17885c 100644
--- a/redhat/applications/keep/trinity-keep.spec
+++ b/redhat/applications/keep/trinity-keep-3.5.13.spec
diff --git a/redhat/applications/kerry/trinity-kerry-3.5.13.1.spec b/redhat/applications/kerry/trinity-kerry-3.5.13.1.spec
new file mode 100644
index 000000000..dc76ffcf2
--- /dev/null
+++ b/redhat/applications/kerry/trinity-kerry-3.5.13.1.spec
@@ -0,0 +1,158 @@
+# Default version for this component
+%define kdecomp kerry
+
+# If TDE is built in a specific prefix (e.g. /opt/trinity), the release will be suffixed with ".opt".
+%if "%{?tde_prefix}" != "/usr"
+%define _variant .opt
+%endif
+
+# TDE 3.5.13 specific building variables
+%define tde_bindir %{tde_prefix}/bin
+%define tde_datadir %{tde_prefix}/share
+%define tde_docdir %{tde_datadir}/doc
+%define tde_includedir %{tde_prefix}/include
+%define tde_libdir %{tde_prefix}/%{_lib}
+%define tde_mandir %{tde_datadir}/man
+%define tde_appdir %{tde_datadir}/applications
+
+%define tde_tdeappdir %{tde_appdir}/kde
+%define tde_tdedocdir %{tde_docdir}/tde
+%define tde_tdeincludedir %{tde_includedir}/tde
+%define tde_tdelibdir %{tde_libdir}/trinity
+
+%define _docdir %{tde_docdir}
+
+
+Name: trinity-%{kdecomp}
+Summary: a KDE frontend for the Beagle desktop search daemon [Trinity]
+Version: 0.2.1
+Release: 2%{?dist}%{?_variant}
+
+License: GPLv2+
+Group: Applications/Utilities
+
+Vendor: Trinity Project
+Packager: Francois Andriot <francois.andriot@free.fr>
+URL: http://en.opensuse.org/Kerry
+
+Prefix: %{tde_prefix}
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+
+Source0: %{kdecomp}-3.5.13.1.tar.gz
+Source1: kerry.1.docbook
+
+
+BuildRequires: trinity-tqtinterface-devel >= 3.5.13.1
+BuildRequires: trinity-tdelibs-devel >= 3.5.13.1
+BuildRequires: trinity-tdebase-devel >= 3.5.13.1
+BuildRequires: desktop-file-utils
+BuildRequires: gettext
+BuildRequires: libbeagle-devel >= 0.3.0
+
+
+%if 0%{?mgaversion} || 0%{?mdkversion}
+BuildRequires: docbook2x
+%else
+BuildRequires: docbook2X
+%endif
+
+%description
+Kerry is a Trinity frontend for the Beagle desktop search daemon.
+
+A program for indexing and searching user's data. At the moment, it can index
+filesystems, chat logs, mail and data, RSS and other.
+
+
+
+%if 0%{?suse_version}
+%debug_package
+%endif
+
+
+%prep
+%setup -q -n %{kdecomp}-3.5.13.1
+
+# Ugly hack to modify TQT include directory inside autoconf files.
+# If TQT detection fails, it fallbacks to TQT4 instead of TQT3 !
+%__sed -i admin/acinclude.m4.in \
+ -e "s|/usr/include/tqt|%{tde_includedir}/tqt|g" \
+ -e "s|kde_htmldir='.*'|kde_htmldir='%{tde_tdedocdir}/HTML'|g"
+
+%__cp -f "/usr/share/aclocal/libtool.m4" "admin/libtool.m4.in"
+%__cp -f "/usr/share/libtool/config/ltmain.sh" "admin/ltmain.sh" || %__cp -f "/usr/share/libtool/ltmain.sh" "admin/ltmain.sh"
+%__make -f "admin/Makefile.common"
+
+
+%build
+unset QTDIR; . /etc/profile.d/qt3.sh
+export PATH="%{tde_bindir}:${PATH}"
+export LDFLAGS="-L%{tde_libdir} -I%{tde_includedir}"
+
+%configure \
+ --prefix=%{tde_prefix} \
+ --exec-prefix=%{tde_prefix} \
+ --bindir=%{tde_bindir} \
+ --datadir=%{tde_datadir} \
+ --includedir=%{tde_tdeincludedir} \
+ --libdir=%{tde_libdir} \
+ --mandir=%{tde_mandir} \
+ --disable-rpath \
+ --with-extra-includes=%{tde_includedir}/tqt:%{tde_includedir}
+
+%__make %{?_smp_mflags}
+
+
+
+%install
+export PATH="%{tde_bindir}:${PATH}"
+%__rm -rf %{buildroot}
+%__make install DESTDIR=%{buildroot}
+
+#%__install -D -m 644 %{SOURCE1} %{buildroot}%{_mandir}/man1/kerry.1.docbook
+#docbook2man %{buildroot}%{_mandir}/man1/kerry.1.docbook
+
+%find_lang %{kdecomp}
+
+%clean
+%__rm -rf %{buildroot}
+
+
+%post
+/sbin/ldconfig || :
+touch --no-create %{tde_datadir}/icons/hicolor || :
+gtk-update-icon-cache --quiet %{tde_datadir}/icons/hicolor || :
+update-desktop-database %{tde_appdir} &> /dev/null
+
+%postun
+/sbin/ldconfig || :
+touch --no-create %{tde_datadir}/icons/hicolor || :
+gtk-update-icon-cache --quiet %{tde_datadir}/icons/hicolor || :
+update-desktop-database %{tde_appdir} &> /dev/null
+
+
+%files -f %{kdecomp}.lang
+%defattr(-,root,root,-)
+%{tde_datadir}/locale/*/LC_MESSAGES/kcmbeagle.mo
+%{tde_bindir}/beagled-shutdown
+%{tde_bindir}/kerry
+%{tde_libdir}/libkdeinit_kerry.la
+%{tde_libdir}/libkdeinit_kerry.so
+%{tde_tdelibdir}/kcm_beagle.la
+%{tde_tdelibdir}/kcm_beagle.so
+%{tde_tdelibdir}/kerry.la
+%{tde_tdelibdir}/kerry.so
+%{tde_tdeappdir}/kcmbeagle.desktop
+%{tde_tdeappdir}/kerry.desktop
+%{tde_datadir}/applnk/.hidden/kcmkerry.desktop
+%{tde_datadir}/apps/kerry/search-running.mng
+%{tde_datadir}/autostart/beagled.desktop
+%{tde_datadir}/autostart/kerry.autostart.desktop
+%{tde_datadir}/icons/hicolor/*/*/*
+
+
+%changelog
+* Wed Oct 03 2012 Francois Andriot <francois.andriot@free.fr> - 0.2.1-2
+- Initial build for TDE 3.5.13.1
+
+* Fri Nov 25 2011 Francois Andriot <francois.andriot@free.fr> - 0.2.1-1
+- Initial build for RHEL 5, RHEL 6, Fedora 15, Fedora 16
diff --git a/redhat/applications/kerry/trinity-kerry.spec b/redhat/applications/kerry/trinity-kerry-3.5.13.spec
index 683baa429..683baa429 100644
--- a/redhat/applications/kerry/trinity-kerry.spec
+++ b/redhat/applications/kerry/trinity-kerry-3.5.13.spec
diff --git a/redhat/applications/kgtk-qt3/trinity-kgtk-qt3-3.5.13.1.spec b/redhat/applications/kgtk-qt3/trinity-kgtk-qt3-3.5.13.1.spec
new file mode 100644
index 000000000..f52be9555
--- /dev/null
+++ b/redhat/applications/kgtk-qt3/trinity-kgtk-qt3-3.5.13.1.spec
@@ -0,0 +1,145 @@
+# Default version for this component
+%define kdecomp kgtk-qt3
+
+# If TDE is built in a specific prefix (e.g. /opt/trinity), the release will be suffixed with ".opt".
+%if "%{?tde_prefix}" != "/usr"
+%define _variant .opt
+%endif
+
+# TDE 3.5.13 specific building variables
+%define tde_bindir %{tde_prefix}/bin
+%define tde_datadir %{tde_prefix}/share
+%define tde_docdir %{tde_datadir}/doc
+%define tde_includedir %{tde_prefix}/include
+%define tde_libdir %{tde_prefix}/%{_lib}
+%define tde_mandir %{tde_datadir}/man
+%define tde_appdir %{tde_datadir}/applications
+
+%define tde_tdeappdir %{tde_appdir}/kde
+%define tde_tdedocdir %{tde_docdir}/tde
+%define tde_tdeincludedir %{tde_includedir}/tde
+%define tde_tdelibdir %{tde_libdir}/trinity
+
+%define _docdir %{tde_docdir}
+
+
+Name: trinity-%{kdecomp}
+Summary: Use KDE dialogs in Gtk apps
+Version: 0.10.2
+Release: 4%{?dist}%{?_variant}
+
+License: GPLv2+
+Group: Applications/Utilities
+
+Vendor: Trinity Project
+Packager: Francois Andriot <francois.andriot@free.fr>
+URL: http://www.trinitydesktop.org
+
+Prefix: %{tde_prefix}
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+
+Source0: %{kdecomp}-3.5.13.1.tar.gz
+
+BuildRequires: trinity-tqtinterface-devel >= 3.5.13.1
+BuildRequires: trinity-tdelibs-devel >= 3.5.13.1
+BuildRequires: trinity-tdebase-devel >= 3.5.13.1
+BuildRequires: desktop-file-utils
+BuildRequires: gettext
+
+
+%description
+This is an LD_PRELOAD hack that allows most GTK
+applications to use Trinity's file dialogs when run under Trinity.
+
+The Gtk file chooser functions have been overridden to communicate
+with this KDE module/application.
+
+This package includes the kqt3-wrapper
+
+
+%if 0%{?suse_version}
+%debug_package
+%endif
+
+
+%prep
+%setup -q -n %{kdecomp}-3.5.13.1
+
+# Ugly hack to modify TQT include directory inside autoconf files.
+# If TQT detection fails, it fallbacks to TQT4 instead of TQT3 !
+find . -name CMakeLists.txt -exec sed -i {} \
+ -e "s,/usr/include/tqt,%{tde_includedir}/tqt,g" \
+ -e "s,/usr/bin/tmoc,%{tde_bindir}/tmoc,g" \
+ -e "s,/usr/bin/uic-tqt,%{tde_bindir}/uic-tqt,g" \
+ \;
+
+%build
+unset QTDIR; . /etc/profile.d/qt3.sh
+export PATH="%{tde_bindir}:${PATH}"
+export LDFLAGS="-L%{tde_libdir} -I%{tde_includedir} -L${QTLIB} -lX11"
+export PKG_CONFIG_PATH="%{tde_libdir}/pkgconfig:${PKG_CONFIG_PATH}"
+
+export CMAKE_INCLUDE_PATH="%{tde_tdeincludedir}"
+
+%if 0%{?rhel} || 0%{?fedora} || 0%{?suse_version}
+%__mkdir_p build
+cd build
+%endif
+
+
+%cmake \
+ -DCMAKE_INSTALL_PREFIX=%{tde_prefix} \
+ -DBIN_INSTALL_DIR=%{tde_bindir} \
+ -DINCLUDE_INSTALL_DIR=%{tde_tdeincludedir} \
+ -DLIB_INSTALL_DIR=%{tde_libdir} \
+ -DSHARE_INSTALL_PREFIX=%{tde_datadir} \
+ -DCMAKE_SKIP_RPATH="OFF" \
+ -DBUILD_ALL=ON \
+ ..
+
+# SMP safe !
+%__make %{?_smp_mflags}
+
+
+%install
+export PATH="%{tde_bindir}:${PATH}"
+%__rm -rf %{buildroot}
+%__make install DESTDIR=%{buildroot} -C build
+
+# The "preload" file is used by "startkde" script
+%__install -d -m 755 "%{buildroot}%{tde_datadir}/kgtk"
+echo "%{tde_libdir}/kgtk/libkgtk2.so" >"%{buildroot}%{tde_datadir}/kgtk/preload"
+
+%find_lang kgtk
+
+
+
+%clean
+%__rm -rf %{buildroot}
+
+
+%files -f kgtk.lang
+%defattr(-,root,root,-)
+%doc AUTHORS ChangeLog COPYING README TODO
+%{tde_bindir}/kdialogd-wrapper
+%{tde_bindir}/kdialogd3
+%{tde_bindir}/kgtk-wrapper
+%{tde_bindir}/kgtk2-wrapper
+%{tde_bindir}/kqt3-wrapper
+%{tde_libdir}/kgtk/libkgtk2.so
+%{tde_libdir}/kgtk/libkqt3.so
+%{tde_datadir}/kgtk/preload
+
+%changelog
+* Wed Oct 03 2012 Francois Andriot <francois.andriot@free.fr> - 0.10.2-4
+- Initial build for TDE 3.5.13.1
+
+* Sun Aug 26 2012 Francois Andriot <francois.andriot@free.fr> - 0.10.2-3
+- Add 'preload' file for startkde script
+
+* Tue May 01 2012 Francois Andriot <francois.andriot@free.fr> - 0.10.2-2
+- Rebuilt for Fedora 17
+- Removes post and postun
+
+* Thu Dec 01 2011 Francois Andriot <francois.andriot@free.fr> - 0.10.2-1
+- Initial build for RHEL 5, RHEL 6, Fedora 15, Fedora 16
diff --git a/redhat/applications/kgtk-qt3/trinity-kgtk-qt3.spec b/redhat/applications/kgtk-qt3/trinity-kgtk-qt3-3.5.13.spec
index d0f1e46c6..d0f1e46c6 100644
--- a/redhat/applications/kgtk-qt3/trinity-kgtk-qt3.spec
+++ b/redhat/applications/kgtk-qt3/trinity-kgtk-qt3-3.5.13.spec
diff --git a/redhat/applications/kile/trinity-kile-3.5.13.1.spec b/redhat/applications/kile/trinity-kile-3.5.13.1.spec
new file mode 100644
index 000000000..1e8987e8c
--- /dev/null
+++ b/redhat/applications/kile/trinity-kile-3.5.13.1.spec
@@ -0,0 +1,210 @@
+# Default version for this component
+%define kdecomp kile
+
+# If TDE is built in a specific prefix (e.g. /opt/trinity), the release will be suffixed with ".opt".
+%if "%{?tde_prefix}" != "/usr"
+%define _variant .opt
+%endif
+
+# TDE 3.5.13 specific building variables
+%define tde_bindir %{tde_prefix}/bin
+%define tde_datadir %{tde_prefix}/share
+%define tde_docdir %{tde_datadir}/doc
+%define tde_includedir %{tde_prefix}/include
+%define tde_libdir %{tde_prefix}/%{_lib}
+%define tde_mandir %{tde_datadir}/man
+%define tde_appdir %{tde_datadir}/applications
+
+%define tde_tdeappdir %{tde_appdir}/kde
+%define tde_tdedocdir %{tde_docdir}/tde
+%define tde_tdeincludedir %{tde_includedir}/tde
+%define tde_tdelibdir %{tde_libdir}/trinity
+
+%define _docdir %{tde_docdir}
+
+
+Name: trinity-%{kdecomp}
+Summary: KDE Integrated LaTeX Environment [Trinity]
+Version: 2.0.2
+Release: 4%{?dist}%{?_variant}
+
+License: GPLv2+
+Group: Applications/Publishing
+
+Vendor: Trinity Project
+Packager: Francois Andriot <francois.andriot@free.fr>
+URL: http://www.trinitydesktop.org/
+
+Prefix: %{tde_prefix}
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+
+Source0: %{kdecomp}-3.5.13.1.tar.gz
+
+BuildRequires: trinity-tqtinterface-devel >= 3.5.13.1
+BuildRequires: trinity-tdelibs-devel >= 3.5.13.1
+BuildRequires: trinity-tdebase-devel >= 3.5.13.1
+BuildRequires: desktop-file-utils
+BuildRequires: gettext
+
+Obsoletes: %{name}-i18n-ar
+Obsoletes: %{name}-i18n-bg
+Obsoletes: %{name}-i18n-br
+Obsoletes: %{name}-i18n-ca
+Obsoletes: %{name}-i18n-cs
+Obsoletes: %{name}-i18n-cy
+Obsoletes: %{name}-i18n-da
+Obsoletes: %{name}-i18n-de
+Obsoletes: %{name}-i18n-el
+Obsoletes: %{name}-i18n-engb
+Obsoletes: %{name}-i18n-es
+Obsoletes: %{name}-i18n-et
+Obsoletes: %{name}-i18n-eu
+Obsoletes: %{name}-i18n-fi
+Obsoletes: %{name}-i18n-fr
+Obsoletes: %{name}-i18n-ga
+Obsoletes: %{name}-i18n-gl
+Obsoletes: %{name}-i18n-hi
+Obsoletes: %{name}-i18n-hu
+Obsoletes: %{name}-i18n-is
+Obsoletes: %{name}-i18n-it
+Obsoletes: %{name}-i18n-ja
+Obsoletes: %{name}-i18n-lt
+Obsoletes: %{name}-i18n-ms
+Obsoletes: %{name}-i18n-mt
+Obsoletes: %{name}-i18n-nb
+Obsoletes: %{name}-i18n-nds
+Obsoletes: %{name}-i18n-nl
+Obsoletes: %{name}-i18n-nn
+Obsoletes: %{name}-i18n-pa
+Obsoletes: %{name}-i18n-pl
+Obsoletes: %{name}-i18n-pt
+Obsoletes: %{name}-i18n-ptbr
+Obsoletes: %{name}-i18n-ro
+Obsoletes: %{name}-i18n-ru
+Obsoletes: %{name}-i18n-rw
+Obsoletes: %{name}-i18n-sk
+Obsoletes: %{name}-i18n-sr
+Obsoletes: %{name}-i18n-srlatin
+Obsoletes: %{name}-i18n-sv
+Obsoletes: %{name}-i18n-ta
+Obsoletes: %{name}-i18n-th
+Obsoletes: %{name}-i18n-tr
+Obsoletes: %{name}-i18n-uk
+Obsoletes: %{name}-i18n-zhcn
+
+
+%description
+Kile is a user-friendly LaTeX source editor and TeX shell for TDE.
+
+The source editor is a multi-document editor designed for .tex and .bib
+files. Menus, wizards and auto-completion are provided to assist with
+tag insertion and code generation. A structural view of the document
+assists with navigation within source files.
+
+The TeX shell integrates the various tools required for TeX processing.
+It assists with LaTeX compilation, DVI and postscript document viewing,
+generation of bibliographies and indices and other common tasks.
+
+Kile can support large projects consisting of several smaller files.
+
+%if 0%{?suse_version}
+%debug_package
+%endif
+
+
+%prep
+%setup -q -n %{kdecomp}-3.5.13.1
+
+# Ugly hack to modify TQT include directory inside autoconf files.
+# If TQT detection fails, it fallbacks to TQT4 instead of TQT3 !
+%__sed -i admin/acinclude.m4.in \
+ -e "s|/usr/include/tqt|%{tde_includedir}/tqt|g" \
+ -e "s|kde_htmldir='.*'|kde_htmldir='%{tde_tdedocdir}/HTML'|g"
+
+%__cp -f "/usr/share/aclocal/libtool.m4" "admin/libtool.m4.in"
+%__cp -f "/usr/share/libtool/config/ltmain.sh" "admin/ltmain.sh" || %__cp -f "/usr/share/libtool/ltmain.sh" "admin/ltmain.sh"
+%__make -f "admin/Makefile.common"
+
+
+%build
+unset QTDIR; . /etc/profile.d/qt3.sh
+export PATH="%{tde_bindir}:${PATH}"
+export LDFLAGS="-L%{tde_libdir} -I%{tde_includedir}"
+
+%configure \
+ --prefix=%{tde_prefix} \
+ --exec-prefix=%{tde_prefix} \
+ --bindir=%{tde_bindir} \
+ --datadir=%{tde_datadir} \
+ --includedir=%{tde_tdeincludedir} \
+ --libdir=%{tde_libdir} \
+ --mandir=%{tde_mandir} \
+ --disable-rpath \
+ --with-extra-includes=%{tde_includedir}/tqt
+
+%__make %{?_smp_mflags}
+
+
+%install
+export PATH="%{tde_bindir}:${PATH}"
+%__rm -rf %{buildroot}
+%__make install DESTDIR=%{buildroot}
+
+%__chmod +x %{buildroot}%{tde_datadir}/apps/kile/test/runTests.sh
+
+# Unwanted files ...
+%__rm -f %{?buildroot}%{tde_datadir}/apps/katepart/syntax/bibtex.xml
+%__rm -f %{?buildroot}%{tde_datadir}/apps/katepart/syntax/latex.xml
+
+%find_lang %{kdecomp}
+
+%clean
+%__rm -rf %{buildroot}
+
+
+%post
+update-desktop-database %{tde_appdir} > /dev/null
+touch --no-create %{tde_datadir}/icons/hicolor || :
+gtk-update-icon-cache --quiet %{tde_datadir}/icons/hicolor || :
+
+%postun
+update-desktop-database %{tde_appdir} > /dev/null
+touch --no-create %{tde_datadir}/icons/hicolor || :
+gtk-update-icon-cache --quiet %{tde_datadir}/icons/hicolor || :
+
+
+%files -f %{kdecomp}.lang
+%defattr(-,root,root,-)
+%{tde_bindir}/kile
+%{tde_tdeappdir}/kile.desktop
+%{tde_datadir}/apps/kconf_update
+%{tde_datadir}/apps/kile
+%{tde_datadir}/config.kcfg/kile.kcfg
+%{tde_datadir}/icons/hicolor/*/apps/kile.png
+%{tde_datadir}/icons/hicolor/scalable/apps/kile.svgz
+%{tde_tdedocdir}/HTML/en/kile
+%{tde_datadir}/mimelnk/text/x-kilepr.desktop
+
+%lang(da) %{tde_tdedocdir}/HTML/da/kile/
+%lang(es) %{tde_tdedocdir}/HTML/es/kile/
+%lang(et) %{tde_tdedocdir}/HTML/et/kile/
+%lang(it) %{tde_tdedocdir}/HTML/it/kile/
+%lang(nl) %{tde_tdedocdir}/HTML/nl/kile/
+%lang(pt) %{tde_tdedocdir}/HTML/pt/kile/
+%lang(sv) %{tde_tdedocdir}/HTML/sv/kile/
+
+
+
+%changelog
+* Wed Oct 03 2012 Francois Andriot <francois.andriot@free.fr> - 2.0.2-4
+- Initial build for TDE 3.5.13.1
+
+* Tue May 01 2012 Francois Andriot <francois.andriot@free.fr> - 2.0.2-3
+- Rebuilt for Fedora 17
+- Removes the XPM icon
+
+* Fri Apr 20 2012 Francois Andriot <francois.andriot@free.fr> - 2.0.2-2
+- Fix file conflict with trinity-kdelibs
+
+* Fri Nov 25 2011 Francois Andriot <francois.andriot@free.fr> - 2.0.2-1
+- Initial build for RHEL 5, RHEL 6, Fedora 15, Fedora 16
diff --git a/redhat/applications/kile/trinity-kile.spec b/redhat/applications/kile/trinity-kile-3.5.13.spec
index 96318c5a9..96318c5a9 100644
--- a/redhat/applications/kile/trinity-kile.spec
+++ b/redhat/applications/kile/trinity-kile-3.5.13.spec
diff --git a/redhat/applications/kima/trinity-kima-3.5.13.1.spec b/redhat/applications/kima/trinity-kima-3.5.13.1.spec
new file mode 100644
index 000000000..680768b85
--- /dev/null
+++ b/redhat/applications/kima/trinity-kima-3.5.13.1.spec
@@ -0,0 +1,127 @@
+# Default version for this component
+%define kdecomp kima
+
+# If TDE is built in a specific prefix (e.g. /opt/trinity), the release will be suffixed with ".opt".
+%if "%{?tde_prefix}" != "/usr"
+%define _variant .opt
+%endif
+
+# TDE 3.5.13 specific building variables
+%define tde_bindir %{tde_prefix}/bin
+%define tde_datadir %{tde_prefix}/share
+%define tde_docdir %{tde_datadir}/doc
+%define tde_includedir %{tde_prefix}/include
+%define tde_libdir %{tde_prefix}/%{_lib}
+%define tde_mandir %{tde_datadir}/man
+%define tde_appdir %{tde_datadir}/applications
+
+%define tde_tdeappdir %{tde_appdir}/kde
+%define tde_tdedocdir %{tde_docdir}/tde
+%define tde_tdeincludedir %{tde_includedir}/tde
+%define tde_tdelibdir %{tde_libdir}/trinity
+
+%define _docdir %{tde_docdir}
+
+
+Name: trinity-%{kdecomp}
+Summary: kicker monitoring applet [Trinity]
+Version: 0.7.3.2
+Release: 3%{?dist}%{?_variant}
+
+License: GPLv2+
+Group: Applications/Utilities
+
+Vendor: Trinity Project
+Packager: Francois Andriot <francois.andriot@free.fr>
+URL: http://www.elliptique.net/~ken/kima/
+
+Prefix: %{tde_prefix}
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+
+Source0: %{kdecomp}-3.5.13.1.tar.gz
+
+BuildRequires: trinity-tqtinterface-devel >= 3.5.13.1
+BuildRequires: trinity-tdelibs-devel >= 3.5.13.1
+BuildRequires: trinity-tdebase-devel >= 3.5.13.1
+BuildRequires: desktop-file-utils
+BuildRequires: gettext
+
+
+%description
+This applet monitors various temperature,
+frequency and fan sources in your kicker
+panel.
+
+
+%if 0%{?suse_version}
+%debug_package
+%endif
+
+
+%prep
+%setup -q -n %{kdecomp}-3.5.13.1
+
+# Ugly hack to modify TQT include directory inside autoconf files.
+# If TQT detection fails, it fallbacks to TQT4 instead of TQT3 !
+%__sed -i "admin/acinclude.m4.in" \
+ -e "s|/usr/include/tqt|%{tde_includedir}/tqt|g" \
+ -e "s|kde_htmldir='.*'|kde_htmldir='%{tde_tdedocdir}/HTML'|g"
+
+%__cp -f "/usr/share/aclocal/libtool.m4" "admin/libtool.m4.in"
+%__cp -f "/usr/share/libtool/config/ltmain.sh" "admin/ltmain.sh" || %__cp -f "/usr/share/libtool/ltmain.sh" "admin/ltmain.sh"
+%__make -f "admin/Makefile.common"
+
+
+%build
+unset QTDIR; . /etc/profile.d/qt3.sh
+export PATH="%{tde_bindir}:${PATH}"
+export LDFLAGS="-L%{tde_libdir} -I%{tde_includedir}"
+
+%configure \
+ --prefix=%{tde_prefix} \
+ --exec-prefix=%{tde_prefix} \
+ --bindir=%{tde_bindir} \
+ --datadir=%{tde_datadir} \
+ --includedir=%{tde_tdeincludedir} \
+ --libdir=%{tde_libdir} \
+ --mandir=%{tde_mandir} \
+ --disable-rpath \
+ --with-extra-includes=%{tde_includedir}/tqt:%{tde_tdeincludedir}
+
+# SMP safe !
+%__make %{?_smp_mflags}
+
+
+%install
+export PATH="%{tde_bindir}:${PATH}"
+%__rm -rf %{buildroot}
+%__make install DESTDIR=%{buildroot}
+
+
+%find_lang %{kdecomp}
+
+
+
+%clean
+%__rm -rf %{buildroot}
+
+
+%files -f %{kdecomp}.lang
+%defattr(-,root,root,-)
+%doc AUTHORS ChangeLog COPYING NEWS README TODO
+%{tde_tdelibdir}/libkima.la
+%{tde_tdelibdir}/libkima.so
+%{tde_datadir}/apps/kicker/applets/kima.desktop
+%{tde_tdedocdir}/HTML/en/kima/
+
+
+%changelog
+* Wed Oct 03 2012 Francois Andriot <francois.andriot@free.fr> - 0.7.3.2-3
+- Initial build for TDE 3.5.13.1
+
+* Tue May 01 2012 Francois Andriot <francois.andriot@free.fr> - 0.7.3.2-2
+- Rebuilt for Fedora 17
+- Fix post and postun
+
+* Wed Nov 30 2011 Francois Andriot <francois.andriot@free.fr> - 0.7.3.2-1
+- Initial build for RHEL 5, RHEL 6, Fedora 15, Fedora 16
diff --git a/redhat/applications/kima/trinity-kima.spec b/redhat/applications/kima/trinity-kima-3.5.13.spec
index 657029f3c..657029f3c 100644
--- a/redhat/applications/kima/trinity-kima.spec
+++ b/redhat/applications/kima/trinity-kima-3.5.13.spec
diff --git a/redhat/applications/kio-locate/trinity-kio-locate-3.5.13.1.spec b/redhat/applications/kio-locate/trinity-kio-locate-3.5.13.1.spec
new file mode 100644
index 000000000..b0ff52fe7
--- /dev/null
+++ b/redhat/applications/kio-locate/trinity-kio-locate-3.5.13.1.spec
@@ -0,0 +1,135 @@
+# Default version for this component
+%define kdecomp kio-locate
+
+# If TDE is built in a specific prefix (e.g. /opt/trinity), the release will be suffixed with ".opt".
+%if "%{?tde_prefix}" != "/usr"
+%define _variant .opt
+%endif
+
+# TDE 3.5.13 specific building variables
+%define tde_bindir %{tde_prefix}/bin
+%define tde_datadir %{tde_prefix}/share
+%define tde_docdir %{tde_datadir}/doc
+%define tde_includedir %{tde_prefix}/include
+%define tde_libdir %{tde_prefix}/%{_lib}
+%define tde_mandir %{tde_datadir}/man
+%define tde_appdir %{tde_datadir}/applications
+
+%define tde_tdeappdir %{tde_appdir}/kde
+%define tde_tdedocdir %{tde_docdir}/tde
+%define tde_tdeincludedir %{tde_includedir}/tde
+%define tde_tdelibdir %{tde_libdir}/trinity
+
+%define _docdir %{tde_docdir}
+
+
+Name: trinity-%{kdecomp}
+Summary: kio-slave for the locate command [Trinity]
+Version: 0.4.5
+Release: 3%{?dist}%{?_variant}
+
+License: GPLv2+
+Group: Applications/Utilities
+
+Vendor: Trinity Project
+Packager: Francois Andriot <francois.andriot@free.fr>
+URL: http://www.trinitydesktop.org
+
+Prefix: %{tde_prefix}
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+
+Source0: %{kdecomp}-3.5.13.1.tar.gz
+
+BuildRequires: trinity-tqtinterface-devel >= 3.5.13.1
+BuildRequires: trinity-tdelibs-devel >= 3.5.13.1
+BuildRequires: trinity-tdebase-devel >= 3.5.13.1
+BuildRequires: desktop-file-utils
+
+BuildRequires: cmake >= 2.8
+
+%description
+Adds support for the "locate:" and "locater:"
+protocols to Konqueror and other TDE applications.
+
+This enables you to perform locate searches as you
+would in a terminal. The result is displayed just
+as a directory.
+
+
+%if 0%{?suse_version}
+%debug_package
+%endif
+
+
+%prep
+%setup -q -n %{kdecomp}-3.5.13.1
+
+# Ugly hack to modify TQT include directory inside SCONS files.
+# If TQT detection fails, it fallbacks to TQT4 instead of TQT3 !
+%__sed -i "admin/kde.py" \
+ -e "s|/usr/include/tqt|%{tde_includedir}/tqt|g"
+
+
+%build
+unset QTDIR; . /etc/profile.d/qt3.sh
+export PATH="%{tde_bindir}:${PATH}"
+export LDFLAGS="-L%{tde_libdir} -I%{tde_includedir}"
+export PKG_CONFIG_PATH="%{tde_libdir}/pkgconfig:${PKG_CONFIG_PATH}"
+
+export CMAKE_INCLUDE_PATH="%{tde_tdeincludedir}"
+
+%if 0%{?rhel} || 0%{?fedora} || 0%{?suse_version}
+%__mkdir_p build
+cd build
+%endif
+
+
+%cmake \
+ -DCMAKE_INSTALL_PREFIX=%{tde_prefix} \
+ -DBIN_INSTALL_DIR=%{tde_bindir} \
+ -DINCLUDE_INSTALL_DIR=%{tde_tdeincludedir} \
+ -DLIB_INSTALL_DIR=%{tde_libdir} \
+ -DSHARE_INSTALL_PREFIX=%{tde_datadir} \
+ -DCMAKE_SKIP_RPATH="OFF" \
+ -DBUILD_ALL=ON \
+ ..
+
+# SMP safe !
+%__make %{?_smp_mflags}
+
+
+%install
+export PATH="%{tde_bindir}:${PATH}"
+%__rm -rf %{buildroot}
+%__make install DESTDIR=%{buildroot} -C build
+
+%find_lang %{kdecomp}
+
+%clean
+%__rm -rf %{buildroot}
+
+
+
+%files -f %{kdecomp}.lang
+%defattr(-,root,root,-)
+%doc AUTHORS ChangeLog COPYING TODO
+%{tde_tdelibdir}/kio_locate.la
+%{tde_tdelibdir}/kio_locate.so
+%{tde_tdedocdir}/HTML/en/kio-locate/
+%{tde_datadir}/services/locate.protocol
+%{tde_datadir}/services/locater.protocol
+%{tde_datadir}/services/rlocate.protocol
+%{tde_datadir}/services/searchproviders/locate.desktop
+
+%changelog
+* Wed Oct 03 2012 Francois Andriot <francois.andriot@free.fr> - 0.4.5-3
+- Initial build for TDE 3.5.13.1
+
+* Tue May 01 2012 Francois Andriot <francois.andriot@free.fr> - 0.4.5-2
+- Rebuilt for Fedora 17
+- Removes post and postun
+- Fix compilation with GCC 4.7
+
+* Sat Dec 03 2011 Francois Andriot <francois.andriot@free.fr> - 0.4.5-1
+- Initial build for RHEL 5, RHEL 6, Fedora 15, Fedora 16
+
diff --git a/redhat/applications/kio-umountwrapper/trinity-kio-umountwrapper-3.5.13.1.spec b/redhat/applications/kio-umountwrapper/trinity-kio-umountwrapper-3.5.13.1.spec
new file mode 100644
index 000000000..1fb531046
--- /dev/null
+++ b/redhat/applications/kio-umountwrapper/trinity-kio-umountwrapper-3.5.13.1.spec
@@ -0,0 +1,157 @@
+# Default version for this component
+%define kdecomp kio-umountwrapper
+
+# If TDE is built in a specific prefix (e.g. /opt/trinity), the release will be suffixed with ".opt".
+%if "%{?tde_prefix}" != "/usr"
+%define _variant .opt
+%endif
+
+# TDE 3.5.13 specific building variables
+%define tde_bindir %{tde_prefix}/bin
+%define tde_datadir %{tde_prefix}/share
+%define tde_docdir %{tde_datadir}/doc
+%define tde_includedir %{tde_prefix}/include
+%define tde_libdir %{tde_prefix}/%{_lib}
+%define tde_mandir %{tde_datadir}/man
+%define tde_appdir %{tde_datadir}/applications
+
+%define tde_tdeappdir %{tde_appdir}/kde
+%define tde_tdedocdir %{tde_docdir}/tde
+%define tde_tdeincludedir %{tde_includedir}/tde
+%define tde_tdelibdir %{tde_libdir}/trinity
+
+%define _docdir %{tde_docdir}
+
+
+Name: trinity-%{kdecomp}
+Summary: progress dialog for safely removing devices in Trinity.
+Version: 0.2
+Release: 4%{?dist}%{?_variant}
+
+License: GPLv2+
+Group: Applications/Utilities
+
+Vendor: Trinity Project
+Packager: Francois Andriot <francois.andriot@free.fr>
+URL: http://frode.kde.no/misc/kio_umountwrapper/
+
+Prefix: %{tde_prefix}
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+
+Source0: %{kdecomp}-3.5.13.1.tar.gz
+Source1: media_safelyremove.desktop
+
+
+BuildRequires: trinity-tqtinterface-devel >= 3.5.13.1
+BuildRequires: trinity-tdelibs-devel >= 3.5.13.1
+BuildRequires: trinity-tdebase-devel >= 3.5.13.1
+BuildRequires: desktop-file-utils
+
+
+%description
+Wrapper around kio_media_mountwrapper.
+Provides a progress dialog for Safely Removing of devices in Trinity.
+
+
+
+%if 0%{?suse_version}
+%debug_package
+%endif
+
+
+%prep
+%setup -q -n %{kdecomp}-3.5.13.1
+
+# Ugly hack to modify TQT include directory inside autoconf files.
+# If TQT detection fails, it fallbacks to TQT4 instead of TQT3 !
+%__sed -i admin/acinclude.m4.in \
+ -e "s|/usr/include/tqt|%{tde_includedir}/tqt|g" \
+ -e "s|kde_htmldir='.*'|kde_htmldir='%{tde_tdedocdir}/HTML'|g"
+
+%__cp "/usr/share/aclocal/libtool.m4" "admin/libtool.m4.in"
+%__cp "/usr/share/libtool/config/ltmain.sh" "admin/ltmain.sh" || %__cp "/usr/share/libtool/ltmain.sh" "admin/ltmain.sh"
+%__make -f "admin/Makefile.common"
+
+
+%build
+unset QTDIR; . /etc/profile.d/qt3.sh
+export PATH="%{tde_bindir}:${PATH}"
+export LDFLAGS="-L%{tde_libdir} -I%{tde_includedir}"
+
+%configure \
+ --prefix=%{tde_prefix} \
+ --exec-prefix=%{tde_prefix} \
+ --bindir=%{tde_bindir} \
+ --datadir=%{tde_datadir} \
+ --includedir=%{tde_tdeincludedir} \
+ --libdir=%{tde_libdir} \
+ --mandir=%{tde_mandir} \
+ --disable-rpath \
+ --with-extra-includes=%{tde_includedir}/tqt \
+ --enable-closure
+
+%__make %{?_smp_mflags}
+
+
+%install
+export PATH="%{tde_bindir}:${PATH}"
+%__rm -rf %{buildroot}
+%__make install DESTDIR=%{buildroot}
+
+%__install -D -m 644 %{SOURCE1} %{?buildroot}%{tde_datadir}/apps/konqueror/servicemenus/media_safelyremove.desktop_kio-umountwrapper
+#%__install -D -m 644 %{SOURCE1} %{?buildroot}%{tde_datadir}/apps/dolphin/servicemenus/media_safelyremove.desktop_kio-umountwrapper
+%__install -D -m 644 %{SOURCE1} %{?buildroot}%{tde_datadir}/apps/d3lphin/servicemenus/media_safelyremove.desktop_kio-umountwrapper
+
+
+%clean
+%__rm -rf %{buildroot}
+
+%post
+for f in konqueror d3lphin; do
+%if 0%{?suse_version}
+ update-alternatives --install \
+%else
+ alternatives --install \
+%endif
+ %{tde_datadir}/apps/${f}/servicemenus/media_safelyremove.desktop \
+ media_safelyremove.desktop_${f} \
+ %{tde_datadir}/apps/${f}/servicemenus/media_safelyremove.desktop_kio-umountwrapper \
+ 20
+done
+
+
+%postun
+if [ $1 -eq 0 ]; then
+ for f in konqueror d3lphin; do
+%if 0%{?suse_version}
+ update-alternatives --remove \
+%else
+ alternatives --remove \
+%endif
+ media_safelyremove.desktop_${f} \
+ %{tde_datadir}/apps/${f}/servicemenus/media_safelyremove.desktop_kio-umountwrapper
+ done
+fi
+
+%files
+%defattr(-,root,root,-)
+%doc AUTHORS ChangeLog COPYING NEWS README TODO
+%{tde_bindir}/kio_umountwrapper
+%{tde_datadir}/apps/konqueror/servicemenus/media_safelyremove.desktop_kio-umountwrapper
+#%{tde_datadir}/apps/dolphin/servicemenus/media_safelyremove.desktop_kio-umountwrapper
+%{tde_datadir}/apps/d3lphin/servicemenus/media_safelyremove.desktop_kio-umountwrapper
+
+%changelog
+* Wed Oct 03 2012 Francois Andriot <francois.andriot@free.fr> - 0.2-4
+- Initial build for TDE 3.5.13.1
+
+* Sun Jul 08 2012 Francois Andriot <francois.andriot@free.fr> - 0.2-3
+- Add 'desktop' file, to make this program useful :-)
+
+* Wed May 02 2012 Francois Andriot <francois.andriot@free.fr> - 0.2-2
+- Rebuilt for Fedora 17
+- Removes post and postun
+
+* Sat Dec 03 2011 Francois Andriot <francois.andriot@free.fr> - 0.2-1
+- Initial build for RHEL 5, RHEL 6, Fedora 15, Fedora 16
+
diff --git a/redhat/applications/kio-umountwrapper/trinity-kio-umountwrapper.spec b/redhat/applications/kio-umountwrapper/trinity-kio-umountwrapper-3.5.13.spec
index 352e39845..352e39845 100644
--- a/redhat/applications/kio-umountwrapper/trinity-kio-umountwrapper.spec
+++ b/redhat/applications/kio-umountwrapper/trinity-kio-umountwrapper-3.5.13.spec
diff --git a/redhat/applications/kiosktool/trinity-kiosktool-3.5.13.1.spec b/redhat/applications/kiosktool/trinity-kiosktool-3.5.13.1.spec
new file mode 100644
index 000000000..5efc2c615
--- /dev/null
+++ b/redhat/applications/kiosktool/trinity-kiosktool-3.5.13.1.spec
@@ -0,0 +1,159 @@
+# Default version for this component
+%define kdecomp kiosktool
+
+# If TDE is built in a specific prefix (e.g. /opt/trinity), the release will be suffixed with ".opt".
+%if "%{?tde_prefix}" != "/usr"
+%define _variant .opt
+%endif
+
+# TDE 3.5.13 specific building variables
+%define tde_bindir %{tde_prefix}/bin
+%define tde_datadir %{tde_prefix}/share
+%define tde_docdir %{tde_datadir}/doc
+%define tde_includedir %{tde_prefix}/include
+%define tde_libdir %{tde_prefix}/%{_lib}
+%define tde_mandir %{tde_datadir}/man
+%define tde_appdir %{tde_datadir}/applications
+
+%define tde_tdeappdir %{tde_appdir}/kde
+%define tde_tdedocdir %{tde_docdir}/tde
+%define tde_tdeincludedir %{tde_includedir}/tde
+%define tde_tdelibdir %{tde_libdir}/trinity
+
+%define _docdir %{tde_docdir}
+
+
+Name: trinity-%{kdecomp}
+Version: 1.0
+Release: 3%{?dist}%{?_variant}
+Summary: tool to configure the TDE kiosk framework
+
+License: GPLv2+
+Group: Applications/Multimedia
+
+Vendor: Trinity Project
+Packager: Francois Andriot <francois.andriot@free.fr>
+URL: http://www.trinitydesktop.org/
+
+
+Source0: %{kdecomp}-3.5.13.1.tar.gz
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+
+BuildRequires: gettext
+BuildRequires: trinity-tdelibs-devel >= 3.5.13.1
+
+
+%description
+A Point&Click tool for system administrators to enable
+TDE's KIOSK features or otherwise preconfigure TDE for
+groups of users.
+
+
+%if 0%{?suse_version}
+%debug_package
+%endif
+
+
+%prep
+%setup -q -n %{kdecomp}-3.5.13.1
+
+# Ugly hack to modify TQT include directory inside autoconf files.
+# If TQT detection fails, it fallbacks to TQT4 instead of TQT3 !
+%__sed -i admin/acinclude.m4.in \
+ -e "s|/usr/include/tqt|%{tde_includedir}/tqt|g" \
+ -e "s|kde_htmldir='.*'|kde_htmldir='%{tde_tdedocdir}/HTML'|g"
+
+%__cp "/usr/share/aclocal/libtool.m4" "admin/libtool.m4.in"
+%__cp "/usr/share/libtool/config/ltmain.sh" "admin/ltmain.sh" || %__cp "/usr/share/libtool/ltmain.sh" "admin/ltmain.sh"
+%__make -f "admin/Makefile.common"
+
+
+%build
+unset QTDIR || : ; source /etc/profile.d/qt3.sh
+export PATH="%{tde_bindir}:${PATH}"
+export LDFLAGS="-L%{tde_libdir} -I%{tde_includedir}"
+
+
+%configure \
+ --prefix=%{tde_prefix} \
+ --exec-prefix=%{tde_prefix} \
+ --bindir=%{tde_bindir} \
+ --datadir=%{tde_datadir} \
+ --includedir=%{tde_tdeincludedir} \
+ --libdir=%{tde_libdir} \
+ --mandir=%{tde_mandir} \
+ --disable-rpath \
+ --enable-new-ldflags \
+ --disable-debug --disable-warnings \
+ --disable-dependency-tracking --enable-final \
+ --enable-closure \
+ --with-extra-includes=%{tde_includedir}/tqt
+
+
+%__make %{?_smp_mflags}
+
+
+%install
+export PATH="%{tde_bindir}:${PATH}"
+%__rm -rf $RPM_BUILD_ROOT
+%__make install DESTDIR=$RPM_BUILD_ROOT
+
+## File lists
+# locale's
+%find_lang %{kdecomp}
+# HTML (1.0)
+HTML_DIR=$(kde-config --expandvars --install html)
+if [ -d $RPM_BUILD_ROOT$HTML_DIR ]; then
+for lang_dir in $RPM_BUILD_ROOT$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
+
+
+%clean
+%__rm -rf $RPM_BUILD_ROOT
+
+
+%post
+touch --no-create %{tde_datadir}/icons/crystalsvg ||:
+gtk-update-icon-cache -q %{tde_datadir}/icons/crystalsvg 2> /dev/null ||:
+update-desktop-database >& /dev/null ||:
+
+%postun
+touch --no-create %{tde_datadir}/icons/crystalsvg ||:
+gtk-update-icon-cache -q %{tde_datadir}/icons/crystalsvg 2> /dev/null ||:
+update-desktop-database >& /dev/null ||:
+
+
+
+%files -f %{kdecomp}.lang
+%defattr(-,root,root,-)
+%doc ChangeLog COPYING README TODO
+%{tde_bindir}/kiosktool
+%{tde_bindir}/kiosktool-kdedirs
+%{tde_tdeappdir}/kiosktool.desktop
+%{tde_datadir}/apps/kiosktool/*.png
+%{tde_tdedocdir}/HTML/en/kiosktool/
+%{tde_datadir}/icons/crystalsvg/*/apps/kiosktool.png
+%{tde_datadir}/apps/kiosktool/kiosk_data.xml
+%{tde_datadir}/apps/kiosktool/kiosktoolui.rc
+
+%changelog
+* Wed Oct 03 2012 Francois Andriot <francois.andriot@free.fr> - 1.0-3
+- Initial build for TDE 3.5.13.1
+
+* Wed May 02 2012 Francois Andriot <francois.andriot@free.fr> - 1.0-2
+- Rebuilt for Fedora 17
+- Fix post and postun
+
+* Sat Nov 19 2011 Francois Andriot <francois.andriot@free.fr> - 1.0-1
+- Initial build for RHEL 5, RHEL 6, Fedora 15, Fedora 16
diff --git a/redhat/applications/kiosktool/trinity-kiosktool.spec b/redhat/applications/kiosktool/trinity-kiosktool-3.5.13.spec
index 3195e466b..3195e466b 100644
--- a/redhat/applications/kiosktool/trinity-kiosktool.spec
+++ b/redhat/applications/kiosktool/trinity-kiosktool-3.5.13.spec
diff --git a/redhat/applications/kmplayer/kmplayer-3.5.13.1-fix_xine12_support.patch b/redhat/applications/kmplayer/kmplayer-3.5.13.1-fix_xine12_support.patch
new file mode 100644
index 000000000..c0b0edc76
--- /dev/null
+++ b/redhat/applications/kmplayer/kmplayer-3.5.13.1-fix_xine12_support.patch
@@ -0,0 +1,14 @@
+--- kmplayer-3.5.13.1/src/xineplayer.cpp.ORI 2012-10-04 19:44:38.403679339 +0200
++++ kmplayer-3.5.13.1/src/xineplayer.cpp 2012-10-04 19:48:14.399221962 +0200
+@@ -528,7 +528,11 @@
+ xine_event_create_listener_thread (event_queue, event_listener, NULL);
+ if (mrl == "cdda:/") {
+ int nr;
++#if XINE_MAJOR_VERSION > 1 || ( XINE_MAJOR_VERSION == 1 && XINE_MINOR_VERSION >= 2 )
++ const char * const* mrls = xine_get_autoplay_mrls (xine, "CD", &nr);
++#else
+ char ** mrls = xine_get_autoplay_mrls (xine, "CD", &nr);
++#endif
+ running = 1;
+ for (int i = 0; i < nr; i++) {
+ TQString m (mrls[i]);
diff --git a/redhat/applications/kmplayer/trinity-kmplayer-3.5.13.1.spec b/redhat/applications/kmplayer/trinity-kmplayer-3.5.13.1.spec
new file mode 100644
index 000000000..e06bd44e7
--- /dev/null
+++ b/redhat/applications/kmplayer/trinity-kmplayer-3.5.13.1.spec
@@ -0,0 +1,246 @@
+# Default version for this component
+%define kdecomp kmplayer
+
+# If TDE is built in a specific prefix (e.g. /opt/trinity), the release will be suffixed with ".opt".
+%if "%{?tde_prefix}" != "/usr"
+%define _variant .opt
+%endif
+
+# TDE 3.5.13 specific building variables
+%define tde_bindir %{tde_prefix}/bin
+%define tde_datadir %{tde_prefix}/share
+%define tde_docdir %{tde_datadir}/doc
+%define tde_includedir %{tde_prefix}/include
+%define tde_libdir %{tde_prefix}/%{_lib}
+%define tde_mandir %{tde_datadir}/man
+%define tde_appdir %{tde_datadir}/applications
+
+%define tde_tdeappdir %{tde_appdir}/kde
+%define tde_tdedocdir %{tde_docdir}/tde
+%define tde_tdeincludedir %{tde_includedir}/tde
+%define tde_tdelibdir %{tde_libdir}/trinity
+
+%define _docdir %{tde_docdir}
+
+
+Name: trinity-%{kdecomp}
+Summary: media player for Trinity
+Version: 0.10.0c
+Release: 3%{?dist}%{?_variant}
+
+License: GPLv2+
+Group: Applications/Multimedia
+
+Vendor: Trinity Project
+Packager: Francois Andriot <francois.andriot@free.fr>
+URL: http://kmplayer.kde.org
+
+Prefix: %{tde_prefix}
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+
+Source0: %{kdecomp}-3.5.13.1.tar.gz
+
+# [kmplayer] Fix xine 1.2 support
+Patch1: kmplayer-3.5.13.1-fix_xine12_support.patch
+
+
+BuildRequires: trinity-tqtinterface-devel >= 3.5.13.1
+BuildRequires: trinity-dbus-tqt-devel >= 3.5.13.1
+BuildRequires: trinity-tdelibs-devel >= 3.5.13.1
+BuildRequires: trinity-tdebase-devel >= 3.5.13.1
+BuildRequires: desktop-file-utils
+
+
+%if 0%{?mgaversion} || 0%{?mdkversion}
+BuildRequires: %{_lib}gstreamer0.10-devel
+BuildRequires: %{_lib}gstreamer-plugins-base0.10-devel
+BuildRequires: libxv-devel
+%endif
+%if 0%{?rhel} || 0%{?fedora}
+BuildRequires: gstreamer-devel
+BuildRequires: gstreamer-plugins-base-devel
+BuildRequires: libXv-devel
+%endif
+%if 0%{?suse_version}
+BuildRequires: gstreamer-devel
+BuildRequires: gstreamer-0_10-plugins-base-devel
+BuildRequires: libXv-devel
+%endif
+
+Requires: %{name}-base
+
+%description
+A basic audio/video viewer application for Trinity.
+
+KMPlayer can:
+* play DVD (DVDNav only with the Xine player)
+* play VCD
+* let the backend players play from a pipe (read from stdin)
+* play from a TV device (experimental)
+* show backend player's console output
+* launch ffserver (only 0.4.8 works) when viewing from a v4l device
+* DCOP KMediaPlayer interface support
+* VDR viewer frontend (with *kxvplayer), configure VDR keys with standard KDE
+ shortcut configure window
+* Lots of configurable shortcuts. Highly recommended for the VDR keys
+ (if you have VDR) and volume increase/decrease
+
+
+%package base
+Group: Applications/Multimedia
+Summary: Base files for KMPlayer [Trinity]
+
+%description base
+Core files needed for KMPlayer.
+
+
+%package konq-plugins
+Group: Applications/Multimedia
+Requires: trinity-kmplayer-base, trinity-kdebase
+Summary: KMPlayer plugin for KHTML/Konqueror [Trinity]
+
+%description konq-plugins
+This plugin enables audio/video playback inside konqueror, using Xine (with
+*kxineplayer) or GStreamer (with *kgstplayer), such as movie trailers, web
+tv or radio. It mimics QuickTime, MS Media Player and RealPlayer plugin
+browser plugins.
+
+
+%package doc
+Group: Applications/Multimedia
+Requires: %{name} = %{version}-%{release}
+Summary: Handbook for KMPlayer [Trinity]
+
+%description doc
+Documention for KMPlayer, a basic audio/video viewer application for KDE.
+
+
+%if 0%{?suse_version}
+%debug_package
+%endif
+
+
+%prep
+%setup -q -n %{kdecomp}-3.5.13.1
+%patch1 -p1
+
+# Ugly hack to modify TQT include directory inside autoconf files.
+# If TQT detection fails, it fallbacks to TQT4 instead of TQT3 !
+%__sed -i admin/acinclude.m4.in \
+ -e "s|/usr/include/tqt|%{tde_includedir}/tqt|g" \
+ -e "s|kde_htmldir='.*'|kde_htmldir='%{tde_tdedocdir}/HTML'|g"
+
+%__cp "/usr/share/aclocal/libtool.m4" "admin/libtool.m4.in"
+%__cp "/usr/share/libtool/config/ltmain.sh" "admin/ltmain.sh" || %__cp "/usr/share/libtool/ltmain.sh" "admin/ltmain.sh"
+%__make -f "admin/Makefile.common"
+
+
+
+%build
+unset QTDIR; . /etc/profile.d/qt3.sh
+export PATH="%{tde_bindir}:${PATH}"
+export LDFLAGS="-L%{tde_libdir} -I%{tde_includedir}"
+
+export CXXFLAGS="${CXXFLAGS} -fpermissive"
+
+%configure \
+ --prefix=%{tde_prefix} \
+ --exec-prefix=%{tde_prefix} \
+ --bindir=%{tde_bindir} \
+ --datadir=%{tde_datadir} \
+ --includedir=%{tde_tdeincludedir} \
+ --libdir=%{tde_libdir} \
+ --mandir=%{tde_mandir} \
+ --disable-rpath \
+ --with-extra-includes=%{tde_includedir}/tqt:%{tde_includedir}/dbus-1.0 \
+ --enable-closure
+
+
+%__make %{?_smp_mflags}
+
+
+%install
+export PATH="%{tde_bindir}:${PATH}"
+%__rm -rf %{buildroot}
+%__make install DESTDIR=%{buildroot}
+
+%find_lang %{kdecomp}
+
+# Removes unwanted files
+%__rm -f %{?buildroot}%{tde_datadir}/mimelnk/application/x-mplayer2.desktop
+
+
+%clean
+%__rm -rf %{buildroot}
+
+
+%post
+/sbin/ldconfig || :
+
+%postun
+/sbin/ldconfig || :
+
+%post base
+touch --no-create %{tde_datadir}/icons/hicolor || :
+gtk-update-icon-cache --quiet %{tde_datadir}/icons/hicolor || :
+/sbin/ldconfig || :
+
+%postun base
+touch --no-create %{tde_datadir}/icons/hicolor || :
+gtk-update-icon-cache --quiet %{tde_datadir}/icons/hicolor || :
+/sbin/ldconfig || :
+
+
+%files -f %{kdecomp}.lang
+%defattr(-,root,root,-)
+%doc AUTHORS COPYING ChangeLog INSTALL README TODO kmplayer.lsm
+%{tde_bindir}/kmplayer
+%{tde_bindir}/knpplayer
+%{tde_bindir}/kxvplayer
+%{tde_libdir}/libkdeinit_kmplayer.la
+%{tde_libdir}/libkdeinit_kmplayer.so
+%{tde_tdelibdir}/kmplayer.la
+%{tde_tdelibdir}/kmplayer.so
+%{tde_tdeappdir}/kmplayer.desktop
+%{tde_datadir}/apps/kmplayer
+%{tde_datadir}/services/kmplayer_part.desktop
+
+%files base
+%defattr(-,root,root,-)
+%{tde_libdir}/libkmplayercommon.la
+%{tde_libdir}/libkmplayercommon.so
+%{tde_bindir}/kgstplayer
+%{tde_bindir}/kxineplayer
+%{tde_datadir}/config/kmplayerrc
+%{tde_datadir}/apps/kmplayer/bookmarks.xml
+%{tde_datadir}/apps/kmplayer/noise.gif
+%{tde_datadir}/apps/kmplayer/pluginsinfo
+%{tde_datadir}/icons/hicolor/*/apps/kmplayer.png
+%{tde_datadir}/icons/hicolor/*/apps/kmplayer.svgz
+%{tde_datadir}/mimelnk/application/x-kmplayer.desktop
+%{tde_datadir}/mimelnk/video/x-ms-wmp.desktop
+
+
+%files doc
+%defattr(-,root,root,-)
+%{tde_tdedocdir}/HTML/*/kmplayer
+
+%files konq-plugins
+%defattr(-,root,root,-)
+%{tde_tdelibdir}/libkmplayerpart.la
+%{tde_tdelibdir}/libkmplayerpart.so
+%{tde_datadir}/apps/kmplayer/kmplayerpartui.rc
+%{tde_datadir}/apps/kmplayer/pluginsinfo
+%{tde_datadir}/services/kmplayer_part.desktop
+
+
+%changelog
+* Wed Oct 03 2012 Francois Andriot <francois.andriot@free.fr> - 0.10.0c-3
+- Initial build for TDE 3.5.13.1
+
+* Wed May 02 2012 Francois Andriot <francois.andriot@free.fr> - 0.10.0c-2
+- Fix compilation with GCC 4.7 [Commit #5106117b]
+
+* Sat Dec 03 2011 Francois Andriot <francois.andriot@free.fr> - 0.10.0c-1
+- Initial build for RHEL 5, RHEL 6, Fedora 15, Fedora 16
+
diff --git a/redhat/applications/kmplayer/trinity-kmplayer.spec b/redhat/applications/kmplayer/trinity-kmplayer-3.5.13.spec
index 70589fe00..70589fe00 100644
--- a/redhat/applications/kmplayer/trinity-kmplayer.spec
+++ b/redhat/applications/kmplayer/trinity-kmplayer-3.5.13.spec
diff --git a/redhat/applications/kmyfirewall/trinity-kmyfirewall-3.5.13.1.spec b/redhat/applications/kmyfirewall/trinity-kmyfirewall-3.5.13.1.spec
new file mode 100644
index 000000000..dccfee43d
--- /dev/null
+++ b/redhat/applications/kmyfirewall/trinity-kmyfirewall-3.5.13.1.spec
@@ -0,0 +1,208 @@
+# Default version for this component
+%define kdecomp kmyfirewall
+
+# If TDE is built in a specific prefix (e.g. /opt/trinity), the release will be suffixed with ".opt".
+%if "%{?tde_prefix}" != "/usr"
+%define _variant .opt
+%endif
+
+# TDE 3.5.13 specific building variables
+%define tde_bindir %{tde_prefix}/bin
+%define tde_datadir %{tde_prefix}/share
+%define tde_docdir %{tde_datadir}/doc
+%define tde_includedir %{tde_prefix}/include
+%define tde_libdir %{tde_prefix}/%{_lib}
+%define tde_mandir %{tde_datadir}/man
+%define tde_appdir %{tde_datadir}/applications
+
+%define tde_tdeappdir %{tde_appdir}/kde
+%define tde_tdedocdir %{tde_docdir}/tde
+%define tde_tdeincludedir %{tde_includedir}/tde
+%define tde_tdelibdir %{tde_libdir}/trinity
+
+%define _docdir %{tde_docdir}
+
+
+Name: trinity-%{kdecomp}
+Summary: iptables based firewall configuration tool for KDE [Trinity]
+Version: 1.1.1
+Release: 3%{?dist}%{?_variant}
+
+License: GPLv2+
+Group: Applications/Utilities
+
+Vendor: Trinity Project
+Packager: Francois Andriot <francois.andriot@free.fr>
+URL: http://www.trinitydesktop.org/
+
+Prefix: %{tde_prefix}
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+
+Source0: %{kdecomp}-3.5.13.1.tar.gz
+
+BuildRequires: trinity-tqtinterface-devel >= 3.5.13.1
+BuildRequires: trinity-tdelibs-devel >= 3.5.13.1
+BuildRequires: trinity-tdebase-devel >= 3.5.13.1
+BuildRequires: desktop-file-utils
+
+
+%description
+KMyFirewall attempts to make it easier to setup iptables based firewalls on
+Linux systems. It will be the right tool if you like to have a so called
+"Personal Firewall" running on your Linux box, but don't have the time and/or
+the interest to spend hours in front of the iptables manual just to setup a
+Firewall that keeps the "bad" people out.
+
+There is also the possibility to save entire rule sets, so you only have to
+configure your rule set one time and then you can use it on several computers
+giving each of them a similar configuration (p.e. school networks, office,
+university etc.)
+
+%package devel
+Summary: Development files for %{name}
+Group: Development/Libraries
+Requires: %{name} = %{version}-%{release}
+
+%description devel
+%{summary}
+
+
+%if 0%{?suse_version}
+%debug_package
+%endif
+
+
+%prep
+%setup -q -n %{kdecomp}-3.5.13.1
+
+# Ugly hack to modify TQT include directory inside autoconf files.
+# If TQT detection fails, it fallbacks to TQT4 instead of TQT3 !
+%__sed -i admin/acinclude.m4.in \
+ -e "s|/usr/include/tqt|%{tde_includedir}/tqt|g" \
+ -e "s|kde_htmldir='.*'|kde_htmldir='%{tde_tdedocdir}/HTML'|g"
+
+%__cp "/usr/share/aclocal/libtool.m4" "admin/libtool.m4.in"
+%__cp "/usr/share/libtool/config/ltmain.sh" "admin/ltmain.sh" || %__cp "/usr/share/libtool/ltmain.sh" "admin/ltmain.sh"
+%__make -f "admin/Makefile.common"
+
+
+%build
+unset QTDIR; . /etc/profile.d/qt3.sh
+export PATH="%{tde_bindir}:${PATH}"
+export LDFLAGS="-L%{tde_libdir} -I%{tde_includedir}"
+
+%configure \
+ --prefix=%{tde_prefix} \
+ --exec-prefix=%{tde_prefix} \
+ --bindir=%{tde_bindir} \
+ --datadir=%{tde_datadir} \
+ --libdir=%{tde_libdir} \
+ --mandir=%{tde_mandir} \
+ --includedir=%{tde_tdeincludedir} \
+ --disable-rpath \
+ --with-extra-includes=%{tde_includedir}/tqt \
+ --enable-closure
+
+%__make %{?_smp_mflags}
+
+%install
+export PATH="%{tde_bindir}:${PATH}"
+%__rm -rf %{buildroot}
+%__make install DESTDIR=%{buildroot}
+
+
+%clean
+%__rm -rf %{buildroot}
+
+
+%post
+update-desktop-database %{tde_appdir} > /dev/null
+for f in hicolor Locolor; do
+ touch --no-create %{tde_datadir}/icons/${f} || :
+ gtk-update-icon-cache --quiet %{tde_datadir}/icons/${f} || :
+done
+/sbin/ldconfig || :
+
+%postun
+update-desktop-database %{tde_appdir} > /dev/null
+for f in hicolor Locolor; do
+ touch --no-create %{tde_datadir}/icons/${f} || :
+ gtk-update-icon-cache --quiet %{tde_datadir}/icons/${f} || :
+done
+/sbin/ldconfig || :
+
+
+%files
+%defattr(-,root,root,-)
+%doc AUTHORS ChangeLog COPYING COPYING-DOCS README TODO
+%{tde_bindir}/kmyfirewall
+%{tde_libdir}/libkmfcore.so.*
+%{tde_libdir}/libkmfwidgets.so.*
+%{tde_tdelibdir}/libkmfcompiler_ipt.la
+%{tde_tdelibdir}/libkmfcompiler_ipt.so
+%{tde_tdelibdir}/libkmfgenericinterfacepart.la
+%{tde_tdelibdir}/libkmfgenericinterfacepart.so
+%{tde_tdelibdir}/libkmfinstaller_linux.la
+%{tde_tdelibdir}/libkmfinstaller_linux.so
+%{tde_tdelibdir}/libkmfinstallerplugin.la
+%{tde_tdelibdir}/libkmfinstallerplugin.so
+%{tde_tdelibdir}/libkmfipteditorpart.la
+%{tde_tdelibdir}/libkmfipteditorpart.so
+%{tde_tdelibdir}/libkmfruleoptionedit_custom.la
+%{tde_tdelibdir}/libkmfruleoptionedit_custom.so
+%{tde_tdelibdir}/libkmfruleoptionedit_interface.la
+%{tde_tdelibdir}/libkmfruleoptionedit_interface.so
+%{tde_tdelibdir}/libkmfruleoptionedit_ip.la
+%{tde_tdelibdir}/libkmfruleoptionedit_ip.so
+%{tde_tdelibdir}/libkmfruleoptionedit_limit.la
+%{tde_tdelibdir}/libkmfruleoptionedit_limit.so
+%{tde_tdelibdir}/libkmfruleoptionedit_mac.la
+%{tde_tdelibdir}/libkmfruleoptionedit_mac.so
+%{tde_tdelibdir}/libkmfruleoptionedit_protocol.la
+%{tde_tdelibdir}/libkmfruleoptionedit_protocol.so
+%{tde_tdelibdir}/libkmfruleoptionedit_state.la
+%{tde_tdelibdir}/libkmfruleoptionedit_state.so
+%{tde_tdelibdir}/libkmfruleoptionedit_tos.la
+%{tde_tdelibdir}/libkmfruleoptionedit_tos.so
+%{tde_tdelibdir}/libkmfruletargetoptionedit_log.la
+%{tde_tdelibdir}/libkmfruletargetoptionedit_log.so
+%{tde_tdelibdir}/libkmfruletargetoptionedit_mark.la
+%{tde_tdelibdir}/libkmfruletargetoptionedit_mark.so
+%{tde_tdelibdir}/libkmfruletargetoptionedit_nat.la
+%{tde_tdelibdir}/libkmfruletargetoptionedit_nat.so
+%{tde_tdelibdir}/libkmfruletargetoptionedit_tos.la
+%{tde_tdelibdir}/libkmfruletargetoptionedit_tos.so
+%{tde_tdeappdir}/kmyfirewall.desktop
+%{tde_datadir}/apps/kmfgenericinterfacepart/kmfgenericinterfacepartui.rc
+%{tde_datadir}/apps/kmfipteditorpart/kmfipteditorpartui.rc
+%{tde_datadir}/apps/kmfsystray
+%{tde_datadir}/apps/kmyfirewall
+%{tde_datadir}/config.kcfg/kmfconfig.kcfg
+%{tde_datadir}/config/kmyfirewallrc
+%{tde_tdedocdir}/HTML/en/kmyfirewall/
+%{tde_datadir}/icons/hicolor/*/apps/kmyfirewall.png
+%{tde_datadir}/icons/Locolor/*/apps/kmyfirewall.png
+%{tde_datadir}/mimelnk/application/kmfgrs.desktop
+%{tde_datadir}/mimelnk/application/kmfnet.desktop
+%{tde_datadir}/mimelnk/application/kmfpkg.desktop
+%{tde_datadir}/mimelnk/application/kmfrs.desktop
+%{tde_datadir}/services/kmf*.desktop
+%{tde_datadir}/servicetypes/kmf*.desktop
+
+%files devel
+%{tde_tdeincludedir}/kmyfirewall
+%{tde_libdir}/libkmfcore.la
+%{tde_libdir}/libkmfcore.so
+%{tde_libdir}/libkmfwidgets.la
+%{tde_libdir}/libkmfwidgets.so
+
+%changelog
+* Wed Oct 03 2012 Francois Andriot <francois.andriot@free.fr> - 1.1.1-3
+- Initial build for TDE 3.5.13.1
+
+* Wed May 02 2012 Francois Andriot <francois.andriot@free.fr> - 1.1.1-2
+- GCC 4.7 fixes. [Commit #88d2d2a7]
+
+* Sat Dec 03 2011 Francois Andriot <francois.andriot@free.fr> - 1.1.1-1
+- Initial build for RHEL 5, RHEL 6, Fedora 15, Fedora 16
+
diff --git a/redhat/applications/kmyfirewall/trinity-kmyfirewall.spec b/redhat/applications/kmyfirewall/trinity-kmyfirewall-3.5.13.spec
index 5a0cde153..5a0cde153 100644
--- a/redhat/applications/kmyfirewall/trinity-kmyfirewall.spec
+++ b/redhat/applications/kmyfirewall/trinity-kmyfirewall-3.5.13.spec
diff --git a/redhat/applications/kmymoney/trinity-kmymoney-3.5.13.1.spec b/redhat/applications/kmymoney/trinity-kmymoney-3.5.13.1.spec
new file mode 100644
index 000000000..31a311c65
--- /dev/null
+++ b/redhat/applications/kmymoney/trinity-kmymoney-3.5.13.1.spec
@@ -0,0 +1,276 @@
+# Default version for this component
+%define kdecomp kmymoney
+
+# Required for Mageia 2: removes the ldflag '--no-undefined'
+%define _disable_ld_no_undefined 1
+
+%if 0%{?mgaversion} || 0%{?mdkversion}
+%define qt3pluginsdir %{_libdir}/qt3/plugins
+%endif
+%if 0%{?rhel} || 0%{?fedora}
+%define qt3pluginsdir %{_libdir}/qt-3.3/plugins
+%endif
+%if 0%{?suse_version}
+%define qt3pluginsdir /usr/lib/qt3/plugins
+%endif
+
+# If TDE is built in a specific prefix (e.g. /opt/trinity), the release will be suffixed with ".opt".
+%if "%{?tde_prefix}" != "/usr"
+%define _variant .opt
+%endif
+
+# TDE 3.5.13 specific building variables
+%define tde_bindir %{tde_prefix}/bin
+%define tde_datadir %{tde_prefix}/share
+%define tde_docdir %{tde_datadir}/doc
+%define tde_includedir %{tde_prefix}/include
+%define tde_libdir %{tde_prefix}/%{_lib}
+%define tde_mandir %{tde_datadir}/man
+%define tde_appdir %{tde_datadir}/applications
+
+%define tde_tdeappdir %{tde_appdir}/kde
+%define tde_tdedocdir %{tde_docdir}/tde
+%define tde_tdeincludedir %{tde_includedir}/tde
+%define tde_tdelibdir %{tde_libdir}/trinity
+
+%define _docdir %{tde_docdir}
+
+
+Name: trinity-%{kdecomp}
+Summary: personal finance manager for TDE
+
+Version: 1.0.5
+Release: 3%{?dist}%{?_variant}
+
+License: GPLv2+
+Group: Applications/Utilities
+
+Vendor: Trinity Project
+Packager: Francois Andriot <francois.andriot@free.fr>
+URL: http://www.trinitydesktop.org/
+
+Prefix: %{tde_prefix}
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+
+Source0: %{kdecomp}-3.5.13.1.tar.gz
+Source1: kmymoneytitlelabel.png
+
+# [kmymoney] Missing LDFLAGS causing FTBFS
+Patch4: kmymoney-3.5.13-missing_ldflags.patch
+
+# [kmymoney] Fix QT3 plugins directory location
+Patch5: kmymoney-3.5.13-fix_qt3_plugins_location.patch
+
+BuildRequires: trinity-tqtinterface-devel >= 3.5.13.1
+BuildRequires: trinity-arts-devel >= 3.5.13.1
+BuildRequires: trinity-tdelibs-devel >= 3.5.13.1
+BuildRequires: trinity-tdebase-devel >= 3.5.13.1
+BuildRequires: desktop-file-utils
+
+BuildRequires: recode
+BuildRequires: html2ps
+BuildRequires: libofx-devel
+
+%if 0%{?mgaversion}
+BuildRequires: %{_lib}OpenSP5-devel
+%else
+BuildRequires: opensp-devel
+%endif
+
+Requires: %{name}-common == %{version}
+
+%description
+KMyMoney is the Personal Finance Manager for TDE. It operates similar to
+MS-Money and Quicken, supports different account types, categorisation of
+expenses, QIF import/export, multiple currencies and initial online banking
+support.
+
+
+%package common
+Summary: KMyMoney architecture independent files
+Group: Applications/Utilities
+Requires: %{name} == %{version}
+
+%description common
+This package contains architecture independent files needed for KMyMoney to
+run properly. It also provides KMyMoney documentation. Therefore, unless you
+have '%{name}' package installed, you will hardly find this package useful.
+
+
+%package devel
+Summary: KMyMoney development files
+Group: Development/Libraries
+Requires: %{name} == %{version}
+
+%description devel
+This package contains development files needed for KMyMoney plugins.
+
+
+%if 0%{?suse_version}
+%debug_package
+%endif
+
+
+%prep
+%setup -q -n %{kdecomp}-3.5.13.1
+%if 0%{?mgaversion} || 0%{?mdkversion}
+%patch5 -p1 -b .qtpluginsdir
+%endif
+
+%__install -m644 %{SOURCE1} kmymoney2/widgets/
+
+# Ugly hack to modify TQT include directory inside autoconf files.
+# If TQT detection fails, it fallbacks to TQT4 instead of TQT3 !
+%__sed -i admin/acinclude.m4.in \
+ -e "s|/usr/include/tqt|%{tde_includedir}/tqt|g" \
+ -e "s|kde_htmldir='.*'|kde_htmldir='%{tde_tdedocdir}/HTML'|g"
+
+%__cp "/usr/share/aclocal/libtool.m4" "admin/libtool.m4.in"
+%__cp "/usr/share/libtool/config/ltmain.sh" "admin/ltmain.sh" || %__cp "/usr/share/libtool/ltmain.sh" "admin/ltmain.sh"
+%__make -f "admin/Makefile.common"
+
+
+%build
+unset QTDIR; . /etc/profile.d/qt3.sh
+export PATH="%{tde_bindir}:${PATH}"
+export LDFLAGS="-L%{tde_libdir} -I%{tde_includedir}"
+export PKG_CONFIG_PATH="%{tde_libdir}/pkgconfig:${PKG_CONFIG_PATH}"
+
+# Required to find the QT3 plugins directory
+%if 0%{?mgaversion} || 0%{?mdkversion}
+export QTPLUGINS=%{_libdir}/qt3/plugins
+%endif
+
+%configure \
+ --prefix=%{tde_prefix} \
+ --exec-prefix=%{tde_prefix} \
+ --bindir=%{tde_bindir} \
+ --datadir=%{tde_datadir} \
+ --libdir=%{tde_libdir} \
+ --mandir=%{tde_mandir} \
+ --includedir=%{tde_tdeincludedir} \
+ --disable-rpath \
+ --with-extra-includes=%{tde_includedir}/tqt \
+ --enable-closure \
+ --enable-pdf-docs \
+ --enable-ofxplugin \
+ --enable-ofxbanking \
+ --enable-qtdesigner \
+ --enable-sqlite3
+
+# Fix FTBFS inside sqlite3 archive
+patch -p1 < %{PATCH4}
+
+%__make %{?_smp_mflags}
+
+%install
+export PATH="%{tde_bindir}:${PATH}"
+%__rm -rf %{buildroot}
+
+# Required to find the QT3 plugins directory
+%if 0%{?mgaversion} || 0%{?mdkversion}
+export QTPLUGINS=%{_libdir}/qt3/plugins
+%endif
+
+%__make install DESTDIR=%{buildroot}
+
+
+
+
+## File lists
+# 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
+
+%find_lang kmymoney2
+
+%clean
+%__rm -rf %{buildroot}
+
+
+%post
+update-desktop-database %{tde_appdir} > /dev/null
+/sbin/ldconfig
+for f in hicolor locolor Tango oxygen; do
+ touch --no-create %{tde_datadir}/icons/${f} || :
+ gtk-update-icon-cache --quiet %{tde_datadir}/icons/${f} || :
+done
+
+%postun
+update-desktop-database %{tde_appdir} > /dev/null
+/sbin/ldconfig
+for f in hicolor locolor Tango oxygen; do
+ touch --no-create %{tde_datadir}/icons/${f} || :
+ gtk-update-icon-cache --quiet %{tde_datadir}/icons/${f} || :
+done
+
+%files
+%defattr(-,root,root,-)
+%{tde_bindir}/kmymoney
+%{tde_bindir}/kmymoney2
+%{tde_tdeappdir}/kmymoney2.desktop
+%{tde_datadir}/mimelnk/application/x-kmymoney2.desktop
+%{tde_datadir}/servicetypes/kmymoneyimporterplugin.desktop
+%{tde_datadir}/servicetypes/kmymoneyplugin.desktop
+%{tde_libdir}/*.so.*
+%{tde_tdelibdir}/kmm_ofximport.la
+%{tde_tdelibdir}/kmm_ofximport.so
+
+%files common -f kmymoney2.lang
+%defattr(-,root,root,-)
+%{tde_datadir}/apps/kmymoney2/html/
+%{tde_datadir}/apps/kmymoney2/icons/*/*/*/*.png
+%{tde_datadir}/apps/kmymoney2/kmymoney2ui.rc
+%{tde_datadir}/apps/kmymoney2/misc/financequote.pl
+%{tde_datadir}/apps/kmymoney2/pics/*.png
+%{tde_datadir}/apps/kmymoney2/templates/*/*.kmt
+%{tde_datadir}/apps/kmymoney2/tips
+%{tde_datadir}/config.kcfg/kmymoney2.kcfg
+%{tde_datadir}/icons/hicolor/*/*/*.png
+%{tde_datadir}/icons/Tango/*/*/*.png
+%{tde_datadir}/icons/Tango/scalable/*.svgz
+%{tde_datadir}/icons/locolor/*/*/*.png
+%{tde_datadir}/icons/oxygen/*/*/*.png
+%{tde_datadir}/icons/oxygen/scalable/*.svgz
+%{tde_tdedocdir}/HTML/en/kmymoney2/
+%{tde_mandir}/man1/kmymoney2.*
+%{tde_datadir}/apps/kmm_ofximport/kmm_ofximport.rc
+%{tde_datadir}/services/kmm_ofximport.desktop
+
+
+%files devel
+%defattr(-,root,root,-)
+%{tde_tdeincludedir}/kmymoney/*.h
+%{tde_libdir}/libkmm_kdchart.la
+%{tde_libdir}/libkmm_mymoney.la
+%{tde_libdir}/libkmm_plugin.la
+%{tde_libdir}/*.so
+%{qt3pluginsdir}/sqldrivers/libsqlite3*.so
+%{qt3pluginsdir}/designer/libkmymoney.so
+
+%changelog
+* Wed Oct 03 2012 Francois Andriot <francois.andriot@free.fr> - 1.0.5-3
+- Initial build for TDE 3.5.13.1
+
+* Wed May 02 2012 Francois Andriot <francois.andriot@free.fr> - 1.0.5-2
+- Rebuild for Fedora 17
+- Fix compilation with GCC 4.7 [Bug #958]
+
+* Sun Jan 15 2012 Francois Andriot <francois.andriot@free.fr> - 1.0.5-1
+- Updates to upstream 1.0.5
+
+* Sun Oct 30 2011 Francois Andriot <francois.andriot@free.fr> - 1.0.4-1
+- Initial release for TDE 3.5.13 on RHEL 6, RHEL 5 and Fedora 15
diff --git a/redhat/applications/knemo/trinity-knemo-3.5.13.1.spec b/redhat/applications/knemo/trinity-knemo-3.5.13.1.spec
new file mode 100644
index 000000000..331579a41
--- /dev/null
+++ b/redhat/applications/knemo/trinity-knemo-3.5.13.1.spec
@@ -0,0 +1,143 @@
+# Default version for this component
+%define kdecomp knemo
+
+# If TDE is built in a specific prefix (e.g. /opt/trinity), the release will be suffixed with ".opt".
+%if "%{?tde_prefix}" != "/usr"
+%define _variant .opt
+%endif
+
+# TDE 3.5.13 specific building variables
+%define tde_bindir %{tde_prefix}/bin
+%define tde_datadir %{tde_prefix}/share
+%define tde_docdir %{tde_datadir}/doc
+%define tde_includedir %{tde_prefix}/include
+%define tde_libdir %{tde_prefix}/%{_lib}
+%define tde_mandir %{tde_datadir}/man
+%define tde_appdir %{tde_datadir}/applications
+
+%define tde_tdeappdir %{tde_appdir}/kde
+%define tde_tdedocdir %{tde_docdir}/tde
+%define tde_tdeincludedir %{tde_includedir}/tde
+%define tde_tdelibdir %{tde_libdir}/trinity
+
+%define _docdir %{tde_docdir}
+
+
+Name: trinity-%{kdecomp}
+Summary: network interfaces monitor for the Trinity systray
+Version: 0.4.8
+Release: 3%{?dist}%{?_variant}
+
+License: GPLv2+
+Group: Applications/Utilities
+
+Vendor: Trinity Project
+Packager: Francois Andriot <francois.andriot@free.fr>
+URL: http://beta.smileaf.org/projects
+
+Prefix: %{tde_prefix}
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+
+Source0: %{kdecomp}-3.5.13.1.tar.gz
+
+BuildRequires: trinity-tqtinterface-devel >= 3.5.13.1
+BuildRequires: trinity-tdelibs-devel >= 3.5.13.1
+BuildRequires: trinity-tdebase-devel >= 3.5.13.1
+BuildRequires: desktop-file-utils
+BuildRequires: gettext
+
+
+%description
+KNemo displays an icon in the systray for every network interface.
+Tooltips and an info dialog provide further information about the
+interface. Passive popups inform about interface changes.
+A traffic plotter is also integrated.
+
+knemo polls the network interface status every second using the
+ifconfig, route and iwconfig tools.
+
+Homepage: http://extragear.kde.org/apps/knemo/
+
+
+
+%if 0%{?suse_version}
+%debug_package
+%endif
+
+
+%prep
+%setup -q -n %{kdecomp}-3.5.13.1
+
+# Ugly hack to modify TQT include directory inside autoconf files.
+# If TQT detection fails, it fallbacks to TQT4 instead of TQT3 !
+%__sed -i admin/acinclude.m4.in \
+ -e "s|/usr/include/tqt|%{tde_includedir}/tqt|g" \
+ -e "s|kde_htmldir='.*'|kde_htmldir='%{tde_tdedocdir}/HTML'|g"
+
+%__cp "/usr/share/aclocal/libtool.m4" "admin/libtool.m4.in"
+%__cp "/usr/share/libtool/config/ltmain.sh" "admin/ltmain.sh" || %__cp "/usr/share/libtool/ltmain.sh" "admin/ltmain.sh"
+%__make -f "admin/Makefile.common"
+
+
+%build
+unset QTDIR; . /etc/profile.d/qt3.sh
+export PATH="%{tde_bindir}:${PATH}"
+export LDFLAGS="-L%{tde_libdir} -I%{tde_includedir}"
+
+%configure \
+ --prefix=%{tde_prefix} \
+ --exec-prefix=%{tde_prefix} \
+ --bindir=%{tde_bindir} \
+ --datadir=%{tde_datadir} \
+ --libdir=%{tde_libdir} \
+ --mandir=%{tde_mandir} \
+ --includedir=%{tde_tdeincludedir} \
+ --disable-rpath \
+ --with-extra-includes=%{tde_includedir}/tqt
+
+%__make %{?_smp_mflags}
+
+
+%install
+export PATH="%{tde_bindir}:${PATH}"
+%__rm -rf %{buildroot}
+%__make install DESTDIR=%{buildroot}
+
+%clean
+%__rm -rf %{buildroot}
+
+
+%post
+update-desktop-database %{tde_appdir} > /dev/null
+touch --no-create %{tde_datadir}/icons/crystalsvg || :
+gtk-update-icon-cache --quiet %{tde_datadir}/icons/crystalsvg || :
+
+%postun
+update-desktop-database %{tde_appdir} > /dev/null
+touch --no-create %{tde_datadir}/icons/crystalsvg || :
+gtk-update-icon-cache --quiet %{tde_datadir}/icons/crystalsvg || :
+
+
+%files
+%defattr(-,root,root,-)
+%{tde_tdelibdir}/kcm_knemo.la
+%{tde_tdelibdir}/kcm_knemo.so
+%{tde_tdelibdir}/kded_knemod.la
+%{tde_tdelibdir}/kded_knemod.so
+%{tde_tdeappdir}/kcm_knemo.desktop
+%{tde_datadir}/apps/knemo/eventsrc
+%{tde_datadir}/icons/crystalsvg/*/*/*.png
+%{tde_datadir}/locale/*/LC_MESSAGES/knemod.mo
+%{tde_datadir}/locale/*/LC_MESSAGES/kcm_knemo.mo
+%{tde_datadir}/services/kded/knemod.desktop
+
+
+%changelog
+* Wed Oct 03 2012 Francois Andriot <francois.andriot@free.fr> - 0.4.8-3
+- Initial build for TDE 3.5.13.1
+
+* Wed May 02 2012 Francois Andriot <francois.andriot@free.fr> - 0.4.8-2
+- Rebuild for Fedora 17
+
+* Fri Nov 25 2011 Francois Andriot <francois.andriot@free.fr> - 0.4.8-1
+- Initial build for RHEL 5, RHEL 6, Fedora 15, Fedora 16
diff --git a/redhat/applications/knemo/trinity-knemo.spec b/redhat/applications/knemo/trinity-knemo-3.5.13.spec
index 3db393ccd..3db393ccd 100644
--- a/redhat/applications/knemo/trinity-knemo.spec
+++ b/redhat/applications/knemo/trinity-knemo-3.5.13.spec
diff --git a/redhat/applications/knetload/trinity-knetload-3.5.13.1.spec b/redhat/applications/knetload/trinity-knetload-3.5.13.1.spec
new file mode 100644
index 000000000..7e3ab7aaa
--- /dev/null
+++ b/redhat/applications/knetload/trinity-knetload-3.5.13.1.spec
@@ -0,0 +1,144 @@
+# Default version for this component
+%define kdecomp knetload
+
+# If TDE is built in a specific prefix (e.g. /opt/trinity), the release will be suffixed with ".opt".
+%if "%{?tde_prefix}" != "/usr"
+%define _variant .opt
+%endif
+
+# TDE 3.5.13 specific building variables
+%define tde_bindir %{tde_prefix}/bin
+%define tde_datadir %{tde_prefix}/share
+%define tde_docdir %{tde_datadir}/doc
+%define tde_includedir %{tde_prefix}/include
+%define tde_libdir %{tde_prefix}/%{_lib}
+%define tde_mandir %{tde_datadir}/man
+%define tde_appdir %{tde_datadir}/applications
+
+%define tde_tdeappdir %{tde_appdir}/kde
+%define tde_tdedocdir %{tde_docdir}/tde
+%define tde_tdeincludedir %{tde_includedir}/tde
+%define tde_tdelibdir %{tde_libdir}/trinity
+
+%define _docdir %{tde_docdir}
+
+
+Name: trinity-%{kdecomp}
+Summary: a network meter for Kicker [Trinity]
+Version: 2.3
+Release: 3%{?dist}%{?_variant}
+
+License: GPLv2+
+Group: Applications/Utilities
+
+Vendor: Trinity Project
+Packager: Francois Andriot <francois.andriot@free.fr>
+URL: http://www.trinitydesktop.org
+
+Prefix: %{tde_prefix}
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+
+Source0: %{kdecomp}-3.5.13.1.tar.gz
+
+BuildRequires: trinity-tqtinterface-devel >= 3.5.13.1
+BuildRequires: trinity-tdelibs-devel >= 3.5.13.1
+BuildRequires: trinity-tdebase-devel >= 3.5.13.1
+BuildRequires: desktop-file-utils
+BuildRequires: gettext
+
+
+%description
+KNetLoad is a small network meter for Kicker (the KDE panel). It shows
+a recent history of network usage in the form of two configurable
+diagrams in the system tray, one for incoming and one for outgoing
+data. These diagrams have settings for colours and various different
+styles.
+
+KNetLoad can monitor just about any network device.
+
+
+%if 0%{?suse_version}
+%debug_package
+%endif
+
+
+%prep
+%setup -q -n %{kdecomp}-3.5.13.1
+
+# Ugly hack to modify TQT include directory inside autoconf files.
+# If TQT detection fails, it fallbacks to TQT4 instead of TQT3 !
+%__sed -i admin/acinclude.m4.in \
+ -e "s|/usr/include/tqt|%{tde_includedir}/tqt|g" \
+ -e "s|kde_htmldir='.*'|kde_htmldir='%{tde_tdedocdir}/HTML'|g"
+
+%__cp "/usr/share/aclocal/libtool.m4" "admin/libtool.m4.in"
+%__cp "/usr/share/libtool/config/ltmain.sh" "admin/ltmain.sh" || %__cp "/usr/share/libtool/ltmain.sh" "admin/ltmain.sh"
+%__make -f "admin/Makefile.common"
+
+
+%build
+unset QTDIR; . /etc/profile.d/qt3.sh
+export PATH="%{tde_bindir}:${PATH}"
+export LDFLAGS="-L%{tde_libdir} -I%{tde_includedir}"
+
+%configure \
+ --prefix=%{tde_prefix} \
+ --exec-prefix=%{tde_prefix} \
+ --bindir=%{tde_bindir} \
+ --datadir=%{tde_datadir} \
+ --libdir=%{tde_libdir} \
+ --mandir=%{tde_mandir} \
+ --includedir=%{tde_tdeincludedir} \
+ --disable-rpath \
+ --with-extra-includes=%{tde_includedir}/tqt
+
+# SMP safe !
+%__make %{?_smp_mflags}
+
+
+%install
+export PATH="%{tde_bindir}:${PATH}"
+%__rm -rf %{buildroot}
+%__make install DESTDIR=%{buildroot}
+
+%find_lang %{kdecomp}
+
+
+
+%clean
+%__rm -rf %{buildroot}
+
+
+%post
+update-desktop-database %{tde_appdir} > /dev/null
+for f in crystalsvg locolor ; do
+ touch --no-create %{tde_datadir}/icons/${f} || :
+ gtk-update-icon-cache --quiet %{tde_datadir}/icons/${f} || :
+done
+
+%postun
+update-desktop-database %{tde_appdir} > /dev/null
+for f in crystalsvg locolor ; do
+ touch --no-create %{tde_datadir}/icons/${f} || :
+ gtk-update-icon-cache --quiet %{tde_datadir}/icons/${f} || :
+done
+
+
+%files -f %{kdecomp}.lang
+%defattr(-,root,root,-)
+%{tde_bindir}/knetload
+%{tde_tdeappdir}/knetload.desktop
+%{tde_datadir}/apps/knetload
+%{tde_datadir}/icons/crystalsvg/*/apps/knetload.png
+%{tde_datadir}/icons/locolor/*/apps/knetload.png
+
+
+%changelog
+* Wed Oct 03 2012 Francois Andriot <francois.andriot@free.fr> - 2.3-3
+- Initial build for TDE 3.5.13.1
+
+* Wed May 02 2012 Francois Andriot <francois.andriot@free.fr> - 2.3-2
+- Rebuild for Fedora 17
+
+* Wed Nov 30 2011 Francois Andriot <francois.andriot@free.fr> - 2.3-1
+- Initial build for RHEL 5, RHEL 6, Fedora 15, Fedora 16
diff --git a/redhat/applications/knetload/trinity-knetload.spec b/redhat/applications/knetload/trinity-knetload-3.5.13.spec
index 89b234ac9..89b234ac9 100644
--- a/redhat/applications/knetload/trinity-knetload.spec
+++ b/redhat/applications/knetload/trinity-knetload-3.5.13.spec
diff --git a/redhat/applications/knetstats/trinity-knetstats-3.5.13.1.spec b/redhat/applications/knetstats/trinity-knetstats-3.5.13.1.spec
new file mode 100644
index 000000000..6a7f4ecc2
--- /dev/null
+++ b/redhat/applications/knetstats/trinity-knetstats-3.5.13.1.spec
@@ -0,0 +1,132 @@
+# Default version for this component
+%define kdecomp knetstats
+
+# If TDE is built in a specific prefix (e.g. /opt/trinity), the release will be suffixed with ".opt".
+%if "%{?tde_prefix}" != "/usr"
+%define _variant .opt
+%endif
+
+# TDE 3.5.13 specific building variables
+%define tde_bindir %{tde_prefix}/bin
+%define tde_datadir %{tde_prefix}/share
+%define tde_docdir %{tde_datadir}/doc
+%define tde_includedir %{tde_prefix}/include
+%define tde_libdir %{tde_prefix}/%{_lib}
+%define tde_mandir %{tde_datadir}/man
+%define tde_appdir %{tde_datadir}/applications
+
+%define tde_tdeappdir %{tde_appdir}/kde
+%define tde_tdedocdir %{tde_docdir}/tde
+%define tde_tdeincludedir %{tde_includedir}/tde
+%define tde_tdelibdir %{tde_libdir}/trinity
+
+%define _docdir %{tde_docdir}
+
+
+Name: trinity-%{kdecomp}
+Summary: network interfaces monitor for the Trinity systray
+Version: 1.6.1
+Release: 2%{?dist}%{?_variant}
+
+License: GPLv2+
+Group: Applications/Utilities
+
+Vendor: Trinity Project
+Packager: Francois Andriot <francois.andriot@free.fr>
+URL: http://www.trinitydesktop.org
+
+Prefix: %{tde_prefix}
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+
+Source0: %{kdecomp}-3.5.13.1.tar.gz
+
+BuildRequires: trinity-tqtinterface-devel >= 3.5.13.1
+BuildRequires: trinity-tdelibs-devel >= 3.5.13.1
+BuildRequires: trinity-tdebase-devel >= 3.5.13.1
+BuildRequires: desktop-file-utils
+BuildRequires: gettext
+
+
+%description
+A simple KDE network monitor that show rx/tx LEDs of any
+network interface on a system tray icon
+
+
+%if 0%{?suse_version}
+%debug_package
+%endif
+
+
+%prep
+%setup -q -n %{kdecomp}-3.5.13.1
+
+# Ugly hack to modify TQT include directory inside autoconf files.
+# If TQT detection fails, it fallbacks to TQT4 instead of TQT3 !
+%__sed -i admin/acinclude.m4.in \
+ -e "s|/usr/include/tqt|%{tde_includedir}/tqt|g" \
+ -e "s|kde_htmldir='.*'|kde_htmldir='%{tde_tdedocdir}/HTML'|g"
+
+%__cp "/usr/share/aclocal/libtool.m4" "admin/libtool.m4.in"
+%__cp "/usr/share/libtool/config/ltmain.sh" "admin/ltmain.sh" || %__cp "/usr/share/libtool/ltmain.sh" "admin/ltmain.sh"
+%__make -f "admin/Makefile.common"
+
+
+%build
+unset QTDIR; . /etc/profile.d/qt3.sh
+export PATH="%{tde_bindir}:${PATH}"
+export LDFLAGS="-L%{tde_libdir} -I%{tde_includedir}"
+
+%configure \
+ --prefix=%{tde_prefix} \
+ --exec-prefix=%{tde_prefix} \
+ --bindir=%{tde_bindir} \
+ --datadir=%{tde_datadir} \
+ --libdir=%{tde_libdir} \
+ --mandir=%{tde_mandir} \
+ --includedir=%{tde_tdeincludedir} \
+ --disable-rpath \
+ --with-extra-includes=%{tde_includedir}/tqt
+
+# SMP safe !
+%__make %{?_smp_mflags}
+
+
+%install
+export PATH="%{tde_bindir}:${PATH}"
+%__rm -rf %{buildroot}
+%__make install DESTDIR=%{buildroot}
+
+%find_lang %{kdecomp}
+
+
+
+%clean
+%__rm -rf %{buildroot}
+
+
+%post
+update-desktop-database %{tde_appdir} > /dev/null
+touch --no-create %{tde_datadir}/icons/hicolor || :
+gtk-update-icon-cache --quiet %{tde_datadir}/icons/hicolor || :
+
+%postun
+update-desktop-database %{tde_appdir} > /dev/null
+touch --no-create %{tde_datadir}/icons/hicolor || :
+gtk-update-icon-cache --quiet %{tde_datadir}/icons/hicolor || :
+
+
+%files -f %{kdecomp}.lang
+%defattr(-,root,root,-)
+%{tde_bindir}/knetstats
+%{tde_tdeappdir}/knetstats.desktop
+%{tde_datadir}/apps/knetstats
+%{tde_tdedocdir}/HTML/en/knetstats/
+%{tde_datadir}/icons/hicolor/*/apps/knetstats.png
+
+
+%changelog
+* Wed Oct 03 2012 Francois Andriot <francois.andriot@free.fr> - 1.6.1-2
+- Initial build for TDE 3.5.13.1
+
+* Wed Nov 30 2011 Francois Andriot <francois.andriot@free.fr> - 1.6.1-1
+- Initial build for RHEL 5, RHEL 6, Fedora 15, Fedora 16
diff --git a/redhat/applications/knetstats/trinity-knetstats.spec b/redhat/applications/knetstats/trinity-knetstats-3.5.13.spec
index 9e37f55c6..9e37f55c6 100644
--- a/redhat/applications/knetstats/trinity-knetstats.spec
+++ b/redhat/applications/knetstats/trinity-knetstats-3.5.13.spec
diff --git a/redhat/applications/knetworkmanager/trinity-knetworkmanager-3.5.13.1.spec b/redhat/applications/knetworkmanager/trinity-knetworkmanager-3.5.13.1.spec
new file mode 100644
index 000000000..c1ec92f78
--- /dev/null
+++ b/redhat/applications/knetworkmanager/trinity-knetworkmanager-3.5.13.1.spec
@@ -0,0 +1,186 @@
+# Default version for this component
+%define kdecomp knetworkmanager
+%if 0%{?fedora} >= 15 || 0%{?mgaversion} || 0%{?mdkversion}
+%define version 0.9
+%else
+%define version 0.8
+%endif
+
+# If TDE is built in a specific prefix (e.g. /opt/trinity), the release will be suffixed with ".opt".
+%if "%{?tde_prefix}" != "/usr"
+%define _variant .opt
+%endif
+
+# TDE 3.5.13 specific building variables
+%define tde_bindir %{tde_prefix}/bin
+%define tde_datadir %{tde_prefix}/share
+%define tde_docdir %{tde_datadir}/doc
+%define tde_includedir %{tde_prefix}/include
+%define tde_libdir %{tde_prefix}/%{_lib}
+%define tde_mandir %{tde_datadir}/man
+%define tde_appdir %{tde_datadir}/applications
+
+%define tde_tdeappdir %{tde_appdir}/kde
+%define tde_tdedocdir %{tde_docdir}/tde
+%define tde_tdeincludedir %{tde_includedir}/tde
+%define tde_tdelibdir %{tde_libdir}/trinity
+
+%define _docdir %{tde_tdedocdir}
+
+
+Name: trinity-%{kdecomp}
+Version: %{?version}
+Release: 4%{?dist}%{?_variant}
+
+Summary: Trinity applet for Network Manager
+
+Group: Applications/Internet
+License: GPLv2+
+URL: http://en.opensuse.org/Projects/KNetworkManager
+
+%if "%{?version}" == "0.9"
+Source0: %{kdecomp}9-3.5.13.tar.gz
+%else
+Source0: %{kdecomp}8-3.5.13.tar.gz
+%endif
+
+Patch0: knetworkmanager-3.5.13-missing_includes.patch
+
+# For knetworkmanager 0.9 only !
+Patch10: knetworkmanager-3.5.13-subdir_version.patch
+
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+
+#Requires: kde-filesystem
+BuildRequires: desktop-file-utils
+
+%if 0%{?rhel} || 0%{?fedora}
+Requires: NetworkManager-gnome
+%else
+Requires: networkmanager
+%endif
+
+BuildRequires: dbus-1-tqt-devel
+BuildRequires: dbus-tqt-devel
+BuildRequires: NetworkManager-glib-devel
+
+%description
+KNetworkManager is a system tray applet for controlling network
+connections on systems that use the NetworkManager daemon.
+
+
+%package devel
+Summary: Common data shared among the MySQL GUI Suites
+Group: Development/Libraries
+Requires: %{name} = %{version}-%{release}
+
+%description devel
+Development headers for knetworkmanager
+
+
+%if 0%{?suse_version}
+%debug_package
+%endif
+
+
+%prep
+%if "%{?version}" == "0.9"
+%setup -q -n %{kdecomp}-3.5.13.19
+%else
+%setup -q -n applications/knetworkmanager8
+%endif
+
+%if "%{?version}" == "0.9"
+%patch10 -p1
+%endif
+
+cd knetworkmanager-0.*/src
+%patch0 -p3
+
+
+
+%build
+unset QTDIR || : ; . /etc/profile.d/qt3.sh
+export PATH="%{tde_bindir}:${PATH}"
+export PKG_CONFIG_PATH="%{tde_libdir}/pkgconfig"
+export CMAKE_INCLUDE_PATH="%{tde_includedir}:%{tde_includedir}/tqt"
+export LD_LIBRARY_PATH="%{tde_libdir}"
+
+# Missing TDE macros
+%__mkdir_p cmake
+%__ln_s %{tde_datadir}/cmake cmake/modules
+
+%if 0%{?rhel} || 0%{?fedora}
+%__mkdir_p build
+cd build
+%endif
+
+%cmake \
+ -DCMAKE_INSTALL_PREFIX=%{tde_prefix} \
+ -DBIN_INSTALL_DIR=%{tde_bindir} \
+ -DINCLUDE_INSTALL_DIR=%{tde_tdeincludedir} \
+ -DLIB_INSTALL_DIR=%{tde_libdir} \
+ -DSHARE_INSTALL_PREFIX=%{tde_datadir} \
+ -DCMAKE_SKIP_RPATH="OFF" \
+ ..
+
+%__make %{?_smp_mflags}
+
+%install
+%__rm -rf $RPM_BUILD_ROOT
+%__make install DESTDIR=%{?buildroot} -C build
+
+
+%clean
+%__rm -rf $RPM_BUILD_ROOT
+
+
+%post
+update-desktop-database %{tde_appdir} > /dev/null
+/sbin/ldconfig
+touch --no-create %{tde_datadir}/icons/hicolor || :
+gtk-update-icon-cache --quiet %{tde_datadir}/icons/hicolor || :
+
+%postun
+update-desktop-database %{tde_appdir} > /dev/null
+/sbin/ldconfig
+touch --no-create %{tde_datadir}/icons/hicolor || :
+gtk-update-icon-cache --quiet %{tde_datadir}/icons/hicolor || :
+
+%post devel
+/sbin/ldconfig
+
+%postun devel
+/sbin/ldconfig
+
+%files
+%defattr(-,root,root,-)
+%{tde_bindir}/knetworkmanager
+%{tde_libdir}/*.la
+%{tde_libdir}/*.so
+%{_sysconfdir}/dbus-1/system.d/knetworkmanager.conf
+%{tde_tdeappdir}/knetworkmanager.desktop
+%{tde_datadir}/apps/knetworkmanager
+%{tde_datadir}/icons/hicolor/*/apps/knetworkmanager*
+%{tde_datadir}/servicetypes/knetworkmanager_plugin.desktop
+%{tde_datadir}/servicetypes/knetworkmanager_vpnplugin.desktop
+
+
+%files devel
+%defattr(-,root,root,-)
+%{tde_tdeincludedir}/*.h
+%{tde_tdelibdir}/*.la
+%{tde_tdelibdir}/*.so
+
+%changelog
+* Wed Oct 03 2012 Francois Andriot <francois.andriot@free.fr> - %{?version}-4
+- Initial build for TDE 3.5.13.1
+
+* Wed May 02 2012 Francois Andriot <francois.andriot@free.fr> - 0.8-3 / 0.9-3
+- Rebuild for Fedora 17
+
+* Sat Nov 13 2011 Francois Andriot <francois.andriot@free.fr> - 0.8-2 / 0.9-2
+- Remove faulty patch for WPA authentication
+
+* Tue Nov 11 2011 Francois Andriot <francois.andriot@free.fr> - 0.8-1 / 0.9-1
+- Initial build
diff --git a/redhat/applications/knetworkmanager/trinity-knetworkmanager.spec b/redhat/applications/knetworkmanager/trinity-knetworkmanager-3.5.13.spec
index 8adbb5f6d..8adbb5f6d 100644
--- a/redhat/applications/knetworkmanager/trinity-knetworkmanager.spec
+++ b/redhat/applications/knetworkmanager/trinity-knetworkmanager-3.5.13.spec
diff --git a/redhat/applications/knights/trinity-knights-3.5.13.1.spec b/redhat/applications/knights/trinity-knights-3.5.13.1.spec
new file mode 100644
index 000000000..af0882533
--- /dev/null
+++ b/redhat/applications/knights/trinity-knights-3.5.13.1.spec
@@ -0,0 +1,145 @@
+# Default version for this component
+%define kdecomp knights
+
+# If TDE is built in a specific prefix (e.g. /opt/trinity), the release will be suffixed with ".opt".
+%if "%{?tde_prefix}" != "/usr"
+%define _variant .opt
+%endif
+
+# TDE 3.5.13 specific building variables
+%define tde_bindir %{tde_prefix}/bin
+%define tde_datadir %{tde_prefix}/share
+%define tde_docdir %{tde_datadir}/doc
+%define tde_includedir %{tde_prefix}/include
+%define tde_libdir %{tde_prefix}/%{_lib}
+%define tde_mandir %{tde_datadir}/man
+%define tde_appdir %{tde_datadir}/applications
+
+%define tde_tdeappdir %{tde_appdir}/kde
+%define tde_tdedocdir %{tde_docdir}/tde
+%define tde_tdeincludedir %{tde_includedir}/tde
+%define tde_tdelibdir %{tde_libdir}/trinity
+
+%define _docdir %{tde_docdir}
+
+
+Name: trinity-%{kdecomp}
+Summary: A chess interface for the K Desktop Environment [Trinity]
+Version: 0.6
+Release: 4%{?dist}%{?_variant}
+
+License: GPLv2+
+Group: Amusements/Games
+
+Vendor: Trinity Project
+Packager: Francois Andriot <francois.andriot@free.fr>
+URL: http://www.trinitydesktop.org/
+
+Prefix: %{tde_prefix}
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+
+Source0: %{kdecomp}-3.5.13.1.tar.gz
+
+BuildRequires: trinity-tqtinterface-devel >= 3.5.13.1
+BuildRequires: trinity-tdelibs-devel >= 3.5.13.1
+BuildRequires: trinity-tdebase-devel >= 3.5.13.1
+BuildRequires: desktop-file-utils
+BuildRequires: gettext
+
+Requires: gnuchess
+
+%description
+Knights aims to be the ultimate chess resource on your computer.
+Written for the K Desktop Environment, it's designed to be both friendly
+to new chess players and functional for Grand Masters.
+
+Here's a quick list of Knights' key features:
+* Play against yourself, against computer opponents,
+ or against others over the Internet.
+* Customize your board and pieces with over 30 different themes,
+ or make your own!
+* Audio cues help alert you to important events.
+* Novice players can preview potential moves.
+* Save your unfinished matches and play them again later.
+
+
+%if 0%{?suse_version}
+%debug_package
+%endif
+
+
+%prep
+%setup -q -n %{kdecomp}-3.5.13.1
+
+# Ugly hack to modify TQT include directory inside autoconf files.
+# If TQT detection fails, it fallbacks to TQT4 instead of TQT3 !
+%__sed -i admin/acinclude.m4.in \
+ -e "s|/usr/include/tqt|%{tde_includedir}/tqt|g" \
+ -e "s|kde_htmldir='.*'|kde_htmldir='%{tde_tdedocdir}/HTML'|g"
+
+%__cp "/usr/share/aclocal/libtool.m4" "admin/libtool.m4.in"
+%__cp "/usr/share/libtool/config/ltmain.sh" "admin/ltmain.sh" || %__cp "/usr/share/libtool/ltmain.sh" "admin/ltmain.sh"
+%__make -f "admin/Makefile.common"
+
+
+%build
+unset QTDIR; . /etc/profile.d/qt3.sh
+export PATH="%{tde_bindir}:${PATH}"
+export LDFLAGS="-L%{tde_libdir} -I%{tde_includedir}"
+
+%configure \
+ --prefix=%{tde_prefix} \
+ --exec-prefix=%{tde_prefix} \
+ --bindir=%{tde_bindir} \
+ --datadir=%{tde_datadir} \
+ --libdir=%{tde_libdir} \
+ --mandir=%{tde_mandir} \
+ --includedir=%{tde_tdeincludedir} \
+ --disable-rpath \
+ --with-extra-includes=%{tde_includedir}/tqt:%{tde_includedir}
+
+%__make %{?_smp_mflags}
+
+
+%install
+export PATH="%{tde_bindir}:${PATH}"
+%__rm -rf %{buildroot}
+%__make install DESTDIR=%{buildroot}
+
+%find_lang %{kdecomp}
+
+%clean
+%__rm -rf %{buildroot}
+
+
+%post
+touch --no-create %{tde_datadir}/icons/hicolor || :
+gtk-update-icon-cache --quiet %{tde_datadir}/icons/hicolor || :
+
+%postun
+touch --no-create %{tde_datadir}/icons/hicolor || :
+gtk-update-icon-cache --quiet %{tde_datadir}/icons/hicolor || :
+
+
+%files -f %{kdecomp}.lang
+%defattr(-,root,root,-)
+%{tde_bindir}/knights
+%{tde_datadir}/applnk/Games/Board/knights.desktop
+%{tde_datadir}/apps/knights
+%{tde_tdedocdir}/HTML/*/knights
+%{tde_datadir}/icons/hicolor/*/*/*.png
+%{tde_datadir}/mimelnk/application/pgn.desktop
+
+
+%changelog
+* Wed Oct 03 2012 Francois Andriot <francois.andriot@free.fr> - 0.6-4
+- Initial build for TDE 3.5.13.1
+
+* Wed May 02 2012 Francois Andriot <francois.andriot@free.fr> - 0.6-3
+- Rebuild for Fedora 17
+
+* Fri Nov 25 2011 Francois Andriot <francois.andriot@free.fr> - 0.6-2
+- Fix HTML directory location
+
+* Sun Nov 20 2011 Francois Andriot <francois.andriot@free.fr> - 0.6-1
+- Initial build for RHEL 5, RHEL 6, Fedora 15, Fedora 16
diff --git a/redhat/applications/knights/trinity-knights.spec b/redhat/applications/knights/trinity-knights-3.5.13.spec
index e0271e12d..e0271e12d 100644
--- a/redhat/applications/knights/trinity-knights.spec
+++ b/redhat/applications/knights/trinity-knights-3.5.13.spec
diff --git a/redhat/applications/knowit/trinity-knowit-3.5.13.1.spec b/redhat/applications/knowit/trinity-knowit-3.5.13.1.spec
new file mode 100644
index 000000000..06faf82e5
--- /dev/null
+++ b/redhat/applications/knowit/trinity-knowit-3.5.13.1.spec
@@ -0,0 +1,142 @@
+# Default version for this component
+%define kdecomp knowit
+
+# If TDE is built in a specific prefix (e.g. /opt/trinity), the release will be suffixed with ".opt".
+%if "%{?tde_prefix}" != "/usr"
+%define _variant .opt
+%endif
+
+# TDE 3.5.13 specific building variables
+%define tde_bindir %{tde_prefix}/bin
+%define tde_datadir %{tde_prefix}/share
+%define tde_docdir %{tde_datadir}/doc
+%define tde_includedir %{tde_prefix}/include
+%define tde_libdir %{tde_prefix}/%{_lib}
+%define tde_mandir %{tde_datadir}/man
+%define tde_appdir %{tde_datadir}/applications
+
+%define tde_tdeappdir %{tde_appdir}/kde
+%define tde_tdedocdir %{tde_docdir}/tde
+%define tde_tdeincludedir %{tde_includedir}/tde
+%define tde_tdelibdir %{tde_libdir}/trinity
+
+%define _docdir %{tde_docdir}
+
+
+Name: trinity-%{kdecomp}
+Summary: Tool for managing notes [Trinity]
+Version: 0.10
+Release: 2%{?dist}%{?_variant}
+
+License: GPLv2+
+Group: Applications/Utilities
+
+Vendor: Trinity Project
+Packager: Francois Andriot <francois.andriot@free.fr>
+URL: http://www.trinitydesktop.org
+
+Prefix: %{tde_prefix}
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+
+Source0: %{kdecomp}-3.5.13.1.tar.gz
+
+BuildRequires: trinity-tqtinterface-devel >= 3.5.13.1
+BuildRequires: trinity-tdelibs-devel >= 3.5.13.1
+BuildRequires: trinity-tdebase-devel >= 3.5.13.1
+BuildRequires: desktop-file-utils
+BuildRequires: gettext
+
+
+%description
+KnowIt is a tool for managing notes which are organized in
+tree-like hierarchy. It is similar to TuxCards,
+but KDE-based, and requires Trinity.
+
+
+%if 0%{?suse_version}
+%debug_package
+%endif
+
+
+%prep
+%setup -q -n %{kdecomp}-3.5.13.1
+
+# Ugly hack to modify TQT include directory inside autoconf files.
+# If TQT detection fails, it fallbacks to TQT4 instead of TQT3 !
+%__sed -i admin/acinclude.m4.in \
+ -e "s|/usr/include/tqt|%{tde_includedir}/tqt|g" \
+ -e "s|kde_htmldir='.*'|kde_htmldir='%{tde_tdedocdir}/HTML'|g"
+
+%__cp "/usr/share/aclocal/libtool.m4" "admin/libtool.m4.in"
+%__cp "/usr/share/libtool/config/ltmain.sh" "admin/ltmain.sh" || %__cp "/usr/share/libtool/ltmain.sh" "admin/ltmain.sh"
+%__make -f "admin/Makefile.common"
+
+
+%build
+unset QTDIR; . /etc/profile.d/qt3.sh
+export PATH="%{tde_bindir}:${PATH}"
+export LDFLAGS="-L%{tde_libdir} -I%{tde_includedir}"
+
+%configure \
+ --prefix=%{tde_prefix} \
+ --exec-prefix=%{tde_prefix} \
+ --bindir=%{tde_bindir} \
+ --datadir=%{tde_datadir} \
+ --libdir=%{tde_libdir} \
+ --mandir=%{tde_mandir} \
+ --includedir=%{tde_tdeincludedir} \
+ --disable-rpath \
+ --with-extra-includes=%{tde_includedir}/tqt
+
+# SMP safe !
+%__make %{?_smp_mflags}
+
+
+%install
+export PATH="%{tde_bindir}:${PATH}"
+%__rm -rf %{buildroot}
+%__make install DESTDIR=%{buildroot}
+
+%__mkdir_p %{buildroot}%{tde_tdeappdir}
+%__mv %{buildroot}%{tde_datadir}/applnk/Applications/knowit.desktop %{buildroot}%{tde_tdeappdir}/knowit.desktop
+%__rm -r %{buildroot}%{tde_datadir}/applnk
+
+
+%find_lang %{kdecomp}
+
+
+
+%clean
+%__rm -rf %{buildroot}
+
+
+%post
+update-desktop-database %{tde_appdir} > /dev/null
+touch --no-create %{tde_datadir}/icons/hicolor || :
+gtk-update-icon-cache --quiet %{tde_datadir}/icons/hicolor || :
+
+%postun
+update-desktop-database %{tde_appdir} > /dev/null
+touch --no-create %{tde_datadir}/icons/hicolor || :
+gtk-update-icon-cache --quiet %{tde_datadir}/icons/hicolor || :
+
+
+%files -f %{kdecomp}.lang
+%defattr(-,root,root,-)
+%{tde_bindir}/knowit
+%{tde_tdeappdir}/knowit.desktop
+%{tde_datadir}/apps/knowit/knowitui.rc
+%{tde_datadir}/apps/knowit/tips
+%{tde_tdedocdir}/HTML/en/knowit/common
+%{tde_tdedocdir}/HTML/en/knowit/index.cache.bz2
+%{tde_tdedocdir}/HTML/en/knowit/index.docbook
+%{tde_tdedocdir}/HTML/en/knowit/screenshot.png
+%{tde_datadir}/icons/hicolor/*/apps/knowit.png
+
+
+%changelog
+* Wed Oct 03 2012 Francois Andriot <francois.andriot@free.fr> - 0.10-2
+- Initial build for TDE 3.5.13.1
+
+* Wed Nov 30 2011 Francois Andriot <francois.andriot@free.fr> - 0.10-1
+- Initial build for RHEL 5, RHEL 6, Fedora 15, Fedora 16
diff --git a/redhat/applications/knowit/trinity-knowit.spec b/redhat/applications/knowit/trinity-knowit-3.5.13.spec
index 76467be17..76467be17 100644
--- a/redhat/applications/knowit/trinity-knowit.spec
+++ b/redhat/applications/knowit/trinity-knowit-3.5.13.spec
diff --git a/redhat/applications/knutclient/trinity-knutclient-3.5.13.1.spec b/redhat/applications/knutclient/trinity-knutclient-3.5.13.1.spec
new file mode 100644
index 000000000..4a48ae250
--- /dev/null
+++ b/redhat/applications/knutclient/trinity-knutclient-3.5.13.1.spec
@@ -0,0 +1,141 @@
+# Default version for this component
+%define kdecomp knutclient
+
+# If TDE is built in a specific prefix (e.g. /opt/trinity), the release will be suffixed with ".opt".
+%if "%{?tde_prefix}" != "/usr"
+%define _variant .opt
+%endif
+
+# TDE 3.5.13 specific building variables
+%define tde_bindir %{tde_prefix}/bin
+%define tde_datadir %{tde_prefix}/share
+%define tde_docdir %{tde_datadir}/doc
+%define tde_includedir %{tde_prefix}/include
+%define tde_libdir %{tde_prefix}/%{_lib}
+%define tde_mandir %{tde_datadir}/man
+%define tde_appdir %{tde_datadir}/applications
+
+%define tde_tdeappdir %{tde_appdir}/kde
+%define tde_tdedocdir %{tde_docdir}/tde
+%define tde_tdeincludedir %{tde_includedir}/tde
+%define tde_tdelibdir %{tde_libdir}/trinity
+
+%define _docdir %{tde_docdir}
+
+
+Name: trinity-%{kdecomp}
+Summary: A KDE GUI that displays UPS statistics from NUT's upsd [Trinity]
+Version: 0.9.5
+Release: 3%{?dist}%{?_variant}
+
+License: GPLv2+
+Group: Applications/Utilities
+
+Vendor: Trinity Project
+Packager: Francois Andriot <francois.andriot@free.fr>
+URL: http://www.knut.noveradsl.cz/knutclient/
+
+Prefix: %{tde_prefix}
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+
+Source0: %{kdecomp}-3.5.13.1.tar.gz
+
+
+BuildRequires: trinity-tqtinterface-devel >= 3.5.13.1
+BuildRequires: trinity-tdelibs-devel >= 3.5.13.1
+BuildRequires: trinity-tdebase-devel >= 3.5.13.1
+BuildRequires: desktop-file-utils
+
+
+%description
+KNutClient monitors UPS statistics through the NUT (Network UPS Tools,
+http://www.networkupstools.org/) framework on Linux and other systems. This
+information, presented in a nice visual format, can be invaluable on
+stations using an UPS.
+
+
+%if 0%{?suse_version}
+%debug_package
+%endif
+
+
+%prep
+%setup -q -n %{kdecomp}-3.5.13.1
+
+# Ugly hack to modify TQT include directory inside autoconf files.
+# If TQT detection fails, it fallbacks to TQT4 instead of TQT3 !
+%__sed -i admin/acinclude.m4.in \
+ -e "s|/usr/include/tqt|%{tde_includedir}/tqt|g" \
+ -e "s|kde_htmldir='.*'|kde_htmldir='%{tde_tdedocdir}/HTML'|g"
+
+%__cp "/usr/share/aclocal/libtool.m4" "admin/libtool.m4.in"
+%__cp "/usr/share/libtool/config/ltmain.sh" "admin/ltmain.sh" || %__cp "/usr/share/libtool/ltmain.sh" "admin/ltmain.sh"
+%__make -f "admin/Makefile.common"
+
+
+%build
+unset QTDIR; . /etc/profile.d/qt3.sh
+export PATH="%{tde_bindir}:${PATH}"
+export LDFLAGS="-L%{tde_libdir} -I%{tde_includedir}"
+
+%configure \
+ --prefix=%{tde_prefix} \
+ --exec-prefix=%{tde_prefix} \
+ --bindir=%{tde_bindir} \
+ --datadir=%{tde_datadir} \
+ --libdir=%{tde_libdir} \
+ --mandir=%{tde_mandir} \
+ --includedir=%{tde_tdeincludedir} \
+ --disable-rpath \
+ --with-extra-includes=%{tde_includedir}/tqt \
+ --enable-closure
+
+%__make %{?_smp_mflags}
+
+
+%install
+export PATH="%{tde_bindir}:${PATH}"
+%__rm -rf %{buildroot}
+%__make install DESTDIR=%{buildroot}
+
+%find_lang %{kdecomp}
+
+%clean
+%__rm -rf %{buildroot}
+
+
+%post
+for f in hicolor locolor; do
+ touch --no-create %{tde_datadir}/icons/${f} || :
+ gtk-update-icon-cache --quiet %{tde_datadir}/icons/${f} || :
+done
+
+%postun
+for f in hicolor locolor; do
+ touch --no-create %{tde_datadir}/icons/${f} || :
+ gtk-update-icon-cache --quiet %{tde_datadir}/icons/${f} || :
+done
+
+
+%files -f %{kdecomp}.lang
+%defattr(-,root,root,-)
+%doc AUTHORS ChangeLog COPYING NEWS README TODO
+%{tde_bindir}/knutclient
+%{tde_datadir}/applnk/Utilities/knutclient.desktop
+%{tde_datadir}/apps/knutclient/knutclientui.rc
+%{tde_datadir}/apps/knutclient
+%{tde_tdedocdir}/HTML/cs/knutclient
+%{tde_tdedocdir}/HTML/en/knutclient
+%{tde_datadir}/icons/hicolor/*/apps/*.png
+%{tde_datadir}/icons/locolor/*/apps/*.png
+
+%changelog
+* Wed Oct 03 2012 Francois Andriot <francois.andriot@free.fr> - 0.9.5-3
+- Initial build for TDE 3.5.13.1
+
+* Wed May 02 2012 Francois Andriot <francois.andriot@free.fr> - 0.9.5-2
+- Rebuild for Fedora 17
+
+* Sat Dec 03 2011 Francois Andriot <francois.andriot@free.fr> - 0.9.5-1
+- Initial build for RHEL 5, RHEL 6, Fedora 15, Fedora 16
+
diff --git a/redhat/applications/knutclient/trinity-knutclient.spec b/redhat/applications/knutclient/trinity-knutclient-3.5.13.spec
index a7c88e8af..a7c88e8af 100644
--- a/redhat/applications/knutclient/trinity-knutclient.spec
+++ b/redhat/applications/knutclient/trinity-knutclient-3.5.13.spec
diff --git a/redhat/applications/koffice-i18n/trinity-koffice-i18n-3.5.13.1.spec b/redhat/applications/koffice-i18n/trinity-koffice-i18n-3.5.13.1.spec
new file mode 100644
index 000000000..2bf81b861
--- /dev/null
+++ b/redhat/applications/koffice-i18n/trinity-koffice-i18n-3.5.13.1.spec
@@ -0,0 +1,1086 @@
+# If TDE is built in a specific prefix (e.g. /opt/trinity), the release will be suffixed with ".opt".
+%if "%{?tde_prefix}" != "/usr"
+%define _variant .opt
+%endif
+
+# TDE 3.5.13 specific building variables
+%define tde_bindir %{tde_prefix}/bin
+%define tde_datadir %{tde_prefix}/share
+%define tde_docdir %{tde_datadir}/doc
+%define tde_includedir %{tde_prefix}/include
+%define tde_libdir %{tde_prefix}/%{_lib}
+%define tde_mandir %{tde_datadir}/man
+%define tde_appdir %{tde_datadir}/applications
+
+%define tde_tdeappdir %{tde_appdir}/kde
+%define tde_tdedocdir %{tde_docdir}/tde
+%define tde_tdeincludedir %{tde_includedir}/tde
+%define tde_tdelibdir %{tde_libdir}/trinity
+
+%define _docdir %{tde_docdir}
+
+# Builds all supported languages (not unsupported ones)
+%if "%{?KDE_LANGS}" == ""
+%define KDE_LANGS bg ca cs da de el en_GB es et fi fr hu it ja km lv ms nb nds ne nl pl pt pt_BR ru sk sl sr sv tr uk zh_CN zh_TW
+%endif
+
+
+Name: trinity-koffice-i18n
+Summary: Internationalization support for Trinity
+Version: 1.6.3
+Release: 2%{?dist}%{?_variant}
+
+Vendor: Trinity Project
+Packager: Francois Andriot <francois.andriot@free.fr>
+URL: http://www.trinitydesktop.org/
+
+Prefix: %{tde_prefix}
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+
+# GFDL, with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts.
+License: GFDL
+Group: User Interface/Desktops
+BuildArch: noarch
+
+# Speed build options
+%define debug_package %{nil}
+%define __spec_install_post %{nil}
+AutoReq: no
+
+Source0: koffice-i18n-3.5.13.1.tar.gz
+
+BuildRequires: findutils
+BuildRequires: gettext
+BuildRequires: autoconf automake libtool m4
+BuildRequires: trinity-arts-devel >= 3.5.13.1
+BuildRequires: trinity-tdelibs-devel >= 3.5.13.1
+
+%description
+%{summary}.
+
+%package Bulgarian
+Summary: Bulgarian(bg) language support for TDE
+Group: User Interface/Desktops
+Provides: %{name}-bg = %{version}-%{release}
+%description Bulgarian
+%{summary}.
+
+%package Bengali
+Summary: Bengali(bn) language support for TDE
+Group: User Interface/Desktops
+Provides: %{name}-bn = %{version}-%{release}
+%description Bengali
+%{summary}.
+
+%package Tibetan
+Summary: Tibetan(bo) language support for TDE
+Group: User Interface/Desktops
+Provides: %{name}-bo = %{version}-%{release}
+%description Tibetan
+%{summary}.
+
+%package Breton
+Summary: Breton(br) language support for TDE
+Group: User Interface/Desktops
+Provides: %{name}-br = %{version}-%{release}
+%description Breton
+%{summary}.
+
+%package Bosnian
+Summary: Bosnian(bs) language support for TDE
+Group: User Interface/Desktops
+Provides: %{name}-bs = %{version}-%{release}
+%description Bosnian
+%{summary}.
+
+%package Catalan
+Summary: Catalan(ca) language support for TDE
+Group: User Interface/Desktops
+Provides: %{name}-ca = %{version}-%{release}
+%description Catalan
+%{summary}.
+
+%package Czech
+Summary: Czech(cs) language support for TDE
+Group: User Interface/Desktops
+Provides: %{name}-cs = %{version}-%{release}
+%description Czech
+%{summary}.
+
+%package Cymraeg
+Summary: Cymraeg language support for TDE
+Group: User Interface/Desktops
+%description Cymraeg
+%{summary}.
+
+%package Welsh
+Summary: Welsh(cy) language support for TDE
+Group: User Interface/Desktops
+Provides: %{name}-cy = %{version}-%{release}
+%description Welsh
+%{summary}.
+
+%package Danish
+Summary: Danish(da) language support for TDE
+Group: User Interface/Desktops
+Provides: %{name}-da = %{version}-%{release}
+%description Danish
+%{summary}.
+
+%package German
+Summary: German(de) language support for TDE
+Group: User Interface/Desktops
+Provides: %{name}-de = %{version}-%{release}
+%description German
+%{summary}.
+
+%package Greek
+Summary: Greek(el) language support for TDE
+Group: User Interface/Desktops
+Provides: %{name}-el = %{version}-%{release}
+%description Greek
+%{summary}.
+
+%package British
+Summary: British(en_GB) English support for TDE
+Group: User Interface/Desktops
+Provides: %{name}-en_GB = %{version}-%{release}
+%description British
+%{summary}.
+
+%package Esperanto
+Summary: Esperanto(eo) support for TDE
+Group: User Interface/Desktops
+Provides: %{name}-eo = %{version}-%{release}
+%description Esperanto
+%{summary}.
+
+%package Spanish
+Summary: Spanish(es) language support for TDE
+Group: User Interface/Desktops
+Provides: %{name}-es = %{version}-%{release}
+%description Spanish
+%{summary}.
+
+%package Estonian
+Summary: Estonian(et) language support for TDE
+Group: User Interface/Desktops
+Provides: %{name}-et = %{version}-%{release}
+%description Estonian
+%{summary}.
+
+%package Basque
+Summary: Basque(eu) language support for TDE
+Group: User Interface/Desktops
+Provides: %{name}-eu = %{version}-%{release}
+%description Basque
+%{summary}.
+
+%package Finnish
+Summary: Finnish(fi) language support for TDE
+Group: User Interface/Desktops
+Provides: %{name}-fi = %{version}-%{release}
+%description Finnish
+%{summary}.
+
+%package Faroese
+Summary: Faroese(fo) language support for TDE
+Group: User Interface/Desktops
+Provides: %{name}-fo = %{version}-%{release}
+%description Faroese
+%{summary}.
+
+%package French
+Summary: French(fr) language support for TDE
+Group: User Interface/Desktops
+Provides: %{name}-fr = %{version}-%{release}
+%description French
+%{summary}.
+
+%package Frisian
+Summary: Frisian(fy) language support for TDE
+Group: User Interface/Desktops
+Provides: %{name}-fy = %{version}-%{release}
+%description Frisian
+%{summary}.
+
+%package Irish
+Summary: Irish(ga) language support for TDE
+Group: User Interface/Desktops
+Obsoletes: kde-i18n-Gaeilge < %{version}
+Provides: %{name}-ga = %{version}-%{release}
+%description Irish
+%{summary}.
+
+%package Galician
+Summary: Galician(gl) language support for TDE
+Group: User Interface/Desktops
+Provides: %{name}-gl = %{version}-%{release}
+%description Galician
+%{summary}.
+
+%package Hebrew
+Summary: Hebrew(he) language support for TDE
+Group: User Interface/Desktops
+Provides: %{name}-he = %{version}-%{release}
+%description Hebrew
+%{summary}.
+
+%package Hindi
+Summary: Hindi(hi) language support for TDE
+Group: User Interface/Desktops
+Provides: %{name}-hi = %{version}-%{release}
+%description Hindi
+%{summary}.
+
+%package Croatian
+Summary: Croatian(hr) language support for TDE
+Group: User Interface/Desktops
+Provides: %{name}-hr = %{version}-%{release}
+%description Croatian
+%{summary}.
+
+%package Hungarian
+Summary: Hungarian(hu) language support for TDE
+Group: User Interface/Desktops
+Provides: %{name}-hu = %{version}-%{release}
+%description Hungarian
+%{summary}.
+
+%package Indonesian
+Summary: Indonesian(id) language support for TDE
+Group: User Interface/Desktops
+Provides: %{name}-id = %{version}-%{release}
+%description Indonesian
+%{summary}.
+
+%package Icelandic
+Summary: Icelandic(is) language support for TDE
+Group: User Interface/Desktops
+Provides: %{name}-is = %{version}-%{release}
+%description Icelandic
+%{summary}.
+
+%package Italian
+Summary: Italian(it) language support for TDE
+Group: User Interface/Desktops
+Provides: %{name}-it = %{version}-%{release}
+%description Italian
+%{summary}.
+
+%package Japanese
+Summary: Japanese(ja) language support for TDE
+Group: User Interface/Desktops
+Provides: %{name}-ja = %{version}-%{release}
+%description Japanese
+%{summary}.
+
+%package Khmer
+Summary: Khmer(km) language support for TDE
+Group: User Interface/Desktops
+Provides: %{name}-km = %{version}-%{release}
+%description Khmer
+%{summary}.
+
+%package Korean
+Summary: Korean(ko) language support for TDE
+Group: User Interface/Desktops
+Provides: %{name}-ko = %{version}-%{release}
+%description Korean
+%{summary}.
+
+%package Kurdish
+Summary: Kurdish(ku) language support for TDE
+Group: User Interface/Desktops
+Provides: %{name}-ku = %{version}-%{release}
+%description Kurdish
+%{summary}.
+
+%package Lao
+Summary: Lao(lo) language support for TDE
+Group: User Interface/Desktops
+Provides: %{name}-lo = %{version}-%{release}
+%description Lao
+%{summary}.
+
+%package Lithuanian
+Summary: Lithuanian(lt) language support for TDE
+Group: User Interface/Desktops
+Provides: %{name}-lt = %{version}-%{release}
+%description Lithuanian
+%{summary}.
+
+%package Latvian
+Summary: Latvian(lv) language support for TDE
+Group: User Interface/Desktops
+Provides: %{name}-lv = %{version}-%{release}
+%description Latvian
+%{summary}.
+
+%package Maori
+Summary: Maori(mi) language support for TDE
+Group: User Interface/Desktops
+Provides: %{name}-mi = %{version}-%{release}
+%description Maori
+%{summary}.
+
+%package Macedonian
+Summary: Macedonian(mk) language support for TDE
+Group: User Interface/Desktops
+Provides: %{name}-mk = %{version}-%{release}
+%description Macedonian
+%{summary}.
+
+%package Malay
+Summary: Malay(ms) language support for TDE
+Group: User Interface/Desktops
+Provides: %{name}-ms = %{version}-%{release}
+%description Malay
+%{summary}.
+
+%package Maltese
+Summary: Maltese(mt) language support for TDE
+Group: User Interface/Desktops
+Provides: %{name}-mt = %{version}-%{release}
+%description Maltese
+%{summary}.
+
+%package LowSaxon
+Summary: Low Saxon (nds) language support for TDE
+Group: User Interface/Desktops
+Provides: %{name}-nds = %{version}-%{release}
+%description LowSaxon
+%{summary}.
+
+%package Nepali
+Summary: Nepali(ne) language support for TDE
+Group: User Interface/Desktops
+Provides: %{name}-ne = %{version}-%{release}
+%description Nepali
+%{summary}.
+
+%package Dutch
+Summary: Dutch(nl) language support for TDE
+Group: User Interface/Desktops
+Provides: %{name}-nl = %{version}-%{release}
+%description Dutch
+%{summary}.
+
+%package Norwegian
+Summary: Norwegian(no) (Bokmaal) language support for TDE
+Group: User Interface/Desktops
+Provides: %{name}-no = %{version}-%{release}
+%description Norwegian
+%{summary}.
+
+%package Norwegian-Nynorsk
+Summary: Norwegian(nn) (Nynorsk) language support for TDE
+Group: User Interface/Desktops
+Provides: %{name}-nn = %{version}-%{release}
+%description Norwegian-Nynorsk
+%{summary}.
+
+%package Occitan
+Summary: Occitan(oc) language support for TDE
+Group: User Interface/Desktops
+Provides: %{name}-oc = %{version}-%{release}
+%description Occitan
+%{summary}.
+
+%package Polish
+Summary: Polish(pl) language support for TDE
+Group: User Interface/Desktops
+Provides: %{name}-pl = %{version}-%{release}
+%description Polish
+%{summary}.
+
+%package Portuguese
+Summary: Portuguese(pt) language support for TDE
+Group: User Interface/Desktops
+Provides: %{name}-pt = %{version}-%{release}
+%description Portuguese
+%{summary}.
+
+%package Punjabi
+Summary: Punjabi(pa) language support for TDE
+Group: User Interface/Desktops
+Provides: %{name}-pa = %{version}-%{release}
+%description Punjabi
+%{summary}.
+
+%package Brazil
+Summary: Brazil(pt_BR) Portuguese language support for TDE
+Group: User Interface/Desktops
+Provides: %{name}-pt_BR = %{version}-%{release}
+%description Brazil
+%{summary}.
+
+%package Romanian
+Summary: Romanian(ro) language support for TDE
+Group: User Interface/Desktops
+Provides: %{name}-ro = %{version}-%{release}
+%description Romanian
+%{summary}.
+
+%package Russian
+Summary: Russian(ru) language support for TDE
+Group: User Interface/Desktops
+Provides: %{name}-ru = %{version}-%{release}
+%description Russian
+%{summary}.
+
+%package Slovak
+Summary: Slovak(sk) language support for TDE
+Group: User Interface/Desktops
+Provides: %{name}-sk = %{version}-%{release}
+%description Slovak
+%{summary}.
+
+%package Slovenian
+Summary: Slovenian(sl) language support for TDE
+Group: User Interface/Desktops
+Provides: %{name}-sl = %{version}-%{release}
+%description Slovenian
+%{summary}.
+
+%package Serbian
+Summary: Serbian(sr) language support for TDE
+Group: User Interface/Desktops
+Provides: %{name}-sr = %{version}-%{release}
+%description Serbian
+%{summary}.
+
+%package Swedish
+Summary: Swedish(sv) language support for TDE
+Group: User Interface/Desktops
+Provides: %{name}-sv = %{version}-%{release}
+%description Swedish
+%{summary}.
+
+%package Tamil
+Summary: Tamil(ta) language support for TDE
+Group: User Interface/Desktops
+Provides: %{name}-ta = %{version}-%{release}
+%description Tamil
+%{summary}.
+
+%package Tajik
+Summary: Tajik(tg) language support for TDE
+Group: User Interface/Desktops
+Provides: %{name}-tg = %{version}-%{release}
+%description Tajik
+%{summary}.
+
+%package Thai
+Summary: Thai(th) language support for TDE
+Group: User Interface/Desktops
+Provides: %{name}-th = %{version}-%{release}
+%description Thai
+%{summary}.
+
+%package Turkish
+Summary: Turkish(tr) language support for TDE
+Group: User Interface/Desktops
+Provides: %{name}-tr = %{version}-%{release}
+%description Turkish
+%{summary}.
+
+%package Ukrainian
+Summary: Ukrainian(uk) language support for TDE
+Group: User Interface/Desktops
+Provides: %{name}-uk = %{version}-%{release}
+%description Ukrainian
+%{summary}.
+
+%package Venda
+Summary: Venda(ven) language support for TDE
+Group: User Interface/Desktops
+Provides: %{name}-ven = %{version}-%{release}
+%description Venda
+%{summary}.
+
+%package Vietnamese
+Summary: Vietnamese(vi) language support for TDE
+Group: User Interface/Desktops
+Provides: %{name}-vi = %{version}-%{release}
+%description Vietnamese
+%{summary}.
+
+%package Walloon
+Summary: Walloon(wa) language support for TDE
+Group: User Interface/Desktops
+Provides: %{name}-wa = %{version}-%{release}
+%description Walloon
+%{summary}.
+
+%package Xhosa
+Summary: Xhosa(xh) (a Bantu language) support for TDE
+Group: User Interface/Desktops
+Provides: %{name}-xh = %{version}-%{release}
+%description Xhosa
+%{summary}.
+
+%package Chinese
+Summary: Chinese(zh_CN) (Simplified Chinese) language support for TDE
+Group: User Interface/Desktops
+Provides: %{name}-zh_CN = %{version}-%{release}
+%description Chinese
+%{summary}.
+
+%package Chinese-Big5
+Summary: Chinese(zh_TW) (Big5) language support for TDE
+Group: User Interface/Desktops
+Provides: %{name}-tz_TW = %{version}-%{release}
+%description Chinese-Big5
+%{summary}.
+
+
+
+%prep
+%setup -q -n koffice-i18n-3.5.13.1
+
+# Ugly hack to modify TQT include directory inside autoconf files.
+# If TQT detection fails, it fallbacks to TQT4 instead of TQT3 !
+%__sed -i admin/acinclude.m4.in \
+ -e "s|/usr/include/tqt|%{tde_includedir}/tqt|g" \
+ -e "s|kde_htmldir='.*'|kde_htmldir='%{tde_tdedocdir}/HTML'|g"
+
+%__cp -f "/usr/share/aclocal/libtool.m4" "admin/libtool.m4.in"
+%__cp -f "/usr/share/libtool/config/ltmain.sh" "admin/ltmain.sh" || %__cp -f "/usr/share/libtool/ltmain.sh" "admin/ltmain.sh"
+
+
+%build
+export PATH="%{tde_bindir}:${PATH}"
+export LDFLAGS="-L%{tde_libdir} -I%{tde_includedir}"
+
+export kde_htmldir="%{tde_tdedocdir}/HTML"
+
+for l in %{KDE_LANGS}; do
+ for f in koffice-i18n-${l}/; do
+ if [ -d "${f}" ]; then
+ pushd ${f}
+ autoreconf -fiv
+ %__make -f ../admin/Makefile.common
+ %configure \
+ --prefix=%{tde_prefix} \
+ --datadir=%{tde_datadir} \
+ --docdir=%{tde_tdedocdir}
+ %__make %{?_smp_mflags}
+ popd
+ fi
+ done
+done
+
+%install
+%__rm -rf %{?buildroot}
+export PATH="%{tde_bindir}:${PATH}"
+
+for l in %{KDE_LANGS}; do
+ for f in koffice-i18n-${l}/; do
+ if [ -d "${f}" ] && [ -r "${f}/Makefile" ] ; then
+ %__make install DESTDIR="%{?buildroot}" -C "${f}"
+ fi
+ done
+done
+
+# make symlinks relative
+%if "%{tde_prefix}" == "/usr"
+pushd "%{buildroot}%{tde_tdedocdir}/HTML"
+for lang in *; do
+ if [ -d "$lang" ]; then
+ pushd "$lang"
+ for i in */*/*; do
+ if [ -d $i -a -L $i/common ]; then
+ rm -f $i/common
+ ln -sf ../../../docs/common $i
+ fi
+ done
+
+ for i in */*; do
+ if [ -d $i -a -L $i/common ]; then
+ rm -f $i/common
+ ln -sf ../../docs/common $i
+ fi
+ done
+
+ for i in *; do
+ if [ -d $i -a -L $i/common ]; then
+ rm -f $i/common
+ ln -sf ../docs/common $i
+ fi
+ done
+
+ popd
+ fi
+done
+popd
+%endif
+
+# remove zero-length file
+find "%{buildroot}%{tde_tdedocdir}/HTML" -size 0 -exec rm -f {} \;
+
+%clean
+%__rm -rf %{buildroot}
+
+%if "%( grep -w af <<< '%{KDE_LANGS}' )" != ""
+%files Afrikaans
+%defattr(-,root,root,-)
+%lang(af) %{tde_datadir}/locale/af/*
+%endif
+
+%if "%( grep -w ar <<< '%{KDE_LANGS}' )" != ""
+%files Arabic
+%defattr(-,root,root,-)
+%lang(ar) %{tde_datadir}/locale/ar/*
+%endif
+
+%if "%( grep -w az <<< '%{KDE_LANGS}' )" != ""
+%files Azerbaijani
+%defattr(-,root,root,-)
+%lang(az) %{tde_datadir}/locale/az/*
+%endif
+
+%if "%( grep -w be <<< '%{KDE_LANGS}' )" != ""
+%files Belarusian
+%defattr(-,root,root,-)
+%lang(be) %{tde_datadir}/locale/be/*
+%endif
+
+%if "%( grep -w bg <<< '%{KDE_LANGS}' )" != ""
+%files Bulgarian
+%defattr(-,root,root,-)
+%lang(bg) %{tde_datadir}/locale/bg/*
+%endif
+
+%if "%( grep -w bn <<< '%{KDE_LANGS}' )" != ""
+%files Bengali
+%defattr(-,root,root,-)
+%lang(bn) %{tde_datadir}/locale/bn/*
+%endif
+
+%if "%( grep -w bo <<< '%{KDE_LANGS}' )" != ""
+%files Tibetan
+%defattr(-,root,root,-)
+%lang(bo) %{tde_datadir}/locale/bo/*
+%endif
+
+%if "%( grep -w br <<< '%{KDE_LANGS}' )" != ""
+%files Breton
+%defattr(-,root,root,-)
+%lang(br) %{tde_datadir}/locale/br/*
+%endif
+
+%if "%( grep -w bs <<< '%{KDE_LANGS}' )" != ""
+%files Bosnian
+%defattr(-,root,root,-)
+%lang(bs) %{tde_datadir}/locale/bs/*
+%endif
+
+%if "%( grep -w ca <<< '%{KDE_LANGS}' )" != ""
+%files Catalan
+%defattr(-,root,root,-)
+%lang(ca) %{tde_datadir}/locale/ca/*
+%lang(ca) %{tde_tdedocdir}/HTML/ca/
+%lang(ca) %{tde_datadir}/apps/koffice/autocorrect/ca.xml
+%endif
+
+%if "%( grep -w cs <<< '%{KDE_LANGS}' )" != ""
+%files Czech
+%defattr(-,root,root,-)
+%lang(cs) %{tde_datadir}/locale/cs/*
+%lang(cs) %{tde_datadir}/apps/koffice/autocorrect/cs.xml
+%endif
+
+%if "%( grep -w cy <<< '%{KDE_LANGS}' )" != ""
+%files Welsh
+%defattr(-,root,root,-)
+%lang(cy) %{tde_datadir}/locale/cy/*
+%endif
+
+%if "%( grep -w da <<< '%{KDE_LANGS}' )" != ""
+%files Danish
+%defattr(-,root,root,-)
+%lang(da) %{tde_datadir}/locale/da/*
+%lang(da) %{tde_tdedocdir}/HTML/da/
+%endif
+
+%if "%( grep -w de <<< '%{KDE_LANGS}' )" != ""
+%files German
+%defattr(-,root,root,-)
+%lang(de) %{tde_datadir}/locale/de/*
+%lang(de) %{tde_tdedocdir}/HTML/de/
+%lang(de) %{tde_datadir}/apps/koffice/autocorrect/de.xml
+%endif
+
+%if "%( grep -w el <<< '%{KDE_LANGS}' )" != ""
+%files Greek
+%defattr(-,root,root,-)
+%lang(el) %{tde_datadir}/locale/el/*
+%endif
+
+%if "%( grep -w en_GB <<< '%{KDE_LANGS}' )" != ""
+%files British
+%defattr(-,root,root,-)
+%lang(en_GB) %{tde_datadir}/locale/en_GB/*
+%lang(en_GB) %{tde_tdedocdir}/HTML/en_GB/
+%endif
+
+%if "%( grep -w eo <<< '%{KDE_LANGS}' )" != ""
+%files Esperanto
+%defattr(-,root,root,-)
+%lang(eo) %{tde_datadir}/locale/eo/*
+%endif
+
+%if "%( grep -w es <<< '%{KDE_LANGS}' )" != ""
+%files Spanish
+%defattr(-,root,root,-)
+%lang(es) %{tde_datadir}/locale/es/*
+%lang(es) %{tde_tdedocdir}/HTML/es/
+%lang(es) %{tde_datadir}/apps/koffice/autocorrect/es.xml
+%endif
+
+%if "%( grep -w et <<< '%{KDE_LANGS}' )" != ""
+%files Estonian
+%defattr(-,root,root,-)
+%lang(et) %{tde_datadir}/locale/et/*
+%lang(et) %{tde_tdedocdir}/HTML/et/
+%endif
+
+%if "%( grep -w eu <<< '%{KDE_LANGS}' )" != ""
+%files Basque
+%defattr(-,root,root,-)
+%lang(eu) %{tde_datadir}/locale/eu/*
+%endif
+
+%if "%( grep -w fa <<< '%{KDE_LANGS}' )" != ""
+%files Farsi
+%defattr(-,root,root,-)
+%lang(fa) %{tde_datadir}/locale/fa/*
+%endif
+
+%if "%( grep -w fi <<< '%{KDE_LANGS}' )" != ""
+%files Finnish
+%defattr(-,root,root,-)
+%lang(fi) %{tde_datadir}/locale/fi/*
+%endif
+
+%if "%( grep -w fo <<< '%{KDE_LANGS}' )" != ""
+%files Faroese
+%defattr(-,root,root,-)
+%lang(fo) %{tde_datadir}/locale/fo/*
+%endif
+
+%if "%( grep -w fr <<< '%{KDE_LANGS}' )" != ""
+%files French
+%defattr(-,root,root,-)
+%lang(fr) %{tde_datadir}/locale/fr/*
+%lang(fr) %{tde_tdedocdir}/HTML/fr/
+%lang(fr) %{tde_datadir}/apps/koffice/autocorrect/fr.xml
+%endif
+
+%if "%( grep -w fy <<< '%{KDE_LANGS}' )" != ""
+%files Frisian
+%defattr(-,root,root,-)
+%lang(fy) %{tde_datadir}/locale/fy/*
+%endif
+
+%if "%( grep -w ga <<< '%{KDE_LANGS}' )" != ""
+%files Irish
+%defattr(-,root,root,-)
+%lang(ga) %{tde_datadir}/locale/ga/*
+%endif
+
+%if "%( grep -w gl <<< '%{KDE_LANGS}' )" != ""
+%files Galician
+%defattr(-,root,root,-)
+%lang(gl) %{tde_datadir}/locale/gl/*
+%endif
+
+%if "%( grep -w he <<< '%{KDE_LANGS}' )" != ""
+%files Hebrew
+%defattr(-,root,root,-)
+%lang(he) %{tde_datadir}/locale/he/*
+%endif
+
+%if "%( grep -w hi <<< '%{KDE_LANGS}' )" != ""
+%files Hindi
+%defattr(-,root,root,-)
+%lang(hi) %{tde_datadir}/locale/hi/*
+%endif
+
+%if "%( grep -w hr <<< '%{KDE_LANGS}' )" != ""
+%files Croatian
+%defattr(-,root,root,-)
+%lang(hr) %{tde_datadir}/locale/hr/*
+%endif
+
+%if "%( grep -w hu <<< '%{KDE_LANGS}' )" != ""
+%files Hungarian
+%defattr(-,root,root,-)
+%lang(hu) %{tde_datadir}/locale/hu/*
+%lang(hu) %{tde_datadir}/apps/koffice/autocorrect/hu.xml
+%endif
+
+%if "%( grep -w id <<< '%{KDE_LANGS}' )" != ""
+%files Indonesian
+%defattr(-,root,root,-)
+%lang(id) %{tde_datadir}/locale/id/*
+%endif
+
+%if "%( grep -w is <<< '%{KDE_LANGS}' )" != ""
+%files Icelandic
+%defattr(-,root,root,-)
+%lang(is) %{tde_datadir}/locale/is/*
+%endif
+
+%if "%( grep -w it <<< '%{KDE_LANGS}' )" != ""
+%files Italian
+%defattr(-,root,root,-)
+%lang(it) %{tde_datadir}/locale/it/*
+%lang(it) %{tde_tdedocdir}/HTML/it/
+%lang(it) %{tde_datadir}/apps/koffice/autocorrect/it.xml
+%endif
+
+%if "%( grep -w ja <<< '%{KDE_LANGS}' )" != ""
+%files Japanese
+%defattr(-,root,root,-)
+%lang(ja) %{tde_datadir}/locale/ja/*
+%endif
+
+%if "%( grep -w km <<< '%{KDE_LANGS}' )" != ""
+%files Khmer
+%defattr(-,root,root,-)
+%lang(km) %{tde_datadir}/locale/km/*
+%endif
+
+%if "%( grep -w ko <<< '%{KDE_LANGS}' )" != ""
+%files Korean
+%defattr(-,root,root,-)
+%lang(ko) %{tde_datadir}/locale/ko/*
+%endif
+
+%if "%( grep -w ku <<< '%{KDE_LANGS}' )" != ""
+%files Kurdish
+%defattr(-,root,root,-)
+%lang(ku) %{tde_datadir}/locale/ku/*
+%endif
+
+%if "%( grep -w lao <<< '%{KDE_LANGS}' )" != ""
+%files Lao
+%defattr(-,root,root,-)
+%lang(lo) %{tde_datadir}/locale/lo/*
+%endif
+
+%if "%( grep -w lt <<< '%{KDE_LANGS}' )" != ""
+%files Lithuanian
+%defattr(-,root,root,-)
+%lang(lt) %{tde_datadir}/locale/lt/*
+%endif
+
+%if "%( grep -w lv <<< '%{KDE_LANGS}' )" != ""
+%files Latvian
+%defattr(-,root,root,-)
+%lang(lv) %{tde_datadir}/locale/lv/*
+%endif
+
+%if "%( grep -w mi <<< '%{KDE_LANGS}' )" != ""
+%files Maori
+%defattr(-,root,root,-)
+%lang(mi) %{tde_datadir}/locale/mi/*
+%endif
+
+%if "%( grep -w mk <<< '%{KDE_LANGS}' )" != ""
+%files Macedonian
+%defattr(-,root,root,-)
+%lang(mk) %{tde_datadir}/locale/mk/*
+%endif
+
+%if "%( grep -w ms <<< '%{KDE_LANGS}' )" != ""
+%files Malay
+%defattr(-,root,root,-)
+%lang(ms) %{tde_datadir}/locale/ms/*
+%endif
+
+%if "%( grep -w mt <<< '%{KDE_LANGS}' )" != ""
+%files Maltese
+%defattr(-,root,root,-)
+%lang(mt) %{tde_datadir}/locale/mt/*
+%endif
+
+%if "%( grep -w nds <<< '%{KDE_LANGS}' )" != ""
+%files LowSaxon
+%defattr(-,root,root,-)
+%lang(nds) %{tde_datadir}/locale/nds/*
+%endif
+
+%if "%( grep -w ne <<< '%{KDE_LANGS}' )" != ""
+%files Nepali
+%defattr(-,root,root,-)
+%lang(ne) %{tde_datadir}/locale/ne/*
+%endif
+
+%if "%( grep -w nl <<< '%{KDE_LANGS}' )" != ""
+%files Dutch
+%defattr(-,root,root,-)
+%lang(nl) %{tde_datadir}/locale/nl/*
+%lang(nl) %{tde_tdedocdir}/HTML/nl/
+%endif
+
+%if "%( grep -w nb <<< '%{KDE_LANGS}' )" != ""
+%files Norwegian
+%defattr(-,root,root,-)
+%lang(nb) %{tde_datadir}/locale/nb/*
+%endif
+
+%if "%( grep -w nn <<< '%{KDE_LANGS}' )" != ""
+%files Norwegian-Nynorsk
+%defattr(-,root,root,-)
+%lang(nn) %{tde_datadir}/locale/nn/*
+%endif
+
+%if "%( grep -w oc <<< '%{KDE_LANGS}' )" != ""
+%files Occitan
+%defattr(-,root,root,-)
+%lang(oc) %{tde_datadir}/locale/oc/*
+%endif
+
+%if "%( grep -w pa <<< '%{KDE_LANGS}' )" != ""
+%files Punjabi
+%defattr(-,root,root,-)
+%lang(pa) %{tde_datadir}/locale/pa/*
+%endif
+
+%if "%( grep -w pl <<< '%{KDE_LANGS}' )" != ""
+%files Polish
+%defattr(-,root,root,-)
+%lang(pl) %{tde_datadir}/locale/pl/*
+%endif
+
+%if "%( grep -w pt <<< '%{KDE_LANGS}' )" != ""
+%files Portuguese
+%defattr(-,root,root,-)
+%lang(pt) %{tde_datadir}/locale/pt/*
+%lang(pt) %{tde_tdedocdir}/HTML/pt/
+%endif
+
+%if "%( grep -w pt_BR <<< '%{KDE_LANGS}' )" != ""
+%files Brazil
+%defattr(-,root,root,-)
+%lang(pt_BR) %{tde_datadir}/locale/pt_BR/*
+%lang(pt_BR) %{tde_tdedocdir}/HTML/pt_BR/
+%endif
+
+%if "%( grep -w ro <<< '%{KDE_LANGS}' )" != ""
+%files Romanian
+%defattr(-,root,root,-)
+%lang(ro) %{tde_datadir}/locale/ro/*
+%endif
+
+%if "%( grep -w ru <<< '%{KDE_LANGS}' )" != ""
+%files Russian
+%defattr(-,root,root,-)
+%lang(ru) %{tde_datadir}/locale/ru/*
+%lang(ru) %{tde_tdedocdir}/HTML/ru/
+%endif
+
+%if "%( grep -w sk <<< '%{KDE_LANGS}' )" != ""
+%files Slovak
+%defattr(-,root,root,-)
+%lang(sk) %{tde_datadir}/locale/sk/*
+%lang(sk) %{tde_tdedocdir}/HTML/sk/
+%lang(sk) %{tde_datadir}/apps/koffice/autocorrect/sk.xml
+%endif
+
+%if "%( grep -w sl <<< '%{KDE_LANGS}' )" != ""
+%files Slovenian
+%defattr(-,root,root,-)
+%lang(sl) %{tde_datadir}/locale/sl/*
+%lang(sl) %{tde_tdedocdir}/HTML/sl/
+%endif
+
+%if "%( grep -w sr <<< '%{KDE_LANGS}' )" != ""
+%files Serbian
+%defattr(-,root,root,-)
+%lang(sr) %{tde_datadir}/locale/sr/*
+%endif
+
+%if "%( grep -w sv <<< '%{KDE_LANGS}' )" != ""
+%files Swedish
+%defattr(-,root,root,-)
+%lang(sv) %{tde_datadir}/locale/sv/*
+%lang(sv) %{tde_tdedocdir}/HTML/sv/
+%endif
+
+%if "%( grep -w ta <<< '%{KDE_LANGS}' )" != ""
+%files Tamil
+%defattr(-,root,root,-)
+%lang(ta) %{tde_datadir}/locale/ta/*
+%endif
+
+%if "%( grep -w tg <<< '%{KDE_LANGS}' )" != ""
+%files Tajik
+%defattr(-,root,root,-)
+%lang(tg) %{tde_datadir}/locale/tg/*
+%endif
+
+%if "%( grep -w th <<< '%{KDE_LANGS}' )" != ""
+%files Thai
+%defattr(-,root,root,-)
+%lang(th) %{tde_datadir}/locale/th/*
+%endif
+
+%if "%( grep -w tr <<< '%{KDE_LANGS}' )" != ""
+%files Turkish
+%defattr(-,root,root,-)
+%lang(tr) %{tde_datadir}/locale/tr/*
+%endif
+
+%if "%( grep -w uk <<< '%{KDE_LANGS}' )" != ""
+%files Ukrainian
+%defattr(-,root,root,-)
+%lang(uk) %{tde_datadir}/locale/uk/*
+%endif
+
+%if "%( grep -w ven <<< '%{KDE_LANGS}' )" != ""
+%files Venda
+%defattr(-,root,root,-)
+%lang(ven) %{tde_datadir}/locale/ven/*
+%endif
+
+%if "%( grep -w vi <<< '%{KDE_LANGS}' )" != ""
+%files Vietnamese
+%defattr(-,root,root,-)
+%lang(vi) %{tde_datadir}/locale/vi/*
+%endif
+
+%if "%( grep -w wa <<< '%{KDE_LANGS}' )" != ""
+%files Walloon
+%defattr(-,root,root,-)
+%lang(wa) %{tde_datadir}/locale/wa/*
+%endif
+
+%if "%( grep -w xh <<< '%{KDE_LANGS}' )" != ""
+%files Xhosa
+%defattr(-,root,root,-)
+%lang(xh) %{tde_datadir}/locale/xh/*
+%endif
+
+%if "%( grep -w zh_CN <<< '%{KDE_LANGS}' )" != ""
+%files Chinese
+%defattr(-,root,root,-)
+%lang(zh_CN) %{tde_datadir}/locale/zh_CN/*
+%endif
+
+%if "%( grep -w zh_TW <<< '%{KDE_LANGS}' )" != ""
+%files Chinese-Big5
+%defattr(-,root,root,-)
+%lang(zh_TW) %{tde_datadir}/locale/zh_TW/*
+%endif
+
+%changelog
+* Wed Oct 03 2012 Francois Andriot <francois.andriot@free.fr> - 1.6.3-2
+- Initial build for TDE 3.5.13.1
+
+* Sun Jul 01 2012 Francois Andriot <francois.andriot@free.fr> - 1.6.3-1
+- Initial build for TDE 3.5.13
+
diff --git a/redhat/applications/koffice-i18n/trinity-koffice-l10n-3.5.13.spec b/redhat/applications/koffice-i18n/trinity-koffice-l10n-3.5.13.spec
new file mode 100644
index 000000000..790ce5f71
--- /dev/null
+++ b/redhat/applications/koffice-i18n/trinity-koffice-l10n-3.5.13.spec
@@ -0,0 +1,1090 @@
+# 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: autoconf automake libtool m4
+%define tde_docdir %{_docdir}/kde
+%define tde_includedir %{_includedir}/kde
+%define tde_libdir %{_libdir}/trinity
+
+# Builds all supported languages (not unsupported ones)
+%if "%{?KDE_LANGS}" == ""
+#define KDE_LANGS bg ca cs da de el en_GB es et fi fr hu it ja km lv ms nb nds ne nl pl pt pt_BR ru sk sl sr sv tr uk zh_CN zh_TW
+%define KDE_LANGS fr
+%endif
+
+
+Name: trinity-koffice-i18n
+Summary: Internationalization support for Trinity
+Version: 1.6.3
+Release: 1%{?dist}%{?_variant}
+
+Vendor: Trinity Project
+Packager: Francois Andriot <francois.andriot@free.fr>
+URL: http://www.trinitydesktop.org/
+
+Prefix: %{_prefix}
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+
+# GFDL, with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts.
+License: GFDL
+Group: User Interface/Desktops
+BuildArch: noarch
+
+# Speed build options
+%define debug_package %{nil}
+%define __spec_install_post %{nil}
+AutoReq: no
+
+Source0: koffice-l10n_1.6.3.orig.tar.gz
+
+BuildRequires: findutils
+BuildRequires: gettext
+BuildRequires: trinity-arts-devel
+BuildRequires: trinity-kdelibs-devel
+
+%description
+%{summary}.
+
+%package Bulgarian
+Summary: Bulgarian(bg) language support for KDE3
+Group: User Interface/Desktops
+Provides: %{name}-bg = %{version}-%{release}
+%description Bulgarian
+%{summary}.
+
+%package Bengali
+Summary: Bengali(bn) language support for KDE3
+Group: User Interface/Desktops
+Provides: %{name}-bn = %{version}-%{release}
+%description Bengali
+%{summary}.
+
+%package Tibetan
+Summary: Tibetan(bo) language support for KDE3
+Group: User Interface/Desktops
+Provides: %{name}-bo = %{version}-%{release}
+%description Tibetan
+%{summary}.
+
+%package Breton
+Summary: Breton(br) language support for KDE3
+Group: User Interface/Desktops
+Provides: %{name}-br = %{version}-%{release}
+%description Breton
+%{summary}.
+
+%package Bosnian
+Summary: Bosnian(bs) language support for KDE3
+Group: User Interface/Desktops
+Provides: %{name}-bs = %{version}-%{release}
+%description Bosnian
+%{summary}.
+
+%package Catalan
+Summary: Catalan(ca) language support for KDE3
+Group: User Interface/Desktops
+Provides: %{name}-ca = %{version}-%{release}
+%description Catalan
+%{summary}.
+
+%package Czech
+Summary: Czech(cs) language support for KDE3
+Group: User Interface/Desktops
+Provides: %{name}-cs = %{version}-%{release}
+%description Czech
+%{summary}.
+
+%package Cymraeg
+Summary: Cymraeg language support for KDE3
+Group: User Interface/Desktops
+%description Cymraeg
+%{summary}.
+
+%package Welsh
+Summary: Welsh(cy) language support for KDE3
+Group: User Interface/Desktops
+Provides: %{name}-cy = %{version}-%{release}
+%description Welsh
+%{summary}.
+
+%package Danish
+Summary: Danish(da) language support for KDE3
+Group: User Interface/Desktops
+Provides: %{name}-da = %{version}-%{release}
+#Requires: kde-filesystem
+%description Danish
+%{summary}.
+
+%package German
+Summary: German(de) language support for KDE3
+Group: User Interface/Desktops
+Provides: %{name}-de = %{version}-%{release}
+#Requires: kde-filesystem
+%description German
+%{summary}.
+
+%package Greek
+Summary: Greek(el) language support for KDE3
+Group: User Interface/Desktops
+Provides: %{name}-el = %{version}-%{release}
+#Requires: kde-filesystem
+%description Greek
+%{summary}.
+
+%package British
+Summary: British(en_GB) English support for KDE3
+Group: User Interface/Desktops
+Provides: %{name}-en_GB = %{version}-%{release}
+#Requires: kde-filesystem
+%description British
+%{summary}.
+
+%package Esperanto
+Summary: Esperanto(eo) support for KDE3
+Group: User Interface/Desktops
+Provides: %{name}-eo = %{version}-%{release}
+#Requires: kde-filesystem
+%description Esperanto
+%{summary}.
+
+%package Spanish
+Summary: Spanish(es) language support for KDE3
+Group: User Interface/Desktops
+Provides: %{name}-es = %{version}-%{release}
+#Requires: kde-filesystem
+%description Spanish
+%{summary}.
+
+%package Estonian
+Summary: Estonian(et) language support for KDE3
+Group: User Interface/Desktops
+Provides: %{name}-et = %{version}-%{release}
+#Requires: kde-filesystem
+%description Estonian
+%{summary}.
+
+%package Basque
+Summary: Basque(eu) language support for KDE3
+Group: User Interface/Desktops
+Provides: %{name}-eu = %{version}-%{release}
+#Requires: kde-filesystem
+%description Basque
+%{summary}.
+
+%package Farsi
+Summary: Farsi(fa) language support for KDE3
+Group: User Interface/Desktops
+Provides: %{name}-fa = %{version}-%{release}
+#Requires: kde-filesystem
+%description Farsi
+%{summary}.
+
+%package Finnish
+Summary: Finnish(fi) language support for KDE3
+Group: User Interface/Desktops
+Provides: %{name}-fi = %{version}-%{release}
+#Requires: kde-filesystem
+%description Finnish
+%{summary}.
+
+%package Faroese
+Summary: Faroese(fo) language support for KDE3
+Group: User Interface/Desktops
+Provides: %{name}-fo = %{version}-%{release}
+#Requires: kde-filesystem
+%description Faroese
+%{summary}.
+
+%package French
+Summary: French(fr) language support for KDE3
+Group: User Interface/Desktops
+Provides: %{name}-fr = %{version}-%{release}
+%description French
+%{summary}.
+
+%package Frisian
+Summary: Frisian(fy) language support for KDE3
+Group: User Interface/Desktops
+Provides: %{name}-fy = %{version}-%{release}
+#Requires: kde-filesystem
+%description Frisian
+%{summary}.
+
+%package Irish
+Summary: Irish(ga) language support for KDE3
+Group: User Interface/Desktops
+Obsoletes: kde-i18n-Gaeilge < %{version}
+Provides: %{name}-ga = %{version}-%{release}
+#Requires: kde-filesystem
+%description Irish
+%{summary}.
+
+%package Galician
+Summary: Galician(gl) language support for KDE3
+Group: User Interface/Desktops
+Provides: %{name}-gl = %{version}-%{release}
+#Requires: kde-filesystem
+%description Galician
+%{summary}.
+
+%package Hebrew
+Summary: Hebrew(he) language support for KDE3
+Group: User Interface/Desktops
+Provides: %{name}-he = %{version}-%{release}
+#Requires: kde-filesystem
+%description Hebrew
+%{summary}.
+
+%package Hindi
+Summary: Hindi(hi) language support for KDE3
+Group: User Interface/Desktops
+Provides: %{name}-hi = %{version}-%{release}
+#Requires: kde-filesystem
+%description Hindi
+%{summary}.
+
+%package Croatian
+Summary: Croatian(hr) language support for KDE3
+Group: User Interface/Desktops
+Provides: %{name}-hr = %{version}-%{release}
+#Requires: kde-filesystem
+%description Croatian
+%{summary}.
+
+%package Hungarian
+Summary: Hungarian(hu) language support for KDE3
+Group: User Interface/Desktops
+Provides: %{name}-hu = %{version}-%{release}
+#Requires: kde-filesystem
+%description Hungarian
+%{summary}.
+
+%package Indonesian
+Summary: Indonesian(id) language support for KDE3
+Group: User Interface/Desktops
+Provides: %{name}-id = %{version}-%{release}
+#Requires: kde-filesystem
+%description Indonesian
+%{summary}.
+
+%package Icelandic
+Summary: Icelandic(is) language support for KDE3
+Group: User Interface/Desktops
+Provides: %{name}-is = %{version}-%{release}
+#Requires: kde-filesystem
+%description Icelandic
+%{summary}.
+
+%package Italian
+Summary: Italian(it) language support for KDE3
+Group: User Interface/Desktops
+Provides: %{name}-it = %{version}-%{release}
+#Requires: kde-filesystem
+%description Italian
+%{summary}.
+
+%package Japanese
+Summary: Japanese(ja) language support for KDE3
+Group: User Interface/Desktops
+Provides: %{name}-ja = %{version}-%{release}
+#Requires: kde-filesystem
+%description Japanese
+%{summary}.
+
+%package Korean
+Summary: Korean(ko) language support for KDE3
+Group: User Interface/Desktops
+Provides: %{name}-ko = %{version}-%{release}
+#Requires: kde-filesystem
+%description Korean
+%{summary}.
+
+%package Kurdish
+Summary: Kurdish(ku) language support for KDE3
+Group: User Interface/Desktops
+Provides: %{name}-ku = %{version}-%{release}
+#Requires: kde-filesystem
+%description Kurdish
+%{summary}.
+
+%package Lao
+Summary: Lao(lo) language support for KDE3
+Group: User Interface/Desktops
+Provides: %{name}-lo = %{version}-%{release}
+#Requires: kde-filesystem
+%description Lao
+%{summary}.
+
+%package Lithuanian
+Summary: Lithuanian(lt) language support for KDE3
+Group: User Interface/Desktops
+Provides: %{name}-lt = %{version}-%{release}
+#Requires: kde-filesystem
+%description Lithuanian
+%{summary}.
+
+%package Latvian
+Summary: Latvian(lv) language support for KDE3
+Group: User Interface/Desktops
+Provides: %{name}-lv = %{version}-%{release}
+#Requires: kde-filesystem
+%description Latvian
+%{summary}.
+
+%package Maori
+Summary: Maori(mi) language support for KDE3
+Group: User Interface/Desktops
+Provides: %{name}-mi = %{version}-%{release}
+#Requires: kde-filesystem
+%description Maori
+%{summary}.
+
+%package Macedonian
+Summary: Macedonian(mk) language support for KDE3
+Group: User Interface/Desktops
+Provides: %{name}-mk = %{version}-%{release}
+#Requires: kde-filesystem
+%description Macedonian
+%{summary}.
+
+%package Maltese
+Summary: Maltese(mt) language support for KDE3
+Group: User Interface/Desktops
+Provides: %{name}-mt = %{version}-%{release}
+#Requires: kde-filesystem
+%description Maltese
+%{summary}.
+
+%package Dutch
+Summary: Dutch(nl) language support for KDE3
+Group: User Interface/Desktops
+Provides: %{name}-nl = %{version}-%{release}
+#Requires: kde-filesystem
+%description Dutch
+%{summary}.
+
+%package Norwegian
+Summary: Norwegian(no) (Bokmaal) language support for KDE3
+Group: User Interface/Desktops
+Provides: %{name}-no = %{version}-%{release}
+#Requires: kde-filesystem
+%description Norwegian
+%{summary}.
+
+%package Norwegian-Nynorsk
+Summary: Norwegian(nn) (Nynorsk) language support for KDE3
+Group: User Interface/Desktops
+Provides: %{name}-nn = %{version}-%{release}
+#Requires: kde-filesystem
+%description Norwegian-Nynorsk
+%{summary}.
+
+%package Occitan
+Summary: Occitan(oc) language support for KDE3
+Group: User Interface/Desktops
+Provides: %{name}-oc = %{version}-%{release}
+#Requires: kde-filesystem
+%description Occitan
+%{summary}.
+
+%package Polish
+Summary: Polish(pl) language support for KDE3
+Group: User Interface/Desktops
+Provides: %{name}-pl = %{version}-%{release}
+#Requires: kde-filesystem
+%description Polish
+%{summary}.
+
+%package Portuguese
+Summary: Portuguese(pt) language support for KDE3
+Group: User Interface/Desktops
+Provides: %{name}-pt = %{version}-%{release}
+#Requires: kde-filesystem
+%description Portuguese
+%{summary}.
+
+%package Punjabi
+Summary: Punjabi(pa) language support for KDE3
+Group: User Interface/Desktops
+Provides: %{name}-pa = %{version}-%{release}
+#Requires: kde-filesystem
+%description Punjabi
+%{summary}.
+
+%package Brazil
+Summary: Brazil(pt_BR) Portuguese language support for KDE3
+Group: User Interface/Desktops
+Provides: %{name}-pt_BR = %{version}-%{release}
+#Requires: kde-filesystem
+%description Brazil
+%{summary}.
+
+%package Romanian
+Summary: Romanian(ro) language support for KDE3
+Group: User Interface/Desktops
+Provides: %{name}-ro = %{version}-%{release}
+#Requires: kde-filesystem
+%description Romanian
+%{summary}.
+
+%package Russian
+Summary: Russian(ru) language support for KDE3
+Group: User Interface/Desktops
+Provides: %{name}-ru = %{version}-%{release}
+#Requires: kde-filesystem
+%description Russian
+%{summary}.
+
+%package Slovak
+Summary: Slovak(sk) language support for KDE3
+Group: User Interface/Desktops
+Provides: %{name}-sk = %{version}-%{release}
+#Requires: kde-filesystem
+%description Slovak
+%{summary}.
+
+%package Slovenian
+Summary: Slovenian(sl) language support for KDE3
+Group: User Interface/Desktops
+Provides: %{name}-sl = %{version}-%{release}
+#Requires: kde-filesystem
+%description Slovenian
+%{summary}.
+
+%package Serbian
+Summary: Serbian(sr) language support for KDE3
+Group: User Interface/Desktops
+Provides: %{name}-sr = %{version}-%{release}
+#Requires: kde-filesystem
+%description Serbian
+%{summary}.
+
+%package Swedish
+Summary: Swedish(sv) language support for KDE3
+Group: User Interface/Desktops
+Provides: %{name}-sv = %{version}-%{release}
+#Requires: kde-filesystem
+%description Swedish
+%{summary}.
+
+%package Tamil
+Summary: Tamil(ta) language support for KDE3
+Group: User Interface/Desktops
+Provides: %{name}-ta = %{version}-%{release}
+#Requires: kde-filesystem
+%description Tamil
+%{summary}.
+
+%package Tajik
+Summary: Tajik(tg) language support for KDE3
+Group: User Interface/Desktops
+Provides: %{name}-tg = %{version}-%{release}
+#Requires: kde-filesystem
+%description Tajik
+%{summary}.
+
+%package Thai
+Summary: Thai(th) language support for KDE3
+Group: User Interface/Desktops
+Provides: %{name}-th = %{version}-%{release}
+#Requires: kde-filesystem
+%description Thai
+%{summary}.
+
+%package Turkish
+Summary: Turkish(tr) language support for KDE3
+Group: User Interface/Desktops
+Provides: %{name}-tr = %{version}-%{release}
+#Requires: kde-filesystem
+%description Turkish
+%{summary}.
+
+%package Ukrainian
+Summary: Ukrainian(uk) language support for KDE3
+Group: User Interface/Desktops
+Provides: %{name}-uk = %{version}-%{release}
+#Requires: kde-filesystem
+%description Ukrainian
+%{summary}.
+
+%package Venda
+Summary: Venda(ven) language support for KDE3
+Group: User Interface/Desktops
+Provides: %{name}-ven = %{version}-%{release}
+#Requires: kde-filesystem
+%description Venda
+%{summary}.
+
+%package Vietnamese
+Summary: Vietnamese(vi) language support for KDE3
+Group: User Interface/Desktops
+Provides: %{name}-vi = %{version}-%{release}
+#Requires: kde-filesystem
+%description Vietnamese
+%{summary}.
+
+%package Walloon
+Summary: Walloon(wa) language support for KDE3
+Group: User Interface/Desktops
+Provides: %{name}-wa = %{version}-%{release}
+#Requires: kde-filesystem
+%description Walloon
+%{summary}.
+
+%package Xhosa
+Summary: Xhosa(xh) (a Bantu language) support for KDE3
+Group: User Interface/Desktops
+Provides: %{name}-xh = %{version}-%{release}
+#Requires: kde-filesystem
+%description Xhosa
+%{summary}.
+
+%package Chinese
+Summary: Chinese(zh_CN) (Simplified Chinese) language support for KDE3
+Group: User Interface/Desktops
+Provides: %{name}-zh_CN = %{version}-%{release}
+#Requires: kde-filesystem
+%description Chinese
+%{summary}.
+
+%package Chinese-Big5
+Summary: Chinese(zh_TW) (Big5) language support for KDE3
+Group: User Interface/Desktops
+Provides: %{name}-tz_TW = %{version}-%{release}
+#Requires: kde-filesystem
+%description Chinese-Big5
+%{summary}.
+
+
+
+%prep
+%setup -q -n koffice-l10n-%{version}
+
+for l in %{KDE_LANGS}; do
+ for f in koffice-l10n-${l}-*.tar.bz2; do
+ tar xjf "${f}"
+ done
+done
+
+
+%build
+export PATH="%{_bindir}:${PATH}"
+export LDFLAGS="-L%{_libdir} -I%{_includedir}"
+
+export kde_htmldir="%{tde_docdir}/HTML"
+
+for l in %{KDE_LANGS}; do
+ for f in koffice-l10n-${l}-*/; do
+ if [ -d "${f}" ] && [ -x "${f}/configure" ] ; then
+ pushd ${f}
+ %configure
+ %__make %{?_smp_mflags}
+ popd
+ fi
+ done
+done
+
+%install
+%__rm -rf %{?buildroot}
+export PATH="%{_bindir}:${PATH}"
+
+for l in %{KDE_LANGS}; do
+ for f in koffice-l10n-${l}-*/; do
+ if [ -d "${f}" ] && [ -r "${f}/Makefile" ] ; then
+ %__make install DESTDIR="%{?buildroot}" -C "${f}"
+ fi
+ done
+done
+
+# make symlinks relative
+%if "%{_prefix}" == "/usr"
+pushd "%{buildroot}%{tde_docdir}/HTML"
+for lang in *; do
+ if [ -d "$lang" ]; then
+ pushd "$lang"
+ for i in */*/*; do
+ if [ -d $i -a -L $i/common ]; then
+ rm -f $i/common
+ ln -sf ../../../docs/common $i
+ fi
+ done
+
+ for i in */*; do
+ if [ -d $i -a -L $i/common ]; then
+ rm -f $i/common
+ ln -sf ../../docs/common $i
+ fi
+ done
+
+ for i in *; do
+ if [ -d $i -a -L $i/common ]; then
+ rm -f $i/common
+ ln -sf ../docs/common $i
+ fi
+ done
+
+ popd
+ fi
+done
+popd
+%endif
+
+# remove zero-length file
+find "%{buildroot}%{tde_docdir}/HTML" -size 0 -exec rm -f {} \;
+
+%clean
+%__rm -rf %{buildroot}
+
+%if "%( grep -w af <<< '%{KDE_LANGS}' )" != ""
+%files Afrikaans
+%defattr(-,root,root,-)
+%lang(af) %{_datadir}/locale/af/*
+%lang(af) %{tde_docdir}/HTML/af/
+%endif
+
+%if "%( grep -w ar <<< '%{KDE_LANGS}' )" != ""
+%files Arabic
+%defattr(-,root,root,-)
+%lang(ar) %{_datadir}/locale/ar/*
+%endif
+
+%if "%( grep -w az <<< '%{KDE_LANGS}' )" != ""
+%files Azerbaijani
+%defattr(-,root,root,-)
+%lang(az) %{_datadir}/locale/az/*
+%endif
+
+%if "%( grep -w be <<< '%{KDE_LANGS}' )" != ""
+%files Belarusian
+%defattr(-,root,root,-)
+%lang(be) %{_datadir}/locale/be/*
+%endif
+
+%if "%( grep -w bg <<< '%{KDE_LANGS}' )" != ""
+%files Bulgarian
+%defattr(-,root,root,-)
+%lang(bg) %{_datadir}/locale/bg/*
+%endif
+
+%if "%( grep -w bn <<< '%{KDE_LANGS}' )" != ""
+%files Bengali
+%defattr(-,root,root,-)
+%lang(bn) %{_datadir}/locale/bn/*
+%endif
+
+%if "%( grep -w bo <<< '%{KDE_LANGS}' )" != ""
+%files Tibetan
+%defattr(-,root,root,-)
+%lang(bo) %{_datadir}/locale/bo/*
+%endif
+
+%if "%( grep -w br <<< '%{KDE_LANGS}' )" != ""
+%files Breton
+%defattr(-,root,root,-)
+%lang(br) %{_datadir}/locale/br/*
+%endif
+
+%if "%( grep -w bs <<< '%{KDE_LANGS}' )" != ""
+%files Bosnian
+%defattr(-,root,root,-)
+%lang(bs) %{_datadir}/locale/bs/*
+%endif
+
+%if "%( grep -w ca <<< '%{KDE_LANGS}' )" != ""
+%files Catalan
+%defattr(-,root,root,-)
+%lang(ca) %{_datadir}/locale/ca/*
+%lang(ca) %{tde_docdir}/HTML/ca/
+%endif
+
+%if "%( grep -w cs <<< '%{KDE_LANGS}' )" != ""
+%files Czech
+%defattr(-,root,root,-)
+%lang(cs) %{_datadir}/locale/cs/*
+%lang(cs) %{tde_docdir}/HTML/cs/
+%endif
+
+%if "%( grep -w cy <<< '%{KDE_LANGS}' )" != ""
+%files Welsh
+%defattr(-,root,root,-)
+%lang(cy) %{_datadir}/locale/cy/*
+%endif
+
+%if "%( grep -w da <<< '%{KDE_LANGS}' )" != ""
+%files Danish
+%defattr(-,root,root,-)
+%lang(da) %{_datadir}/locale/da/*
+%lang(da) %{tde_docdir}/HTML/da/
+%endif
+
+%if "%( grep -w de <<< '%{KDE_LANGS}' )" != ""
+%files German
+%defattr(-,root,root,-)
+%lang(de) %{_datadir}/locale/de/*
+%lang(de) %{tde_docdir}/HTML/de/
+%endif
+
+%if "%( grep -w el <<< '%{KDE_LANGS}' )" != ""
+%files Greek
+%defattr(-,root,root,-)
+%lang(el) %{_datadir}/locale/el/*
+%endif
+
+%if "%( grep -w en_GB <<< '%{KDE_LANGS}' )" != ""
+%files British
+%defattr(-,root,root,-)
+%lang(en_GB) %{_datadir}/locale/en_GB/*
+%lang(en_GB) %{tde_docdir}/HTML/en_GB/
+%endif
+
+%if "%( grep -w eo <<< '%{KDE_LANGS}' )" != ""
+%files Esperanto
+%defattr(-,root,root,-)
+%lang(eo) %{_datadir}/locale/eo/*
+%endif
+
+%if "%( grep -w es <<< '%{KDE_LANGS}' )" != ""
+%files Spanish
+%defattr(-,root,root,-)
+%lang(es) %{_datadir}/locale/es/*
+%lang(es) %{tde_docdir}/HTML/es/
+%endif
+
+%if "%( grep -w et <<< '%{KDE_LANGS}' )" != ""
+%files Estonian
+%defattr(-,root,root,-)
+%lang(et) %{_datadir}/locale/et/*
+%lang(et) %{tde_docdir}/HTML/et/
+%endif
+
+%if "%( grep -w eu <<< '%{KDE_LANGS}' )" != ""
+%files Basque
+%defattr(-,root,root,-)
+%lang(eu) %{_datadir}/locale/eu/*
+%endif
+
+%if "%( grep -w fa <<< '%{KDE_LANGS}' )" != ""
+%files Farsi
+%defattr(-,root,root,-)
+%lang(fa) %{_datadir}/locale/fa/*
+%endif
+
+%if "%( grep -w fi <<< '%{KDE_LANGS}' )" != ""
+%files Finnish
+%defattr(-,root,root,-)
+%lang(fi) %{_datadir}/locale/fi/*
+%lang(fi) %{tde_docdir}/HTML/fi/
+%endif
+
+%if "%( grep -w fo <<< '%{KDE_LANGS}' )" != ""
+%files Faroese
+%defattr(-,root,root,-)
+%lang(fo) %{_datadir}/locale/fo/*
+%endif
+
+%if "%( grep -w fr <<< '%{KDE_LANGS}' )" != ""
+%files French
+%defattr(-,root,root,-)
+%lang(fr) %{_datadir}/locale/fr/*
+%lang(fr) %{tde_docdir}/HTML/fr/
+%lang(fr) %{_datadir}/apps/koffice/autocorrect/fr.xml
+%endif
+
+%if "%( grep -w fy <<< '%{KDE_LANGS}' )" != ""
+%files Frisian
+%defattr(-,root,root,-)
+%lang(fy) %{_datadir}/locale/fy/*
+%endif
+
+%if "%( grep -w ga <<< '%{KDE_LANGS}' )" != ""
+%files Irish
+%defattr(-,root,root,-)
+%lang(ga) %{_datadir}/locale/ga/*
+%endif
+
+%if "%( grep -w gl <<< '%{KDE_LANGS}' )" != ""
+%files Galician
+%defattr(-,root,root,-)
+%lang(gl) %{_datadir}/locale/gl/*
+%endif
+
+%if "%( grep -w he <<< '%{KDE_LANGS}' )" != ""
+%files Hebrew
+%defattr(-,root,root,-)
+%lang(he) %{_datadir}/locale/he/*
+%lang(he) %{tde_docdir}/HTML/he/
+%endif
+
+%if "%( grep -w hi <<< '%{KDE_LANGS}' )" != ""
+%files Hindi
+%defattr(-,root,root,-)
+%lang(hi) %{_datadir}/locale/hi/*
+%endif
+
+%if "%( grep -w hr <<< '%{KDE_LANGS}' )" != ""
+%files Croatian
+%defattr(-,root,root,-)
+%lang(hr) %{_datadir}/locale/hr/*
+%lang(hr) %{tde_docdir}/HTML/hr/
+%endif
+
+%if "%( grep -w hu <<< '%{KDE_LANGS}' )" != ""
+%files Hungarian
+%defattr(-,root,root,-)
+%lang(hu) %{_datadir}/locale/hu/*
+%lang(hu) %{tde_docdir}/HTML/hu/
+%endif
+
+%if "%( grep -w id <<< '%{KDE_LANGS}' )" != ""
+%files Indonesian
+%defattr(-,root,root,-)
+%lang(id) %{_datadir}/locale/id/*
+%lang(id) %{tde_docdir}/HTML/id/
+%endif
+
+%if "%( grep -w is <<< '%{KDE_LANGS}' )" != ""
+%files Icelandic
+%defattr(-,root,root,-)
+%lang(is) %{_datadir}/locale/is/*
+%endif
+
+%if "%( grep -w it <<< '%{KDE_LANGS}' )" != ""
+%files Italian
+%defattr(-,root,root,-)
+%lang(it) %{_datadir}/locale/it/*
+%lang(it) %{tde_docdir}/HTML/it/
+%endif
+
+%if "%( grep -w ja <<< '%{KDE_LANGS}' )" != ""
+%files Japanese
+%defattr(-,root,root,-)
+%lang(ja) %{_datadir}/locale/ja/*
+%lang(ja) %{tde_docdir}/HTML/ja/
+%endif
+
+%if "%( grep -w ko <<< '%{KDE_LANGS}' )" != ""
+%files Korean
+%defattr(-,root,root,-)
+%lang(ko) %{_datadir}/locale/ko/*
+%lang(ko) %{tde_docdir}/HTML/ko/
+%endif
+
+%if "%( grep -w ku <<< '%{KDE_LANGS}' )" != ""
+%files Kurdish
+%defattr(-,root,root,-)
+%lang(ku) %{_datadir}/locale/ku/*
+%lang(ku) %{tde_docdir}/HTML/ku/
+%endif
+
+%if "%( grep -w lao <<< '%{KDE_LANGS}' )" != ""
+%files Lao
+%defattr(-,root,root,-)
+%lang(lo) %{_datadir}/locale/lo/*
+%lang(lo) %{tde_docdir}/HTML/lo/
+%endif
+
+%if "%( grep -w lt <<< '%{KDE_LANGS}' )" != ""
+%files Lithuanian
+%defattr(-,root,root,-)
+%lang(lt) %{_datadir}/locale/lt/*
+%endif
+
+%if "%( grep -w lv <<< '%{KDE_LANGS}' )" != ""
+%files Latvian
+%defattr(-,root,root,-)
+%lang(lv) %{_datadir}/locale/lv/*
+%endif
+
+%if "%( grep -w mi <<< '%{KDE_LANGS}' )" != ""
+%files Maori
+%defattr(-,root,root,-)
+%lang(mi) %{_datadir}/locale/mi/*
+%endif
+
+%if "%( grep -w mk <<< '%{KDE_LANGS}' )" != ""
+%files Macedonian
+%defattr(-,root,root,-)
+%lang(mk) %{_datadir}/locale/mk/*
+%endif
+
+%if "%( grep -w mt <<< '%{KDE_LANGS}' )" != ""
+%files Maltese
+%defattr(-,root,root,-)
+%lang(mt) %{_datadir}/locale/mt/*
+%endif
+
+%if "%( grep -w nl <<< '%{KDE_LANGS}' )" != ""
+%files Dutch
+%defattr(-,root,root,-)
+%lang(nl) %{_datadir}/locale/nl/*
+%lang(nl) %{tde_docdir}/HTML/nl/
+%endif
+
+%if "%( grep -w nb <<< '%{KDE_LANGS}' )" != ""
+%files Norwegian
+%defattr(-,root,root,-)
+%lang(nb) %{_datadir}/locale/nb/*
+#%lang(nb) %{tde_docdir}/HTML/nb/
+%endif
+
+%if "%( grep -w nn <<< '%{KDE_LANGS}' )" != ""
+%files Norwegian-Nynorsk
+%defattr(-,root,root,-)
+%lang(nn) %{_datadir}/locale/nn/*
+#%lang(nn) %{tde_docdir}/HTML/nn/
+%endif
+
+%if "%( grep -w oc <<< '%{KDE_LANGS}' )" != ""
+%files Occitan
+%defattr(-,root,root,-)
+%lang(oc) %{_datadir}/locale/oc/*
+%endif
+
+%if "%( grep -w pa <<< '%{KDE_LANGS}' )" != ""
+%files Punjabi
+%defattr(-,root,root,-)
+%lang(pa) %{_datadir}/locale/pa/*
+%endif
+
+%if "%( grep -w pl <<< '%{KDE_LANGS}' )" != ""
+%files Polish
+%defattr(-,root,root,-)
+%lang(pl) %{_datadir}/locale/pl/*
+%lang(pl) %{tde_docdir}/HTML/pl/
+%endif
+
+%if "%( grep -w pt <<< '%{KDE_LANGS}' )" != ""
+%files Portuguese
+%defattr(-,root,root,-)
+%lang(pt) %{_datadir}/locale/pt/*
+%lang(pt) %{tde_docdir}/HTML/pt/
+%endif
+
+%if "%( grep -w pt_BR <<< '%{KDE_LANGS}' )" != ""
+%files Brazil
+%defattr(-,root,root,-)
+%lang(pt_BR) %{_datadir}/locale/pt_BR/*
+%lang(pt_BR) %{tde_docdir}/HTML/pt_BR/
+%endif
+
+%if "%( grep -w ro <<< '%{KDE_LANGS}' )" != ""
+%files Romanian
+%defattr(-,root,root,-)
+%lang(ro) %{_datadir}/locale/ro/*
+%lang(ro) %{tde_docdir}/HTML/ro/
+%endif
+
+%if "%( grep -w ru <<< '%{KDE_LANGS}' )" != ""
+%files Russian
+%defattr(-,root,root,-)
+%lang(ru) %{_datadir}/locale/ru/*
+%lang(ru) %{tde_docdir}/HTML/ru/
+%endif
+
+%if "%( grep -w sk <<< '%{KDE_LANGS}' )" != ""
+%files Slovak
+%defattr(-,root,root,-)
+%lang(sk) %{_datadir}/locale/sk/*
+%lang(sk) %{tde_docdir}/HTML/sk/
+%endif
+
+%if "%( grep -w sl <<< '%{KDE_LANGS}' )" != ""
+%files Slovenian
+%defattr(-,root,root,-)
+%lang(sl) %{_datadir}/locale/sl/*
+%lang(sl) %{tde_docdir}/HTML/sl/
+%endif
+
+%if "%( grep -w sr <<< '%{KDE_LANGS}' )" != ""
+%files Serbian
+%defattr(-,root,root,-)
+%lang(sr) %{_datadir}/locale/sr/*
+%lang(sr) %{tde_docdir}/HTML/sr/
+%endif
+
+%if "%( grep -w sv <<< '%{KDE_LANGS}' )" != ""
+%files Swedish
+%defattr(-,root,root,-)
+%lang(sv) %{_datadir}/locale/sv/*
+%lang(sv) %{tde_docdir}/HTML/sv/
+%endif
+
+%if "%( grep -w ta <<< '%{KDE_LANGS}' )" != ""
+%files Tamil
+%defattr(-,root,root,-)
+%lang(ta) %{_datadir}/locale/ta/*
+%endif
+
+%if "%( grep -w tg <<< '%{KDE_LANGS}' )" != ""
+%files Tajik
+%defattr(-,root,root,-)
+%lang(tg) %{_datadir}/locale/tg/*
+%endif
+
+%if "%( grep -w th <<< '%{KDE_LANGS}' )" != ""
+%files Thai
+%defattr(-,root,root,-)
+%lang(th) %{_datadir}/locale/th/*
+%endif
+
+%if "%( grep -w tr <<< '%{KDE_LANGS}' )" != ""
+%files Turkish
+%defattr(-,root,root,-)
+%lang(tr) %{_datadir}/locale/tr/*
+%lang(tr) %{tde_docdir}/HTML/tr/
+%endif
+
+%if "%( grep -w uk <<< '%{KDE_LANGS}' )" != ""
+%files Ukrainian
+%defattr(-,root,root,-)
+%lang(uk) %{tde_docdir}/HTML/uk/
+%lang(uk) %{_datadir}/locale/uk/*
+%endif
+
+%if "%( grep -w ven <<< '%{KDE_LANGS}' )" != ""
+%files Venda
+%defattr(-,root,root,-)
+%lang(ven) %{_datadir}/locale/ven/*
+%endif
+
+%if "%( grep -w vi <<< '%{KDE_LANGS}' )" != ""
+%files Vietnamese
+%defattr(-,root,root,-)
+%lang(vi) %{_datadir}/locale/vi/*
+%endif
+
+%if "%( grep -w wa <<< '%{KDE_LANGS}' )" != ""
+%files Walloon
+%defattr(-,root,root,-)
+%lang(wa) %{_datadir}/locale/wa/*
+%endif
+
+%if "%( grep -w xh <<< '%{KDE_LANGS}' )" != ""
+%files Xhosa
+%defattr(-,root,root,-)
+%lang(xh) %{_datadir}/locale/xh/*
+%lang(xh) %{tde_docdir}/HTML/xh/
+%endif
+
+%if "%( grep -w zh_CN <<< '%{KDE_LANGS}' )" != ""
+%files Chinese
+%defattr(-,root,root,-)
+%lang(zh_CN) %{_datadir}/locale/zh_CN/*
+%lang(zh_CN) %{tde_docdir}/HTML/zh_CN/
+%endif
+
+%if "%( grep -w zh_TW <<< '%{KDE_LANGS}' )" != ""
+%files Chinese-Big5
+%defattr(-,root,root,-)
+%lang(zh_TW) %{_datadir}/locale/zh_TW/*
+%lang(zh_TW) %{tde_docdir}/HTML/zh_TW/
+%endif
+
+%changelog
+* Sun Jul 01 2012 Francois Andriot <francois.andriot@free.fr> - 1.6.3-1
+- Initial build for TDE 3.5.13
+
diff --git a/redhat/applications/koffice/trinity-koffice-3.5.13-sru.spec b/redhat/applications/koffice/trinity-koffice-3.5.13.1.spec
index 7de29d6dc..408855ef4 100644
--- a/redhat/applications/koffice/trinity-koffice-3.5.13-sru.spec
+++ b/redhat/applications/koffice/trinity-koffice-3.5.13.1.spec
@@ -1,6 +1,9 @@
# Default version for this component
%define kdecomp koffice
+# Required for Mageia 2: removes the ldflag '--no-undefined'
+%define _disable_ld_no_undefined 1
+
# If TDE is built in a specific prefix (e.g. /opt/trinity), the release will be suffixed with ".opt".
%if "%{?tde_prefix}" != "/usr"
%define _variant .opt
@@ -16,17 +19,14 @@
%define tde_appdir %{tde_datadir}/applications
%define tde_tdeappdir %{tde_appdir}/kde
-%define tde_tdedocdir %{tde_docdir}/kde
-%define tde_tdeincludedir %{tde_includedir}/kde
+%define tde_tdedocdir %{tde_docdir}/tde
+%define tde_tdeincludedir %{tde_includedir}/tde
%define tde_tdelibdir %{tde_libdir}/trinity
%define _docdir %{tde_docdir}
-# Required for Mageia 2: removes the ldflag '--no-undefined'
-%define _disable_ld_no_undefined 1
-
# Disable Kross support for RHEL <= 5 (python is too old)
-%if 0%{?fedora} > 0 || 0%{?rhel} >= 6 || 0%{?mgaversion} || 0%{?mdkversion}
+%if 0%{?fedora} > 0 || 0%{?rhel} >= 6 || 0%{?mgaversion} || 0%{?mdkversion} || 0%{?suse_version}
%define with_kross 1
%endif
@@ -41,7 +41,7 @@
Name: trinity-%{kdecomp}
-Summary: An integrated office suite
+Summary: An integrated office suite
Version: 1.6.3
Release: 6%{?dist}%{?_variant}
@@ -55,36 +55,31 @@ URL: http://www.trinitydesktop.org/
Prefix: %{tde_prefix}
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
-Source0: %{kdecomp}-3.5.13.tar.gz
-Source100: koshell.png
-
-# [koffice] version 3.5.13-SRU
-Patch0: koffice-3.5.13-sru-20120805.patch
+Source0: %{kdecomp}-3.5.13.1.tar.gz
# [koffice] Fix compilation with Ruby 1.9 [Bug #735]
Patch13: koffice-3.5.13-fix_ruby_1.9.patch
-# [koffice] Missing LDFLAGS cause FTBFS on Mageia / Mandriva
-Patch16: koffice-3.5.13-missing_ldflags.patch
-# [koffice] LCMS library detection fails on Mageia / Mandriva
-Patch17: koffice-3.5.13-fix_lcms_detection.patch
# BuildRequires: world-devel ;)
-BuildRequires: trinity-tdelibs-devel
-BuildRequires: trinity-tdegraphics-devel
+BuildRequires: trinity-tdelibs-devel >= 3.5.13.1
+BuildRequires: trinity-tdegraphics-devel >= 3.5.13.1
+BuildRequires: trinity-tdegraphics-libpoppler-tqt-devel >= 3.5.13.1
BuildRequires: automake libtool
BuildRequires: freetype-devel
BuildRequires: fontconfig-devel
BuildRequires: libart_lgpl-devel
+%if 0%{?mdkversion} || 0%{?mgaversion}
+BuildRequires: %{_lib}png15-devel
+%else
BuildRequires: libpng-devel
+%endif
BuildRequires: libtiff-devel
BuildRequires: libjpeg-devel
BuildRequires: ImageMagick-devel
-BuildRequires: bzip2-devel
BuildRequires: zlib-devel
BuildRequires: openssl-devel
BuildRequires: python-devel
BuildRequires: pcre-devel
-BuildRequires: lcms-devel
BuildRequires: gettext-devel
BuildRequires: mysql-devel
BuildRequires: desktop-file-utils
@@ -98,11 +93,23 @@ BuildRequires: readline-devel
%if 0%{?with_ruby}
BuildRequires: ruby ruby-devel >= 1.8.2
%endif
-BuildRequires: libpaper-devel
-BuildRequires: libutempter-devel
+%if 0%{?suse_version}
+BuildRequires: GraphicsMagick >= 1.1.0
+%endif
BuildRequires: GraphicsMagick-devel >= 1.1.0
-BuildRequires: trinity-tdegraphics-libpoppler-tqt-devel
+%if 0%{?suse_version}
+BuildRequires: libbz2-devel
+BuildRequires: liblcms-devel
+BuildRequires: utempter-devel
+%else
+BuildRequires: bzip2-devel
+BuildRequires: lcms-devel
+BuildRequires: libutempter-devel
+
+BuildRequires: libpaper-devel
+%endif
+
# These libraries are either too old or too recent on distributions !
# We always provide our versions with TDE...
@@ -114,12 +121,19 @@ BuildRequires: %{_lib}mesagl1-devel
BuildRequires: %{_lib}mesaglu1-devel
BuildRequires: %{_lib}xi-devel
BuildRequires: wv2-devel
-%else
+%endif
+%if 0%{?fedora} || 0%{?rhel}
BuildRequires: libGL-devel
BuildRequires: libGLU-devel
BuildRequires: libXi-devel
BuildRequires: trinity-wv2-devel
%endif
+%if 0%{?suse_version}
+BuildRequires: Mesa-libGL-devel
+BuildRequires: Mesa-libGLU-devel
+BuildRequires: libXi-devel
+BuildRequires: wv2-devel
+%endif
%description
KOffice is an integrated office suite.
@@ -254,11 +268,16 @@ Requires: %{name}-core = %{version}-%{release}
%if 0%{?mgaversion} || 0%{?mdkversion}
Requires: fonts-ttf-dejavu
%else
-Requires: lyx-cmex10-fonts
%if 0%{?fedora} >= 11 || 0%{?rhel} >= 6
Requires: dejavu-lgc-sans-fonts
-%else
+Requires: lyx-cmex10-fonts
+%endif
+%if 0%{?rhel} == 5
Requires: dejavu-lgc-fonts
+Requires: lyx-cmex10-fonts
+%endif
+%if 0%{?suse_version}
+Requires: dejavu-fonts
%endif
%endif
@@ -304,17 +323,17 @@ This package is part of the TDE Office Suite.
-%prep
-%setup -q -n applications/%{kdecomp}
+%if 0%{?suse_version}
+%debug_package
+%endif
-# SRU
-%patch0 -p1
-%if 0%{?fedora} >= 17
-%patch13 -p1 -b .ruby19
+%prep
+%setup -q -n %{kdecomp}-3.5.13.1
+
+%if 0%{?fedora} >= 17 || 0%{?suse_version} >= 1220
+%patch13 -p1 -b .ruby
%endif
-%patch16 -p1
-%patch17 -p1
# use LGC variant instead
%__sed -i.dejavu-lgc \
@@ -334,11 +353,16 @@ This package is part of the TDE Office Suite.
%build
-unset QTDIR || : ; . /etc/profile.d/qt.sh
+unset QTDIR || : ; . /etc/profile.d/qt3.sh
export PATH="%{tde_bindir}:${PATH}"
export LDFLAGS="-L%{tde_libdir} -I%{tde_includedir}"
export PKG_CONFIG_PATH="%{tde_libdir}/pkgconfig:${PKG_CONFIG_PATH}"
+%if 0%{?suse_version} == 1220
+RD=$(ruby -r rbconfig -e 'printf("%s",Config::CONFIG["rubyhdrdir"])')
+export CXXFLAGS="${CXXFLAGS} -I${RD}/%_normalized_cpu-linux"
+%endif
+
%configure \
--prefix=%{tde_prefix} \
--exec-prefix=%{tde_prefix} \
@@ -358,7 +382,7 @@ export PKG_CONFIG_PATH="%{tde_libdir}/pkgconfig:${PKG_CONFIG_PATH}"
--disable-kexi-macros \
--with-pqxx-includes=%{tde_includedir} \
--with-pqxx-libraries=%{tde_libdir} \
-%if 0%{?with_kross} > 0
+%if 0%{?with_kross}
--enable-scripting \
%else
--disable-scripting \
@@ -371,8 +395,6 @@ export PKG_CONFIG_PATH="%{tde_libdir}/pkgconfig:${PKG_CONFIG_PATH}"
%__rm -rf %{buildroot}
%__make install DESTDIR=%{buildroot}
-[ ! -f %{buildroot}%{tde_datadir}/icons/hicolor/48x48/apps/koshell.png ] && \
-%__install -p -D -m644 %{SOURCE100} %{buildroot}%{tde_datadir}/icons/hicolor/48x48/apps/koshell.png
# Replace absolute symlinks with relative ones
pushd %{buildroot}%{tde_tdedocdir}/HTML
@@ -575,7 +597,7 @@ update-desktop-database -q &> /dev/null ||:
%{tde_tdeappdir}/*KThesaurus.desktop
%{tde_tdeappdir}/*koshell.desktop
%{tde_datadir}/apps/kofficewidgets/
-%if 0%{?with_kross} > 0
+%if 0%{?with_kross}
%{tde_datadir}/apps/kross/
%{tde_tdelibdir}/krosspython.*
%if 0%{?with_ruby}
@@ -602,7 +624,7 @@ update-desktop-database -q &> /dev/null ||:
%{tde_libdir}/libkformulalib.so.*
%{tde_libdir}/libkopalette.so.*
%{tde_libdir}/libkoproperty.so.*
-%if 0%{?with_kross} > 0
+%if 0%{?with_kross}
%{tde_libdir}/libkrossapi.so.*
%{tde_libdir}/libkrossmain.so.*
%endif
@@ -653,7 +675,7 @@ update-desktop-database -q &> /dev/null ||:
%{tde_datadir}/templates/SpreadSheet.desktop
%{tde_datadir}/templates/.source/SpreadSheet.kst
%{tde_tdeappdir}/*kspread.desktop
-%if 0%{?with_kross} > 0
+%if 0%{?with_kross}
%{tde_tdelibdir}/kspreadscripting.*
%{tde_tdelibdir}/krosskspreadcore.*
%endif
@@ -731,7 +753,7 @@ update-desktop-database -q &> /dev/null ||:
%{tde_datadir}/services/kformdesigner/*
%{tde_tdeappdir}/*kexi.desktop
%{tde_datadir}/services/kexidb_sqlite*driver.desktop
-%if 0%{?with_kross} > 0
+%if 0%{?with_kross}
%{tde_bindir}/krossrunner
%{tde_tdelibdir}/krosskexiapp.*
%{tde_tdelibdir}/krosskexidb.*
@@ -1006,7 +1028,7 @@ update-desktop-database -q &> /dev/null ||:
%{tde_libdir}/libchalkrgb.so.*
%{tde_libdir}/libchalkui.so.*
%{tde_libdir}/libchalk_ycbcr_*.so.*
-%if 0%{?with_kross} > 0
+%if 0%{?with_kross}
%{tde_tdelibdir}/krosschalkcore.la
%{tde_tdelibdir}/krosschalkcore.so
%{tde_tdelibdir}/chalkscripting.la
@@ -1027,5 +1049,32 @@ update-desktop-database -q &> /dev/null ||:
%changelog
-* Sun Aug 05 2012 Francois Andriot <francois.andriot@free.fr> - 1.6.3-6
-- Switch to 3.5.13-sru branch
+* Wed Oct 03 2012 Francois Andriot <francois.andriot@free.fr> - 1.6.3-6
+- Initial build for TDE 3.5.13.1
+
+* Sun Jul 08 2012 Francois Andriot <francois.andriot@free.fr> - 1.6.3-5
+- Fix kformula dependancies (for RHEL6)
+- Fix FTBFS due to missing libraries [Bug #657] [Commit #5c69fcd3]
+ Clean up lib paths in LDFLAGS - moved to LIBADD
+ For KWord and and KPresenter added linking kspell2
+ For KSpread added linking kutils
+- Fix accidental conversions of binary files [Bug #1033] [Commit #dbe89307]
+
+* Thu Apr 26 2012 Francois Andriot <francois.andriot@free.fr> - 1.6.3-4
+- Updates BuildRequires
+- Build for Fedora 17
+- Fix compilation with GCC 4.7 [Bug #958]
+- Fix compilation with Ruby 1.9 [Bug #735]
+- Fix compilation with libpng [Bug #603]
+
+* Sat Jan 07 2012 Francois Andriot <francois.andriot@free.fr> - 1.6.3-3
+- Fix GraphicksMagick 1.3 support [Bug #353]
+- Various patches for kexi [Bug #777]
+
+* Fri Nov 25 2011 Francois Andriot <francois.andriot@free.fr> - 1.6.3-2
+- Fix HTML directory location
+
+* Tue Nov 22 2011 Francois Andriot <francois.andriot@free.fr> - 1.6.3-1
+- Initial build for RHEL 5, RHEL 6, Fedora 15, Fedora 16
+- Based on Spec file from Fedora 11 'koffice-2:1.6.3-25.20090306svn'
+- Removed 'krita', added 'chalk'
diff --git a/redhat/applications/konversation/trinity-konversation-3.5.13.1.spec b/redhat/applications/konversation/trinity-konversation-3.5.13.1.spec
new file mode 100644
index 000000000..a67dd7f55
--- /dev/null
+++ b/redhat/applications/konversation/trinity-konversation-3.5.13.1.spec
@@ -0,0 +1,190 @@
+# Default version for this component
+%define kdecomp konversation
+
+# If TDE is built in a specific prefix (e.g. /opt/trinity), the release will be suffixed with ".opt".
+%if "%{?tde_prefix}" != "/usr"
+%define _variant .opt
+%endif
+
+# TDE 3.5.13 specific building variables
+%define tde_bindir %{tde_prefix}/bin
+%define tde_datadir %{tde_prefix}/share
+%define tde_docdir %{tde_datadir}/doc
+%define tde_includedir %{tde_prefix}/include
+%define tde_libdir %{tde_prefix}/%{_lib}
+%define tde_mandir %{tde_datadir}/man
+%define tde_appdir %{tde_datadir}/applications
+
+%define tde_tdeappdir %{tde_appdir}/kde
+%define tde_tdedocdir %{tde_docdir}/tde
+%define tde_tdeincludedir %{tde_includedir}/tde
+%define tde_tdelibdir %{tde_libdir}/trinity
+
+%define _docdir %{tde_docdir}
+
+
+Name: trinity-%{kdecomp}
+Summary: user friendly Internet Relay Chat (IRC) client for KDE [Trinity]
+Version: 1.1
+Release: 3%{?dist}%{?_variant}
+
+License: GPLv2+
+Group: Applications/Utilities
+
+Vendor: Trinity Project
+Packager: Francois Andriot <francois.andriot@free.fr>
+URL: http://www.trinitydesktop.org/
+
+Prefix: %{tde_prefix}
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+
+Source0: %{kdecomp}-3.5.13.1.tar.gz
+
+BuildRequires: trinity-tqtinterface-devel >= 3.5.13.1
+BuildRequires: trinity-arts-devel >= 3.5.13.1
+BuildRequires: trinity-tdelibs-devel >= 3.5.13.1
+BuildRequires: trinity-tdebase-devel >= 3.5.13.1
+BuildRequires: desktop-file-utils
+BuildRequires: gettext
+
+BuildRequires: libxslt-devel
+%if 0%{?suse_version}
+BuildRequires: docbook-xsl-stylesheets
+%else
+BuildRequires: docbook-style-xsl
+%endif
+
+%if 0%{?mgaversion} || 0%{?mdkversion}
+BuildRequires: %{_lib}xi-devel
+%else
+BuildRequires: libXi-devel
+%endif
+
+%description
+Konversation is a client for the Internet Relay Chat (IRC) protocol.
+It is easy to use and well-suited for novice IRC users, but novice
+and experienced users alike will appreciate its many features:
+
+ * Standard IRC features
+ * Easy to use graphical interface
+ * Multiple server and channel tabs in a single window
+ * IRC color support
+ * Pattern-based message highlighting and OnScreen Display
+ * Multiple identities for different servers
+ * Multi-language scripting support (with DCOP)
+ * Customizable command aliases
+ * NickServ-aware log-on (for registered nicknames)
+ * Smart logging
+ * Traditional or enhanced-shell-style nick completion
+ * DCC file transfer with resume support
+
+
+
+%if 0%{?suse_version}
+%debug_package
+%endif
+
+
+%prep
+%setup -q -n %{kdecomp}-3.5.13.1
+
+# Ugly hack to modify TQT include directory inside autoconf files.
+# If TQT detection fails, it fallbacks to TQT4 instead of TQT3 !
+%__sed -i admin/acinclude.m4.in \
+ -e "s|/usr/include/tqt|%{tde_includedir}/tqt|g" \
+ -e "s|kde_htmldir='.*'|kde_htmldir='%{tde_tdedocdir}/HTML'|g"
+
+%__cp -f "/usr/share/aclocal/libtool.m4" "admin/libtool.m4.in"
+%__cp -f "/usr/share/libtool/config/ltmain.sh" "admin/ltmain.sh" || %__cp -f "/usr/share/libtool/ltmain.sh" "admin/ltmain.sh"
+%__make -f "admin/Makefile.common"
+
+
+%build
+unset QTDIR || : ; source /etc/profile.d/qt3.sh
+export PATH="%{tde_bindir}:${PATH}"
+export LDFLAGS="-L%{tde_libdir} -I%{tde_includedir}"
+
+%configure \
+ --prefix=%{tde_prefix} \
+ --exec-prefix=%{tde_prefix} \
+ --bindir=%{tde_bindir} \
+ --datadir=%{tde_datadir} \
+ --libdir=%{tde_libdir} \
+ --mandir=%{tde_mandir} \
+ --includedir=%{tde_tdeincludedir} \
+ --disable-rpath \
+ --with-extra-includes=%{tde_includedir}/tqt \
+ --enable-closure
+
+%__make %{?_smp_mflags}
+
+
+%install
+export PATH="%{tde_bindir}:${PATH}"
+%__rm -rf %{buildroot}
+%__make install DESTDIR=%{buildroot}
+
+%find_lang %{kdecomp}
+
+%clean
+%__rm -rf %{buildroot}
+
+
+%post
+touch --no-create %{tde_datadir}/icons/hicolor || :
+gtk-update-icon-cache --quiet %{tde_datadir}/icons/hicolor || :
+
+%postun
+touch --no-create %{tde_datadir}/icons/hicolor || :
+gtk-update-icon-cache --quiet %{tde_datadir}/icons/hicolor || :
+
+
+%files -f %{kdecomp}.lang
+%defattr(-,root,root,-)
+%doc AUTHORS COPYING
+%{tde_bindir}/konversation
+%{tde_tdeappdir}/konversation.desktop
+%{tde_datadir}/apps/kconf_update/konversation-0.19-appearance.pl
+%{tde_datadir}/apps/kconf_update/konversation-0.19-colorcodes.pl
+%{tde_datadir}/apps/kconf_update/konversation-0.19-colors.pl
+%{tde_datadir}/apps/kconf_update/konversation-0.19-custombrowser.pl
+%{tde_datadir}/apps/kconf_update/konversation-0.19-notifylists.pl
+%{tde_datadir}/apps/kconf_update/konversation-0.19-sortorder.pl
+%{tde_datadir}/apps/kconf_update/konversation-0.19-tabplacement.pl
+%{tde_datadir}/apps/kconf_update/konversation-0.20-customfonts.pl
+%{tde_datadir}/apps/kconf_update/konversation-0.20-quickbuttons.pl
+%{tde_datadir}/apps/kconf_update/konversation.upd
+%{tde_datadir}/apps/konversation/
+%{tde_datadir}/config.kcfg/konversation.kcfg
+%{tde_datadir}/services/konvirc.protocol
+%{tde_datadir}/services/konvirc6.protocol
+%{tde_tdedocdir}/HTML/*/konversation/
+%{tde_datadir}/icons/crystalsvg/*/actions/kimproxyaway.png
+%{tde_datadir}/icons/crystalsvg/*/actions/kimproxyoffline.png
+%{tde_datadir}/icons/crystalsvg/*/actions/kimproxyonline.png
+%{tde_datadir}/icons/crystalsvg/*/actions/char.png
+%{tde_datadir}/icons/crystalsvg/*/actions/konv_message.png
+%{tde_datadir}/icons/crystalsvg/scalable/actions/kimproxyaway.svgz
+%{tde_datadir}/icons/crystalsvg/scalable/actions/kimproxyoffline.svgz
+%{tde_datadir}/icons/crystalsvg/scalable/actions/kimproxyonline.svgz
+%{tde_datadir}/icons/crystalsvg/scalable/actions/konv_message.svgz
+%{tde_datadir}/icons/hicolor/*/apps/konversation.png
+%{tde_datadir}/icons/hicolor/scalable/apps/konversation.svgz
+
+
+%changelog
+* Wed Oct 03 2012 Francois Andriot <francois.andriot@free.fr> - 1.1-3
+- Initial build for TDE 3.5.13.1
+
+* Sat May 05 2012 Francois Andriot <francois.andriot@free.fr> - 1.1-2
+- Rebuild for Fedora 17
+- Fix HTML directory location
+- Rename old tq methods that no longer need a unique name [Commit #01f5ea83]
+- Remove additional unneeded tq method conversions [Commit #efdae4e7]
+- Rename obsolete tq methods to standard names [Commit #c64099e5]
+- Fix linear alphabet string errors [Commit #440010aa]
+- Fix inadvertent "TQ" changes. [Commit #ca3d6cef]
+
+* Mon Nov 07 2011 Francois Andriot <francois.andriot@free.fr> - 1.1-1
+- Initial release for RHEL 6, RHEL 5 and Fedora 15
+
diff --git a/redhat/applications/kopete-otr/trinity-kopete-otr-3.5.13.1.spec b/redhat/applications/kopete-otr/trinity-kopete-otr-3.5.13.1.spec
new file mode 100644
index 000000000..c4df2589b
--- /dev/null
+++ b/redhat/applications/kopete-otr/trinity-kopete-otr-3.5.13.1.spec
@@ -0,0 +1,153 @@
+# Default version for this component
+%define kdecomp kopete-otr
+
+# Required for Mageia 2: removes the ldflag '--no-undefined'
+%define _disable_ld_no_undefined 1
+
+# If TDE is built in a specific prefix (e.g. /opt/trinity), the release will be suffixed with ".opt".
+%if "%{?tde_prefix}" != "/usr"
+%define _variant .opt
+%endif
+
+# TDE 3.5.13 specific building variables
+%define tde_bindir %{tde_prefix}/bin
+%define tde_datadir %{tde_prefix}/share
+%define tde_docdir %{tde_datadir}/doc
+%define tde_includedir %{tde_prefix}/include
+%define tde_libdir %{tde_prefix}/%{_lib}
+%define tde_mandir %{tde_datadir}/man
+%define tde_appdir %{tde_datadir}/applications
+
+%define tde_tdeappdir %{tde_appdir}/kde
+%define tde_tdedocdir %{tde_docdir}/tde
+%define tde_tdeincludedir %{tde_includedir}/tde
+%define tde_tdelibdir %{tde_libdir}/trinity
+
+%define _docdir %{tde_docdir}
+
+
+Name: trinity-%{kdecomp}
+Summary: Off-The-Record encryption for Kopete [Trinity]
+Version: 0.7
+Release: 3%{?dist}%{?_variant}
+
+License: GPLv2+
+Group: Applications/Utilities
+
+Vendor: Trinity Project
+Packager: Francois Andriot <francois.andriot@free.fr>
+URL: http://www.trinitydesktop.org/
+
+Prefix: %{tde_prefix}
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+
+Source0: %{kdecomp}-3.5.13.1.tar.gz
+
+
+BuildRequires: trinity-tqtinterface-devel >= 3.5.13.1
+BuildRequires: trinity-tdelibs-devel >= 3.5.13.1
+BuildRequires: trinity-tdebase-devel >= 3.5.13.1
+BuildRequires: desktop-file-utils
+
+# Kopete is provided by kdenetwork
+BuildRequires: trinity-tdenetwork-devel
+Requires: trinity-tdenetwork
+BuildRequires: libotr-devel
+
+%description
+This plugin enables Off-The-Record encryption for the KDE instant
+messenger Kopete. Using this plugin you can encrypt chatsessions to other
+users with IM-Cients supporting the OTR encryption method.
+
+
+%if 0%{?suse_version}
+%debug_package
+%endif
+
+
+%prep
+%setup -q -n %{kdecomp}-3.5.13.1
+
+# Ugly hack to modify TQT include directory inside autoconf files.
+# If TQT detection fails, it fallbacks to TQT4 instead of TQT3 !
+%__sed -i admin/acinclude.m4.in \
+ -e "s|/usr/include/tqt|%{tde_includedir}/tqt|g" \
+ -e "s|kde_htmldir='.*'|kde_htmldir='%{tde_tdedocdir}/HTML'|g"
+
+%__cp "/usr/share/aclocal/libtool.m4" "admin/libtool.m4.in"
+%__cp "/usr/share/libtool/config/ltmain.sh" "admin/ltmain.sh" || %__cp "/usr/share/libtool/ltmain.sh" "admin/ltmain.sh"
+%__make -f "admin/Makefile.common"
+
+
+%build
+unset QTDIR; . /etc/profile.d/qt3.sh
+export PATH="%{tde_bindir}:${PATH}"
+export LDFLAGS="-L%{tde_libdir} -I%{tde_includedir}"
+
+%configure \
+ --prefix=%{tde_prefix} \
+ --exec-prefix=%{tde_prefix} \
+ --bindir=%{tde_bindir} \
+ --datadir=%{tde_datadir} \
+ --libdir=%{tde_libdir} \
+ --mandir=%{tde_mandir} \
+ --includedir=%{tde_tdeincludedir} \
+ --disable-rpath \
+ --with-extra-includes=%{tde_includedir}/tqt \
+ --enable-closure
+
+%__make %{_smp_mflags}
+
+%install
+export PATH="%{tde_bindir}:${PATH}"
+%__rm -rf %{buildroot}
+%__make install DESTDIR=%{buildroot}
+
+# Unwanted files
+%__rm -f %{?buildroot}%{tde_libdir}/libkotr.so
+
+%find_lang kopete_otr
+
+%clean
+%__rm -rf %{buildroot}
+
+
+%post
+touch --no-create %{tde_datadir}/icons/crystalsvg || :
+gtk-update-icon-cache --quiet %{tde_datadir}/icons/crystalsvg || :
+/sbin/ldconfig || :
+
+%postun
+touch --no-create %{tde_datadir}/icons/crystalsvg || :
+gtk-update-icon-cache --quiet %{tde_datadir}/icons/crystalsvg || :
+/sbin/ldconfig || :
+
+
+%files -f kopete_otr.lang
+%defattr(-,root,root,-)
+%doc AUTHORS ChangeLog COPYING README TODO
+%{tde_libdir}/libkotr.la
+%{tde_libdir}/libkotr.so.0
+%{tde_libdir}/libkotr.so.0.0.0
+%{tde_tdelibdir}/kcm_kopete_otr.la
+%{tde_tdelibdir}/kcm_kopete_otr.so
+%{tde_tdelibdir}/kopete_otr.la
+%{tde_tdelibdir}/kopete_otr.so
+%{tde_datadir}/apps/kopete_otr
+%{tde_datadir}/config.kcfg/kopete_otr.kcfg
+%{tde_tdedocdir}/HTML/en/kopete_otr/
+%{tde_datadir}/icons/crystalsvg/16x16/apps/kopete_otr.png
+%{tde_datadir}/services/kconfiguredialog/kopete_otr_config.desktop
+%{tde_datadir}/services/kopete_otr.desktop
+
+
+%changelog
+* Wed Oct 03 2012 Francois Andriot <francois.andriot@free.fr> - 0.7-3
+- Initial build for TDE 3.5.13.1
+
+* Wed May 02 2012 Francois Andriot <francois.andriot@free.fr> - 0.7-2
+- Rebuild for Fedora 17
+
+* Sat Dec 03 2011 Francois Andriot <francois.andriot@free.fr> - 0.7-1
+- Initial build for RHEL 5, RHEL 6, Fedora 15, Fedora 16
+
diff --git a/redhat/applications/kopete-otr/trinity-kopete-otr.spec b/redhat/applications/kopete-otr/trinity-kopete-otr-3.5.13.spec
index c5a11710b..c5a11710b 100644
--- a/redhat/applications/kopete-otr/trinity-kopete-otr.spec
+++ b/redhat/applications/kopete-otr/trinity-kopete-otr-3.5.13.spec
diff --git a/redhat/applications/kpicosim/trinity-kpicosim-3.5.13.1.spec b/redhat/applications/kpicosim/trinity-kpicosim-3.5.13.1.spec
new file mode 100644
index 000000000..0ce4585cd
--- /dev/null
+++ b/redhat/applications/kpicosim/trinity-kpicosim-3.5.13.1.spec
@@ -0,0 +1,135 @@
+# Default version for this component
+%define kdecomp kpicosim
+
+# If TDE is built in a specific prefix (e.g. /opt/trinity), the release will be suffixed with ".opt".
+%if "%{?tde_prefix}" != "/usr"
+%define _variant .opt
+%endif
+
+# TDE 3.5.13 specific building variables
+%define tde_bindir %{tde_prefix}/bin
+%define tde_datadir %{tde_prefix}/share
+%define tde_docdir %{tde_datadir}/doc
+%define tde_includedir %{tde_prefix}/include
+%define tde_libdir %{tde_prefix}/%{_lib}
+%define tde_mandir %{tde_datadir}/man
+%define tde_appdir %{tde_datadir}/applications
+
+%define tde_tdeappdir %{tde_appdir}/kde
+%define tde_tdedocdir %{tde_docdir}/tde
+%define tde_tdeincludedir %{tde_includedir}/tde
+%define tde_tdelibdir %{tde_libdir}/trinity
+
+%define _docdir %{tde_docdir}
+
+
+Name: trinity-%{kdecomp}
+Summary: IDE and simulator for the Xilinx PicoBlaze-3 [Trinity]
+Version: 0.6a
+Release: 2%{?dist}%{?_variant}
+
+License: GPLv2+
+Group: Applications/Utilities
+
+Vendor: Trinity Project
+Packager: Francois Andriot <francois.andriot@free.fr>
+URL: http://www.trinitydesktop.org
+
+Prefix: %{tde_prefix}
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+
+Source0: %{kdecomp}-3.5.13.1.tar.gz
+
+BuildRequires: trinity-tqtinterface-devel >= 3.5.13.1
+BuildRequires: trinity-tdelibs-devel >= 3.5.13.1
+BuildRequires: trinity-tdebase-devel >= 3.5.13.1
+BuildRequires: desktop-file-utils
+BuildRequires: gettext
+
+
+%description
+kpicosim is a development environment for the Xilinx
+PicoBlaze-3 soft-core processor for the KDE Desktop (Linux).
+The environment has an editor with syntax highlighting, compiler,
+simulator and export functions to VHDL, HEX and MEM files.
+
+
+%if 0%{?suse_version}
+%debug_package
+%endif
+
+
+%prep
+%setup -q -n %{kdecomp}-3.5.13.1
+
+# Ugly hack to modify TQT include directory inside autoconf files.
+# If TQT detection fails, it fallbacks to TQT4 instead of TQT3 !
+%__sed -i admin/acinclude.m4.in \
+ -e "s|/usr/include/tqt|%{tde_includedir}/tqt|g" \
+ -e "s|kde_htmldir='.*'|kde_htmldir='%{tde_tdedocdir}/HTML'|g"
+
+%__cp "/usr/share/aclocal/libtool.m4" "admin/libtool.m4.in"
+%__cp "/usr/share/libtool/config/ltmain.sh" "admin/ltmain.sh" || %__cp "/usr/share/libtool/ltmain.sh" "admin/ltmain.sh"
+%__make -f "admin/Makefile.common"
+
+
+%build
+unset QTDIR; . /etc/profile.d/qt3.sh
+export PATH="%{tde_bindir}:${PATH}"
+export LDFLAGS="-L%{tde_libdir} -I%{tde_includedir}"
+
+%configure \
+ --prefix=%{tde_prefix} \
+ --exec-prefix=%{tde_prefix} \
+ --bindir=%{tde_bindir} \
+ --datadir=%{tde_datadir} \
+ --libdir=%{tde_libdir} \
+ --mandir=%{tde_mandir} \
+ --includedir=%{tde_tdeincludedir} \
+ --disable-rpath \
+ --with-extra-includes=%{tde_includedir}/tqt:%{tde_tdeincludedir}
+
+# SMP safe !
+%__make %{?_smp_mflags}
+
+
+%install
+export PATH="%{tde_bindir}:${PATH}"
+%__rm -rf %{buildroot}
+%__make install DESTDIR=%{buildroot}
+
+
+%find_lang %{kdecomp} || touch %{kdecomp}.lang
+
+
+
+%clean
+%__rm -rf %{buildroot}
+
+
+%post
+touch --no-create %{tde_datadir}/icons/hicolor || :
+gtk-update-icon-cache --quiet %{tde_datadir}/icons/hicolor || :
+
+%postun
+touch --no-create %{tde_datadir}/icons/hicolor || :
+gtk-update-icon-cache --quiet %{tde_datadir}/icons/hicolor || :
+
+
+%files -f %{kdecomp}.lang
+%defattr(-,root,root,-)
+%doc AUTHORS ChangeLog COPYING NEWS README
+%{tde_bindir}/kpicosim
+%{tde_datadir}/applnk/Development/kpicosim.desktop
+%{tde_datadir}/apps/katepart/syntax/psm.xml
+%{tde_datadir}/apps/kpicosim
+%{tde_tdedocdir}/HTML/en/kpicosim
+%{tde_datadir}/icons/hicolor/*/apps/kpicosim.png
+
+
+%changelog
+* Wed Oct 03 2012 Francois Andriot <francois.andriot@free.fr> - 0.6a-2
+- Initial build for TDE 3.5.13.1
+
+* Wed Nov 30 2011 Francois Andriot <francois.andriot@free.fr> - 0.6a-1
+- Initial build for RHEL 5, RHEL 6, Fedora 15, Fedora 16
diff --git a/redhat/applications/kpicosim/trinity-kpicosim.spec b/redhat/applications/kpicosim/trinity-kpicosim-3.5.13.spec
index 43c024ed5..43c024ed5 100644
--- a/redhat/applications/kpicosim/trinity-kpicosim.spec
+++ b/redhat/applications/kpicosim/trinity-kpicosim-3.5.13.spec
diff --git a/redhat/applications/kpilot/trinity-kpilot-3.5.13.1.spec b/redhat/applications/kpilot/trinity-kpilot-3.5.13.1.spec
new file mode 100644
index 000000000..9fc370fab
--- /dev/null
+++ b/redhat/applications/kpilot/trinity-kpilot-3.5.13.1.spec
@@ -0,0 +1,184 @@
+# Default version for this component
+%define kdecomp kpilot
+
+# If TDE is built in a specific prefix (e.g. /opt/trinity), the release will be suffixed with ".opt".
+%if "%{?tde_prefix}" != "/usr"
+%define _variant .opt
+%endif
+
+# TDE 3.5.13 specific building variables
+%define tde_bindir %{tde_prefix}/bin
+%define tde_datadir %{tde_prefix}/share
+%define tde_docdir %{tde_datadir}/doc
+%define tde_includedir %{tde_prefix}/include
+%define tde_libdir %{tde_prefix}/%{_lib}
+%define tde_mandir %{tde_datadir}/man
+%define tde_appdir %{tde_datadir}/applications
+
+%define tde_tdeappdir %{tde_appdir}/kde
+%define tde_tdedocdir %{tde_docdir}/tde
+%define tde_tdeincludedir %{tde_includedir}/tde
+%define tde_tdelibdir %{tde_libdir}/trinity
+
+%define _docdir %{tde_docdir}
+
+
+Name: trinity-%{kdecomp}
+Summary: TDE Palm Pilot hot-sync tool
+Version: 0.7
+Release: 3%{?dist}%{?_variant}
+
+License: GPLv2+
+Group: Applications/Utilities
+
+Vendor: Trinity Project
+Packager: Francois Andriot <francois.andriot@free.fr>
+URL: http://www.trinitydesktop.org
+
+Prefix: %{tde_prefix}
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+
+Source0: %{kdecomp}-3.5.13.1.tar.gz
+
+
+BuildRequires: trinity-tqtinterface-devel >= 3.5.13.1
+BuildRequires: trinity-tdelibs-devel >= 3.5.13.1
+BuildRequires: trinity-tdebase-devel >= 3.5.13.1
+BuildRequires: desktop-file-utils
+BuildRequires: gettext
+
+BuildRequires: pilot-link-devel
+BuildRequires: trinity-kdepim-devel
+
+%description
+KPilot is an application that synchronizes your Palm Pilot or similar device
+(like the Handspring Visor) with your KDE desktop, much like the Palm HotSync
+software does for Windows. KPilot can back-up and restore your Palm Pilot
+and synchronize the built-in applications with their KDE counterparts.
+
+
+%if 0%{?suse_version}
+%debug_package
+%endif
+
+
+%prep
+%setup -q -n %{kdecomp}-3.5.13.1
+
+# Ugly hack to modify TQT include directory inside autoconf files.
+# If TQT detection fails, it fallbacks to TQT4 instead of TQT3 !
+%__sed -i admin/acinclude.m4.in \
+ -e "s|/usr/include/tqt|%{tde_includedir}/tqt|g" \
+ -e "s|kde_htmldir='.*'|kde_htmldir='%{tde_tdedocdir}/HTML'|g"
+
+%__cp "/usr/share/aclocal/libtool.m4" "admin/libtool.m4.in"
+%__cp "/usr/share/libtool/config/ltmain.sh" "admin/ltmain.sh" || %__cp "/usr/share/libtool/ltmain.sh" "admin/ltmain.sh"
+%__make -f "admin/Makefile.common"
+
+
+%build
+unset QTDIR; . /etc/profile.d/qt3.sh
+export PATH="%{tde_bindir}:${PATH}"
+export LDFLAGS="-L%{tde_libdir} -I%{tde_includedir}"
+
+%configure \
+ --prefix=%{tde_prefix} \
+ --exec-prefix=%{tde_prefix} \
+ --bindir=%{tde_bindir} \
+ --datadir=%{tde_datadir} \
+ --libdir=%{tde_libdir} \
+ --mandir=%{tde_mandir} \
+ --includedir=%{tde_tdeincludedir} \
+ --disable-rpath \
+ --with-extra-includes=%{tde_includedir}/tqt:%{tde_tdeincludedir}
+
+# SMP safe !
+%__make %{?_smp_mflags}
+
+
+%install
+export PATH="%{tde_bindir}:${PATH}"
+%__rm -rf %{buildroot}
+%__make install DESTDIR=%{buildroot}
+
+# Unwanted files
+%__rm -f %{?buildroot}%{tde_libdir}/libkpilot.so
+
+
+
+%clean
+%__rm -rf %{buildroot}
+
+
+%post
+update-desktop-database %{tde_appdir} > /dev/null
+for f in hicolor locolor crystalsvg; do
+ touch --no-create %{tde_datadir}/icons/${f} || :
+ gtk-update-icon-cache --quiet %{tde_datadir}/icons/${f} || :
+done
+/sbin/ldconfig || :
+
+%postun
+update-desktop-database %{tde_appdir} > /dev/null
+for f in hicolor locolor crystalsvg; do
+ touch --no-create %{tde_datadir}/icons/${f} || :
+ gtk-update-icon-cache --quiet %{tde_datadir}/icons/${f} || :
+done
+/sbin/ldconfig || :
+
+
+%files
+%defattr(-,root,root,-)
+%{tde_bindir}/kpalmdoc
+%{tde_bindir}/kpilot
+%{tde_bindir}/kpilotDaemon
+%{tde_tdeincludedir}/kpilot
+%{tde_libdir}/libkpilot.la
+%{tde_libdir}/libkpilot.so.0
+%{tde_libdir}/libkpilot.so.0.0.0
+%{tde_tdelibdir}/conduit_address.la
+%{tde_tdelibdir}/conduit_address.so
+%{tde_tdelibdir}/conduit_doc.la
+%{tde_tdelibdir}/conduit_doc.so
+%{tde_tdelibdir}/conduit_knotes.la
+%{tde_tdelibdir}/conduit_knotes.so
+%{tde_tdelibdir}/conduit_memofile.la
+%{tde_tdelibdir}/conduit_memofile.so
+%{tde_tdelibdir}/conduit_notepad.la
+%{tde_tdelibdir}/conduit_notepad.so
+%{tde_tdelibdir}/conduit_popmail.la
+%{tde_tdelibdir}/conduit_popmail.so
+%{tde_tdelibdir}/conduit_sysinfo.la
+%{tde_tdelibdir}/conduit_sysinfo.so
+%{tde_tdelibdir}/conduit_time.la
+%{tde_tdelibdir}/conduit_time.so
+%{tde_tdelibdir}/conduit_todo.la
+%{tde_tdelibdir}/conduit_todo.so
+%{tde_tdelibdir}/conduit_vcal.la
+%{tde_tdelibdir}/conduit_vcal.so
+%{tde_tdelibdir}/kcm_kpilot.la
+%{tde_tdelibdir}/kcm_kpilot.so
+%{tde_tdeappdir}/kpalmdoc.desktop
+%{tde_tdeappdir}/kpilot.desktop
+%{tde_tdeappdir}/kpilotdaemon.desktop
+%{tde_datadir}/apps/kaddressbook/contacteditorpages/KPilotCustomFieldEditor.ui
+%{tde_datadir}/apps/kconf_update/kpalmdoc.upd
+%{tde_datadir}/apps/kconf_update/kpilot.upd
+%{tde_datadir}/apps/kpilot
+%{tde_datadir}/config.kcfg/*.kcfg
+%{tde_datadir}/icons/crystalsvg/*/apps/*.png
+%{tde_datadir}/icons/hicolor/*/apps/*.png
+%{tde_datadir}/icons/locolor/*/apps/*.png
+%{tde_datadir}/services/*.desktop
+%{tde_datadir}/servicetypes/kpilotconduit.desktop
+
+
+%changelog
+* Wed Oct 03 2012 Francois Andriot <francois.andriot@free.fr> - 0.7-3
+- Initial build for TDE 3.5.13.1
+
+* Wed May 02 2012 Francois Andriot <francois.andriot@free.fr> - 0.7-2
+- Rebuild for Fedora 17
+
+* Wed Nov 30 2011 Francois Andriot <francois.andriot@free.fr> - 0.7-1
+- Initial build for RHEL 5, RHEL 6, Fedora 15, Fedora 16
diff --git a/redhat/applications/kpilot/trinity-kpilot.spec b/redhat/applications/kpilot/trinity-kpilot-3.5.13.spec
index 1c2fff802..1c2fff802 100644
--- a/redhat/applications/kpilot/trinity-kpilot.spec
+++ b/redhat/applications/kpilot/trinity-kpilot-3.5.13.spec
diff --git a/redhat/applications/kpowersave/trinity-kpowersave-3.5.13.1.spec b/redhat/applications/kpowersave/trinity-kpowersave-3.5.13.1.spec
new file mode 100644
index 000000000..604b06788
--- /dev/null
+++ b/redhat/applications/kpowersave/trinity-kpowersave-3.5.13.1.spec
@@ -0,0 +1,158 @@
+# Default version for this component
+%define kdecomp kpowersave
+
+# If TDE is built in a specific prefix (e.g. /opt/trinity), the release will be suffixed with ".opt".
+%if "%{?tde_prefix}" != "/usr"
+%define _variant .opt
+%endif
+
+# TDE 3.5.13 specific building variables
+%define tde_bindir %{tde_prefix}/bin
+%define tde_datadir %{tde_prefix}/share
+%define tde_docdir %{tde_datadir}/doc
+%define tde_includedir %{tde_prefix}/include
+%define tde_libdir %{tde_prefix}/%{_lib}
+%define tde_mandir %{tde_datadir}/man
+%define tde_appdir %{tde_datadir}/applications
+
+%define tde_tdeappdir %{tde_appdir}/kde
+%define tde_tdedocdir %{tde_docdir}/tde
+%define tde_tdeincludedir %{tde_includedir}/tde
+%define tde_tdelibdir %{tde_libdir}/trinity
+
+%define _docdir %{tde_docdir}
+
+
+Name: trinity-%{kdecomp}
+Version: 0.7.3
+Release: 3%{?dist}%{?_variant}
+Summary: HAL based power management applet for Trinityfiles or directories.
+
+License: GPLv2+
+Group: Applications/Utilities
+
+Vendor: Trinity Project
+Packager: Francois Andriot <francois.andriot@free.fr>
+URL: http://www.trinitydesktop.org/
+
+Prefix: %{tde_prefix}
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+
+Source0: %{kdecomp}-3.5.13.1.tar.gz
+
+
+BuildRequires: trinity-tqtinterface-devel >= 3.5.13.1
+BuildRequires: trinity-tdelibs-devel >= 3.5.13.1
+BuildRequires: trinity-tdebase-devel >= 3.5.13.1
+BuildRequires: desktop-file-utils
+
+%description
+KPowersave is a TDE systray applet which allows to control the power
+management settings and policies of your computer.
+It relies on HAL to do the heavy lifting.
+
+Current feature list:
+ * support for ACPI, APM and PMU
+ * trigger suspend to disk/ram and standby
+ * switch cpu frequency policy (between: performance, dynamic and powersave)
+ * applet icon with information about AC state, battery fill and battery
+ (warning) states
+ * applet tooltip with information about battery fill and remaining battery
+ time/percentage
+ * autosuspend (to suspend the machine if the user has been inactive for a
+ defined time)
+ * a global configurable blacklist with programs which prevent autosuspend
+ (e.g. videoplayer and cd burning tools)
+ * trigger lock screen and select the lock method
+ * KNotify support
+ * online help
+ * localisations for many languages
+
+KPowersave supports schemes with following configurable specific
+settings for:
+ * screensaver
+ * DPMS
+ * autosuspend
+ * scheme specific blacklist for autosuspend
+ * notification settings
+
+
+%if 0%{?suse_version}
+%debug_package
+%endif
+
+
+%prep
+%setup -q -n %{kdecomp}-3.5.13.1
+
+%build
+unset QTDIR || : ; . /etc/profile.d/qt3.sh
+export PATH="%{tde_bindir}:${PATH}"
+
+export PKG_CONFIG_PATH="%{tde_libdir}/pkgconfig"
+
+%if 0%{?rhel} || 0%{?fedora} || 0%{?suse_version}
+%__mkdir_p build
+cd build
+%endif
+
+%cmake \
+ -DCMAKE_INSTALL_PREFIX=%{tde_prefix} \
+ -DBIN_INSTALL_DIR=%{tde_bindir} \
+ -DINCLUDE_INSTALL_DIR=%{tde_tdeincludedir} \
+ -DLIB_INSTALL_DIR=%{tde_libdir} \
+ -DSHARE_INSTALL_PREFIX=%{tde_datadir} \
+ -DCMAKE_SKIP_RPATH="OFF" \
+ ..
+
+%__make %{?_smp_mflags}
+
+
+%install
+export PATH="%{tde_bindir}:${PATH}"
+%__rm -rf %{buildroot}
+%__make install DESTDIR=%{buildroot} -C build
+
+
+%clean
+%__rm -rf %{buildroot}
+
+
+%post
+update-desktop-database %{tde_appdir} > /dev/null
+/sbin/ldconfig
+touch --no-create %{tde_datadir}/icons/hicolor || :
+gtk-update-icon-cache --quiet %{tde_datadir}/icons/hicolor || :
+
+%postun
+update-desktop-database %{tde_appdir} > /dev/null
+/sbin/ldconfig
+touch --no-create %{tde_datadir}/icons/hicolor || :
+gtk-update-icon-cache --quiet %{tde_datadir}/icons/hicolor || :
+
+
+%files
+%defattr(-,root,root,-)
+%doc AUTHORS ChangeLog COPYING NEWS README TODO
+%{tde_bindir}/kpowersave
+%{tde_libdir}/libkdeinit_kpowersave.la
+%{tde_libdir}/libkdeinit_kpowersave.so
+%{tde_tdelibdir}/kpowersave.la
+%{tde_tdelibdir}/kpowersave.so
+%{tde_tdeappdir}/kpowersave.desktop
+%{tde_datadir}/apps/kpowersave/eventsrc
+%{tde_datadir}/apps/kpowersave/icons/*/*/*/*.png
+%{tde_datadir}/icons/hicolor/*/*/*.png
+%{tde_datadir}/autostart/kpowersave-autostart.desktop
+%{tde_datadir}/config/kpowersaverc
+
+%changelog
+* Wed Oct 03 2012 Francois Andriot <francois.andriot@free.fr> - 0.7.3-3
+- Initial build for TDE 3.5.13.1
+
+* Sat Nov 26 2011 Francois Andriot <francois.andriot@free.fr> - 0.7.3-2
+- Add missing /sbin/ldconfig
+- Add missing doc file
+
+* Sat Nov 19 2011 Francois Andriot <francois.andriot@free.fr> - 0.7.3-1
+- Initial build for RHEL 5, RHEL 6, Fedora 15, Fedora 16
diff --git a/redhat/applications/kradio/trinity-kradio-3.5.13.1.spec b/redhat/applications/kradio/trinity-kradio-3.5.13.1.spec
new file mode 100644
index 000000000..4f19e9172
--- /dev/null
+++ b/redhat/applications/kradio/trinity-kradio-3.5.13.1.spec
@@ -0,0 +1,176 @@
+# Default version for this component
+%define kdecomp kradio
+
+# If TDE is built in a specific prefix (e.g. /opt/trinity), the release will be suffixed with ".opt".
+%if "%{?tde_prefix}" != "/usr"
+%define _variant .opt
+%endif
+
+# TDE 3.5.13 specific building variables
+%define tde_bindir %{tde_prefix}/bin
+%define tde_datadir %{tde_prefix}/share
+%define tde_docdir %{tde_datadir}/doc
+%define tde_includedir %{tde_prefix}/include
+%define tde_libdir %{tde_prefix}/%{_lib}
+%define tde_mandir %{tde_datadir}/man
+%define tde_appdir %{tde_datadir}/applications
+
+%define tde_tdeappdir %{tde_appdir}/kde
+%define tde_tdedocdir %{tde_docdir}/tde
+%define tde_tdeincludedir %{tde_includedir}/tde
+%define tde_tdelibdir %{tde_libdir}/trinity
+
+%define _docdir %{tde_docdir}
+
+
+Name: trinity-%{kdecomp}
+Summary: Comfortable Radio Application for KDE [Trinity]
+Version: 0.1.1.1
+Release: 4%{?dist}%{?_variant}
+
+License: GPLv2+
+Group: Applications/Utilities
+
+Vendor: Trinity Project
+Packager: Francois Andriot <francois.andriot@free.fr>
+URL: http://www.trinitydesktop.org/
+
+Prefix: %{tde_prefix}
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+
+Source0: %{kdecomp}-3.5.13.1.tar.gz
+
+BuildRequires: trinity-tqtinterface-devel >= 3.5.13.1
+BuildRequires: trinity-tdelibs-devel >= 3.5.13.1
+BuildRequires: trinity-tdebase-devel >= 3.5.13.1
+BuildRequires: desktop-file-utils
+BuildRequires: gettext
+
+BuildRequires: libsndfile-devel
+BuildRequires: lirc-devel
+
+%if 0%{?mgaversion} || 0%{?mdkversion}
+BuildRequires: %{_lib}twolame-devel
+%endif
+%if 0%{?suse_version}
+BuildRequires: libtwolame-devel
+%endif
+%if 0%{?rhel} || 0%{?fedora}
+BuildRequires: lame-devel
+%endif
+
+%description
+KRadio is a comfortable radio application for Trinity with support for
+V4L and V4L2 radio cards drivers.
+
+KRadio currently provides
+
+ * V4L/V4L2 radio support
+ * Remote control support (LIRC)
+ * Alarms, sleep Countdown
+ * Several GUI Controls (Docking Menu, Station Quickbar, Radio Display)
+ * Recording capabilities, including MP3 and Ogg/Vorbis encoding
+ * Timeshifter functionality
+ * Extendable plugin architecture
+
+This package also includes a growing collection of station preset
+files for many cities around the world contributed by KRadio users.
+
+As KRadio is based on an extendable plugin architecture, contributions
+of new plugins (e.g. Internet Radio Streams, new cool GUIs) are welcome.
+
+
+%if 0%{?suse_version}
+%debug_package
+%endif
+
+
+%prep
+%setup -q -n %{kdecomp}-3.5.13.1
+
+# Ugly hack to modify TQT include directory inside autoconf files.
+# If TQT detection fails, it fallbacks to TQT4 instead of TQT3 !
+%__sed -i admin/acinclude.m4.in \
+ -e "s|/usr/include/tqt|%{tde_includedir}/tqt|g" \
+ -e "s|kde_htmldir='.*'|kde_htmldir='%{tde_tdedocdir}/HTML'|g"
+
+%__cp "/usr/share/aclocal/libtool.m4" "admin/libtool.m4.in"
+%__cp "/usr/share/libtool/config/ltmain.sh" "admin/ltmain.sh" || %__cp "/usr/share/libtool/ltmain.sh" "admin/ltmain.sh"
+%__make -f "admin/Makefile.common"
+
+
+%build
+unset QTDIR; . /etc/profile.d/qt3.sh
+export PATH="%{tde_bindir}:${PATH}"
+export LDFLAGS="-L%{tde_libdir} -I%{tde_includedir}"
+
+%configure \
+ --prefix=%{tde_prefix} \
+ --exec-prefix=%{tde_prefix} \
+ --bindir=%{tde_bindir} \
+ --datadir=%{tde_datadir} \
+ --libdir=%{tde_libdir} \
+ --mandir=%{tde_mandir} \
+ --includedir=%{tde_tdeincludedir} \
+ --disable-rpath \
+ --with-extra-includes=%{tde_includedir}/tqt \
+ --enable-lirc \
+ --enable-v4l2 \
+ --enable-lame \
+ --enable-ogg \
+ --enable-alsa \
+ --enable-oss
+
+%__make %{?_smp_mflags}
+
+
+%install
+export PATH="%{tde_bindir}:${PATH}"
+%__rm -rf %{buildroot}
+%__make install DESTDIR=%{buildroot}
+
+%find_lang %{kdecomp}
+
+%clean
+%__rm -rf %{buildroot}
+
+
+%post
+for f in hicolor locolor ; do
+ touch --no-create %{tde_datadir}/icons/${f} || :
+ gtk-update-icon-cache --quiet %{tde_datadir}/icons/${f} || :
+done
+update-desktop-database %{tde_appdir} -q &> /dev/null ||:
+
+%postun
+for f in hicolor locolor ; do
+ touch --no-create %{tde_datadir}/icons/${f} || :
+ gtk-update-icon-cache --quiet %{tde_datadir}/icons/${f} || :
+done
+update-desktop-database %{tde_appdir} -q &> /dev/null ||:
+
+
+%files -f %{kdecomp}.lang
+%defattr(-,root,root,-)
+%{tde_bindir}/convert-presets
+%{tde_bindir}/kradio
+%{tde_libdir}/kradio/plugins/*.la
+%{tde_libdir}/kradio/plugins/*.so
+%{tde_tdeappdir}/kradio.desktop
+%{tde_datadir}/apps/kradio/
+%{tde_datadir}/locale/*/LC_MESSAGES/kradio-*.mo
+
+%changelog
+* Wed Oct 03 2012 Francois Andriot <francois.andriot@free.fr> - 0.1.1.1-4
+- Initial build for TDE 3.5.13.1
+
+* Sun Jul 08 2012 Francois Andriot <francois.andriot@free.fr> - 0.1.1.1-3
+- Rebuild for RHEL 5
+- Fix postinstall
+
+* Wed May 02 2012 Francois Andriot <francois.andriot@free.fr> - 0.1.1.1-2
+- Rebuild for Fedora 17
+- Fix HTML directory location
+
+* Sat Nov 19 2011 Francois Andriot <francois.andriot@free.fr> - 0.1.1.1-1
+- Initial build for RHEL 5, RHEL 6, Fedora 15, Fedora 16
diff --git a/redhat/applications/kradio/trinity-kradio.spec b/redhat/applications/kradio/trinity-kradio-3.5.13.spec
index dfaedd47d..dfaedd47d 100644
--- a/redhat/applications/kradio/trinity-kradio.spec
+++ b/redhat/applications/kradio/trinity-kradio-3.5.13.spec
diff --git a/redhat/applications/krename/trinity-krename-3.5.13.1.spec b/redhat/applications/krename/trinity-krename-3.5.13.1.spec
new file mode 100644
index 000000000..17dceedbf
--- /dev/null
+++ b/redhat/applications/krename/trinity-krename-3.5.13.1.spec
@@ -0,0 +1,155 @@
+# Default version for this component
+%define kdecomp krename
+
+# If TDE is built in a specific prefix (e.g. /opt/trinity), the release will be suffixed with ".opt".
+%if "%{?tde_prefix}" != "/usr"
+%define _variant .opt
+%endif
+
+# TDE 3.5.13 specific building variables
+%define tde_bindir %{tde_prefix}/bin
+%define tde_datadir %{tde_prefix}/share
+%define tde_docdir %{tde_datadir}/doc
+%define tde_includedir %{tde_prefix}/include
+%define tde_libdir %{tde_prefix}/%{_lib}
+%define tde_mandir %{tde_datadir}/man
+%define tde_appdir %{tde_datadir}/applications
+
+%define tde_tdeappdir %{tde_appdir}/kde
+%define tde_tdedocdir %{tde_docdir}/tde
+%define tde_tdeincludedir %{tde_includedir}/tde
+%define tde_tdelibdir %{tde_libdir}/trinity
+
+%define _docdir %{tde_docdir}
+
+
+Name: trinity-%{kdecomp}
+Summary: A TDE batch file renaming utility.
+Version: 3.0.14
+Release: 5%{?dist}%{?_variant}
+
+License: GPLv2+
+Group: Applications/Utilities
+
+Vendor: Trinity Project
+Packager: Francois Andriot <francois.andriot@free.fr>
+URL: http://www.trinitydesktop.org/
+
+Prefix: %{tde_prefix}
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+
+Source0: %{kdecomp}-3.5.13.1.tar.gz
+
+BuildRequires: trinity-tqtinterface-devel >= 3.5.13.1
+BuildRequires: trinity-tdelibs-devel >= 3.5.13.1
+BuildRequires: trinity-tdebase-devel >= 3.5.13.1
+BuildRequires: desktop-file-utils
+
+%if 0%{?rhel} || 0%{?fedora} || 0%{?mgaversion} || 0%{?mdkversion}
+BuildRequires: imlib-devel
+%endif
+
+%description
+KRename is a powerful batch renamer for TDE. It allows you to easily rename hundreds or
+even more files in one go. The filenames can be created by parts of the original filename,
+numbering the files or accessing hundreds of informations about the file, like creation date
+or Exif informations of an image.
+
+%if 0%{?suse_version}
+%debug_package
+%endif
+
+
+%prep
+%setup -q -n %{kdecomp}-3.5.13.1
+
+# Ugly hack to modify TQT include directory inside autoconf files.
+# If TQT detection fails, it fallbacks to TQT4 instead of TQT3 !
+%__sed -i admin/acinclude.m4.in \
+ -e "s|/usr/include/tqt|%{tde_includedir}/tqt|g" \
+ -e "s|kde_htmldir='.*'|kde_htmldir='%{tde_tdedocdir}/HTML'|g"
+
+%__cp "/usr/share/aclocal/libtool.m4" "admin/libtool.m4.in"
+%__cp "/usr/share/libtool/config/ltmain.sh" "admin/ltmain.sh" || %__cp "/usr/share/libtool/ltmain.sh" "admin/ltmain.sh"
+%__make -f "admin/Makefile.common"
+
+
+%build
+unset QTDIR; . /etc/profile.d/qt3.sh
+export PATH="%{tde_bindir}:${PATH}"
+export LDFLAGS="-L%{tde_libdir} -I%{tde_includedir}"
+
+%configure \
+ --prefix=%{tde_prefix} \
+ --exec-prefix=%{tde_prefix} \
+ --bindir=%{tde_bindir} \
+ --datadir=%{tde_datadir} \
+ --libdir=%{tde_libdir} \
+ --mandir=%{tde_mandir} \
+ --includedir=%{tde_tdeincludedir} \
+ --disable-rpath \
+ --with-extra-includes=%{tde_includedir}/tqt \
+ --enable-closure
+
+%__make %{?_smp_mflags}
+
+
+%install
+export PATH="%{tde_bindir}:${PATH}"
+%__rm -rf %{buildroot}
+%__make install DESTDIR=%{buildroot}
+
+%find_lang %{kdecomp}
+
+
+%clean
+%__rm -rf %{buildroot}
+
+
+%post
+for f in hicolor locolor ; do
+ touch --no-create %{tde_datadir}/icons/${f} || :
+ gtk-update-icon-cache --quiet %{tde_datadir}/icons/${f} || :
+done
+update-desktop-database %{tde_appdir} &> /dev/null
+
+%postun
+for f in hicolor locolor ; do
+ touch --no-create %{tde_datadir}/icons/${f} || :
+ gtk-update-icon-cache --quiet %{tde_datadir}/icons/${f} || :
+done
+update-desktop-database %{tde_appdir} &> /dev/null
+
+%files -f %{kdecomp}.lang
+%defattr(-,root,root,-)
+%doc AUTHORS COPYING
+%{tde_bindir}/krename
+%{tde_tdeappdir}/krename.desktop
+%{tde_datadir}/apps/konqueror/servicemenus/krename_dir.desktop
+%{tde_datadir}/apps/konqueror/servicemenus/krenameservicemenu.desktop
+%{tde_datadir}/apps/krename/
+%{tde_tdedocdir}/HTML/en/krename/
+%{tde_datadir}/icons/hicolor/*/apps/krename.png
+%{tde_datadir}/icons/locolor/*/apps/krename.png
+
+
+%changelog
+* Wed Oct 03 2012 Francois Andriot <francois.andriot@free.fr> - 3.0.14-5
+- Initial build for TDE 3.5.13.1
+
+* Wed May 02 2012 Francois Andriot <francois.andriot@free.fr> - 3.0.14-4
+- Rebuild for Fedora 17
+- Fix HTML directory location
+
+* Sun Oct 30 2011 Francois Andriot <francois.andriot@free.fr> - 3.0.14-3
+- Rebuilt for TDE 3.5.13 on RHEL 6, RHEL 5 and Fedora 15
+
+* Tue Sep 14 2011 Francois Andriot <francois.andriot@free.fr> - 3.0.14-2
+- Import to GIT
+
+* Wed Aug 24 2011 Francois Andriot <francois.andriot@free.fr> - 3.0.14-1
+- Correct macro to install under "/opt", if desired
+
+* Sun Aug 14 2011 Francois Andriot <francois.andriot@free.fr> - 3.0.14-0
+- Initial build for RHEL 6.0
+
diff --git a/redhat/applications/krusader/trinity-krusader-3.5.13.1.spec b/redhat/applications/krusader/trinity-krusader-3.5.13.1.spec
new file mode 100644
index 000000000..5f389c7e4
--- /dev/null
+++ b/redhat/applications/krusader/trinity-krusader-3.5.13.1.spec
@@ -0,0 +1,164 @@
+# Default version for this component
+%define kdecomp krusader
+
+# If TDE is built in a specific prefix (e.g. /opt/trinity), the release will be suffixed with ".opt".
+%if "%{?tde_prefix}" != "/usr"
+%define _variant .opt
+%endif
+
+# TDE 3.5.13 specific building variables
+%define tde_bindir %{tde_prefix}/bin
+%define tde_datadir %{tde_prefix}/share
+%define tde_docdir %{tde_datadir}/doc
+%define tde_includedir %{tde_prefix}/include
+%define tde_libdir %{tde_prefix}/%{_lib}
+%define tde_mandir %{tde_datadir}/man
+%define tde_appdir %{tde_datadir}/applications
+
+%define tde_tdeappdir %{tde_appdir}/kde
+%define tde_tdedocdir %{tde_docdir}/tde
+%define tde_tdeincludedir %{tde_includedir}/tde
+%define tde_tdelibdir %{tde_libdir}/trinity
+
+%define _docdir %{tde_docdir}
+
+
+Name: trinity-%{kdecomp}
+Summary: twin-panel (commander-style) file manager for KDE (and other desktops)
+Version: 1.90.0
+Release: 3%{?dist}%{?_variant}
+
+License: GPLv2+
+Group: Applications/Utilities
+
+Vendor: Trinity Project
+Packager: Francois Andriot <francois.andriot@free.fr>
+URL: http://www.trinitydesktop.org/
+
+Prefix: %{tde_prefix}
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+
+Source0: %{kdecomp}-3.5.13.1.tar.gz
+
+BuildRequires: trinity-tqtinterface-devel >= 3.5.13.1
+BuildRequires: trinity-tdelibs-devel >= 3.5.13.1
+BuildRequires: trinity-tdebase-devel >= 3.5.13.1
+BuildRequires: trinity-tdebindings-devel >= 3.5.13.1
+BuildRequires: desktop-file-utils
+
+
+%description
+Krusader is a simple, easy, powerful, twin-panel (commander-style) file
+manager for TDE and other desktops, similar to Midnight Commander (C) or Total
+Commander (C).
+
+It provides all the file management features you could possibly want.
+
+Plus: extensive archive handling, mounted filesystem support, FTP,
+advanced search module, viewer/editor, directory synchronisation,
+file content comparisons, powerful batch renaming and much much more.
+
+It supports archive formats: ace, arj, bzip2, deb, iso, lha, rar, rpm, tar,
+zip and 7-zip.
+
+It handles KIOSlaves such as smb:// or fish://.
+
+Almost completely customizable, Krusader is very user friendly, fast and looks
+great on your desktop.
+
+
+%if 0%{?suse_version}
+%debug_package
+%endif
+
+
+%prep
+%setup -q -n %{kdecomp}-3.5.13.1
+
+# Ugly hack to modify TQT include directory inside autoconf files.
+# If TQT detection fails, it fallbacks to TQT4 instead of TQT3 !
+%__sed -i admin/acinclude.m4.in \
+ -e "s|/usr/include/tqt|%{tde_includedir}/tqt|g" \
+ -e "s|kde_htmldir='.*'|kde_htmldir='%{tde_tdedocdir}/HTML'|g"
+
+%__cp "/usr/share/aclocal/libtool.m4" "admin/libtool.m4.in"
+%__cp "/usr/share/libtool/config/ltmain.sh" "admin/ltmain.sh" || %__cp "/usr/share/libtool/ltmain.sh" "admin/ltmain.sh"
+%__make -f "admin/Makefile.common"
+
+
+%build
+unset QTDIR; . /etc/profile.d/qt3.sh
+export PATH="%{tde_bindir}:${PATH}"
+export LDFLAGS="-L%{tde_libdir} -I%{tde_includedir}"
+
+%configure \
+ --prefix=%{tde_prefix} \
+ --exec-prefix=%{tde_prefix} \
+ --bindir=%{tde_bindir} \
+ --datadir=%{tde_datadir} \
+ --libdir=%{tde_libdir} \
+ --mandir=%{tde_mandir} \
+ --includedir=%{tde_tdeincludedir} \
+ --disable-rpath \
+ --with-extra-includes=%{tde_includedir}/tqt
+
+%__make %{?_smp_mflags}
+
+
+%install
+export PATH="%{tde_bindir}:${PATH}"
+%__rm -rf %{buildroot}
+%__make install DESTDIR=%{buildroot}
+
+%find_lang %{kdecomp}
+
+%clean
+%__rm -rf %{buildroot}
+
+
+%post
+update-desktop-database %{tde_appdir} > /dev/null
+for f in crystalsvg locolor ; do
+ touch --no-create %{tde_datadir}/icons/${f} || :
+ gtk-update-icon-cache --quiet %{tde_datadir}/icons/${f} || :
+done
+
+%postun
+update-desktop-database %{tde_appdir} > /dev/null
+for f in crystalsvg locolor ; do
+ touch --no-create %{tde_datadir}/icons/${f} || :
+ gtk-update-icon-cache --quiet %{tde_datadir}/icons/${f} || :
+done
+
+
+%files -f %{kdecomp}.lang
+%defattr(-,root,root,-)
+%doc AUTHORS COPYING FAQ README TODO
+%{tde_bindir}/krusader
+%{tde_tdelibdir}/kio_krarc.la
+%{tde_tdelibdir}/kio_krarc.so
+%{tde_tdelibdir}/kio_virt.la
+%{tde_tdelibdir}/kio_virt.so
+%{tde_tdeappdir}/krusader.desktop
+%{tde_tdeappdir}/krusader_root-mode.desktop
+%{tde_datadir}/apps/krusader
+%{tde_tdedocdir}/HTML/en/krusader/
+%lang(ru) %{tde_tdedocdir}/HTML/ru/krusader/
+%{tde_datadir}/icons/crystalsvg/*/apps/*.png
+%{tde_datadir}/icons/locolor/*/apps/*.png
+%{tde_datadir}/services/krarc.protocol
+%{tde_datadir}/services/virt.protocol
+%{tde_mandir}/man1/krusader.1
+
+
+%changelog
+* Wed Oct 03 2012 Francois Andriot <francois.andriot@free.fr> - 1.90.0-3
+- Initial build for TDE 3.5.13.1
+
+* Wed May 02 2012 Francois Andriot <francois.andriot@free.fr> - 1.90.0-2
+- Rebuild for Fedora 17
+- GCC 4.7 fixes. [Commit #fdf6d340]
+
+* Sat Dec 03 2011 Francois Andriot <francois.andriot@free.fr> - 1.90.0-1
+- Initial build for RHEL 5, RHEL 6, Fedora 15, Fedora 16
+
diff --git a/redhat/applications/krusader/trinity-krusader.spec b/redhat/applications/krusader/trinity-krusader-3.5.13.spec
index d4e84f369..d4e84f369 100644
--- a/redhat/applications/krusader/trinity-krusader.spec
+++ b/redhat/applications/krusader/trinity-krusader-3.5.13.spec
diff --git a/redhat/applications/ksplash-engine-moodin/trinity-ksplash-engine-moodin-3.5.13.1.spec b/redhat/applications/ksplash-engine-moodin/trinity-ksplash-engine-moodin-3.5.13.1.spec
new file mode 100644
index 000000000..f57deda98
--- /dev/null
+++ b/redhat/applications/ksplash-engine-moodin/trinity-ksplash-engine-moodin-3.5.13.1.spec
@@ -0,0 +1,134 @@
+# Default version for this component
+%define kdecomp ksplash-engine-moodin
+
+# If TDE is built in a specific prefix (e.g. /opt/trinity), the release will be suffixed with ".opt".
+%if "%{?tde_prefix}" != "/usr"
+%define _variant .opt
+%endif
+
+# TDE 3.5.13 specific building variables
+%define tde_bindir %{tde_prefix}/bin
+%define tde_datadir %{tde_prefix}/share
+%define tde_docdir %{tde_datadir}/doc
+%define tde_includedir %{tde_prefix}/include
+%define tde_libdir %{tde_prefix}/%{_lib}
+%define tde_mandir %{tde_datadir}/man
+%define tde_appdir %{tde_datadir}/applications
+
+%define tde_tdeappdir %{tde_appdir}/kde
+%define tde_tdedocdir %{tde_docdir}/tde
+%define tde_tdeincludedir %{tde_includedir}/tde
+%define tde_tdelibdir %{tde_libdir}/trinity
+
+%define _docdir %{tde_docdir}
+
+
+Name: trinity-%{kdecomp}
+Summary: fading splash screen engine for Trinity
+Version: 0.4.2
+Release: 3%{?dist}%{?_variant}
+
+License: GPLv2+
+Group: Applications/Utilities
+
+Vendor: Trinity Project
+Packager: Francois Andriot <francois.andriot@free.fr>
+URL: http://www.trinitydesktop.org/
+
+Prefix: %{tde_prefix}
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+
+Source0: %{kdecomp}-3.5.13.1.tar.gz
+
+BuildRequires: trinity-tqtinterface-devel >= 3.5.13.1
+BuildRequires: trinity-tdelibs-devel >= 3.5.13.1
+BuildRequires: trinity-tdebase-devel >= 3.5.13.1
+BuildRequires: desktop-file-utils
+BuildRequires: gettext
+
+
+%description
+Heavily customizable engine for various types of themes.
+
+Features:
+* scale cache
+* fading images
+* use current icon set or custom images
+* unlimited Custom text labels
+* set fading delay and length
+* custom image arrangement
+* resolution independent themes
+
+This TDE splash screen engine is based upon Linspire's
+engine by Sean Meiners <Sean.Meiners@LinspireInc.com>
+
+Homepage: http://moodwrod.com
+
+
+%if 0%{?suse_version}
+%debug_package
+%endif
+
+
+%prep
+%setup -q -n %{kdecomp}-3.5.13.1
+
+# Ugly hack to modify TQT include directory inside autoconf files.
+# If TQT detection fails, it fallbacks to TQT4 instead of TQT3 !
+%__sed -i admin/acinclude.m4.in \
+ -e "s|/usr/include/tqt|%{tde_includedir}/tqt|g" \
+ -e "s|kde_htmldir='.*'|kde_htmldir='%{tde_tdedocdir}/HTML'|g"
+
+%__cp "/usr/share/aclocal/libtool.m4" "admin/libtool.m4.in"
+%__cp "/usr/share/libtool/config/ltmain.sh" "admin/ltmain.sh" || %__cp "/usr/share/libtool/ltmain.sh" "admin/ltmain.sh"
+%__make -f "admin/Makefile.common"
+
+
+%build
+unset QTDIR; . /etc/profile.d/qt3.sh
+export PATH="%{tde_bindir}:${PATH}"
+export LDFLAGS="-L%{tde_libdir} -I%{tde_includedir}"
+
+%configure \
+ --prefix=%{tde_prefix} \
+ --exec-prefix=%{tde_prefix} \
+ --bindir=%{tde_bindir} \
+ --datadir=%{tde_datadir} \
+ --libdir=%{tde_libdir} \
+ --mandir=%{tde_mandir} \
+ --includedir=%{tde_tdeincludedir} \
+ --disable-rpath \
+ --with-extra-includes=%{tde_includedir}/tqt
+
+%__make %{?_smp_mflags}
+
+
+%install
+export PATH="%{tde_bindir}:${PATH}"
+%__rm -rf %{buildroot}
+%__make install DESTDIR=%{buildroot}
+
+
+%clean
+%__rm -rf %{buildroot}
+
+
+%files
+%defattr(-,root,root,-)
+%{tde_tdelibdir}/ksplashmoodin.la
+%{tde_tdelibdir}/ksplashmoodin.so
+%{tde_datadir}/apps/ksplash/Themes/FingerPrint/
+%{tde_datadir}/apps/ksplash/Themes/MoodinKDE/
+%{tde_datadir}/services/ksplashmoodin.desktop
+
+
+%changelog
+* Wed Oct 03 2012 Francois Andriot <francois.andriot@free.fr> - 0.4.2-3
+- Initial build for TDE 3.5.13.1
+
+* Wed May 02 2012 Francois Andriot <francois.andriot@free.fr> - 0.4.2-2
+- Rebuild for Fedora 17
+- Removes post and postun
+
+* Sat Nov 19 2011 Francois Andriot <francois.andriot@free.fr> - 0.4.2-1
+- Initial build for RHEL 5, RHEL 6, Fedora 15, Fedora 16
diff --git a/redhat/applications/ksplash-engine-moodin/trinity-ksplash-engine-moodin.spec b/redhat/applications/ksplash-engine-moodin/trinity-ksplash-engine-moodin-3.5.13.spec
index 192bf9cc3..192bf9cc3 100644
--- a/redhat/applications/ksplash-engine-moodin/trinity-ksplash-engine-moodin.spec
+++ b/redhat/applications/ksplash-engine-moodin/trinity-ksplash-engine-moodin-3.5.13.spec
diff --git a/redhat/applications/ksquirrel/trinity-ksquirrel-3.5.13.1.spec b/redhat/applications/ksquirrel/trinity-ksquirrel-3.5.13.1.spec
new file mode 100644
index 000000000..248507fdc
--- /dev/null
+++ b/redhat/applications/ksquirrel/trinity-ksquirrel-3.5.13.1.spec
@@ -0,0 +1,154 @@
+# Default version for this component
+%define kdecomp ksquirrel
+
+# If TDE is built in a specific prefix (e.g. /opt/trinity), the release will be suffixed with ".opt".
+%if "%{?tde_prefix}" != "/usr"
+%define _variant .opt
+%endif
+
+# TDE 3.5.13 specific building variables
+%define tde_bindir %{tde_prefix}/bin
+%define tde_datadir %{tde_prefix}/share
+%define tde_docdir %{tde_datadir}/doc
+%define tde_includedir %{tde_prefix}/include
+%define tde_libdir %{tde_prefix}/%{_lib}
+%define tde_mandir %{tde_datadir}/man
+%define tde_appdir %{tde_datadir}/applications
+
+%define tde_tdeappdir %{tde_appdir}/kde
+%define tde_tdedocdir %{tde_docdir}/tde
+%define tde_tdeincludedir %{tde_includedir}/tde
+%define tde_tdelibdir %{tde_libdir}/trinity
+
+%define _docdir %{tde_docdir}
+
+
+Name: trinity-%{kdecomp}
+Summary: Powerful Trinity image viewer
+Version: 0.8.0
+Release: 3%{?dist}%{?_variant}
+
+License: GPLv2+
+Group: Amusements/Games
+
+Vendor: Trinity Project
+Packager: Francois Andriot <francois.andriot@free.fr>
+URL: http://www.trinitydesktop.org/
+
+Prefix: %{tde_prefix}
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+
+Source0: %{kdecomp}-3.5.13.1.tar.gz
+
+BuildRequires: trinity-tqtinterface-devel >= 3.5.13.1
+BuildRequires: trinity-tdelibs-devel >= 3.5.13.1
+BuildRequires: trinity-tdebase-devel >= 3.5.13.1
+BuildRequires: desktop-file-utils
+BuildRequires: gettext
+
+BuildRequires: trinity-libkipi-devel
+BuildRequires: trinity-libksquirrel-devel
+#BuildRequires: libkexif-devel
+
+%description
+KSquirrel is an image viewer for TDE with disk navigator, file tree,
+multiple directory view, thumbnails, extended thumbnails, dynamic
+format support, DCOP interface, KEXIF and KIPI plugins support.
+
+KSquirrel is a fast and convenient image viewer for KDE featuring
+OpenGL and dynamic format support.
+
+
+%if 0%{?suse_version}
+%debug_package
+%endif
+
+
+%prep
+%setup -q -n %{kdecomp}-3.5.13.1
+
+# Ugly hack to modify TQT include directory inside autoconf files.
+# If TQT detection fails, it fallbacks to TQT4 instead of TQT3 !
+%__sed -i admin/acinclude.m4.in \
+ -e "s|/usr/include/tqt|%{tde_includedir}/tqt|g" \
+ -e "s|kde_htmldir='.*'|kde_htmldir='%{tde_tdedocdir}/HTML'|g"
+
+%__cp "/usr/share/aclocal/libtool.m4" "admin/libtool.m4.in"
+%__cp "/usr/share/libtool/config/ltmain.sh" "admin/ltmain.sh" || %__cp "/usr/share/libtool/ltmain.sh" "admin/ltmain.sh"
+%__make -f "admin/Makefile.common"
+
+
+%build
+unset QTDIR; . /etc/profile.d/qt3.sh
+export PATH="%{tde_bindir}:${PATH}"
+export LDFLAGS="-L%{tde_libdir} -I%{tde_includedir}"
+
+%configure \
+ --prefix=%{tde_prefix} \
+ --exec-prefix=%{tde_prefix} \
+ --bindir=%{tde_bindir} \
+ --datadir=%{tde_datadir} \
+ --libdir=%{tde_libdir} \
+ --mandir=%{tde_mandir} \
+ --includedir=%{tde_tdeincludedir} \
+ --disable-rpath \
+ --with-extra-includes=%{tde_includedir}/tqt
+
+%__make %{?_smp_mflags}
+
+
+%install
+export PATH="%{tde_bindir}:${PATH}"
+%__rm -rf %{buildroot}
+%__make install DESTDIR=%{buildroot}
+
+%find_lang %{kdecomp}
+
+%clean
+%__rm -rf %{buildroot}
+
+
+%post
+update-desktop-database %{tde_appdir} > /dev/null
+touch --no-create %{tde_datadir}/icons/hicolor || :
+gtk-update-icon-cache --quiet %{tde_datadir}/icons/hicolor || :
+
+%postun
+update-desktop-database %{tde_appdir} > /dev/null
+touch --no-create %{tde_datadir}/icons/hicolor || :
+gtk-update-icon-cache --quiet %{tde_datadir}/icons/hicolor || :
+
+
+%files -f %{kdecomp}
+%defattr(-,root,root,-)
+%doc AUTHORS ChangeLog COPYING LICENSE LICENSE.GFDL LICENSE.LGPL README TODO
+%{tde_bindir}/ksquirrel
+%{tde_bindir}/ksquirrel-libs-configurator
+%{tde_bindir}/ksquirrel-libs-configurator-real
+%{tde_tdelibdir}/libksquirrelpart.la
+%{tde_tdelibdir}/libksquirrelpart.so
+%{tde_tdeappdir}/ksquirrel.desktop
+%{tde_datadir}/apps/dolphin/servicemenus/dolphksquirrel-dir.desktop
+%{tde_datadir}/apps/konqueror/servicemenus/konqksquirrel-dir.desktop
+%{tde_datadir}/apps/ksquirrel/
+%{tde_datadir}/apps/ksquirrelpart/ksquirrelpart.rc
+%{tde_datadir}/config/magic/x-ras.magic
+%{tde_datadir}/config/magic/x-sun.magic
+%{tde_datadir}/config/magic/x-utah.magic
+%{tde_tdedocdir}/HTML/*/ksquirrel
+%{tde_datadir}/icons/hicolor/*/apps/ksquirrel.png
+%{tde_datadir}/mimelnk/image/*.desktop
+%{tde_datadir}/services/ksquirrelpart.desktop
+%{tde_datadir}/locale/*/LC_MESSAGES/ksquirrel.mo
+%{tde_mandir}/man1/ksquirrel.1
+
+%changelog
+* Wed Oct 03 2012 Francois Andriot <francois.andriot@free.fr> - 0.8.0-3
+- Initial build for TDE 3.5.13.1
+
+* Wed May 02 2012 Francois Andriot <francois.andriot@free.fr> - 0.8.1-2
+- Rebuild for Fedora 17
+- Fix HTML directory location
+
+* Sun Nov 20 2011 Francois Andriot <francois.andriot@free.fr> - 0.8.0-1
+- Initial build for RHEL 5, RHEL 6, Fedora 15, Fedora 16
diff --git a/redhat/applications/ksquirrel/trinity-ksquirrel.spec b/redhat/applications/ksquirrel/trinity-ksquirrel-3.5.13.spec
index 90abc45cd..90abc45cd 100644
--- a/redhat/applications/ksquirrel/trinity-ksquirrel.spec
+++ b/redhat/applications/ksquirrel/trinity-ksquirrel-3.5.13.spec
diff --git a/redhat/applications/kstreamripper/trinity-kstreamripper-3.5.13.1.spec b/redhat/applications/kstreamripper/trinity-kstreamripper-3.5.13.1.spec
new file mode 100644
index 000000000..ed1fc0cf0
--- /dev/null
+++ b/redhat/applications/kstreamripper/trinity-kstreamripper-3.5.13.1.spec
@@ -0,0 +1,129 @@
+# Default version for this component
+%define kdecomp kstreamripper
+
+# If TDE is built in a specific prefix (e.g. /opt/trinity), the release will be suffixed with ".opt".
+%if "%{?tde_prefix}" != "/usr"
+%define _variant .opt
+%endif
+
+# TDE 3.5.13 specific building variables
+%define tde_bindir %{tde_prefix}/bin
+%define tde_datadir %{tde_prefix}/share
+%define tde_docdir %{tde_datadir}/doc
+%define tde_includedir %{tde_prefix}/include
+%define tde_libdir %{tde_prefix}/%{_lib}
+%define tde_mandir %{tde_datadir}/man
+%define tde_appdir %{tde_datadir}/applications
+
+%define tde_tdeappdir %{tde_appdir}/kde
+%define tde_tdedocdir %{tde_docdir}/tde
+%define tde_tdeincludedir %{tde_includedir}/tde
+%define tde_tdelibdir %{tde_libdir}/trinity
+
+%define _docdir %{tde_docdir}
+
+
+Name: trinity-%{kdecomp}
+Summary: TDE frontend for streamripper
+
+Version: 0.3.4
+Release: 2%{?dist}%{?_variant}
+
+License: GPLv2+
+Group: Applications/Utilities
+
+Vendor: Trinity Project
+Packager: Francois Andriot <francois.andriot@free.fr>
+URL: http://www.trinitydesktop.org/
+
+Prefix: %{tde_prefix}
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+
+Source0: %{kdecomp}-3.5.13.1.tar.gz
+
+Patch0: kstreamripper-3.5.13-missing_include_tqt.patch
+
+BuildRequires: trinity-tqtinterface-devel >= 3.5.13.1
+BuildRequires: trinity-arts-devel >= 3.5.13.1
+BuildRequires: trinity-tdelibs-devel >= 3.5.13.1
+BuildRequires: trinity-tdebase-devel >= 3.5.13.1
+BuildRequires: desktop-file-utils
+BuildRequires: scons
+
+
+%description
+KStreamRipper is a small frontend for the streamripper command
+line utility. Streamripper captures internet shoutcast radio streams
+on your harddisk and splits them up in mp3 files. KStreamRipper helps
+you with managing/ripping your preferred streams.
+
+
+%if 0%{?suse_version}
+%debug_package
+%endif
+
+
+%prep
+%setup -q -n %{kdecomp}-3.5.13.1
+%patch0 -p1
+
+%__sed -i kde.py \
+ -e "s|/usr/include/tqt|%{tde_includedir}/tqt|g" \
+ -e "s|include/kde|include/tde|g"
+
+%build
+unset QTDIR; . /etc/profile.d/qt3.sh
+export PATH="%{tde_bindir}:${PATH}"
+export LDFLAGS="-L%{tde_libdir} -I%{tde_includedir}"
+
+
+scons -Q -j4 \
+ qtlibs=${QTLIB:-${QTDIR}/%{_lib}}
+
+
+%install
+export PATH="%{tde_bindir}:${PATH}"
+%__rm -rf %{buildroot}
+%__make install DESTDIR=%{buildroot}
+
+
+
+## File lists
+# 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
+
+
+%clean
+%__rm -rf %{buildroot}
+
+
+
+%files
+%defattr(-,root,root,-)
+%{tde_bindir}/kstreamripper
+%{tde_datadir}/applnk/Utilities/kstreamripper.desktop
+%{tde_datadir}/apps/kstreamripper/kstreamripperui.rc
+%{tde_tdedocdir}/HTML/en/kstreamripper/
+
+
+
+%changelog
+* Wed Oct 03 2012 Francois Andriot <francois.andriot@free.fr> - 0.3.4-2
+- Initial build for TDE 3.5.13.1
+
+* Wed Nov 02 2011 Francois Andriot <francois.andriot@free.fr> - 0.3.4-1
+- Initial release for TDE 3.5.13 on RHEL 6, RHEL 5 and Fedora 15
diff --git a/redhat/applications/ksystemlog/trinity-ksystemlog-3.5.13.1.spec b/redhat/applications/ksystemlog/trinity-ksystemlog-3.5.13.1.spec
new file mode 100644
index 000000000..fb8419fbf
--- /dev/null
+++ b/redhat/applications/ksystemlog/trinity-ksystemlog-3.5.13.1.spec
@@ -0,0 +1,134 @@
+# Default version for this component
+%define kdecomp ksystemlog
+
+# If TDE is built in a specific prefix (e.g. /opt/trinity), the release will be suffixed with ".opt".
+%if "%{?tde_prefix}" != "/usr"
+%define _variant .opt
+%endif
+
+# TDE 3.5.13 specific building variables
+%define tde_bindir %{tde_prefix}/bin
+%define tde_datadir %{tde_prefix}/share
+%define tde_docdir %{tde_datadir}/doc
+%define tde_includedir %{tde_prefix}/include
+%define tde_libdir %{tde_prefix}/%{_lib}
+%define tde_mandir %{tde_datadir}/man
+%define tde_appdir %{tde_datadir}/applications
+
+%define tde_tdeappdir %{tde_appdir}/kde
+%define tde_tdedocdir %{tde_docdir}/tde
+%define tde_tdeincludedir %{tde_includedir}/tde
+%define tde_tdelibdir %{tde_libdir}/trinity
+
+%define _docdir %{tde_docdir}
+
+
+Name: trinity-%{kdecomp}
+Summary: system log viewer tool for Trinity
+Version: 0.3.2
+Release: 2%{?dist}%{?_variant}
+
+License: GPLv2+
+Group: Applications/System
+
+Vendor: Trinity Project
+Packager: Francois Andriot <francois.andriot@free.fr>
+URL: http://ksystemlog.forum-software.org
+
+Prefix: %{tde_prefix}
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+
+Source0: %{kdecomp}-3.5.13.1.tar.gz
+
+
+BuildRequires: trinity-tqtinterface-devel >= 3.5.13.1
+BuildRequires: trinity-tdelibs-devel >= 3.5.13.1
+BuildRequires: trinity-tdebase-devel >= 3.5.13.1
+BuildRequires: desktop-file-utils
+
+
+%description
+ksystemlog is a system log viewer tool for Trinity.
+
+This program is developed for being used by beginner users, which don't know
+how to find information about their Linux system, and how the log files are in
+their computer. But it is also designed for advanced users, who want to
+quickly see problems occuring on their server.
+
+
+%if 0%{?suse_version}
+%debug_package
+%endif
+
+
+%prep
+%setup -q -n %{kdecomp}-3.5.13.1
+
+# Ugly hack to modify TQT include directory inside autoconf files.
+# If TQT detection fails, it fallbacks to TQT4 instead of TQT3 !
+%__sed -i admin/acinclude.m4.in \
+ -e "s|/usr/include/tqt|%{tde_includedir}/tqt|g" \
+ -e "s|kde_htmldir='.*'|kde_htmldir='%{tde_tdedocdir}/HTML'|g"
+
+%__cp "/usr/share/aclocal/libtool.m4" "admin/libtool.m4.in"
+%__cp "/usr/share/libtool/config/ltmain.sh" "admin/ltmain.sh" || %__cp "/usr/share/libtool/ltmain.sh" "admin/ltmain.sh"
+%__make -f "admin/Makefile.common"
+
+
+%build
+unset QTDIR; . /etc/profile.d/qt3.sh
+export PATH="%{tde_bindir}:${PATH}"
+export LDFLAGS="-L%{tde_libdir} -I%{tde_includedir}"
+
+%configure \
+ --prefix=%{tde_prefix} \
+ --exec-prefix=%{tde_prefix} \
+ --bindir=%{tde_bindir} \
+ --datadir=%{tde_datadir} \
+ --libdir=%{tde_libdir} \
+ --mandir=%{tde_mandir} \
+ --includedir=%{tde_tdeincludedir} \
+ --disable-rpath \
+ --with-extra-includes=%{tde_includedir}/tqt \
+ --enable-closure
+
+%__make %{?_smp_mflags}
+
+
+%install
+export PATH="%{tde_bindir}:${PATH}"
+%__rm -rf %{buildroot}
+%__make install DESTDIR=%{buildroot}
+
+
+%clean
+%__rm -rf %{buildroot}
+
+
+%post
+touch --no-create %{tde_datadir}/icons/hicolor || :
+gtk-update-icon-cache --quiet %{tde_datadir}/icons/hicolor || :
+
+%postun
+touch --no-create %{tde_datadir}/icons/hicolor || :
+gtk-update-icon-cache --quiet %{tde_datadir}/icons/hicolor || :
+
+
+%files
+%defattr(-,root,root,-)
+%doc AUTHORS ChangeLog COPYING README
+%{tde_bindir}/ksystemlog
+%{tde_datadir}/applnk/Utilities/ksystemlog.desktop
+%{tde_datadir}/apps/ksystemlog/ksystemlogui.rc
+%{tde_datadir}/config.kcfg/ksystemlog.kcfg
+%{tde_datadir}/icons/hicolor/*/apps/ksystemlog.png
+%{tde_datadir}/icons/hicolor/*/apps/ksystemlog.svgz
+
+
+%changelog
+* Wed Oct 03 2012 Francois Andriot <francois.andriot@free.fr> - 0.3.2-2
+- Initial build for TDE 3.5.13.1
+
+* Sat Dec 03 2011 Francois Andriot <francois.andriot@free.fr> - 0.3.2-1
+- Initial build for RHEL 5, RHEL 6, Fedora 15, Fedora 16
+
diff --git a/redhat/applications/ksystemlog/trinity-ksystemlog.spec b/redhat/applications/ksystemlog/trinity-ksystemlog-3.5.13.spec
index 9f74d8b0a..9f74d8b0a 100644
--- a/redhat/applications/ksystemlog/trinity-ksystemlog.spec
+++ b/redhat/applications/ksystemlog/trinity-ksystemlog-3.5.13.spec
diff --git a/redhat/applications/ktechlab/ktechlab-3.5.13.1-remove_gpsim_link.patch b/redhat/applications/ktechlab/ktechlab-3.5.13.1-remove_gpsim_link.patch
new file mode 100644
index 000000000..fd49dd7bc
--- /dev/null
+++ b/redhat/applications/ktechlab/ktechlab-3.5.13.1-remove_gpsim_link.patch
@@ -0,0 +1,11 @@
+--- ktechlab-3.5.13.1/src/Makefile.am.ORI 2012-10-04 22:06:34.854692286 +0200
++++ ktechlab-3.5.13.1/src/Makefile.am 2012-10-04 22:06:44.350472919 +0200
+@@ -19,7 +19,7 @@
+ $(top_builddir)/src/mechanics/libmechanics.la $(top_builddir)/src/electronics/libelectronics.la \
+ $(top_builddir)/src/electronics/simulation/libelements.la $(top_builddir)/src/electronics/components/libcomponents.la \
+ $(top_builddir)/src/languages/liblanguages.la $(top_builddir)/src/drawparts/libdrawparts.la \
+- $(top_builddir)/src/core/libcore.la -lkutils -lktexteditor $(LIB_KFILE) $(LIB_KDEPRINT) $(LIB_QT) $(LIB_GPSIM) -lgpsimgui
++ $(top_builddir)/src/core/libcore.la -lkutils -lktexteditor $(LIB_KFILE) $(LIB_KDEPRINT) $(LIB_QT) $(LIB_GPSIM) $(LIB_GPSIM)
+
+ # which sources should be compiled for ktechlab
+ ktechlab_SOURCES = ktechlab.cpp node.cpp connector.cpp itemlibrary.cpp \
diff --git a/redhat/applications/ktechlab/trinity-ktechlab-3.5.13.1.spec b/redhat/applications/ktechlab/trinity-ktechlab-3.5.13.1.spec
new file mode 100644
index 000000000..20361e479
--- /dev/null
+++ b/redhat/applications/ktechlab/trinity-ktechlab-3.5.13.1.spec
@@ -0,0 +1,145 @@
+# Default version for this component
+%define kdecomp ktechlab
+
+# If TDE is built in a specific prefix (e.g. /opt/trinity), the release will be suffixed with ".opt".
+%if "%{?tde_prefix}" != "/usr"
+%define _variant .opt
+%endif
+
+# TDE 3.5.13 specific building variables
+%define tde_bindir %{tde_prefix}/bin
+%define tde_datadir %{tde_prefix}/share
+%define tde_docdir %{tde_datadir}/doc
+%define tde_includedir %{tde_prefix}/include
+%define tde_libdir %{tde_prefix}/%{_lib}
+%define tde_mandir %{tde_datadir}/man
+%define tde_appdir %{tde_datadir}/applications
+
+%define tde_tdeappdir %{tde_appdir}/kde
+%define tde_tdedocdir %{tde_docdir}/tde
+%define tde_tdeincludedir %{tde_includedir}/tde
+%define tde_tdelibdir %{tde_libdir}/trinity
+
+%define _docdir %{tde_docdir}
+
+
+Name: trinity-%{kdecomp}
+Summary: circuit simulator for microcontrollers and electronics [Trinity]
+Version: 0.3
+Release: 3%{?dist}%{?_variant}
+
+License: GPLv2+
+Group: Applications/Utilities
+
+Vendor: Trinity Project
+Packager: Francois Andriot <francois.andriot@free.fr>
+URL: http://www.trinitydesktop.org/
+
+Prefix: %{tde_prefix}
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+
+Source0: %{kdecomp}-3.5.13.1.tar.gz
+
+# [ktechlab] Removes harcoded gpsim linking
+Patch1: ktechlab-3.5.13.1-remove_gpsim_link.patch
+
+BuildRequires: trinity-tqtinterface-devel >= 3.5.13.1
+BuildRequires: trinity-tdelibs-devel >= 3.5.13.1
+BuildRequires: trinity-tdebase-devel >= 3.5.13.1
+BuildRequires: desktop-file-utils
+BuildRequires: gettext
+
+
+%description
+KTechlab is a circuit simulator with a nice, clickable and discoverable
+interface. It supports many discrete components, logic circuits as well
+as PIC programming in its own Basic dialect and some form of assembler.
+
+Homepage: http://ktechlab.org/
+
+
+%if 0%{?suse_version}
+%debug_package
+%endif
+
+
+%prep
+%setup -q -n %{kdecomp}-3.5.13.1
+%patch1 -p1 -b .gpsim
+
+# Ugly hack to modify TQT include directory inside autoconf files.
+# If TQT detection fails, it fallbacks to TQT4 instead of TQT3 !
+%__sed -i admin/acinclude.m4.in \
+ -e "s|/usr/include/tqt|%{tde_includedir}/tqt|g" \
+ -e "s|kde_htmldir='.*'|kde_htmldir='%{tde_tdedocdir}/HTML'|g"
+
+%__cp -f "/usr/share/aclocal/libtool.m4" "admin/libtool.m4.in"
+%__cp -f "/usr/share/libtool/config/ltmain.sh" "admin/ltmain.sh" || %__cp -f "/usr/share/libtool/ltmain.sh" "admin/ltmain.sh"
+%__make -f "admin/Makefile.common"
+
+
+%build
+unset QTDIR; . /etc/profile.d/qt3.sh
+export PATH="%{tde_bindir}:${PATH}"
+export LDFLAGS="-L%{tde_libdir} -I%{tde_includedir}"
+
+%configure \
+ --prefix=%{tde_prefix} \
+ --exec-prefix=%{tde_prefix} \
+ --bindir=%{tde_bindir} \
+ --datadir=%{tde_datadir} \
+ --libdir=%{tde_libdir} \
+ --mandir=%{tde_mandir} \
+ --includedir=%{tde_tdeincludedir} \
+ --disable-rpath \
+ --with-extra-includes=%{tde_includedir}/tqt
+
+%__make %{?_smp_mflags}
+
+
+%install
+export PATH="%{tde_bindir}:${PATH}"
+%__rm -rf %{buildroot}
+%__make install DESTDIR=%{buildroot}
+
+%find_lang %{kdecomp}
+
+%clean
+%__rm -rf %{buildroot}
+
+
+%post
+touch --no-create %{tde_datadir}/icons/hicolor || :
+gtk-update-icon-cache --quiet %{tde_datadir}/icons/hicolor || :
+
+%postun
+touch --no-create %{tde_datadir}/icons/hicolor || :
+gtk-update-icon-cache --quiet %{tde_datadir}/icons/hicolor || :
+
+
+%files -f %{kdecomp}.lang
+%defattr(-,root,root,-)
+%{tde_bindir}/ktechlab
+%{tde_bindir}/microbe
+%{tde_datadir}/applnk/Development/ktechlab.desktop
+%{tde_datadir}/apps/katepart/syntax/microbe.xml
+%{tde_datadir}/apps/ktechlab
+%{tde_datadir}/config.kcfg/ktechlab.kcfg
+%{tde_tdedocdir}/HTML/en/ktechlab/
+%{tde_datadir}/icons/hicolor/*/*/*.png
+%{tde_datadir}/mimelnk/application/x-circuit.desktop
+%{tde_datadir}/mimelnk/application/x-flowcode.desktop
+%{tde_datadir}/mimelnk/application/x-ktechlab.desktop
+%{tde_datadir}/mimelnk/application/x-microbe.desktop
+
+
+%changelog
+* Wed Oct 03 2012 Francois Andriot <francois.andriot@free.fr> - 0.3-3
+- Initial build for TDE 3.5.13.1
+
+* Fri Nov 25 2011 Francois Andriot <francois.andriot@free.fr> - 0.3-2
+- Fix HTML directory location
+
+* Thu Nov 24 2011 Francois Andriot <francois.andriot@free.fr> - 0.3-1
+- Initial build for RHEL 5, RHEL 6, Fedora 15, Fedora 16
+- Fix list of icons to install [Bug #990]
diff --git a/redhat/applications/ktechlab/trinity-ktechlab.spec b/redhat/applications/ktechlab/trinity-ktechlab-3.5.13.spec
index 45134f847..45134f847 100644
--- a/redhat/applications/ktechlab/trinity-ktechlab.spec
+++ b/redhat/applications/ktechlab/trinity-ktechlab-3.5.13.spec
diff --git a/redhat/applications/ktorrent/trinity-ktorrent-3.5.13.1.spec b/redhat/applications/ktorrent/trinity-ktorrent-3.5.13.1.spec
new file mode 100644
index 000000000..1502ccf3d
--- /dev/null
+++ b/redhat/applications/ktorrent/trinity-ktorrent-3.5.13.1.spec
@@ -0,0 +1,182 @@
+# Default version for this component
+%define kdecomp ktorrent
+
+# If TDE is built in a specific prefix (e.g. /opt/trinity), the release will be suffixed with ".opt".
+%if "%{?tde_prefix}" != "/usr"
+%define _variant .opt
+%endif
+
+# TDE 3.5.13 specific building variables
+%define tde_bindir %{tde_prefix}/bin
+%define tde_datadir %{tde_prefix}/share
+%define tde_docdir %{tde_datadir}/doc
+%define tde_includedir %{tde_prefix}/include
+%define tde_libdir %{tde_prefix}/%{_lib}
+%define tde_mandir %{tde_datadir}/man
+%define tde_appdir %{tde_datadir}/applications
+
+%define tde_tdeappdir %{tde_appdir}/kde
+%define tde_tdedocdir %{tde_docdir}/tde
+%define tde_tdeincludedir %{tde_includedir}/tde
+%define tde_tdelibdir %{tde_libdir}/trinity
+
+%define _docdir %{tde_docdir}
+
+
+Name: trinity-%{kdecomp}
+Summary: BitTorrent client for Trinity
+Version: 2.2.8
+Release: 2%{?dist}%{?_variant}
+
+License: GPLv2+
+Group: Applications/Utilities
+
+Vendor: Trinity Project
+Packager: Francois Andriot <francois.andriot@free.fr>
+URL: http://ktorrent.org
+
+Prefix: %{tde_prefix}
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+
+Source0: %{kdecomp}-3.5.13.1.tar.gz
+
+
+BuildRequires: trinity-tqtinterface-devel >= 3.5.13.1
+BuildRequires: trinity-tdelibs-devel >= 3.5.13.1
+BuildRequires: trinity-tdebase-devel >= 3.5.13.1
+BuildRequires: desktop-file-utils
+BuildRequires: gettext
+
+
+%description
+KTorrent is a BitTorrent program for Trinity. Its features include speed capping
+(both down and up), integrated searching, UDP tracker support, preview of
+certain file types (video and audio) and integration into the KDE Panel
+enabling background downloading.
+
+
+%if 0%{?suse_version}
+%debug_package
+%endif
+
+
+%prep
+%setup -q -n %{kdecomp}-3.5.13.1
+
+# Ugly hack to modify TQT include directory inside autoconf files.
+# If TQT detection fails, it fallbacks to TQT4 instead of TQT3 !
+%__sed -i admin/acinclude.m4.in \
+ -e "s|/usr/include/tqt|%{tde_includedir}/tqt|g" \
+ -e "s|kde_htmldir='.*'|kde_htmldir='%{tde_tdedocdir}/HTML'|g"
+
+%__cp -f "/usr/share/aclocal/libtool.m4" "admin/libtool.m4.in"
+%__cp -f "/usr/share/libtool/config/ltmain.sh" "admin/ltmain.sh" || %__cp -f "/usr/share/libtool/ltmain.sh" "admin/ltmain.sh"
+%__make -f "admin/Makefile.common"
+
+
+%build
+unset QTDIR; . /etc/profile.d/qt3.sh
+export PATH="%{tde_bindir}:${PATH}"
+export LDFLAGS="-L%{tde_libdir} -I%{tde_includedir}"
+
+%configure \
+ --prefix=%{tde_prefix} \
+ --exec-prefix=%{tde_prefix} \
+ --bindir=%{tde_bindir} \
+ --datadir=%{tde_datadir} \
+ --libdir=%{tde_libdir} \
+ --mandir=%{tde_mandir} \
+ --includedir=%{tde_tdeincludedir} \
+ --disable-rpath \
+ --with-extra-includes=%{tde_includedir}/tqt
+
+
+# Not SMP safe !
+%__make
+
+
+%install
+export PATH="%{tde_bindir}:${PATH}"
+%__rm -rf %{buildroot}
+%__make install DESTDIR=%{buildroot}
+
+
+%find_lang %{kdecomp}
+
+# Unwanted files
+%__rm -f %{?buildroot}%{tde_libdir}/libktorrent.so
+
+
+%clean
+%__rm -rf %{buildroot}
+
+
+%post
+update-desktop-database %{tde_appdir} > /dev/null
+touch --no-create %{tde_datadir}/icons/hicolor || :
+gtk-update-icon-cache --quiet %{tde_datadir}/icons/hicolor || :
+/sbin/ldconfig || :
+
+%postun
+update-desktop-database %{tde_appdir} > /dev/null
+touch --no-create %{tde_datadir}/icons/hicolor || :
+gtk-update-icon-cache --quiet %{tde_datadir}/icons/hicolor || :
+/sbin/ldconfig || :
+
+
+%files -f %{kdecomp}.lang
+%defattr(-,root,root,-)
+%{tde_bindir}/ktcachecheck
+%{tde_bindir}/ktorrent
+%{tde_bindir}/ktshell
+%{tde_bindir}/kttorinfo
+%{tde_bindir}/ktupnptest
+%{tde_libdir}/libktorrent-%{version}.so
+%{tde_libdir}/libktorrent.la
+%{tde_tdelibdir}/ktinfowidgetplugin.la
+%{tde_tdelibdir}/ktinfowidgetplugin.so
+%{tde_tdelibdir}/ktipfilterplugin.la
+%{tde_tdelibdir}/ktipfilterplugin.so
+%{tde_tdelibdir}/ktlogviewerplugin.la
+%{tde_tdelibdir}/ktlogviewerplugin.so
+%{tde_tdelibdir}/ktpartfileimportplugin.la
+%{tde_tdelibdir}/ktpartfileimportplugin.so
+%{tde_tdelibdir}/ktrssfeedplugin.la
+%{tde_tdelibdir}/ktrssfeedplugin.so
+%{tde_tdelibdir}/ktscanfolderplugin.la
+%{tde_tdelibdir}/ktscanfolderplugin.so
+%{tde_tdelibdir}/ktschedulerplugin.la
+%{tde_tdelibdir}/ktschedulerplugin.so
+%{tde_tdelibdir}/ktsearchplugin.la
+%{tde_tdelibdir}/ktsearchplugin.so
+%{tde_tdelibdir}/ktstatsplugin.la
+%{tde_tdelibdir}/ktstatsplugin.so
+%{tde_tdelibdir}/ktupnpplugin.la
+%{tde_tdelibdir}/ktupnpplugin.so
+%{tde_tdelibdir}/ktwebinterfaceplugin.la
+%{tde_tdelibdir}/ktwebinterfaceplugin.so
+%{tde_tdeappdir}/ktorrent.desktop
+%{tde_datadir}/apps/ktorrent
+%{tde_datadir}/config.kcfg/*.kcfg
+%{tde_datadir}/icons/hicolor/*/*/*.png
+%{tde_datadir}/icons/hicolor/*/*/*.svgz
+%{tde_datadir}/services/*.desktop
+%{tde_datadir}/servicetypes/ktorrentplugin.desktop
+
+
+%changelog
+* Wed Oct 03 2012 Francois Andriot <francois.andriot@free.fr> - 2.2.8-2
+- Initial build for TDE 3.5.13.1
+
+* Sat May 05 2012 Francois Andriot <francois.andriot@free.fr> - 2.2.8-1
+- Rename old tq methods that no longer need a unique name [Commit #a90eb215]
+- Remove additional unneeded tq method conversions [Commit #bb37c405]
+- Rename obsolete tq methods to standard names [Commit #0d48fca8]
+- Rename a few stragglers [Commit #c3480dfe]
+- Fix inadvertent "TQ" changes. [Commit #445a5152]
+- Fix configure output message to clarify that missing avahi support is caused by missing avahi-tqt package as well as avahi-client. [Commit #03d0c794]
+- Update ktorrent package to 2.2.8 and fix internal geoip database. [Bug #363] [Commit #5af9907f]
+- Change default configuration to use external geoip database when found and use internal database only when external database is not found. [Bug #443] [Commit #355c6b69]
+
+* Tue Nov 29 2011 Francois Andriot <francois.andriot@free.fr> - 2.2.6-1
+- Initial build for RHEL 5, RHEL 6, Fedora 15, Fedora 16
diff --git a/redhat/applications/ktorrent/trinity-ktorrent.spec b/redhat/applications/ktorrent/trinity-ktorrent-3.5.13.spec
index cee7ff745..cee7ff745 100644
--- a/redhat/applications/ktorrent/trinity-ktorrent.spec
+++ b/redhat/applications/ktorrent/trinity-ktorrent-3.5.13.spec
diff --git a/redhat/applications/kuickshow/trinity-kuickshow-3.5.13.1.spec b/redhat/applications/kuickshow/trinity-kuickshow-3.5.13.1.spec
new file mode 100644
index 000000000..49f64f5a6
--- /dev/null
+++ b/redhat/applications/kuickshow/trinity-kuickshow-3.5.13.1.spec
@@ -0,0 +1,151 @@
+# Default version for this component
+%define kdecomp kuickshow
+
+# If TDE is built in a specific prefix (e.g. /opt/trinity), the release will be suffixed with ".opt".
+%if "%{?tde_prefix}" != "/usr"
+%define _variant .opt
+%endif
+
+# TDE 3.5.13 specific building variables
+%define tde_bindir %{tde_prefix}/bin
+%define tde_datadir %{tde_prefix}/share
+%define tde_docdir %{tde_datadir}/doc
+%define tde_includedir %{tde_prefix}/include
+%define tde_libdir %{tde_prefix}/%{_lib}
+%define tde_mandir %{tde_datadir}/man
+%define tde_appdir %{tde_datadir}/applications
+
+%define tde_tdeappdir %{tde_appdir}/kde
+%define tde_tdedocdir %{tde_docdir}/tde
+%define tde_tdeincludedir %{tde_includedir}/tde
+%define tde_tdelibdir %{tde_libdir}/trinity
+
+%define _docdir %{tde_docdir}
+
+
+Name: trinity-%{kdecomp}
+Summary: Quick picture viewer for KDE
+Version: 0.8.13
+Release: 5%{?dist}%{?_variant}
+
+License: GPLv2+
+Group: Applications/Utilities
+
+Vendor: Trinity Project
+Packager: Francois Andriot <francois.andriot@free.fr>
+URL: http://www.trinitydesktop.org/
+
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+
+Source0: %{kdecomp}-3.5.13.1.tar.gz
+
+BuildRequires: trinity-tqtinterface-devel >= 3.5.13.1
+BuildRequires: trinity-tdelibs-devel >= 3.5.13.1
+BuildRequires: trinity-tdebase-devel >= 3.5.13.1
+BuildRequires: desktop-file-utils
+
+%if 0%{?rhel} || 0%{?fedora} || 0%{?mgaversion} || 0%{?mdkversion}
+BuildRequires: imlib-devel
+%endif
+
+%description
+Kuickshow is a picture viewer for KDE. It displays the directory structure,
+displaying images as thumbnails.
+Clicking on an image shows the image in its normal size.
+
+
+%if 0%{?suse_version}
+%debug_package
+%endif
+
+
+%prep
+%setup -q -n %{kdecomp}-3.5.13.1
+
+# Ugly hack to modify TQT include directory inside autoconf files.
+# If TQT detection fails, it fallbacks to TQT4 instead of TQT3 !
+%__sed -i admin/acinclude.m4.in \
+ -e "s|/usr/include/tqt|%{tde_includedir}/tqt|g" \
+ -e "s|kde_htmldir='.*'|kde_htmldir='%{tde_tdedocdir}/HTML'|g"
+
+%__cp -f "/usr/share/aclocal/libtool.m4" "admin/libtool.m4.in"
+%__cp -f "/usr/share/libtool/config/ltmain.sh" "admin/ltmain.sh" || %__cp -f "/usr/share/libtool/ltmain.sh" "admin/ltmain.sh"
+%__make -f "admin/Makefile.common"
+
+
+%build
+unset QTDIR; . /etc/profile.d/qt3.sh
+export PATH="%{tde_bindir}:${PATH}"
+export LDFLAGS="-L%{tde_libdir} -I%{tde_includedir}"
+
+%configure \
+ --prefix=%{tde_prefix} \
+ --exec-prefix=%{tde_prefix} \
+ --bindir=%{tde_bindir} \
+ --datadir=%{tde_datadir} \
+ --libdir=%{tde_libdir} \
+ --mandir=%{tde_mandir} \
+ --includedir=%{tde_tdeincludedir} \
+ --disable-rpath \
+ --with-extra-includes=%{tde_includedir}/tqt \
+ --enable-closure
+
+%__make %{?_smp_mflags}
+
+
+%install
+export PATH="%{tde_bindir}:${PATH}"
+%__rm -rf %{buildroot}
+%__make install DESTDIR=%{?buildroot}
+
+
+%clean
+%__rm -rf %{buildroot}
+
+
+%post
+touch --no-create %{tde_datadir}/icons/hicolor || :
+gtk-update-icon-cache --quiet %{tde_datadir}/icons/hicolor || :
+/sbin/ldconfig
+
+%postun
+touch --no-create %{tde_datadir}/icons/hicolor || :
+gtk-update-icon-cache --quiet %{tde_datadir}/icons/hicolor || :
+/sbin/ldconfig
+
+%files
+%defattr(-,root,root,-)
+%doc AUTHORS COPYING
+%{tde_bindir}/*
+%{tde_datadir}/applications/*/*.desktop
+%{tde_datadir}/apps/*/
+%{tde_datadir}/icons/hicolor/*/*/*
+%{tde_libdir}/lib[kt]deinit_%{kdecomp}.so
+%{tde_libdir}/*.la
+%{tde_tdelibdir}/*.so
+%{tde_tdelibdir}/*.la
+%{tde_tdedocdir}/HTML/en/*/
+
+
+%changelog
+* Wed Oct 03 2012 Francois Andriot <francois.andriot@free.fr> - 0.8.13-5
+- Initial build for TDE 3.5.13.1
+
+* Mon Jul 09 2012 Francois Andriot <francois.andriot@free.fr> - 0.8.13-3
+- Removes conflict with 'kdegraphics'
+
+* Sat May 05 2012 Francois Andriot <francois.andriot@free.fr> - 0.8.13-3
+- Rename old tq methods that no longer need a unique name [Commit #8712ab46]
+- Remove additional unneeded tq method conversions [Commit #28d9c774]
+- Rename obsolete tq methods to standard names [Commit #bdeb8b3a]
+- Remove inadvertent renaming [Commit #d97e403f] [Bug #863]
+
+* Tue Sep 14 2011 Francois Andriot <francois.andriot@free.fr> - 0.8.13-2
+- Import to GIT
+
+* Mon Aug 22 2011 Francois Andriot <francois.andriot@free.fr> - 0.8.13-1
+- Correct macro to install under "/opt", if desired
+
+* Sat Aug 13 2011 Francois Andriot <francois.andriot@free.fr> - 0.8.13-0
+- Initial build for RHEL 6.0
+
diff --git a/redhat/applications/kvirc/kvirc-3.5.13.1-directories.patch b/redhat/applications/kvirc/kvirc-3.5.13.1-directories.patch
new file mode 100644
index 000000000..7f547d820
--- /dev/null
+++ b/redhat/applications/kvirc/kvirc-3.5.13.1-directories.patch
@@ -0,0 +1,26 @@
+--- kvirc/admin/acinclude.m4.in.ORI 2011-11-25 19:57:17.296988361 +0100
++++ kvirc/admin/acinclude.m4.in 2011-11-25 19:57:47.365665354 +0100
+@@ -2603,10 +2603,10 @@
+ helpdir="\${globalkvircdir}/help/en"
+ AC_SUBST(helpdir)
+
+- pluglibdir="\${globalkvircdir}/modules"
++ pluglibdir="\${libdir}/kvirc/$SS_DIRTAG/modules"
+ AC_SUBST(pluglibdir)
+
+- modulelibdir="\${globalkvircdir}/modules"
++ modulelibdir="\${libdir}/kvirc/$SS_DIRTAG/modules"
+ AC_SUBST(modulelibdir)
+
+ defscriptdir="\${globalkvircdir}/defscript"
+--- kvirc/configure.in.ORI 2012-08-06 13:48:54.586710376 +0200
++++ kvirc/configure.in 2012-08-06 13:50:31.344841522 +0200
+@@ -100,7 +100,7 @@
+
+ AC_SS_HEADER([Checking KDE])
+
+-SS_KDE_GENERAL_FILE_TO_SEARCH="include/kwin.h"
++SS_KDE_GENERAL_FILE_TO_SEARCH="include/kwin.h include/tde/kwin.h include/kde/kwin.h"
+ SS_KDE_INCLUDE_FILE_TO_SEARCH="kwin.h"
+
+ AC_SS_FIND_KDE
diff --git a/redhat/applications/kvirc/kvirc-3.5.13.1-fix_arts_detection.patch b/redhat/applications/kvirc/kvirc-3.5.13.1-fix_arts_detection.patch
new file mode 100644
index 000000000..d48d0a0d4
--- /dev/null
+++ b/redhat/applications/kvirc/kvirc-3.5.13.1-fix_arts_detection.patch
@@ -0,0 +1,11 @@
+--- kvirc-3.5.13.1/admin/acinclude.m4.in.ORI 2012-10-06 19:19:30.073415124 +0200
++++ kvirc-3.5.13.1/admin/acinclude.m4.in 2012-10-06 19:19:42.785136998 +0200
+@@ -1105,7 +1105,7 @@
+ ss_save_LIBS="$LIBS"
+ CPPFLAGS="-I$SS_X_INCDIR -I$SS_QT3_INCDIR -I$SS_KDE_INCDIR $CPPFLAGS $X_CFLAGS"
+ CXXFLAGS="-O2 -Wall $CXXFLAGS"
+- LIBS="-L$SS_KDE_LIBDIR -L$SS_X_LIBDIR $SS_X_LDFLAGS $SS_X_LIBLINK -L$SS_QT3_LIBDIR $LIBS -lsoundserver_idl -lkdecore -l$SS_QTLIB_NAME -Wl,-rpath $SS_KDE_LIBDIR"
++ LIBS="-L$SS_KDE_LIBDIR -L$SS_X_LIBDIR $SS_X_LDFLAGS $SS_X_LIBLINK -L$SS_QT3_LIBDIR $LIBS -lsoundserver_idl -lkdecore -lmcop -l$SS_QTLIB_NAME -Wl,-rpath $SS_KDE_LIBDIR"
+ if test "$SS_LINK_TO_LIBDL" = "yes"; then
+ LIBS="$LIBS -ldl";
+ fi
diff --git a/redhat/applications/kvirc/trinity-kvirc-3.5.13-sru.spec b/redhat/applications/kvirc/trinity-kvirc-3.5.13.1.spec
index d60f09b4b..d0f293d64 100644
--- a/redhat/applications/kvirc/trinity-kvirc-3.5.13-sru.spec
+++ b/redhat/applications/kvirc/trinity-kvirc-3.5.13.1.spec
@@ -16,8 +16,8 @@
%define tde_appdir %{tde_datadir}/applications
%define tde_tdeappdir %{tde_appdir}/kde
-%define tde_tdedocdir %{tde_docdir}/kde
-%define tde_tdeincludedir %{tde_includedir}/kde
+%define tde_tdedocdir %{tde_docdir}/tde
+%define tde_tdeincludedir %{tde_includedir}/tde
%define tde_tdelibdir %{tde_libdir}/trinity
%define _docdir %{tde_docdir}
@@ -26,7 +26,7 @@
Name: trinity-%{kdecomp}
Summary: Trinity based next generation IRC client with module support
Version: 3.4.0
-Release: 2%{?dist}%{?_variant}
+Release: 3%{?dist}%{?_variant}
License: GPLv2+
Group: Applications/Utilities
@@ -38,20 +38,18 @@ URL: http://kvirc.net/
Prefix: %{tde_prefix}
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
-Source0: %{kdecomp}-3.5.13.tar.gz
+Source0: %{kdecomp}-3.5.13.1.tar.gz
-# [kvirc] Release 3.5.13-sru
-Patch0: kvirc-3.5.13-sru-20120806.patch
# [kvirc] Modules do not install in correct folder [RHEL/Fedora]
-Patch1: kvirc-3.5.13-directories.patch
+Patch0: kvirc-3.5.13.1-directories.patch
# [kvirc] FTBFS because of missing link libraries [Bug #991]
-Patch2: kvirc-3.5.13-missing_ldflags.patch
+Patch1: kvirc-3.5.13-ftbfs.patch
+# [kvirc] Fix arts detection
+Patch2: kvirc-3.5.13.1-fix_arts_detection.patch
-
-
-BuildRequires: tqtinterface-devel
-BuildRequires: trinity-tdelibs-devel
-BuildRequires: trinity-tdebase-devel
+BuildRequires: trinity-tqtinterface-devel >= 3.5.13.1
+BuildRequires: trinity-tdelibs-devel >= 3.5.13.1
+BuildRequires: trinity-tdebase-devel >= 3.5.13.1
BuildRequires: desktop-file-utils
BuildRequires: gettext
@@ -96,12 +94,16 @@ KVIrc is a graphical IRC client based on the KDE widget set which integrates
with the K Desktop Environment version 3.
+%if 0%{?suse_version}
+%debug_package
+%endif
+
+
%prep
-%setup -q -n applications/%{kdecomp}
+%setup -q -n %{kdecomp}-3.5.13.1
%patch0 -p1
%patch1 -p1
-%patch2 -p1 -b .ldflags
-
+%patch2 -p1 -b .arts
# Ugly hack to modify TQT include directory inside autoconf files.
# If TQT detection fails, it fallbacks to TQT4 instead of TQT3 !
@@ -121,16 +123,11 @@ with the K Desktop Environment version 3.
%build
-unset QTDIR; . /etc/profile.d/qt.sh
+unset QTDIR; . /etc/profile.d/qt3.sh
export PATH="%{tde_bindir}:${PATH}"
export LDFLAGS="-L%{tde_libdir} -I%{tde_includedir}"
export KDEDIR=%{tde_prefix}
-#export CXXFLAGS="${CXXFLAGS} -I%{tde_includedir} -lqt-mt"
-
-# Workaround until the mess of TDE includedir is solved
-export CXXFLAGS="${CXXFLAGS} -I%{tde_includedir}"
-
%configure \
--prefix=%{tde_prefix} \
--exec-prefix=%{tde_prefix} \
@@ -147,8 +144,8 @@ export CXXFLAGS="${CXXFLAGS} -I%{tde_includedir}"
--with-kde-services-dir=%{tde_datadir}/services \
--with-kde-library-dir=%{tde_libdir} \
--with-kde-include-dir=%{tde_tdeincludedir} \
- --with-qt-library-dir=${QTLIB} \
- --with-qt-include-dir=${QTINC} \
+ --with-qt-library-dir=${QTLIB:-${QTDIR}/%{_lib}} \
+ --with-qt-include-dir=${QTINC:-${QTDIR}/include} \
--with-qt-moc=${QTDIR}/bin/moc
# Symbolic links must exist prior to parallel building
@@ -196,7 +193,9 @@ gtk-update-icon-cache --quiet %{tde_datadir}/icons/hicolor || :
%{tde_bindir}/kvi_search_help
%{tde_libdir}/kvirc/*/modules/caps/
%{tde_datadir}/applnk/Internet/kvirc.desktop
-%{tde_datadir}/icons/hicolor/*
+%{tde_datadir}/icons/hicolor/*/*/*.png
+%{tde_datadir}/icons/hicolor/*/*/*.svgz
+%{tde_datadir}/icons/hicolor/*/*/*.xpm
%{tde_datadir}/kvirc
%{tde_datadir}/mimelnk/text/*.desktop
%{tde_datadir}/services/*.protocol
@@ -211,7 +210,10 @@ gtk-update-icon-cache --quiet %{tde_datadir}/icons/hicolor || :
%{tde_libdir}/kvirc/*/modules/*.la
-%Changelog
+%changelog
+* Wed Oct 03 2012 Francois Andriot <francois.andriot@free.fr> - 3.4.0-3
+- Initial build for TDE 3.5.13.1
+
* Sat May 05 2012 Francois Andriot <francois.andriot@free.fr> - 3.4.0-2
- Rebuilt for Fedora 17
- Fix HTML directory location
diff --git a/redhat/applications/kvkbd/trinity-kvkbd-3.5.13.1.spec b/redhat/applications/kvkbd/trinity-kvkbd-3.5.13.1.spec
new file mode 100644
index 000000000..cf93a8d82
--- /dev/null
+++ b/redhat/applications/kvkbd/trinity-kvkbd-3.5.13.1.spec
@@ -0,0 +1,128 @@
+# Default version for this component
+%define kdecomp kvkbd
+
+# If TDE is built in a specific prefix (e.g. /opt/trinity), the release will be suffixed with ".opt".
+%if "%{?tde_prefix}" != "/usr"
+%define _variant .opt
+%endif
+
+# TDE 3.5.13 specific building variables
+%define tde_bindir %{tde_prefix}/bin
+%define tde_datadir %{tde_prefix}/share
+%define tde_docdir %{tde_datadir}/doc
+%define tde_includedir %{tde_prefix}/include
+%define tde_libdir %{tde_prefix}/%{_lib}
+%define tde_mandir %{tde_datadir}/man
+%define tde_appdir %{tde_datadir}/applications
+
+%define tde_tdeappdir %{tde_appdir}/kde
+%define tde_tdedocdir %{tde_docdir}/tde
+%define tde_tdeincludedir %{tde_includedir}/tde
+%define tde_tdelibdir %{tde_libdir}/trinity
+
+%define _docdir %{tde_docdir}
+
+
+Name: trinity-%{kdecomp}
+Summary: Virtual keyboard for KDE [Trinity]
+Version: 0.4.8
+Release: 2%{?dist}%{?_variant}
+
+License: GPLv2+
+Group: Applications/System
+
+Vendor: Trinity Project
+Packager: Francois Andriot <francois.andriot@free.fr>
+URL: http://pan4os.info/main/index.php
+
+Prefix: %{tde_prefix}
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+
+Source0: %{kdecomp}-3.5.13.1.tar.gz
+
+BuildRequires: trinity-tqtinterface-devel >= 3.5.13.1
+BuildRequires: trinity-tdelibs-devel >= 3.5.13.1
+BuildRequires: trinity-tdebase-devel >= 3.5.13.1
+BuildRequires: desktop-file-utils
+
+
+%description
+Virtual keyboard for KDE for use with accessibility. Application contains
+a systray widget as well as a dockwidget.
+
+
+%if 0%{?suse_version}
+%debug_package
+%endif
+
+
+%prep
+%setup -q -n %{kdecomp}-3.5.13.1
+
+# Ugly hack to modify TQT include directory inside autoconf files.
+# If TQT detection fails, it fallbacks to TQT4 instead of TQT3 !
+%__sed -i admin/acinclude.m4.in \
+ -e "s|/usr/include/tqt|%{tde_includedir}/tqt|g" \
+ -e "s|kde_htmldir='.*'|kde_htmldir='%{tde_tdedocdir}/HTML'|g"
+
+%__cp -f "/usr/share/aclocal/libtool.m4" "admin/libtool.m4.in"
+%__cp -f "/usr/share/libtool/config/ltmain.sh" "admin/ltmain.sh" || %__cp -f "/usr/share/libtool/ltmain.sh" "admin/ltmain.sh"
+%__make -f "admin/Makefile.common"
+
+
+%build
+unset QTDIR; . /etc/profile.d/qt3.sh
+export PATH="%{tde_bindir}:${PATH}"
+export LDFLAGS="-L%{tde_libdir} -I%{tde_includedir}"
+
+%configure \
+ --prefix=%{tde_prefix} \
+ --exec-prefix=%{tde_prefix} \
+ --bindir=%{tde_bindir} \
+ --datadir=%{tde_datadir} \
+ --libdir=%{tde_libdir} \
+ --mandir=%{tde_mandir} \
+ --includedir=%{tde_tdeincludedir} \
+ --disable-rpath \
+ --with-extra-includes=%{tde_includedir}/tqt \
+ --enable-closure
+
+%__make %{?_smp_mflags}
+
+
+%install
+export PATH="%{tde_bindir}:${PATH}"
+%__rm -rf %{buildroot}
+%__make install DESTDIR=%{buildroot}
+
+
+%clean
+%__rm -rf %{buildroot}
+
+
+%post
+touch --no-create %{tde_datadir}/icons/hicolor || :
+gtk-update-icon-cache --quiet %{tde_datadir}/icons/hicolor || :
+
+%postun
+touch --no-create %{tde_datadir}/icons/hicolor || :
+gtk-update-icon-cache --quiet %{tde_datadir}/icons/hicolor || :
+
+
+%files
+%defattr(-,root,root,-)
+%doc AUTHORS ChangeLog COPYING NEWS README TODO
+%{tde_bindir}/kvkbd
+%{tde_datadir}/applnk/Utilities/kvkbd.desktop
+%{tde_datadir}/apps/kvkbd/pics/dock.png
+%{tde_datadir}/apps/kvkbd/pics/tray.png
+%{tde_datadir}/icons/hicolor/*/apps/kvkbd.png
+
+
+%changelog
+* Wed Oct 03 2012 Francois Andriot <francois.andriot@free.fr> - 0.4.8-2
+- Initial build for TDE 3.5.13.1
+
+* Sat Dec 03 2011 Francois Andriot <francois.andriot@free.fr> - 0.4.8-1
+- Initial build for RHEL 5, RHEL 6, Fedora 15, Fedora 16
+
diff --git a/redhat/applications/kvkbd/trinity-kvkbd.spec b/redhat/applications/kvkbd/trinity-kvkbd-3.5.13.spec
index cd5159319..cd5159319 100644
--- a/redhat/applications/kvkbd/trinity-kvkbd.spec
+++ b/redhat/applications/kvkbd/trinity-kvkbd-3.5.13.spec
diff --git a/redhat/applications/kwin-style-crystal/trinity-kwin-style-crystal-3.5.13.1.spec b/redhat/applications/kwin-style-crystal/trinity-kwin-style-crystal-3.5.13.1.spec
new file mode 100644
index 000000000..98d3fe425
--- /dev/null
+++ b/redhat/applications/kwin-style-crystal/trinity-kwin-style-crystal-3.5.13.1.spec
@@ -0,0 +1,124 @@
+# Default version for this component
+%define kdecomp kwin-style-crystal
+
+# If TDE is built in a specific prefix (e.g. /opt/trinity), the release will be suffixed with ".opt".
+%if "%{?tde_prefix}" != "/usr"
+%define _variant .opt
+%endif
+
+# TDE 3.5.13 specific building variables
+%define tde_bindir %{tde_prefix}/bin
+%define tde_datadir %{tde_prefix}/share
+%define tde_docdir %{tde_datadir}/doc
+%define tde_includedir %{tde_prefix}/include
+%define tde_libdir %{tde_prefix}/%{_lib}
+%define tde_mandir %{tde_datadir}/man
+%define tde_appdir %{tde_datadir}/applications
+
+%define tde_tdeappdir %{tde_appdir}/kde
+%define tde_tdedocdir %{tde_docdir}/tde
+%define tde_tdeincludedir %{tde_includedir}/tde
+%define tde_tdelibdir %{tde_libdir}/trinity
+
+%define _docdir %{tde_tdedocdir}
+
+
+Name: trinity-%{kdecomp}
+Summary: Semi transparant window decoration for Trinity.
+Version: 1.0.5
+Release: 2%{?dist}%{?_variant}
+
+License: GPLv2+
+Group: Applications/Utilities
+
+Vendor: Trinity Project
+Packager: Francois Andriot <francois.andriot@free.fr>
+URL: http://www.trinitydesktop.org/
+
+Prefix: %{tde_prefix}
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+
+Source0: %{kdecomp}-3.5.13.1.tar.gz
+
+BuildRequires: trinity-tqtinterface-devel >= 3.5.13.1
+BuildRequires: trinity-tdelibs-devel >= 3.5.13.1
+BuildRequires: trinity-tdebase-devel >= 3.5.13.1
+BuildRequires: desktop-file-utils
+BuildRequires: gettext
+
+
+%description
+Crystal offers you pseudo transparent titlebar, buttons and borders
+transparent, so you can see more of your lovely background image
+Transparancy and buttons can be costumized to match your wishes.
+Offers rounded corners as well
+
+And it is of course nice to look at. Upstream says:
+"- Don't forget to breathe, while drooling."
+
+
+%if 0%{?suse_version}
+%debug_package
+%endif
+
+
+%prep
+%setup -q -n %{kdecomp}-3.5.13.1
+
+# Ugly hack to modify TQT include directory inside autoconf files.
+# If TQT detection fails, it fallbacks to TQT4 instead of TQT3 !
+%__sed -i admin/acinclude.m4.in \
+ -e "s|/usr/include/tqt|%{tde_includedir}/tqt|g" \
+ -e "s|kde_htmldir='.*'|kde_htmldir='%{tde_tdedocdir}/HTML'|g"
+
+%__cp -f "/usr/share/aclocal/libtool.m4" "admin/libtool.m4.in"
+%__cp -f "/usr/share/libtool/config/ltmain.sh" "admin/ltmain.sh" || %__cp -f "/usr/share/libtool/ltmain.sh" "admin/ltmain.sh"
+%__make -f "admin/Makefile.common"
+
+
+%build
+unset QTDIR; . /etc/profile.d/qt3.sh
+export PATH="%{tde_bindir}:${PATH}"
+export LDFLAGS="-L%{tde_libdir} -I%{tde_includedir}"
+
+%configure \
+ --prefix=%{tde_prefix} \
+ --exec-prefix=%{tde_prefix} \
+ --bindir=%{tde_bindir} \
+ --datadir=%{tde_datadir} \
+ --includedir=%{tde_tdeincludedir} \
+ --libdir=%{tde_libdir} \
+ --mandir=%{tde_mandir} \
+ --disable-rpath \
+ --with-extra-includes=%{tde_includedir}/tqt
+
+%__make %{?_smp_mflags}
+
+
+%install
+export PATH="%{tde_bindir}:${PATH}"
+%__rm -rf %{buildroot}
+%__make install DESTDIR=%{buildroot}
+
+
+%clean
+%__rm -rf %{buildroot}
+
+
+
+%files
+%defattr(-,root,root,-)
+%doc AUTHORS COPYING
+%{tde_tdelibdir}/kwin3_crystal.la
+%{tde_tdelibdir}/kwin3_crystal.so
+%{tde_tdelibdir}/kwin_crystal_config.la
+%{tde_tdelibdir}/kwin_crystal_config.so
+%{tde_datadir}/apps/kwin/crystal.desktop
+
+
+%changelog
+* Wed Oct 03 2012 Francois Andriot <francois.andriot@free.fr> - 1.0.5-2
+- Initial build for TDE 3.5.13.1
+
+* Sat Nov 19 2011 Francois Andriot <francois.andriot@free.fr> - 1.0.5-1
+- Initial build for RHEL 5, RHEL 6, Fedora 15, Fedora 16
diff --git a/redhat/applications/piklab/piklab-3.5.13.1-remove_gui_dir.patch b/redhat/applications/piklab/piklab-3.5.13.1-remove_gui_dir.patch
new file mode 100644
index 000000000..b549b225b
--- /dev/null
+++ b/redhat/applications/piklab/piklab-3.5.13.1-remove_gui_dir.patch
@@ -0,0 +1,7 @@
+--- piklab-3.5.13.1/src/progs/sdcdb/Makefile.am.ORI 2012-10-04 22:23:26.210470311 +0200
++++ piklab-3.5.13.1/src/progs/sdcdb/Makefile.am 2012-10-04 22:23:30.531371664 +0200
+@@ -1,3 +1,3 @@
+ INCLUDES = -I$(top_srcdir)/src $(all_includes)
+ METASOURCES = AUTO
+-SUBDIRS = base gui
++SUBDIRS = base
diff --git a/redhat/applications/piklab/trinity-piklab-3.5.13.1.spec b/redhat/applications/piklab/trinity-piklab-3.5.13.1.spec
new file mode 100644
index 000000000..80581390b
--- /dev/null
+++ b/redhat/applications/piklab/trinity-piklab-3.5.13.1.spec
@@ -0,0 +1,161 @@
+# Default version for this component
+%define kdecomp piklab
+
+# If TDE is built in a specific prefix (e.g. /opt/trinity), the release will be suffixed with ".opt".
+%if "%{?tde_prefix}" != "/usr"
+%define _variant .opt
+%endif
+
+# TDE 3.5.13 specific building variables
+%define tde_bindir %{tde_prefix}/bin
+%define tde_datadir %{tde_prefix}/share
+%define tde_docdir %{tde_datadir}/doc
+%define tde_includedir %{tde_prefix}/include
+%define tde_libdir %{tde_prefix}/%{_lib}
+%define tde_mandir %{tde_datadir}/man
+%define tde_appdir %{tde_datadir}/applications
+
+%define tde_tdeappdir %{tde_appdir}/kde
+%define tde_tdedocdir %{tde_docdir}/tde
+%define tde_tdeincludedir %{tde_includedir}/tde
+%define tde_tdelibdir %{tde_libdir}/trinity
+
+%define _docdir %{tde_tdedocdir}
+
+
+Name: trinity-%{kdecomp}
+Summary: IDE for PIC-microcontroller development [Trinity]
+Version: 0.15.2
+Release: 4%{?dist}%{?_variant}
+
+License: GPLv2+
+Group: Applications/Utilities
+
+Vendor: Trinity Project
+Packager: Francois Andriot <francois.andriot@free.fr>
+URL: http://www.trinitydesktop.org/
+
+Prefix: %{tde_prefix}
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+
+Source0: %{kdecomp}-3.5.13.1.tar.gz
+
+# [piklab] Do not build the 'gui' directory
+Patch1: piklab-3.5.13.1-remove_gui_dir.patch
+
+BuildRequires: trinity-tqtinterface-devel >= 3.5.13.1
+BuildRequires: trinity-tdelibs-devel >= 3.5.13.1
+BuildRequires: trinity-tdebase-devel >= 3.5.13.1
+BuildRequires: desktop-file-utils
+BuildRequires: gettext
+
+BuildRequires: readline-devel
+
+%description
+Piklab is an integrated development environment for applications based on
+Microchip PIC and dsPIC microcontrollers similar to the MPLAB environment.
+
+Support for several compiler and assembler toolchains is integrated. The
+GPSim simulator, the ICD1 programmer, the ICD2 debugger, the PICkit1 and
+PICkit2 programmers, the PicStart+ programmer, and most direct programmers
+are supported. A command-line programmer and debugger are also available.
+
+
+%if 0%{?suse_version}
+%debug_package
+%endif
+
+
+%prep
+%setup -q -n %{kdecomp}-3.5.13.1
+%patch1 -p1
+
+# Ugly hack to modify TQT include directory inside autoconf files.
+# If TQT detection fails, it fallbacks to TQT4 instead of TQT3 !
+%__sed -i admin/acinclude.m4.in \
+ -e "s|/usr/include/tqt|%{tde_includedir}/tqt|g" \
+ -e "s|kde_htmldir='.*'|kde_htmldir='%{tde_tdedocdir}/HTML'|g"
+
+%__cp -f "/usr/share/aclocal/libtool.m4" "admin/libtool.m4.in"
+%__cp -f "/usr/share/libtool/config/ltmain.sh" "admin/ltmain.sh" || %__cp -f "/usr/share/libtool/ltmain.sh" "admin/ltmain.sh"
+%__make -f "admin/Makefile.common"
+
+
+%build
+unset QTDIR; . /etc/profile.d/qt3.sh
+export PATH="%{tde_bindir}:${PATH}"
+export LDFLAGS="-L%{tde_libdir} -I%{tde_includedir}"
+
+%configure \
+ --prefix=%{tde_prefix} \
+ --exec-prefix=%{tde_prefix} \
+ --bindir=%{tde_bindir} \
+ --datadir=%{tde_datadir} \
+ --libdir=%{tde_libdir} \
+ --mandir=%{tde_mandir} \
+ --includedir=%{tde_tdeincludedir} \
+ --disable-rpath \
+ --with-extra-includes=%{tde_includedir}/tqt
+
+%__make %{?_smp_mflags}
+
+
+%install
+export PATH="%{tde_bindir}:${PATH}"
+%__rm -rf %{buildroot}
+%__make install DESTDIR=%{buildroot}
+
+# Incorrect extension on manpage
+%__mv -f %{buildroot}%{tde_mandir}/man1/piklab.1x %{buildroot}%{tde_mandir}/man1/piklab.1
+
+%find_lang %{kdecomp}
+
+%clean
+%__rm -rf %{buildroot}
+
+
+%post
+update-desktop-database %{tde_appdir} > /dev/null
+touch --no-create %{tde_datadir}/icons/hicolor || :
+gtk-update-icon-cache --quiet %{tde_datadir}/icons/hicolor || :
+
+%postun
+update-desktop-database %{tde_appdir} > /dev/null
+touch --no-create %{tde_datadir}/icons/hicolor || :
+gtk-update-icon-cache --quiet %{tde_datadir}/icons/hicolor || :
+
+
+%files -f %{kdecomp}.lang
+%defattr(-,root,root,-)
+%{tde_bindir}/piklab
+%{tde_bindir}/piklab-coff
+%{tde_bindir}/piklab-hex
+%{tde_bindir}/piklab-prog
+%{tde_tdeappdir}/piklab.desktop
+%{tde_datadir}/apps/katepart/syntax/asm-pic.xml
+%{tde_datadir}/apps/katepart/syntax/coff-c-pic.xml
+%{tde_datadir}/apps/katepart/syntax/coff-pic.xml
+%{tde_datadir}/apps/katepart/syntax/jal-pic.xml
+%{tde_datadir}/apps/piklab
+%{tde_tdedocdir}/HTML/en/piklab
+%{tde_datadir}/icons/hicolor/*/*/*.png
+%{tde_datadir}/mimelnk/application/x-piklab.desktop
+%{tde_mandir}/man1/piklab-coff.1
+%{tde_mandir}/man1/piklab-hex.1
+%{tde_mandir}/man1/piklab-prog.1
+%{tde_mandir}/man1/piklab.1
+
+
+%changelog
+* Wed Oct 03 2012 Francois Andriot <francois.andriot@free.fr> - 0.15.2-4
+- Initial build for TDE 3.5.13.1
+
+* Sun Apr 06 2012 Francois Andriot <francois.andriot@free.fr> - 0.15.2-3
+- Fix MAN directory location
+- Fix compilation with GCC 4.7 [Bug #958]
+
+* Fri Nov 25 2011 Francois Andriot <francois.andriot@free.fr> - 0.15.2-2
+- Fix HTML directory location
+
+* Thu Nov 24 2011 Francois Andriot <francois.andriot@free.fr> - 0.15.2-1
+- Initial build for RHEL 5, RHEL 6, Fedora 15, Fedora 16
diff --git a/redhat/applications/piklab/trinity-piklab.spec b/redhat/applications/piklab/trinity-piklab-3.5.13.spec
index 93fd28370..93fd28370 100644
--- a/redhat/applications/piklab/trinity-piklab.spec
+++ b/redhat/applications/piklab/trinity-piklab-3.5.13.spec
diff --git a/redhat/applications/potracegui/trinity-potracegui-3.5.13.1.spec b/redhat/applications/potracegui/trinity-potracegui-3.5.13.1.spec
new file mode 100644
index 000000000..802c67e93
--- /dev/null
+++ b/redhat/applications/potracegui/trinity-potracegui-3.5.13.1.spec
@@ -0,0 +1,134 @@
+# Default version for this component
+%define kdecomp potracegui
+
+# If TDE is built in a specific prefix (e.g. /opt/trinity), the release will be suffixed with ".opt".
+%if "%{?tde_prefix}" != "/usr"
+%define _variant .opt
+%endif
+
+# TDE 3.5.13 specific building variables
+%define tde_bindir %{tde_prefix}/bin
+%define tde_datadir %{tde_prefix}/share
+%define tde_docdir %{tde_datadir}/doc
+%define tde_includedir %{tde_prefix}/include
+%define tde_libdir %{tde_prefix}/%{_lib}
+%define tde_mandir %{tde_datadir}/man
+%define tde_appdir %{tde_datadir}/applications
+
+%define tde_tdeappdir %{tde_appdir}/kde
+%define tde_tdedocdir %{tde_docdir}/tde
+%define tde_tdeincludedir %{tde_includedir}/tde
+%define tde_tdelibdir %{tde_libdir}/trinity
+
+%define _docdir %{tde_tdedocdir}
+
+
+Name: trinity-%{kdecomp}
+Summary: KDE frontend for potrace [Trinity]
+Version: 1.3
+Release: 2%{?dist}%{?_variant}
+
+License: GPLv2+
+Group: Applications/Multimedia
+
+Vendor: Trinity Project
+Packager: Francois Andriot <francois.andriot@free.fr>
+URL: http://potracegui.sourceforge.net
+
+Prefix: %{tde_prefix}
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+
+Source0: %{kdecomp}-3.5.13.1.tar.gz
+
+BuildRequires: trinity-tqtinterface-devel >= 3.5.13.1
+BuildRequires: trinity-tdelibs-devel >= 3.5.13.1
+BuildRequires: trinity-tdebase-devel >= 3.5.13.1
+BuildRequires: desktop-file-utils
+
+
+%description
+A KDE interface for the commandline tracing tools potrace and/or autotrace. It
+supports drag and drop as well as all image types recognized by KDE, which are
+a lot more than the 4 recognized by the potrace commandline tool. Loading of
+remote files (web, ftp, ...) is also supported.
+
+
+%if 0%{?suse_version}
+%debug_package
+%endif
+
+
+%prep
+%setup -q -n %{kdecomp}-3.5.13.1
+
+# Ugly hack to modify TQT include directory inside autoconf files.
+# If TQT detection fails, it fallbacks to TQT4 instead of TQT3 !
+%__sed -i admin/acinclude.m4.in \
+ -e "s|/usr/include/tqt|%{tde_includedir}/tqt|g" \
+ -e "s|kde_htmldir='.*'|kde_htmldir='%{tde_tdedocdir}/HTML'|g"
+
+%__cp -f "/usr/share/aclocal/libtool.m4" "admin/libtool.m4.in"
+%__cp -f "/usr/share/libtool/config/ltmain.sh" "admin/ltmain.sh" || %__cp -f "/usr/share/libtool/ltmain.sh" "admin/ltmain.sh"
+%__make -f "admin/Makefile.common"
+
+
+%build
+unset QTDIR; . /etc/profile.d/qt3.sh
+export PATH="%{tde_bindir}:${PATH}"
+export LDFLAGS="-L%{tde_libdir} -I%{tde_includedir}"
+
+%configure \
+ --prefix=%{tde_prefix} \
+ --exec-prefix=%{tde_prefix} \
+ --bindir=%{tde_bindir} \
+ --datadir=%{tde_datadir} \
+ --libdir=%{tde_libdir} \
+ --mandir=%{tde_mandir} \
+ --includedir=%{tde_tdeincludedir} \
+ --disable-rpath \
+ --with-extra-includes=%{tde_includedir}/tqt \
+ --enable-closure
+
+%__make %{?_smp_mflags}
+
+
+%install
+export PATH="%{tde_bindir}:${PATH}"
+%__rm -rf %{buildroot}
+%__make install DESTDIR=%{buildroot}
+
+
+%clean
+%__rm -rf %{buildroot}
+
+
+%post
+touch --no-create %{tde_datadir}/icons/hicolor || :
+gtk-update-icon-cache --quiet %{tde_datadir}/icons/hicolor || :
+
+%postun
+touch --no-create %{tde_datadir}/icons/hicolor || :
+gtk-update-icon-cache --quiet %{tde_datadir}/icons/hicolor || :
+
+
+%files
+%defattr(-,root,root,-)
+%doc AUTHORS ChangeLog COPYING NEWS README TODO
+%{tde_bindir}/potracegui
+%{tde_datadir}/applnk/Utilities/potracegui.desktop
+%{tde_datadir}/apps/potracegui/potraceguiui.rc
+%{tde_tdedocdir}/HTML/en/potracegui/common
+%{tde_tdedocdir}/HTML/en/potracegui/index.cache.bz2
+%{tde_tdedocdir}/HTML/en/potracegui/index.docbook
+%{tde_datadir}/icons/hicolor/16x16/apps/potracegui.png
+%{tde_datadir}/icons/hicolor/32x32/apps/potracegui.png
+%lang(de) %{tde_datadir}/locale/de/LC_MESSAGES/potracegui.mo
+
+
+%changelog
+* Wed Oct 03 2012 Francois Andriot <francois.andriot@free.fr> - 1.3-2
+- Initial build for TDE 3.5.13.1
+
+* Sat Dec 03 2011 Francois Andriot <francois.andriot@free.fr> - 1.3-1
+- Initial build for RHEL 5, RHEL 6, Fedora 15, Fedora 16
+
diff --git a/redhat/applications/potracegui/trinity-potracegui.spec b/redhat/applications/potracegui/trinity-potracegui-3.5.13.spec
index a90649337..a90649337 100644
--- a/redhat/applications/potracegui/trinity-potracegui.spec
+++ b/redhat/applications/potracegui/trinity-potracegui-3.5.13.spec
diff --git a/redhat/applications/rosegarden/trinity-rosegarden-3.5.13-sru.spec b/redhat/applications/rosegarden/trinity-rosegarden-3.5.13.1.spec
index be4ca0f1f..62bb16276 100644
--- a/redhat/applications/rosegarden/trinity-rosegarden-3.5.13-sru.spec
+++ b/redhat/applications/rosegarden/trinity-rosegarden-3.5.13.1.spec
@@ -1,6 +1,9 @@
# Default version for this component
%define kdecomp rosegarden
+# Required for Mageia 2: removes the ldflag '--no-undefined'
+%define _disable_ld_no_undefined 1
+
# If TDE is built in a specific prefix (e.g. /opt/trinity), the release will be suffixed with ".opt".
%if "%{?tde_prefix}" != "/usr"
%define _variant .opt
@@ -16,8 +19,8 @@
%define tde_appdir %{tde_datadir}/applications
%define tde_tdeappdir %{tde_appdir}/kde
-%define tde_tdedocdir %{tde_docdir}/kde
-%define tde_tdeincludedir %{tde_includedir}/kde
+%define tde_tdedocdir %{tde_docdir}/tde
+%define tde_tdeincludedir %{tde_includedir}/tde
%define tde_tdelibdir %{tde_libdir}/trinity
%define _docdir %{tde_tdedocdir}
@@ -38,16 +41,13 @@ URL: http://www.rosegardenmusic.com/
Prefix: %{tde_prefix}
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
-Source0: %{kdecomp}-3.5.13.tar.gz
+Source0: %{kdecomp}-3.5.13.1.tar.gz
-# [rosegarden] Version 3.5.13-sru
-Patch0: rosegarden-3.5.13-sru-20120806.patch
-# [rosegarden] Missing LDFLAGS cause FTBFS
-Patch1: rosegarden-3.5.13-missing_ldflags.patch
+Patch0: rosegarden-3.5.13-ftbfs.patch
-BuildRequires: tqtinterface-devel
-BuildRequires: trinity-tdelibs-devel
-BuildRequires: trinity-tdebase-devel
+BuildRequires: trinity-tqtinterface-devel >= 3.5.13.1
+BuildRequires: trinity-tdelibs-devel >= 3.5.13.1
+BuildRequires: trinity-tdebase-devel >= 3.5.13.1
BuildRequires: desktop-file-utils
BuildRequires: gettext
@@ -60,12 +60,22 @@ BuildRequires: fontconfig-devel
%if 0%{?mgaversion} || 0%{?mdkversion}
BuildRequires: %{_lib}jack-devel
%else
+BuildRequires: lirc-devel
BuildRequires: jack-audio-connection-kit-devel
%endif
Requires: lilypond
Requires: perl-XML-Twig
+
+%if 0%{?mgaversion} || 0%{?mdkversion} || 0%{?suse_version}
+Requires: libsndfile-progs
+%else
+%if 0%{?rhel}
+Requires: libsndfile
+%else
Requires: libsndfile-utils
+%endif
+%endif
# LIRC does not exist on RHEL.
%if 0%{?fedora} > 0
@@ -94,10 +104,14 @@ lilypond and Csound files export, etc.
This package provides the data files necessary for running Rosegarden
+%if 0%{?suse_version}
+%debug_package
+%endif
+
+
%prep
-%setup -q -n applications/%{kdecomp}
+%setup -q -n %{kdecomp}-3.5.13.1
%patch0 -p1
-%patch1 -p1
# Hard-coded path to TQT binaries spotted !!!
%__sed -i CMakeLists.txt \
@@ -106,19 +120,19 @@ This package provides the data files necessary for running Rosegarden
-e "s|/usr/include/tqt|%{tde_includedir}/tqt|g"
%build
-unset QTDIR; . /etc/profile.d/qt.sh
+unset QTDIR && . %{_sysconfdir}/profile.d/qt3.sh
export PATH="%{tde_bindir}:${PATH}"
export LDFLAGS="-L%{tde_libdir} -I%{tde_includedir}"
export CMAKE_INCLUDE_PATH="%{tde_includedir}:%{tde_includedir}/tqt:%{tde_tdeincludedir}"
-# Enables "messages" (debug)
-%__sed -i CMakeLists.txt -e "s|#MESSAGE|MESSAGE|g"
-
-%if 0%{?rhel} || 0%{?fedora}
+%if 0%{?rhel} || 0%{?fedora} || 0%{?suse_version}
%__mkdir_p build
cd build
%endif
+### FIXME FIXME FIXME !!! FTBFS on Mageia 2 / Mandriva 2011
+export LDFLAGS="${LDFLAGS} -lXft -lfontconfig -lkio -lkdeprint -llrdf -lfftw3f -llirc_client -ljack"
+
%cmake \
-DCMAKE_INSTALL_PREFIX=%{tde_prefix} \
-DBIN_INSTALL_DIR=%{tde_bindir} \
@@ -141,7 +155,7 @@ cd build
-DBUILD_ALL=ON \
..
-%__make %{?_smp_mflags} || %__make VERBOSE=1
+%__make %{?_smp_mflags}
%install
@@ -196,10 +210,10 @@ done
%{tde_datadir}/mimelnk/audio/x-soundfont.desktop
-%Changelog
-* Mon Aug 06 2012 Francois Andriot <francois.andriot@free.fr> - 1.7.0-3
-- Switch to branch 3.5.13-sru
-
+%changelog
+* Wed Oct 03 2012 Francois Andriot <francois.andriot@free.fr> - 1.7.0-3
+- Initial build for TDE 3.5.13.1
+
* Sun Apr 06 2012 Francois Andriot <francois.andriot@free.fr> - 1.7.0-2
- Updated to build with gcc 4.7. [Commit #15276f36]
- Enables JACK support
diff --git a/redhat/applications/smartcardauth/trinity-smartcardauth-3.5.13.1.spec b/redhat/applications/smartcardauth/trinity-smartcardauth-3.5.13.1.spec
new file mode 100644
index 000000000..ef3aaa43b
--- /dev/null
+++ b/redhat/applications/smartcardauth/trinity-smartcardauth-3.5.13.1.spec
@@ -0,0 +1,156 @@
+# Default version for this component
+%define kdecomp smartcardauth
+
+# If TDE is built in a specific prefix (e.g. /opt/trinity), the release will be suffixed with ".opt".
+%if "%{?tde_prefix}" != "/usr"
+%define _variant .opt
+%endif
+
+# TDE 3.5.13 specific building variables
+%define tde_bindir %{tde_prefix}/bin
+%define tde_datadir %{tde_prefix}/share
+%define tde_docdir %{tde_datadir}/doc
+%define tde_includedir %{tde_prefix}/include
+%define tde_libdir %{tde_prefix}/%{_lib}
+%define tde_mandir %{tde_datadir}/man
+%define tde_appdir %{tde_datadir}/applications
+
+%define tde_tdeappdir %{tde_appdir}/kde
+%define tde_tdedocdir %{tde_docdir}/tde
+%define tde_tdeincludedir %{tde_includedir}/tde
+%define tde_tdelibdir %{tde_libdir}/trinity
+
+%define _docdir %{tde_tdedocdir}
+
+
+Name: trinity-%{kdecomp}
+Summary: SmartCard Login and LUKS Decrypt, Setup Utility
+Version: 1.0
+Release: 2%{?dist}%{?_variant}
+
+License: GPLv2+
+Group: Applications/System
+
+Vendor: Trinity Project
+Packager: Francois Andriot <francois.andriot@free.fr>
+URL: http://www.trinitydesktop.org/
+
+Prefix: %{tde_prefix}
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+
+Source0: %{kdecomp}-3.5.13.1.tar.gz
+Patch0: smartcardauth-3.5.13-ftbfs.patch
+
+BuildRequires: trinity-tqtinterface-devel >= 3.5.13.1
+BuildRequires: trinity-tdelibs-devel >= 3.5.13.1
+BuildRequires: trinity-tdebase-devel >= 3.5.13.1
+BuildRequires: desktop-file-utils
+
+#BuildRequires: perl-PAR-Packer
+%if 0%{?mgaversion} || 0%{?mdkversion}
+Requires: perl-pcsc-perl
+%endif
+%if 0%{?rhel} || 0%{?fedora}
+Requires: pcsc-perl
+%endif
+%if 0%{?suse_version}
+Requires: perl-pcsc
+%endif
+
+%description
+This utility will allow you to set up your computer to accept a SmartCard as an authentication source for:
+- Your encrypted LUKS partition
+- TDE3.x, including automatic login, lock, and unlock features
+
+It is designed to work with any ISO 7816-1,2,3,4 compliant smartcard
+Examples of such cards are:
+- The Schlumberger MultiFlex
+- The ACS ACOS5 / ACOS6 series of cryptographic ISO 7816 cards
+
+If a card is chosen that has PKSC support, such as the ACOS cards, this utility can run
+simultaneously with the certificate reading program(s) to provide single sign on
+in addition to the PKCS certificate functionality
+
+
+%if 0%{?suse_version}
+%debug_package
+%endif
+
+
+%prep
+unset QTDIR; . /etc/profile.d/qt3.sh
+%setup -q -n %{kdecomp}-3.5.13.1
+%patch0 -p1
+
+# Ugly hack to modify TQT include directory inside autoconf files.
+# If TQT detection fails, it fallbacks to TQT4 instead of TQT3 !
+%__sed -i "src/Makefile" \
+ -e "s|/usr/include/tqt|%{tde_includedir}/tqt|g" \
+ -e "s|/usr/include/qt3|${QTINC}|g"
+
+%__sed -i "Makefile" \
+ -e "s|/usr/lib/perl5/Chipcard|/usr/lib64/perl5/vendor_perl/Chipcard|g"
+
+%build
+export PATH="%{tde_bindir}:${PATH}"
+export LDFLAGS="-L%{tde_libdir} -I%{tde_includedir}"
+
+./build_ckpasswd
+
+
+%install
+export PATH="%{tde_bindir}:${PATH}"
+%__rm -rf %{buildroot}
+
+%__install -D -m 755 scriptor_standalone.pl %{buildroot}%{tde_bindir}/scriptor.pl
+%__install -D -m 755 src/ckpasswd %{buildroot}%{tde_bindir}/smartauthckpasswd
+#%__install -D -m 755 src/ckpasswd %{buildroot}%{tde_bindir}/smartauthmon
+%__ln_s smartauthckpasswd %{buildroot}%{tde_bindir}/smartauthmon
+%__cp -Rp usr/* %{buildroot}%{tde_prefix}
+
+%__mkdir_p %{buildroot}%{_sysconfdir}
+%__cp -Rp etc/* %{buildroot}%{_sysconfdir}
+
+
+%clean
+%__rm -rf %{buildroot}
+
+
+%post
+update-desktop-database %{tde_appdir} > /dev/null
+touch --no-create %{tde_datadir}/icons/hicolor || :
+gtk-update-icon-cache --quiet %{tde_datadir}/icons/hicolor || :
+
+%postun
+update-desktop-database %{tde_appdir} > /dev/null
+touch --no-create %{tde_datadir}/icons/hicolor || :
+gtk-update-icon-cache --quiet %{tde_datadir}/icons/hicolor || :
+
+
+%files
+%defattr(-,root,root,-)
+%doc gpl.txt
+%{_sysconfdir}/init/smartauthlogin.conf
+%{_sysconfdir}/smartauth/smartauth.sh.in
+%{_sysconfdir}/smartauth/smartauthmon.sh.in
+%{tde_bindir}/cryptosmartcard.sh
+%{tde_bindir}/scriptor.pl
+%{tde_bindir}/setupcard.sh
+%{tde_bindir}/setupslavecard.sh
+%{tde_bindir}/smartauth.sh
+%{tde_bindir}/smartauthckpasswd
+%{tde_bindir}/smartauthmon
+%{tde_datadir}/applications/smartcardauth.desktop
+%{tde_datadir}/applications/smartcardrestrict.desktop
+%{tde_datadir}/icons/hicolor/16x16/apps/smartcardauth.png
+%{tde_datadir}/icons/hicolor/32x32/apps/smartcardauth.png
+%{tde_datadir}/initramfs-tools/hooks/cryptlukssc
+
+
+%changelog
+* Wed Oct 03 2012 Francois Andriot <francois.andriot@free.fr> - 1.0-2
+- Initial build for TDE 3.5.13.1
+
+* Sat Dec 03 2011 Francois Andriot <francois.andriot@free.fr> - 1.0-1
+- Initial build for RHEL 5, RHEL 6, Fedora 15, Fedora 16
+
diff --git a/redhat/applications/smartcardauth/trinity-smartcardauth.spec b/redhat/applications/smartcardauth/trinity-smartcardauth-3.5.13.spec
index 9cbfc6941..9cbfc6941 100644
--- a/redhat/applications/smartcardauth/trinity-smartcardauth.spec
+++ b/redhat/applications/smartcardauth/trinity-smartcardauth-3.5.13.spec
diff --git a/redhat/applications/smb4k/trinity-smb4k-3.5.13.1.spec b/redhat/applications/smb4k/trinity-smb4k-3.5.13.1.spec
new file mode 100644
index 000000000..3952fb91a
--- /dev/null
+++ b/redhat/applications/smb4k/trinity-smb4k-3.5.13.1.spec
@@ -0,0 +1,188 @@
+# Default version for this component
+%define kdecomp smb4k
+
+# If TDE is built in a specific prefix (e.g. /opt/trinity), the release will be suffixed with ".opt".
+%if "%{?tde_prefix}" != "/usr"
+%define _variant .opt
+%endif
+
+# TDE 3.5.13 specific building variables
+%define tde_bindir %{tde_prefix}/bin
+%define tde_datadir %{tde_prefix}/share
+%define tde_docdir %{tde_datadir}/doc
+%define tde_includedir %{tde_prefix}/include
+%define tde_libdir %{tde_prefix}/%{_lib}
+%define tde_mandir %{tde_datadir}/man
+%define tde_appdir %{tde_datadir}/applications
+
+%define tde_tdeappdir %{tde_appdir}/kde
+%define tde_tdedocdir %{tde_docdir}/tde
+%define tde_tdeincludedir %{tde_includedir}/tde
+%define tde_tdelibdir %{tde_libdir}/trinity
+
+%define _docdir %{tde_tdedocdir}
+
+
+Name: trinity-%{kdecomp}
+Summary: A Samba (SMB) share advanced browser for Trinity
+Version: 0.9.4
+Release: 3%{?dist}%{?_variant}
+
+License: GPLv2+
+Group: Applications/Utilities
+
+Vendor: Trinity Project
+Packager: Francois Andriot <francois.andriot@free.fr>
+URL: http://www.trinitydesktop.org
+
+Prefix: %{tde_prefix}
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+
+Source0: %{kdecomp}-3.5.13.1.tar.gz
+
+BuildRequires: trinity-tqtinterface-devel >= 3.5.13.1
+BuildRequires: trinity-arts-devel >= 3.5.13.1
+BuildRequires: trinity-tdelibs-devel >= 3.5.13.1
+BuildRequires: trinity-tdebase-devel >= 3.5.13.1
+BuildRequires: desktop-file-utils
+BuildRequires: gettext
+
+
+%description
+Smb4K is a SMB (Windows) share browser for KDE. It uses the Samba software
+suite to access the SMB shares of the local network neighborhood. Its purpose
+is to provide a program that's easy to use and has as many features as
+possible.
+
+%files -f %{kdecomp}.lang
+%defattr(-,root,root,-)
+%{tde_bindir}/smb4k
+%{tde_bindir}/smb4k_cat
+%{tde_bindir}/smb4k_kill
+%{tde_bindir}/smb4k_mount
+%{tde_bindir}/smb4k_mv
+%{tde_bindir}/smb4k_umount
+%{tde_libdir}/libsmb4kcore.so.2
+%{tde_libdir}/libsmb4kcore.so.2.0.0
+%{tde_libdir}/libsmb4kdialogs.la
+%{tde_libdir}/libsmb4kdialogs.so
+%{tde_tdelibdir}/konqsidebar_smb4k.la
+%{tde_tdelibdir}/konqsidebar_smb4k.so
+%{tde_tdelibdir}/libsmb4kconfigdialog.la
+%{tde_tdelibdir}/libsmb4kconfigdialog.so
+%{tde_tdelibdir}/libsmb4knetworkbrowser.la
+%{tde_tdelibdir}/libsmb4knetworkbrowser.so
+%{tde_tdelibdir}/libsmb4ksearchdialog.la
+%{tde_tdelibdir}/libsmb4ksearchdialog.so
+%{tde_tdelibdir}/libsmb4ksharesiconview.la
+%{tde_tdelibdir}/libsmb4ksharesiconview.so
+%{tde_tdelibdir}/libsmb4kshareslistview.la
+%{tde_tdelibdir}/libsmb4kshareslistview.so
+%{tde_tdeappdir}/smb4k.desktop
+%{tde_datadir}/apps/konqsidebartng/add/smb4k_add.desktop
+%{tde_datadir}/apps/smb4k/smb4k_shell.rc
+%{tde_datadir}/apps/smb4knetworkbrowserpart/smb4knetworkbrowser_part.rc
+%{tde_datadir}/apps/smb4ksharesiconviewpart/smb4ksharesiconview_part.rc
+%{tde_datadir}/apps/smb4kshareslistviewpart/smb4kshareslistview_part.rc
+%{tde_datadir}/config.kcfg/smb4k.kcfg
+%{tde_datadir}/icons/crystalsvg/*/apps/smb4k.png
+%{tde_tdedocdir}/HTML/en/smb4k/
+
+%post
+update-desktop-database %{tde_appdir} > /dev/null
+touch --no-create %{tde_datadir}/icons/crystalsvg || :
+gtk-update-icon-cache --quiet %{tde_datadir}/icons/crystalsvg || :
+/sbin/ldconfig || :
+
+%postun
+update-desktop-database %{tde_appdir} > /dev/null
+touch --no-create %{tde_datadir}/icons/crystalsvg || :
+gtk-update-icon-cache --quiet %{tde_datadir}/icons/crystalsvg || :
+/sbin/ldconfig || :
+
+##########
+
+%package devel
+Summary: Development files for %{name}
+Group: Development/Libraries
+Requires: %{name} = %{version}-%{release}
+
+%description devel
+%{summary}
+
+%files devel
+%{tde_tdeincludedir}/*.h
+%{tde_libdir}/libsmb4kcore.la
+%{tde_libdir}/libsmb4kcore.so
+
+%post devel
+/sbin/ldconfig || :
+
+%postun devel
+/sbin/ldconfig || :
+
+##########
+
+%if 0%{?suse_version}
+%debug_package
+%endif
+
+
+%prep
+%setup -q -n %{kdecomp}-3.5.13.1
+
+# Ugly hack to modify TQT include directory inside autoconf files.
+# If TQT detection fails, it fallbacks to TQT4 instead of TQT3 !
+%__sed -i admin/acinclude.m4.in \
+ -e "s|/usr/include/tqt|%{tde_includedir}/tqt|g" \
+ -e "s|kde_htmldir='.*'|kde_htmldir='%{tde_tdedocdir}/HTML'|g"
+
+%__cp -f "/usr/share/aclocal/libtool.m4" "admin/libtool.m4.in"
+%__cp -f "/usr/share/libtool/config/ltmain.sh" "admin/ltmain.sh" || %__cp -f "/usr/share/libtool/ltmain.sh" "admin/ltmain.sh"
+%__make -f "admin/Makefile.common"
+
+
+%build
+unset QTDIR; . /etc/profile.d/qt3.sh
+export PATH="%{tde_bindir}:${PATH}"
+export LDFLAGS="-L%{tde_libdir} -I%{tde_includedir}"
+
+%configure \
+ --prefix=%{tde_prefix} \
+ --exec-prefix=%{tde_prefix} \
+ --bindir=%{tde_bindir} \
+ --datadir=%{tde_datadir} \
+ --libdir=%{tde_libdir} \
+ --mandir=%{tde_mandir} \
+ --includedir=%{tde_tdeincludedir} \
+ --disable-rpath \
+ --with-extra-includes=%{tde_includedir}/tqt
+
+# SMP safe !
+%__make %{?_smp_mflags}
+
+
+%install
+export PATH="%{tde_bindir}:${PATH}"
+%__rm -rf %{buildroot}
+%__make install DESTDIR=%{buildroot}
+
+%find_lang %{kdecomp}
+
+
+%clean
+%__rm -rf %{buildroot}
+
+
+
+
+%changelog
+* Wed Oct 03 2012 Francois Andriot <francois.andriot@free.fr> - 0.9.4-3
+- Initial build for TDE 3.5.13.1
+
+* Sun Apr 06 2012 Francois Andriot <francois.andriot@free.fr> - 0.9.4-2
+- Rebuild for Fedora 17
+- Fix compilation with GCC 4.7 |Commit #b4c7fd48]
+
+* Wed Nov 30 2011 Francois Andriot <francois.andriot@free.fr> - 0.9.4-1
+- Initial build for RHEL 5, RHEL 6, Fedora 15, Fedora 16
diff --git a/redhat/applications/smb4k/trinity-smb4k.spec b/redhat/applications/smb4k/trinity-smb4k-3.5.13.spec
index 23ba5ba87..23ba5ba87 100644
--- a/redhat/applications/smb4k/trinity-smb4k.spec
+++ b/redhat/applications/smb4k/trinity-smb4k-3.5.13.spec
diff --git a/redhat/applications/soundkonverter/trinity-soundkonverter-3.5.13.1.spec b/redhat/applications/soundkonverter/trinity-soundkonverter-3.5.13.1.spec
new file mode 100644
index 000000000..66e847073
--- /dev/null
+++ b/redhat/applications/soundkonverter/trinity-soundkonverter-3.5.13.1.spec
@@ -0,0 +1,181 @@
+# Default version for this component
+%define kdecomp soundkonverter
+
+# If TDE is built in a specific prefix (e.g. /opt/trinity), the release will be suffixed with ".opt".
+%if "%{?tde_prefix}" != "/usr"
+%define _variant .opt
+%endif
+
+# TDE 3.5.13 specific building variables
+%define tde_bindir %{tde_prefix}/bin
+%define tde_datadir %{tde_prefix}/share
+%define tde_docdir %{tde_datadir}/doc
+%define tde_includedir %{tde_prefix}/include
+%define tde_libdir %{tde_prefix}/%{_lib}
+%define tde_mandir %{tde_datadir}/man
+%define tde_appdir %{tde_datadir}/applications
+
+%define tde_tdeappdir %{tde_appdir}/kde
+%define tde_tdedocdir %{tde_docdir}/tde
+%define tde_tdeincludedir %{tde_includedir}/tde
+%define tde_tdelibdir %{tde_libdir}/trinity
+
+%define _docdir %{tde_tdedocdir}
+
+
+Name: trinity-%{kdecomp}
+Summary: audio converter frontend for Trinity
+Version: 0.3.8
+Release: 2%{?dist}%{?_variant}
+
+License: GPLv2+
+Group: Application/Multimedia
+
+Vendor: Trinity Project
+Packager: Francois Andriot <francois.andriot@free.fr>
+URL: http://potracegui.sourceforge.net
+
+Prefix: %{tde_prefix}
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+
+Source0: %{kdecomp}-3.5.13.1.tar.gz
+
+BuildRequires: trinity-tqtinterface-devel >= 3.5.13.1
+BuildRequires: trinity-tdelibs-devel >= 3.5.13.1
+BuildRequires: trinity-tdebase-devel >= 3.5.13.1
+BuildRequires: desktop-file-utils
+
+
+%description
+soundKonverter is a frontend to various audio converters.
+
+The key features are:
+ - Audio conversion
+ - Replay Gain calculation
+ - CD ripping
+
+soundKonverter supports reading and writing tags for many formats, so the tags
+are preserved when converting files.
+
+It comes with an Amarok script.
+
+See 'soundkonverter-amarok' package for more informations.
+
+See README.Debian for more informations on supported formats.
+
+
+%package amarok
+Summary: audio converter frontend for Trinity (Amarok script)
+Group: Application/Multimedia
+Requires: %{name} = %{version}-%{release}
+Requires: trinity-amarok
+
+%description amarok
+Amarok script for soundKonverter. It allows you to easily transcode files when
+transferring them to your media device.
+
+See the 'soundkonverter-trinity' package for more information.
+
+
+%if 0%{?suse_version}
+%debug_package
+%endif
+
+
+%prep
+%setup -q -n %{kdecomp}-3.5.13.1
+
+# Ugly hack to modify TQT include directory inside autoconf files.
+# If TQT detection fails, it fallbacks to TQT4 instead of TQT3 !
+%__sed -i admin/acinclude.m4.in \
+ -e "s|/usr/include/tqt|%{tde_includedir}/tqt|g" \
+ -e "s|kde_htmldir='.*'|kde_htmldir='%{tde_tdedocdir}/HTML'|g"
+
+%__cp -f "/usr/share/aclocal/libtool.m4" "admin/libtool.m4.in"
+%__cp -f "/usr/share/libtool/config/ltmain.sh" "admin/ltmain.sh" || %__cp -f "/usr/share/libtool/ltmain.sh" "admin/ltmain.sh"
+%__make -f "admin/Makefile.common"
+
+
+%build
+unset QTDIR; . /etc/profile.d/qt3.sh
+export PATH="%{tde_bindir}:${PATH}"
+export LDFLAGS="-L%{tde_libdir} -I%{tde_includedir}"
+
+%configure \
+ --prefix=%{tde_prefix} \
+ --exec-prefix=%{tde_prefix} \
+ --bindir=%{tde_bindir} \
+ --datadir=%{tde_datadir} \
+ --libdir=%{tde_libdir} \
+ --mandir=%{tde_mandir} \
+ --includedir=%{tde_tdeincludedir} \
+ --disable-rpath \
+ --with-extra-includes=%{tde_includedir}/tqt:/usr/include/cdda \
+ --enable-closure
+
+%__make %{?_smp_mflags}
+
+
+%install
+export PATH="%{tde_bindir}:${PATH}"
+%__rm -rf %{buildroot}
+%__make install DESTDIR=%{buildroot}
+
+%find_lang %{kdecomp}
+
+%clean
+%__rm -rf %{buildroot}
+
+
+%post
+update-desktop-database %{tde_appdir} > /dev/null
+touch --no-create %{tde_datadir}/icons/hicolor || :
+gtk-update-icon-cache --quiet %{tde_datadir}/icons/hicolor || :
+
+%postun
+update-desktop-database %{tde_appdir} > /dev/null
+touch --no-create %{tde_datadir}/icons/hicolor || :
+gtk-update-icon-cache --quiet %{tde_datadir}/icons/hicolor || :
+
+
+%files -f %{kdecomp}.lang
+%defattr(-,root,root,-)
+%doc AUTHORS ChangeLog COPYING NEWS README TODO
+%{tde_bindir}/soundkonverter
+%{tde_bindir}/userscript.sh
+%{tde_tdeappdir}/soundkonverter.desktop
+%{tde_datadir}/apps/konqueror/servicemenus/audiocd_extract_with_soundkonverter.desktop
+%{tde_datadir}/apps/soundkonverter
+%exclude %{tde_datadir}/apps/soundkonverter/amarokscript/README
+%exclude %{tde_datadir}/apps/soundkonverter/amarokscript/soundKonverter.rb
+%{tde_tdedocdir}/HTML/en/soundkonverter/common
+%{tde_tdedocdir}/HTML/en/soundkonverter/index.cache.bz2
+%{tde_tdedocdir}/HTML/en/soundkonverter/index.docbook
+%{tde_datadir}/icons/hicolor/*/apps/soundkonverter*.png
+%{tde_datadir}/mimelnk/application/x-la.soundkonverter.desktop
+%{tde_datadir}/mimelnk/application/x-ofc.soundkonverter.desktop
+%{tde_datadir}/mimelnk/application/x-ofr.soundkonverter.desktop
+%{tde_datadir}/mimelnk/application/x-ofs.soundkonverter.desktop
+%{tde_datadir}/mimelnk/application/x-shorten.soundkonverter.desktop
+%{tde_datadir}/mimelnk/audio/amr.soundkonverter.desktop
+%{tde_datadir}/mimelnk/audio/x-ape.soundkonverter.desktop
+%{tde_datadir}/mimelnk/audio/x-bonk.soundkonverter.desktop
+%{tde_datadir}/mimelnk/audio/x-pac.soundkonverter.desktop
+%{tde_datadir}/mimelnk/audio/x-tta.soundkonverter.desktop
+%{tde_datadir}/mimelnk/audio/x-wavpack-correction.soundkonverter.desktop
+%{tde_datadir}/mimelnk/audio/x-wavpack.soundkonverter.desktop
+%{tde_datadir}/mimelnk/video/x-flv.soundkonverter.desktop
+
+%files amarok
+%defattr(-,root,root,-)
+%{tde_datadir}/apps/soundkonverter/amarokscript/README
+%{tde_datadir}/apps/soundkonverter/amarokscript/soundKonverter.rb
+
+
+%changelog
+* Wed Oct 03 2012 Francois Andriot <francois.andriot@free.fr> - 0.3.8-2
+- Initial build for TDE 3.5.13.1
+
+* Sat Dec 03 2011 Francois Andriot <francois.andriot@free.fr> - 0.3.8-1
+- Initial build for RHEL 5, RHEL 6, Fedora 15, Fedora 16
+
diff --git a/redhat/applications/soundkonverter/trinity-soundkonverter.spec b/redhat/applications/soundkonverter/trinity-soundkonverter-3.5.13.spec
index 5cfc41054..5cfc41054 100644
--- a/redhat/applications/soundkonverter/trinity-soundkonverter.spec
+++ b/redhat/applications/soundkonverter/trinity-soundkonverter-3.5.13.spec
diff --git a/redhat/applications/tellico/tellico-3.5.13.1-fix_ftbfs.patch b/redhat/applications/tellico/tellico-3.5.13.1-fix_ftbfs.patch
new file mode 100644
index 000000000..36b394666
--- /dev/null
+++ b/redhat/applications/tellico/tellico-3.5.13.1-fix_ftbfs.patch
@@ -0,0 +1,11 @@
+--- tellico-3.5.13.1/src/Makefile.am.ORI 2012-10-04 23:24:30.130403046 +0200
++++ tellico-3.5.13.1/src/Makefile.am 2012-10-04 23:25:46.806848842 +0200
+@@ -33,7 +33,7 @@
+ ./commands/libcommands.a -lexslt $(LIB_KFILE) $(LIB_KHTML) $(LIB_KDEUI) $(LIB_KDECORE) $(LIB_QT) \
+ $(LIBSOCKET) $(LIBXSLT_LIBS) $(TAGLIB_LIBS) $(KCDDB_LIBS) $(YAZ_LIBS) $(LIB_KIO) \
+ $(LIB_KABC) $(KCAL_LIBS) $(LDADD_LIBBTPARSE) $(LIB_KNEWSTUFF) $(EXEMPI_LIBS) \
+- $(POPPLER_LIBS) $(LDADD_LIBBARCODE)
++ $(POPPLER_LIBS) $(LDADD_LIBBARCODE) $(LIBXML_LIBS)
+
+ EXTRA_DIST = tellicoui.rc tellicorc \
+ borrowerdialog.cpp entryiconview.h\
diff --git a/redhat/applications/tellico/trinity-tellico-3.5.13.1.spec b/redhat/applications/tellico/trinity-tellico-3.5.13.1.spec
new file mode 100644
index 000000000..0f5d83c59
--- /dev/null
+++ b/redhat/applications/tellico/trinity-tellico-3.5.13.1.spec
@@ -0,0 +1,234 @@
+# Default version for this component
+%define kdecomp tellico
+
+# If TDE is built in a specific prefix (e.g. /opt/trinity), the release will be suffixed with ".opt".
+%if "%{?tde_prefix}" != "/usr"
+%define _variant .opt
+%endif
+
+# TDE 3.5.13 specific building variables
+%define tde_bindir %{tde_prefix}/bin
+%define tde_datadir %{tde_prefix}/share
+%define tde_docdir %{tde_datadir}/doc
+%define tde_includedir %{tde_prefix}/include
+%define tde_libdir %{tde_prefix}/%{_lib}
+%define tde_mandir %{tde_datadir}/man
+%define tde_appdir %{tde_datadir}/applications
+
+%define tde_tdeappdir %{tde_appdir}/kde
+%define tde_tdedocdir %{tde_docdir}/tde
+%define tde_tdeincludedir %{tde_includedir}/tde
+%define tde_tdelibdir %{tde_libdir}/trinity
+
+%define _docdir %{tde_tdedocdir}
+
+
+Name: trinity-%{kdecomp}
+Summary: Icollection manager for books, videos, music [Trinity]
+Version: 1.3.2.1
+Release: 4%{?dist}%{?_variant}
+
+License: GPLv2+
+Group: Applications/Utilities
+
+Vendor: Trinity Project
+Packager: Francois Andriot <francois.andriot@free.fr>
+URL: http://periapsis.org/tellico/
+
+Prefix: %{tde_prefix}
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+
+Source0: %{kdecomp}-3.5.13.1.tar.gz
+
+
+# [tellico] Fix "not a string literal" error
+Patch2: tellico-3.5.13-fix_not_a_string_literal_error.patch
+# [tellico] Fix FTBFS
+Patch3: tellico-3.5.13.1-fix_ftbfs.patch
+
+
+BuildRequires: trinity-tqtinterface-devel >= 3.5.13.1
+BuildRequires: trinity-tdelibs-devel >= 3.5.13.1
+BuildRequires: trinity-tdebase-devel >= 3.5.13.1
+BuildRequires: desktop-file-utils
+BuildRequires: gettext
+
+Requires: %{name}-data = %{version}-%{release}
+Requires: %{name}-scripts = %{version}-%{release}
+
+%description
+Tellico is a collection manager for TDE. It includes default collections for
+books, bibliographies, comic books, videos, music, coins, stamps, trading
+cards, and wines, and also allows custom collections; with unlimited
+user-defined fields allowed. Automatically formatted names, sorting by any
+property, filters, automatic ISBN validation and full customization for
+printing or display through XSLT files are some of the features present. It
+can import CSV, RIS, BibTeX, and BibTeXML files; and export CSV, HTML, BibTeX,
+BibTeXML, and PilotDB. Tellico can also import data from Amazon, IMDb, CDDB,
+or any US-MARC compliant z39.50 server.
+
+The files are stored in XML format, avoiding the need for database server.
+It also makes it easy for other softwares to use the Tellico data.
+
+
+%package data
+Group: Applications/Utilities
+Summary: collection manager for books, videos, music [data] [Trinity]
+
+%description data
+Tellico is a collection manager for TDE. It includes default collections for
+books, bibliographies, comic books, videos, music, coins, stamps, trading
+cards, and wines, and also allows custom collections; with unlimited
+user-defined fields allowed. Automatically formatted names, sorting by any
+property, filters, automatic ISBN validation and full customization for
+printing or display through XSLT files are some of the features present. It
+can import CSV, RIS, BibTeX, and BibTeXML files; and export CSV, HTML, BibTeX,
+BibTeXML, and PilotDB. Tellico can also import data from Amazon, IMDb, CDDB,
+or any US-MARC compliant z39.50 server.
+
+The files are stored in XML format, avoiding the need for database server.
+It also makes it easy for other softwares to use the Tellico data.
+
+This package contains the architecture independent files, such data files and
+documentation.
+
+%package scripts
+Group: Applications/Utilities
+Summary: collection manager for books, videos, music [scripts] [Trinity]
+
+%description scripts
+Tellico is a collection manager for TDE. It includes default collections for
+books, bibliographies, comic books, videos, music, coins, stamps, trading
+cards, and wines, and also allows custom collections; with unlimited
+user-defined fields allowed. Automatically formatted names, sorting by any
+property, filters, automatic ISBN validation and full customization for
+printing or display through XSLT files are some of the features present. It
+can import CSV, RIS, BibTeX, and BibTeXML files; and export CSV, HTML, BibTeX,
+BibTeXML, and PilotDB. Tellico can also import data from Amazon, IMDb, CDDB,
+or any US-MARC compliant z39.50 server.
+
+The files are stored in XML format, avoiding the need for database server.
+It also makes it easy for other softwares to use the Tellico data.
+
+This package contains the scripts to import data from external sources, such
+as websites. As the format of the data may change, these scripts are provided
+as a separate package which can be updated through debian-volatile.
+
+
+%if 0%{?suse_version}
+%debug_package
+%endif
+
+
+%prep
+%setup -q -n %{kdecomp}-3.5.13.1
+%patch2 -p1
+%patch3 -p1
+
+# Ugly hack to modify TQT include directory inside autoconf files.
+# If TQT detection fails, it fallbacks to TQT4 instead of TQT3 !
+%__sed -i admin/acinclude.m4.in \
+ -e "s|/usr/include/tqt|%{tde_includedir}/tqt|g" \
+ -e "s|kde_htmldir='.*'|kde_htmldir='%{tde_tdedocdir}/HTML'|g"
+
+%__cp -f "/usr/share/aclocal/libtool.m4" "admin/libtool.m4.in"
+%__cp -f "/usr/share/libtool/config/ltmain.sh" "admin/ltmain.sh" || %__cp -f "/usr/share/libtool/ltmain.sh" "admin/ltmain.sh"
+%__make -f "admin/Makefile.common"
+
+
+%build
+unset QTDIR; . /etc/profile.d/qt3.sh
+export PATH="%{tde_bindir}:${PATH}"
+export LDFLAGS="-L%{tde_libdir} -I%{tde_includedir}"
+
+%configure \
+ --prefix=%{tde_prefix} \
+ --exec-prefix=%{tde_prefix} \
+ --bindir=%{tde_bindir} \
+ --datadir=%{tde_datadir} \
+ --libdir=%{tde_libdir} \
+ --mandir=%{tde_mandir} \
+ --includedir=%{tde_tdeincludedir} \
+ --disable-rpath \
+ --with-extra-includes=%{tde_includedir}/tqt
+
+%__make %{?_smp_mflags}
+
+
+%install
+export PATH="%{tde_bindir}:${PATH}"
+%__rm -rf %{buildroot}
+%__make install DESTDIR=%{buildroot}
+
+# Add svg icons to xdg directories
+%__install -D -c -p -m 644 -T icons/tellico.svg %{?buildroot}%{tde_datadir}/icons/hicolor/scalable/apps/tellico.svg
+%__install -D -c -p -m 644 -T icons/tellico_mime.svg %{?buildroot}%{tde_datadir}/icons/hicolor/scalable/mimetypes/application-x-tellico.svg
+
+# Remove dead symlink from French translation
+%__rm %{?buildroot}%{tde_tdedocdir}/HTML/fr/tellico/common
+
+
+%find_lang %{kdecomp}
+
+
+%clean
+%__rm -rf %{buildroot}
+
+
+%post
+touch --no-create %{tde_datadir}/icons/hicolor || :
+gtk-update-icon-cache --quiet %{tde_datadir}/icons/hicolor || :
+
+%postun
+touch --no-create %{tde_datadir}/icons/hicolor || :
+gtk-update-icon-cache --quiet %{tde_datadir}/icons/hicolor || :
+
+
+%files -f %{kdecomp}.lang
+%defattr(-,root,root,-)
+%{tde_bindir}/tellico
+#%{tde_datadir}/pixmaps
+%{tde_datadir}/applications
+%{tde_datadir}/config/tellicorc
+
+%files data
+%defattr(-,root,root,-)
+%{tde_datadir}/apps/tellico/*.xsl
+%{tde_datadir}/apps/tellico/*.xml
+%{tde_datadir}/apps/tellico/*.png
+%{tde_datadir}/apps/tellico/entry-templates
+%{tde_datadir}/apps/tellico/*.py*
+%{tde_datadir}/apps/tellico/pics
+%{tde_datadir}/apps/tellico/report-templates
+%{tde_datadir}/apps/tellico/tellico.dtd
+%{tde_datadir}/apps/tellico/tellico.tips
+%{tde_datadir}/apps/tellico/tellico2html.js
+%{tde_datadir}/apps/tellico/tellicoui.rc
+%{tde_datadir}/apps/tellico/welcome.html
+%{tde_datadir}/config.kcfg
+%{tde_tdedocdir}/HTML/*/tellico/
+%{tde_datadir}/icons
+%{tde_datadir}/apps/mime
+%{tde_datadir}/mimelnk
+%{tde_datadir}/apps/kconf_update/tellico-1-3-update.pl
+%{tde_datadir}/apps/kconf_update/tellico-rename.upd
+%{tde_datadir}/apps/kconf_update/tellico.upd
+
+%files scripts
+%defattr(-,root,root,-)
+%{tde_datadir}/apps/tellico/data-sources
+%{tde_datadir}/apps/tellico/z3950-servers.cfg
+
+
+%changelog
+* Wed Oct 03 2012 Francois Andriot <francois.andriot@free.fr> - 1.3.2.1-4
+- Initial build for TDE 3.5.13.1
+
+* Sat Dec 03 2011 Francois Andriot <francois.andriot@free.fr> - 1.3.2.1-3
+- Fix compilation with GCC 4.7 [Bug #958]
+
+* Fri Nov 25 2011 Francois Andriot <francois.andriot@free.fr> - 1.3.2.1-2
+- Fix HTML directory location
+
+* Thu Nov 24 2011 Francois Andriot <francois.andriot@free.fr> - 1.3.2.1-1
+- Initial build for RHEL 5, RHEL 6, Fedora 15, Fedora 16
diff --git a/redhat/applications/tellico/trinity-tellico.spec b/redhat/applications/tellico/trinity-tellico-3.5.13.spec
index 575a0b426..575a0b426 100644
--- a/redhat/applications/tellico/trinity-tellico.spec
+++ b/redhat/applications/tellico/trinity-tellico-3.5.13.spec
diff --git a/redhat/applications/wlassistant/trinity-wlassistant-3.5.13.1.spec b/redhat/applications/wlassistant/trinity-wlassistant-3.5.13.1.spec
new file mode 100644
index 000000000..6efa134df
--- /dev/null
+++ b/redhat/applications/wlassistant/trinity-wlassistant-3.5.13.1.spec
@@ -0,0 +1,134 @@
+# Default version for this component
+%define kdecomp wlassistant
+
+# If TDE is built in a specific prefix (e.g. /opt/trinity), the release will be suffixed with ".opt".
+%if "%{?tde_prefix}" != "/usr"
+%define _variant .opt
+%endif
+
+# TDE 3.5.13 specific building variables
+%define tde_bindir %{tde_prefix}/bin
+%define tde_datadir %{tde_prefix}/share
+%define tde_docdir %{tde_datadir}/doc
+%define tde_includedir %{tde_prefix}/include
+%define tde_libdir %{tde_prefix}/%{_lib}
+%define tde_mandir %{tde_datadir}/man
+%define tde_appdir %{tde_datadir}/applications
+
+%define tde_tdeappdir %{tde_appdir}/kde
+%define tde_tdedocdir %{tde_docdir}/tde
+%define tde_tdeincludedir %{tde_includedir}/tde
+%define tde_tdelibdir %{tde_libdir}/trinity
+
+%define _docdir %{tde_tdedocdir}
+
+
+Name: trinity-%{kdecomp}
+Summary: User friendly KDE frontend for wireless network connection [Trinity]
+Version: 0.5.7
+Release: 2%{?dist}%{?_variant}
+
+License: GPLv2+
+Group: Applications/Utilities
+
+Vendor: Trinity Project
+Packager: Francois Andriot <francois.andriot@free.fr>
+URL: http://wlassistant.sourceforge.net/
+
+Prefix: %{tde_prefix}
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+
+Source0: %{kdecomp}-3.5.13.1.tar.gz
+
+BuildRequires: trinity-tqtinterface-devel >= 3.5.13.1
+BuildRequires: trinity-tdelibs-devel >= 3.5.13.1
+BuildRequires: trinity-tdebase-devel >= 3.5.13.1
+BuildRequires: desktop-file-utils
+BuildRequires: gettext
+
+BuildRequires: python
+BuildRequires: cmake >= 2.8
+
+%description
+Wireless Assistant scans for wireless access points and displays link quality,
+encryption and other useful information. When user wants to connect to a
+network, Wireless Assistant opens up its wizards and guides the user through
+Wi-Fi settings. After a successful connection is made the settings are
+remembered so next time the user won't have to enter them again.
+
+
+%if 0%{?suse_version}
+%debug_package
+%endif
+
+
+%prep
+%setup -q -n %{kdecomp}-3.5.13.1
+
+
+%build
+unset QTDIR; . /etc/profile.d/qt3.sh
+export PATH="%{tde_bindir}:${PATH}"
+export PKG_CONFIG_PATH="%{tde_libdir}/pkgconfig"
+export LDFLAGS="-L%{tde_libdir} -I%{tde_includedir}"
+
+
+%if 0%{?rhel} || 0%{?fedora} || 0%{?suse_version}
+%__mkdir_p build
+cd build
+%endif
+
+%cmake \
+ -DBIN_INSTALL_DIR=%{tde_bindir} \
+ -DINCLUDE_INSTALL_DIR=%{tde_tdeincludedir} \
+ -DLIB_INSTALL_DIR=%{tde_libdir} \
+ -DSHARE_INSTALL_PREFIX=%{tde_datadir} \
+ -DBUILD_ALL=on \
+ ..
+
+%__make %{?_smp_mflags}
+
+
+%install
+export PATH="%{tde_bindir}:${PATH}"
+%__rm -rf %{buildroot}
+%__make install DESTDIR=%{buildroot} -C build
+
+%clean
+%__rm -rf %{buildroot}
+
+
+%post
+touch --no-create %{tde_datadir}/icons/hicolor || :
+gtk-update-icon-cache --quiet %{tde_datadir}/icons/hicolor || :
+
+%postun
+touch --no-create %{tde_datadir}/icons/hicolor || :
+gtk-update-icon-cache --quiet %{tde_datadir}/icons/hicolor || :
+
+
+%files
+%defattr(-,root,root,-)
+%doc ChangeLog VERSION
+%{tde_bindir}/wlassistant
+%{tde_tdeappdir}/wlassistant.desktop
+%{tde_datadir}/icons/hicolor/16x16/apps/wlassistant.png
+%{tde_datadir}/icons/hicolor/32x32/apps/wlassistant.png
+%lang(ar) %{tde_datadir}/locale/ar/LC_MESSAGES/wlassistant.mo
+%lang(ca) %{tde_datadir}/locale/ca/LC_MESSAGES/wlassistant.mo
+%lang(es) %{tde_datadir}/locale/es/LC_MESSAGES/wlassistant.mo
+%lang(fr) %{tde_datadir}/locale/fr/LC_MESSAGES/wlassistant.mo
+%lang(nb) %{tde_datadir}/locale/nb/LC_MESSAGES/wlassistant.mo
+%lang(pl) %{tde_datadir}/locale/pl/LC_MESSAGES/wlassistant.mo
+%lang(pt) %{tde_datadir}/locale/pt_BR/LC_MESSAGES/wlassistant.mo
+%lang(sv) %{tde_datadir}/locale/sv/LC_MESSAGES/wlassistant.mo
+%lang(zh_CN) %{tde_datadir}/locale/zh_CN/LC_MESSAGES/wlassistant.mo
+%lang(zh_TW) %{tde_datadir}/locale/zh_TW/LC_MESSAGES/wlassistant.mo
+
+
+%changelog
+* Wed Oct 03 2012 Francois Andriot <francois.andriot@free.fr> - 0.5.7-2
+- Initial build for TDE 3.5.13.1
+
+* Tue Nov 29 2011 Francois Andriot <francois.andriot@free.fr> - 0.5.7-1
+- Initial build for RHEL 5, RHEL 6, Fedora 15, Fedora 16
diff --git a/redhat/applications/wlassistant/trinity-wlassistant.spec b/redhat/applications/wlassistant/trinity-wlassistant-3.5.13.spec
index 7c8130a21..7c8130a21 100644
--- a/redhat/applications/wlassistant/trinity-wlassistant.spec
+++ b/redhat/applications/wlassistant/trinity-wlassistant-3.5.13.spec
diff --git a/redhat/applications/yakuake/trinity-yakuake-3.5.13.1.spec b/redhat/applications/yakuake/trinity-yakuake-3.5.13.1.spec
new file mode 100644
index 000000000..71568a2be
--- /dev/null
+++ b/redhat/applications/yakuake/trinity-yakuake-3.5.13.1.spec
@@ -0,0 +1,134 @@
+# Default version for this component
+%define kdecomp yakuake
+
+# If TDE is built in a specific prefix (e.g. /opt/trinity), the release will be suffixed with ".opt".
+%if "%{?tde_prefix}" != "/usr"
+%define _variant .opt
+%endif
+
+# TDE 3.5.13 specific building variables
+%define tde_bindir %{tde_prefix}/bin
+%define tde_datadir %{tde_prefix}/share
+%define tde_docdir %{tde_datadir}/doc
+%define tde_includedir %{tde_prefix}/include
+%define tde_libdir %{tde_prefix}/%{_lib}
+%define tde_mandir %{tde_datadir}/man
+%define tde_appdir %{tde_datadir}/applications
+
+%define tde_tdeappdir %{tde_appdir}/kde
+%define tde_tdedocdir %{tde_docdir}/tde
+%define tde_tdeincludedir %{tde_includedir}/tde
+%define tde_tdelibdir %{tde_libdir}/trinity
+
+%define _docdir %{tde_tdedocdir}
+
+
+Name: trinity-%{kdecomp}
+Summary: Yakuake is a Quake-style terminal emulator based on KDE Konsole technology.
+Version: 2.8.1
+Release: 4%{?dist}%{?_variant}
+
+License: GPLv2+
+Group: Applications/Utilities
+
+Vendor: Trinity Project
+Packager: Francois Andriot <francois.andriot@free.fr>
+URL: http://www.trinitydesktop.org/
+
+Prefix: %{tde_prefix}
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+
+Source0: %{kdecomp}-3.5.13.1.tar.gz
+
+BuildRequires: trinity-tqtinterface-devel >= 3.5.13.1
+BuildRequires: trinity-tdelibs-devel >= 3.5.13.1
+BuildRequires: trinity-tdebase-devel >= 3.5.13.1
+BuildRequires: desktop-file-utils
+
+%description
+Yakuake is a Quake-style terminal emulator based on KDE Konsole technology.
+
+%if 0%{?suse_version}
+%debug_package
+%endif
+
+
+%prep
+%setup -q -n %{kdecomp}-3.5.13.1
+
+# Ugly hack to modify TQT include directory inside autoconf files.
+# If TQT detection fails, it fallbacks to TQT4 instead of TQT3 !
+%__sed -i admin/acinclude.m4.in \
+ -e "s|/usr/include/tqt|%{tde_includedir}/tqt|g" \
+ -e "s|kde_htmldir='.*'|kde_htmldir='%{tde_tdedocdir}/HTML'|g"
+
+%__cp -f "/usr/share/aclocal/libtool.m4" "admin/libtool.m4.in"
+%__cp -f "/usr/share/libtool/config/ltmain.sh" "admin/ltmain.sh" || %__cp -f "/usr/share/libtool/ltmain.sh" "admin/ltmain.sh"
+%__make -f "admin/Makefile.common"
+
+
+%build
+unset QTDIR; . /etc/profile.d/qt3.sh
+export PATH="%{tde_bindir}:${PATH}"
+export LDFLAGS="-L%{tde_libdir} -I%{tde_includedir}"
+
+%configure \
+ --prefix=%{tde_prefix} \
+ --exec-prefix=%{tde_prefix} \
+ --bindir=%{tde_bindir} \
+ --datadir=%{tde_datadir} \
+ --libdir=%{tde_libdir} \
+ --mandir=%{tde_mandir} \
+ --includedir=%{tde_tdeincludedir} \
+ --disable-rpath \
+ --with-extra-includes=%{tde_includedir}/tqt \
+ --enable-closure
+
+%__make %{?_smp_mflags}
+
+
+%install
+export PATH="%{tde_bindir}:${PATH}"
+%__rm -rf %{buildroot}
+%__make install DESTDIR=%{buildroot}
+
+
+%clean
+%__rm -rf %{buildroot}
+
+
+%post
+touch --no-create %{tde_datadir}/icons/hicolor || :
+gtk-update-icon-cache --quiet %{tde_datadir}/icons/hicolor || :
+
+%postun
+touch --no-create %{tde_datadir}/icons/hicolor || :
+gtk-update-icon-cache --quiet %{tde_datadir}/icons/hicolor || :
+
+
+%files
+%defattr(-,root,root,-)
+%doc AUTHORS COPYING
+%{tde_bindir}/*
+%{tde_datadir}/applications/*/*.desktop
+%{tde_datadir}/apps/*/
+%{tde_datadir}/icons/hicolor/*/*/*
+%{tde_datadir}/locale/*/*/*.mo
+%{tde_datadir}/config.kcfg/*.kcfg
+
+%changelog
+* Wed Oct 03 2012 Francois Andriot <francois.andriot@free.fr> - 2.8.1-4
+- Initial build for TDE 3.5.13.1
+
+* Sun Oct 30 2011 Francois Andriot <francois.andriot@free.fr> - 2.8.1-3
+- Rebuilt for TDE 3.5.13 on RHEL 6, RHEL 5 and Fedora 15
+
+* Tue Sep 14 2011 Francois Andriot <francois.andriot@free.fr> - 2.8.1-2
+- Import to GIT
+
+* Mon Aug 22 2011 Francois Andriot <francois.andriot@free.fr> - 2.8.1-1
+- Correct macro to install under "/opt", if desired
+
+* Sun Aug 14 2011 Francois Andriot <francois.andriot@free.fr> - 2.8.1-0
+- Initial build for RHEL 6.0
+