SFEkoffice3.spec:
authormoinakg
Mon, 28 Jan 2008 13:41:14 +0000
changeset 839 18da77650f93
parent 838 d13292b3c078
child 840 5cbc36d8fdab
SFEkoffice3.spec: patches/koffice-05-libart.diff: patches/koffice-06-build_kexi_file.diff: patches/koffice-03-kspread.diff: patches/koffice-04-objects.diff: patches/koffice-02-kross.diff: patches/koffice-01-krita.diff: Add KDE Office suite. ext-sources/kformula.files ext-sources/kivio.files ext-sources/karbon14.files ext-sources/buildkde ext-sources/kpresenter.files ext-sources/kword.files ext-sources/kspread.files ext-sources/kplato.files ext-sources/kexi.files ext-sources/koffice.files ext-sources/kugar.files ext-sources/krita.files ext-sources/kchart.files File lists for KOffice suite sub-packages. SFEgraphicsmagick.spec: Add GraphicsMagick package needed by KOffice. ext-sources/buildkde: Add new packages to build.
ChangeLog
SFEgraphicsmagick.spec
SFEkoffice3.spec
ext-sources/buildkde
ext-sources/karbon14.files
ext-sources/kchart.files
ext-sources/kexi.files
ext-sources/kformula.files
ext-sources/kivio.files
ext-sources/koffice.files
ext-sources/kplato.files
ext-sources/kpresenter.files
ext-sources/krita.files
ext-sources/kspread.files
ext-sources/kugar.files
ext-sources/kword.files
patches/koffice-01-krita.diff
patches/koffice-02-kross.diff
patches/koffice-03-kspread.diff
patches/koffice-04-objects.diff
patches/koffice-05-libart.diff
patches/koffice-06-build_kexi_file.diff
--- a/ChangeLog	Mon Jan 28 07:23:05 2008 +0000
+++ b/ChangeLog	Mon Jan 28 13:41:14 2008 +0000
@@ -1,3 +1,31 @@
+2008-01-28 Moinak Ghosh <[email protected]>
+	* SFEkoffice3.spec:
+	* patches/koffice-05-libart.diff:
+	* patches/koffice-06-build_kexi_file.diff:
+	* patches/koffice-03-kspread.diff:
+	* patches/koffice-04-objects.diff:
+	* patches/koffice-02-kross.diff:
+	* patches/koffice-01-krita.diff:
+	  Add KDE Office suite.
+	* ext-sources/kformula.files
+	* ext-sources/kivio.files
+	* ext-sources/karbon14.files
+	* ext-sources/buildkde
+	* ext-sources/kpresenter.files
+	* ext-sources/kword.files
+	* ext-sources/kspread.files
+	* ext-sources/kplato.files
+	* ext-sources/kexi.files
+	* ext-sources/koffice.files
+	* ext-sources/kugar.files
+	* ext-sources/krita.files
+	* ext-sources/kchart.files
+	  File lists for KOffice suite sub-packages.
+	* SFEgraphicsmagick.spec:
+	  Add GraphicsMagick package needed by KOffice.
+	* ext-sources/buildkde:
+	  Add new packages to build.
+
 2008-01-28  Simon Zheng  <[email protected]>
 
 	* base-specs/gnome-power-manager.spec:
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/SFEgraphicsmagick.spec	Mon Jan 28 13:41:14 2008 +0000
@@ -0,0 +1,84 @@
+#
+# spec file for package SFEimagemagick.spec
+#
+# includes module(s): imagemagick
+#
+%include Solaris.inc
+
+Name:                   SFEgraphicsmagick
+Summary:                GraphicsMagick - Image Manipulation Utilities and Libraries
+Version:                1.1.10
+Source:                 http://nchc.dl.sourceforge.net/sourceforge/graphicsmagick/GraphicsMagick-%{version}.tar.bz2
+SUNW_BaseDir:           %{_basedir}
+BuildRoot:              %{_tmppath}/%{name}-%{version}-build
+%include default-depend.inc
+%include perl-depend.inc
+
+%package devel
+Summary:                 %{summary} - development files
+SUNW_BaseDir:            %{_prefix}
+%include default-depend.inc
+
+%prep
+%setup -q -n GraphicsMagick-%{version}
+
+%build
+CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
+if test "x$CPUS" = "x" -o $CPUS = 0; then
+    CPUS=1
+fi
+
+ 
+export CPPFLAGS="-I/usr/sfw/include/freetype2 -I/usr/X11/include"
+export LDFLAGS="%_ldflags -L/usr/sfw/lib -L/usr/X11/lib -R/usr/sfw/lib -R/usr/X11/lib"
+if [ "x`basename $CC`" = xgcc ]
+then
+	%error "Building this spec with GCC is not supported."
+fi
+export CFLAGS="%optflags -xCC"
+./configure --prefix=%{_prefix}		\
+	    --bindir=%{_bindir}		\
+	    --mandir=%{_mandir}		\
+            --libdir=%{_libdir}		\
+            --datadir=%{_datadir}	\
+            --libexecdir=%{_libexecdir} \
+            --sysconfdir=%{_sysconfdir} \
+            --enable-shared		\
+	    --disable-static
+
+make -j$CPUS 
+
+%install
+rm -rf $RPM_BUILD_ROOT
+make install DESTDIR=$RPM_BUILD_ROOT
+rm $RPM_BUILD_ROOT%{_libdir}/lib*.*a
+find $RPM_BUILD_ROOT%{_libdir} -name lib\*.\*a -exec rm {} \;
+site_perl=$RPM_BUILD_ROOT/usr/perl5/site_perl
+vendor_perl=$RPM_BUILD_ROOT/usr/perl5/vendor_perl
+mv $site_perl $vendor_perl
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr (-, root, bin)
+%{_bindir}
+%dir %attr (0755,root,bin) %{_libdir}
+%{_libdir}/lib*.so*
+%{_libdir}/GraphicsMagick-%{version}
+%dir %attr (0755,root,sys) %{_datadir}
+%{_datadir}/GraphicsMagick-%{version}
+%dir %attr (0755,root,other) %{_datadir}/GraphicsMagick
+%{_mandir}
+%{_prefix}/perl5
+
+%files devel
+%defattr (-, root, bin)
+%{_includedir}
+%dir %attr (0755,root,bin) %{_libdir}
+%dir %attr (0755,root,other) %{_libdir}/pkgconfig
+%{_libdir}/pkgconfig/*
+
+%changelog
+* Mon Jan 28 2008 - [email protected]
+- Initial spec.
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/SFEkoffice3.spec	Mon Jan 28 13:41:14 2008 +0000
@@ -0,0 +1,267 @@
+#
+# Copyright (c) 2008 Sun Microsystems, Inc.
+# This file and all modifications and additions to the pristine
+# package are under the same license as the package itself.
+
+%include Solaris.inc
+
+%define kde_version 3.5.8
+
+Name:                SFEkoffice3
+Summary:             KDE Office Suite Base Workspace
+Version:             1.6.3
+Source:              http://mirrors.isc.org/pub/kde/stable/koffice-%{version}/src/koffice-%{version}.tar.bz2
+Patch1:              koffice-01-krita.diff
+Patch2:              koffice-02-kross.diff
+Patch3:              koffice-03-kspread.diff
+Patch4:              koffice-04-objects.diff
+Patch5:              koffice-05-libart.diff
+Patch6:              koffice-06-build_kexi_file.diff
+
+Source1:             koffice.files
+Source2:             kexi.files
+Source3:             kivio.files
+Source4:             kplato.files
+Source5:             krita.files
+Source6:             kugar.files
+Source7:             kchart.files
+Source8:             kformula.files
+Source9:             karbon14.files
+Source10:            kpresenter.files
+Source11:            kspread.files
+Source12:            kword.files
+
+SUNW_BaseDir:        %{_basedir}
+BuildRoot:           %{_tmppath}/%{name}-%{version}-build
+%include default-depend.inc
+%include perl-depend.inc
+
+# This also brings in all relevenat deps including kdelibs, qt, aRts and others.
+Requires: SFEkdebase3
+BuildRequires: SFEkdebase3-devel
+Requires: SFEdoxygen
+Requires: SFEwv2
+BuildRequires: SFEwv2-devel
+Requires: SFEwpd
+BuildRequires: SFEwpd-devel
+Requires: SUNWPython
+BuildRequires: SUNWPython
+BuildRequires: SUNWpostgr-devel
+BuildRequires: SUNWmysqlu
+Requires: SFElcms
+BuildRequires: SFElcms-devel
+Requires: SUNWlibexif
+BuildRequires: SUNWlibexif-devel
+Requires: SFEgraphviz
+BuildRequires: SFEgraphviz-devel
+Requires: SUNWimagick
+BuildRequires: SUNWimagick
+Requires: SUNWruby18u
+BuildRequires: SUNWruby18u
+Requires: SFEgraphicsmagick
+BuildRequires: SFEgraphicsmagick-devel
+
+%package devel
+Summary:        %{summary} - development files
+SUNW_BaseDir:   %{_basedir}
+%include default-depend.inc
+Requires: %name
+Requires: SFEkdebase3-devel
+Requires: SFEwv2-devel
+Requires: SFEwpd-devel
+Requires: SUNWPython
+Requires: SUNWpostgr-devel
+Requires: SUNWmysqlu
+Requires: SFElcms-devel
+Requires: SUNWlibexif-devel
+Requires: SFEgraphviz-devel
+Requires: SUNWimagick
+
+%package kword
+Summary:        A frame-based word processor in KOffice suite
+SUNW_BaseDir:   %{_basedir}
+%include default-depend.inc
+Requires: %name
+
+%package kspread
+Summary:        A powerful spreadsheet application in KOffice suite
+SUNW_BaseDir:   %{_basedir}
+%include default-depend.inc
+Requires: %name
+
+%package kpresenter
+Summary:        A full-featured presentation program in KOffice suite
+SUNW_BaseDir:   %{_basedir}
+%include default-depend.inc
+Requires: %name
+
+%package kexi
+Summary:        An integrated environment for databases and database applications in KOffice suite
+SUNW_BaseDir:   %{_basedir}
+%include default-depend.inc
+Requires: %name
+
+%package kivio
+Summary:        A Visio(R)-style flowcharting application in KOffice suite
+SUNW_BaseDir:   %{_basedir}
+%include default-depend.inc
+Requires: %name
+
+%package karbon14
+Summary:        A vector drawing application in KOffice suite
+SUNW_BaseDir:   %{_basedir}
+%include default-depend.inc
+Requires: %name
+
+%package krita
+Summary:        A layered pixel image manipulation application in KOffice suite
+SUNW_BaseDir:   %{_basedir}
+%include default-depend.inc
+Requires: %name
+
+%package kplato
+Summary:        An integrated project management and planning tool in KOffice suite
+SUNW_BaseDir:   %{_basedir}
+%include default-depend.inc
+Requires: %name
+
+%package kchart
+Summary:        An integrated graph and chart drawing tool in KOffice suite
+SUNW_BaseDir:   %{_basedir}
+%include default-depend.inc
+Requires: %name
+
+%package kformula
+Summary:        A powerful formula editor in KOffice suite
+SUNW_BaseDir:   %{_basedir}
+%include default-depend.inc
+Requires: %name
+
+%package kugar
+Summary:        A tool for generating business quality reports in KOffice suite
+SUNW_BaseDir:   %{_basedir}
+%include default-depend.inc
+Requires: %name
+
+%prep
+%setup -q -n koffice-%version
+%patch1 -p1
+%patch2 -p1
+%patch3 -p1
+%patch4 -p1
+%patch5 -p1
+%patch6 -p1
+
+if [ "x`basename $CC`" != xgcc ]
+then
+	%error This spec file requires Gcc, set the CC and CXX env variables
+fi
+
+%build
+%define _buildpath %{_builddir}/koffice-%version
+
+CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
+if test "x$CPUS" = "x" -o $CPUS = 0; then
+     CPUS=1
+fi
+
+export CFLAGS="%optflags -fPIC -I%{xorg_inc} -I%{gnu_inc} -I%{sfw_inc} `/usr/bin/libart2-config --cflags` -D__EXTENSIONS__ -D__C99FEATURES__"
+
+export CXXFLAGS="%cxx_optflags -I%{xorg_inc} -I%{gnu_inc} -I%{sfw_inc} `/usr/bin/libart2-config --cflags` -D__EXTENSIONS__ -D__C99FEATURES__"
+
+export LDFLAGS="%_ldflags %{xorg_lib_path} %{gnu_lib_path} %{sfw_lib_path} -lc -lsocket -lnsl `/usr/bin/libart2-config --libs`"
+
+export LIBS=$LDFLAGS
+
+export PATH="${PATH}:/usr/openwin/bin"
+export FREETYPE_CONFIG=%{sfw_bin}/freetype-config
+extra_inc="%{xorg_inc}:%{gnu_inc}:%{sfw_inc}"
+sfw_prefix=`dirname %{sfw_bin}`
+export RUBY=/usr/ruby/1.8/bin/ruby
+
+./configure --prefix=%{_prefix} \
+           --sysconfdir=%{_sysconfdir} \
+           --enable-shared=yes \
+           --enable-static=no \
+           --enable-final \
+           --with-extra-includes="${extra_inc}" \
+           --with-ssl-dir="${sfw_prefix}"
+
+
+make -j$CPUS
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+make install DESTDIR=$RPM_BUILD_ROOT
+
+# KDE requires the .la files
+cp %{SOURCE1}  %{_buildpath}
+cp %{SOURCE2}  %{_buildpath}
+cp %{SOURCE3}  %{_buildpath}
+cp %{SOURCE4}  %{_buildpath}
+cp %{SOURCE5}  %{_buildpath}
+cp %{SOURCE6}  %{_buildpath}
+cp %{SOURCE7}  %{_buildpath}
+cp %{SOURCE8}  %{_buildpath}
+cp %{SOURCE9}  %{_buildpath}
+cp %{SOURCE10} %{_buildpath}
+cp %{SOURCE11} %{_buildpath}
+cp %{SOURCE12} %{_buildpath}
+
+export EPATT="karbon|chart|exi|kformula|kivio|plato|presenter|krita|kspread|kugar|kudes|kword"
+(cd ${RPM_BUILD_ROOT}; \
+    echo "%defattr (-, root, bin)" >> %{_buildpath}/koffice.files; \
+    find ./%{_bindir} ./%{_libdir} \( -type f -o -type l \) | \
+    egrep -v "$EPATT" | \
+    sed 's/^\.\///' >> %{_buildpath}/koffice.files)
+
+(cd ${RPM_BUILD_ROOT}; \
+    echo "%defattr (-, root, other)" >> %{_buildpath}/koffice.files; \
+    find ./%{_datadir} \( -type f -o -type l \) | \
+    egrep -v "$EPATT" | \
+    sed 's/^\.\///' >> %{_buildpath}/koffice.files)
+
+(cd ${RPM_BUILD_ROOT}; \
+    find ./%{_datadir}/icons ./%{_datadir}/apps/koffice/icons \( -type f -o -type l \) | \
+    egrep "$EPATT" | \
+    sed 's/^\.\///' >> %{_buildpath}/koffice.files)
+
+
+rm -rf ${RPM_BUILD_ROOT}%{_datadir}/doc/HTML/en/koffice-apidocs
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files -f koffice.files
+
+%files kword -f kword.files
+
+%files kspread -f kspread.files
+
+%files kpresenter -f kpresenter.files
+
+%files kexi -f kexi.files
+
+%files kivio -f kivio.files
+
+%files karbon14 -f karbon14.files
+
+%files krita -f krita.files
+
+%files kplato -f kplato.files
+
+%files kchart -f kchart.files
+
+%files kformula -f kformula.files
+
+%files kugar -f kugar.files
+
+%files devel
+%defattr (-, root, bin)
+%dir %attr (0755, root, bin) %{_includedir}
+%{_includedir}/*
+
+%changelog
+* Mon Jan 28 2008 - [email protected]
+- Initial spec.
--- a/ext-sources/buildkde	Mon Jan 28 07:23:05 2008 +0000
+++ b/ext-sources/buildkde	Mon Jan 28 13:41:14 2008 +0000
@@ -32,6 +32,9 @@
 #
 # Changelog
 #
+# 2008-01-28 - Moinak Ghosh <[email protected]>
+# Add new packages.
+#
 # 2008-01-26 - Moinak Ghosh <[email protected]>
 # Fix another bad mistake in previous commit.
 #
@@ -82,6 +85,7 @@
 	CXX64=$CXX
 	export CC CC32 CC64 CXX CXX32 CXX64
 
+	[ -n "$EXTRA_PKGTOOL_OPTIONS" ] && PKGTOOL_OPTIONS="${PKGTOOL_OPTIONS} ${EXTRA_PKGTOOL_OPTIONS}"
 	pkgtool build ${PKGTOOL_OPTIONS} --download ${specs}
 
 	if [ $? -ne 0 ]
@@ -91,8 +95,6 @@
 	fi
 }
 
-#if [ 0 -eq 1 ]
-#then
 if [ `pkginfo -q SUNWgnu-libiconv` ]
 then
 	if [ `pkginfo -q SFEgettext` ]
@@ -248,9 +250,19 @@
 export _USE_GCC3_
 call_pkgtool $_GCC "encumbered/SFExine-lib.spec"
 unset _USE_GCC3_
-#fi
 
 call_pkgtool $_GCC "SFEamarok1.spec:SFEkdeedu3.spec:SFEkdetoys3.spec"
 
-call_pkgtool $_STUDIO "SFElibgsf.spec:SFEwv2.spec"
+EXTRA_PKGTOOL_OPTIONS="--with-gnu-iconv"
+export EXTRA_PKGTOOL_OPTIONS
+call_pkgtool $_STUDIO "SFElibgsf.spec"
+call_pkgtool $_GCC "SFEwv2.spec"
+unset EXTRA_PKGTOOL_OPTIONS
 
+call_pkgtool $_GCC "SFEwpd.spec:SFElibpqxx.spec"
+
+# TODO: Need to upgrade SUNW imagick
+# call_pkgtool $_STUDIO "SFEimagemagick.spec"
+call_pkgtool $_STUDIO "SFEgraphicsmagick.spec"
+
+call_pkgtool $_GCC "SFEkoffice3.spec"
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/ext-sources/karbon14.files	Mon Jan 28 13:41:14 2008 +0000
@@ -0,0 +1,33 @@
+%defattr (-, root, bin)
+%dir %attr (0755, root, bin) %{_bindir}
+%{_bindir}/*karbon*
+%dir %attr (0755, root, bin) %{_libdir}
+%{_libdir}/*karbon*
+%dir %attr (0755, root, other) %{_libdir}/kde3
+%{_libdir}/kde3/*karbon*
+
+%defattr (-, root, other)
+%dir %attr (0755, root, sys) %{_datadir}
+%dir %attr (0755, root, other) %{_datadir}/apps
+%dir %attr (0755, root, other) %{_datadir}/apps/karbon
+%{_datadir}/apps/karbon/*
+%dir %attr (0755, root, other) %{_datadir}/apps/konqueror
+%dir %attr (0755, root, other) %{_datadir}/apps/konqueror/servicemenus
+%{_datadir}/apps/konqueror/servicemenus/*karbon*
+%dir %attr (0755, root, other) %{_datadir}/services
+%{_datadir}/services/*karbon*
+%dir %attr (0755, root, other) %{_datadir}/applications
+%dir %attr (0755, root, other) %{_datadir}/applications/kde
+%{_datadir}/applications/kde/*karbon*
+%dir %attr (0755, root, other) %{_datadir}/servicetypes
+%{_datadir}/servicetypes/*karbon*
+%dir %attr (0755, root, other) %{_datadir}/templates
+%dir %attr (0755, root, other) %{_datadir}/templates/.source
+%{_datadir}/templates/.source/*karbon*
+
+%defattr (-, root, bin)
+%dir %attr (0755, root, other) %{_datadir}/doc
+%dir %attr (0755, root, bin) %{_datadir}/doc/HTML
+%dir %attr (0755, root, bin) %{_datadir}/doc/HTML/en
+%dir %attr (0755, root, bin) %{_datadir}/doc/HTML/en/karbon
+%{_datadir}/doc/HTML/en/karbon/*
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/ext-sources/kchart.files	Mon Jan 28 13:41:14 2008 +0000
@@ -0,0 +1,30 @@
+%defattr (-, root, bin)
+%dir %attr (0755, root, bin) %{_bindir}
+%{_bindir}/*chart*
+%dir %attr (0755, root, bin) %{_libdir}
+%{_libdir}/*chart*
+%dir %attr (0755, root, other) %{_libdir}/kde3
+%{_libdir}/kde3/*chart*
+
+%defattr (-, root, other)
+%dir %attr (0755, root, sys) %{_datadir}
+%dir %attr (0755, root, other) %{_datadir}/apps
+%dir %attr (0755, root, other) %{_datadir}/apps/kchart
+%{_datadir}/apps/kchart/*
+%dir %attr (0755, root, other) %{_datadir}/apps/konqueror
+%dir %attr (0755, root, other) %{_datadir}/apps/konqueror/servicemenus
+%{_datadir}/apps/konqueror/servicemenus/*kchart*
+%dir %attr (0755, root, other) %{_datadir}/services
+%{_datadir}/services/*chart*
+%dir %attr (0755, root, other) %{_datadir}/applications
+%dir %attr (0755, root, other) %{_datadir}/applications/kde
+%{_datadir}/applications/kde/*chart*
+%dir %attr (0755, root, other) %{_datadir}/servicetypes
+%{_datadir}/servicetypes/*chart*
+
+%defattr (-, root, bin)
+%dir %attr (0755, root, other) %{_datadir}/doc
+%dir %attr (0755, root, bin) %{_datadir}/doc/HTML
+%dir %attr (0755, root, bin) %{_datadir}/doc/HTML/en
+%dir %attr (0755, root, bin) %{_datadir}/doc/HTML/en/kchart
+%{_datadir}/doc/HTML/en/kchart/*
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/ext-sources/kexi.files	Mon Jan 28 13:41:14 2008 +0000
@@ -0,0 +1,43 @@
+%defattr (-, root, bin)
+%dir %attr (0755, root, bin) %{_bindir}
+%{_bindir}/*exi*
+%dir %attr (0755, root, bin) %{_libdir}
+%{_libdir}/*exi*
+%dir %attr (0755, root, other) %{_libdir}/kde3
+%{_libdir}/kde3/kexi*
+%{_libdir}/kde3/*_kexi*
+%{_libdir}/kde3/krosskexi*
+
+%defattr (-, root, other)
+%dir %attr (0755, root, sys) %{_datadir}
+%dir %attr (0755, root, other) %{_datadir}/apps
+%dir %attr (0755, root, other) %{_datadir}/apps/konqueror
+%dir %attr (0755, root, other) %{_datadir}/apps/konqueror/servicemenus
+%{_datadir}/apps/konqueror/servicemenus/*exi*
+%dir %attr (0755, root, other) %{_datadir}/apps/kexi
+%{_datadir}/apps/kexi/*
+%dir %attr (0755, root, other) %{_datadir}/services
+%{_datadir}/services/kexi*
+%dir %attr (0755, root, other) %{_datadir}/services/kformdesigner
+%{_datadir}/services/kformdesigner/*exi*
+%dir %attr (0755, root, other) %{_datadir}/applications
+%dir %attr (0755, root, other) %{_datadir}/applications/kde
+%{_datadir}/applications/kde/*exi*
+%dir %attr (0755, root, other) %{_datadir}/servicetypes
+%{_datadir}/servicetypes/*exi*
+%dir %attr (0755, root, other) %{_datadir}/config
+%{_datadir}/config/*
+%dir %attr (0755, root, other) %{_datadir}/mimelnk
+%dir %attr (0755, root, other) %{_datadir}/mimelnk/application
+%{_datadir}/mimelnk/application/*exi*
+%dir %attr (0755, root, other) %{_datadir}/locale
+%dir %attr (0755, root, other) %{_datadir}/locale/pl
+%dir %attr (0755, root, other) %{_datadir}/locale/pl/LC_MESSAGES
+%{_datadir}/locale/pl/LC_MESSAGES/*exi*
+
+%defattr (-, root, bin)
+%dir %attr (0755, root, other) %{_datadir}/doc
+%dir %attr (0755, root, bin) %{_datadir}/doc/HTML
+%dir %attr (0755, root, bin) %{_datadir}/doc/HTML/en
+%dir %attr (0755, root, bin) %{_datadir}/doc/HTML/en/kexi
+%{_datadir}/doc/HTML/en/kexi/*
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/ext-sources/kformula.files	Mon Jan 28 13:41:14 2008 +0000
@@ -0,0 +1,28 @@
+%defattr (-, root, bin)
+%dir %attr (0755, root, bin) %{_bindir}
+%{_bindir}/*kformula*
+%dir %attr (0755, root, bin) %{_libdir}
+%{_libdir}/*kformula*
+%dir %attr (0755, root, other) %{_libdir}/kde3
+%{_libdir}/kde3/*kformula*
+
+%defattr (-, root, other)
+%dir %attr (0755, root, sys) %{_datadir}
+%dir %attr (0755, root, other) %{_datadir}/apps
+%dir %attr (0755, root, other) %{_datadir}/apps/kformula
+%{_datadir}/apps/kformula/*
+%dir %attr (0755, root, other) %{_datadir}/apps/konqueror
+%dir %attr (0755, root, other) %{_datadir}/apps/konqueror/servicemenus
+%{_datadir}/apps/konqueror/servicemenus/*kformula*
+%dir %attr (0755, root, other) %{_datadir}/services
+%{_datadir}/services/*kformula*
+%dir %attr (0755, root, other) %{_datadir}/applications
+%dir %attr (0755, root, other) %{_datadir}/applications/kde
+%{_datadir}/applications/kde/*kformula*
+
+%defattr (-, root, bin)
+%dir %attr (0755, root, other) %{_datadir}/doc
+%dir %attr (0755, root, bin) %{_datadir}/doc/HTML
+%dir %attr (0755, root, bin) %{_datadir}/doc/HTML/en
+%dir %attr (0755, root, bin) %{_datadir}/doc/HTML/en/kformula
+%{_datadir}/doc/HTML/en/kformula/*
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/ext-sources/kivio.files	Mon Jan 28 13:41:14 2008 +0000
@@ -0,0 +1,30 @@
+%defattr (-, root, bin)
+%dir %attr (0755, root, bin) %{_bindir}
+%{_bindir}/*kivio*
+%dir %attr (0755, root, bin) %{_libdir}
+%{_libdir}/*kivio*
+%dir %attr (0755, root, other) %{_libdir}/kde3
+%{_libdir}/kde3/*kivio*
+
+%defattr (-, root, other)
+%dir %attr (0755, root, sys) %{_datadir}
+%dir %attr (0755, root, other) %{_datadir}/apps
+%dir %attr (0755, root, other) %{_datadir}/apps/kivio
+%{_datadir}/apps/kivio/*
+%dir %attr (0755, root, other) %{_datadir}/apps/konqueror
+%dir %attr (0755, root, other) %{_datadir}/apps/konqueror/servicemenus
+%{_datadir}/apps/konqueror/servicemenus/*kivio*
+%dir %attr (0755, root, other) %{_datadir}/services
+%{_datadir}/services/*kivio*
+%dir %attr (0755, root, other) %{_datadir}/applications
+%dir %attr (0755, root, other) %{_datadir}/applications/kde
+%{_datadir}/applications/kde/*kivio*
+%dir %attr (0755, root, other) %{_datadir}/config.kcfg
+%{_datadir}/config.kcfg/*kivio*
+
+%defattr (-, root, bin)
+%dir %attr (0755, root, other) %{_datadir}/doc
+%dir %attr (0755, root, bin) %{_datadir}/doc/HTML
+%dir %attr (0755, root, bin) %{_datadir}/doc/HTML/en
+%dir %attr (0755, root, bin) %{_datadir}/doc/HTML/en/kivio
+%{_datadir}/doc/HTML/en/kivio/*
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/ext-sources/koffice.files	Mon Jan 28 13:41:14 2008 +0000
@@ -0,0 +1,100 @@
+%dir %attr (0755, root, bin) %{_bindir}
+%dir %attr (0755, root, bin) %{_libdir}
+%dir %attr (0755, root, other) %{_libdir}/kde3
+%dir %attr (0755, root, sys) %{_datadir}
+%dir %attr (0755, root, other) %{_datadir}/apps
+%dir %attr (0755, root, other) %{_datadir}/apps/kross
+%dir %attr (0755, root, other) %{_datadir}/apps/kross/python
+%dir %attr (0755, root, other) %{_datadir}/apps/kross/python/RestrictedPython
+%dir %attr (0755, root, other) %{_datadir}/apps/koffice
+%dir %attr (0755, root, other) %{_datadir}/apps/koffice/pics
+%dir %attr (0755, root, other) %{_datadir}/apps/koffice/hyphdicts
+%dir %attr (0755, root, other) %{_datadir}/apps/koffice/icons
+%dir %attr (0755, root, other) %{_datadir}/apps/koffice/icons/crystalsvg
+%dir %attr (0755, root, other) %{_datadir}/apps/koffice/icons/crystalsvg/16x16
+%dir %attr (0755, root, other) %{_datadir}/apps/koffice/icons/crystalsvg/16x16/actions
+%dir %attr (0755, root, other) %{_datadir}/apps/koffice/icons/crystalsvg/16x16/apps
+%dir %attr (0755, root, other) %{_datadir}/apps/koffice/icons/crystalsvg/22x22
+%dir %attr (0755, root, other) %{_datadir}/apps/koffice/icons/crystalsvg/22x22/actions
+%dir %attr (0755, root, other) %{_datadir}/apps/koffice/icons/crystalsvg/scalable
+%dir %attr (0755, root, other) %{_datadir}/apps/koffice/icons/crystalsvg/scalable/actions
+%dir %attr (0755, root, other) %{_datadir}/apps/koffice/icons/crystalsvg/48x48
+%dir %attr (0755, root, other) %{_datadir}/apps/koffice/icons/crystalsvg/48x48/actions
+%dir %attr (0755, root, other) %{_datadir}/apps/koffice/icons/crystalsvg/48x48/apps
+%dir %attr (0755, root, other) %{_datadir}/apps/koffice/icons/crystalsvg/32x32
+%dir %attr (0755, root, other) %{_datadir}/apps/koffice/icons/crystalsvg/32x32/actions
+%dir %attr (0755, root, other) %{_datadir}/apps/koffice/icons/crystalsvg/32x32/apps
+%dir %attr (0755, root, other) %{_datadir}/apps/koffice/autocorrect
+%dir %attr (0755, root, other) %{_datadir}/apps/kofficewidgets
+%dir %attr (0755, root, other) %{_datadir}/apps/kofficewidgets/pics
+%dir %attr (0755, root, other) %{_datadir}/apps/koshell
+%dir %attr (0755, root, other) %{_datadir}/apps/thesaurus
+%dir %attr (0755, root, other) %{_datadir}/apps/konqueror
+%dir %attr (0755, root, other) %{_datadir}/apps/konqueror/servicemenus
+%dir %attr (0755, root, other) %{_datadir}/apps/xsltfilter
+%dir %attr (0755, root, other) %{_datadir}/apps/xsltfilter/export
+%dir %attr (0755, root, other) %{_datadir}/services
+%dir %attr (0755, root, other) %{_datadir}/services/kformdesigner
+%dir %attr (0755, root, other) %{_datadir}/doc
+%dir %attr (0755, root, bin) %{_datadir}/doc/HTML
+%dir %attr (0755, root, bin) %{_datadir}/doc/HTML/en
+%dir %attr (0755, root, other) %{_datadir}/icons
+%dir %attr (0755, root, other) %{_datadir}/icons/crystalsvg
+%dir %attr (0755, root, other) %{_datadir}/icons/crystalsvg/22x22
+%dir %attr (0755, root, other) %{_datadir}/icons/crystalsvg/22x22/actions
+%dir %attr (0755, root, other) %{_datadir}/icons/crystalsvg/22x22/apps
+%dir %attr (0755, root, other) %{_datadir}/icons/crystalsvg/32x32
+%dir %attr (0755, root, other) %{_datadir}/icons/crystalsvg/32x32/actions
+%dir %attr (0755, root, other) %{_datadir}/icons/crystalsvg/32x32/mimetypes
+%dir %attr (0755, root, other) %{_datadir}/icons/crystalsvg/32x32/apps
+%dir %attr (0755, root, other) %{_datadir}/icons/crystalsvg/16x16
+%dir %attr (0755, root, other) %{_datadir}/icons/crystalsvg/16x16/actions
+%dir %attr (0755, root, other) %{_datadir}/icons/crystalsvg/16x16/mimetypes
+%dir %attr (0755, root, other) %{_datadir}/icons/crystalsvg/16x16/apps
+%dir %attr (0755, root, other) %{_datadir}/icons/crystalsvg/64x64
+%dir %attr (0755, root, other) %{_datadir}/icons/crystalsvg/64x64/apps
+%dir %attr (0755, root, other) %{_datadir}/icons/crystalsvg/128x128
+%dir %attr (0755, root, other) %{_datadir}/icons/crystalsvg/128x128/apps
+%dir %attr (0755, root, other) %{_datadir}/icons/crystalsvg/scalable
+%dir %attr (0755, root, other) %{_datadir}/icons/crystalsvg/scalable/apps
+%dir %attr (0755, root, other) %{_datadir}/icons/crystalsvg/48x48
+%dir %attr (0755, root, other) %{_datadir}/icons/crystalsvg/48x48/apps
+%dir %attr (0755, root, other) %{_datadir}/icons/hicolor
+%dir %attr (0755, root, other) %{_datadir}/icons/hicolor/22x22
+%dir %attr (0755, root, other) %{_datadir}/icons/hicolor/22x22/apps
+%dir %attr (0755, root, other) %{_datadir}/icons/hicolor/32x32
+%dir %attr (0755, root, other) %{_datadir}/icons/hicolor/32x32/apps
+%dir %attr (0755, root, other) %{_datadir}/icons/hicolor/16x16
+%dir %attr (0755, root, other) %{_datadir}/icons/hicolor/16x16/apps
+%dir %attr (0755, root, other) %{_datadir}/icons/hicolor/48x48
+%dir %attr (0755, root, other) %{_datadir}/icons/hicolor/48x48/apps
+%dir %attr (0755, root, other) %{_datadir}/icons/hicolor/scalable
+%dir %attr (0755, root, other) %{_datadir}/icons/hicolor/scalable/apps
+%dir %attr (0755, root, other) %{_datadir}/icons/hicolor/128x128
+%dir %attr (0755, root, other) %{_datadir}/icons/hicolor/128x128/apps
+%dir %attr (0755, root, other) %{_datadir}/icons/hicolor/64x64
+%dir %attr (0755, root, other) %{_datadir}/icons/hicolor/64x64/apps
+%dir %attr (0755, root, other) %{_datadir}/icons/locolor
+%dir %attr (0755, root, other) %{_datadir}/icons/locolor/16x16
+%dir %attr (0755, root, other) %{_datadir}/icons/locolor/16x16/apps
+%dir %attr (0755, root, other) %{_datadir}/icons/locolor/32x32
+%dir %attr (0755, root, other) %{_datadir}/icons/locolor/32x32/apps
+%dir %attr (0755, root, bin) %{_datadir}/doc/HTML/en/koffice
+%dir %attr (0755, root, bin) %{_datadir}/doc/HTML/en/thesaurus
+%dir %attr (0755, root, bin) %{_datadir}/doc/HTML/en/koshell
+%dir %attr (0755, root, other) %{_datadir}/applications
+%dir %attr (0755, root, other) %{_datadir}/applications/kde
+%dir %attr (0755, root, other) %{_datadir}/servicetypes
+%dir %attr (0755, root, other) %{_datadir}/config.kcfg
+%dir %attr (0755, root, other) %{_datadir}/templates
+%dir %attr (0755, root, other) %{_datadir}/templates/.source
+%dir %attr (0755, root, other) %{_datadir}/applnk
+%dir %attr (0755, root, other) %{_datadir}/applnk/Office
+%dir %attr (0755, root, other) %{_datadir}/applnk/.hidden
+%dir %attr (0755, root, other) %{_datadir}/config
+%dir %attr (0755, root, other) %{_datadir}/config/magic
+%dir %attr (0755, root, other) %{_datadir}/mimelnk
+%dir %attr (0755, root, other) %{_datadir}/mimelnk/application
+%dir %attr (0755, root, other) %{_datadir}/locale
+%dir %attr (0755, root, other) %{_datadir}/locale/pl
+%dir %attr (0755, root, other) %{_datadir}/locale/pl/LC_MESSAGES
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/ext-sources/kplato.files	Mon Jan 28 13:41:14 2008 +0000
@@ -0,0 +1,25 @@
+%defattr (-, root, bin)
+%dir %attr (0755, root, bin) %{_bindir}
+%{_bindir}/*plato*
+%dir %attr (0755, root, bin) %{_libdir}
+%{_libdir}/*plato*
+%dir %attr (0755, root, other) %{_libdir}/kde3
+%{_libdir}/kde3/*plato*
+
+%defattr (-, root, other)
+%dir %attr (0755, root, sys) %{_datadir}
+%dir %attr (0755, root, other) %{_datadir}/apps
+%dir %attr (0755, root, other) %{_datadir}/apps/kplato
+%{_datadir}/apps/kplato/*
+%dir %attr (0755, root, other) %{_datadir}/services
+%{_datadir}/services/*plato*
+%dir %attr (0755, root, other) %{_datadir}/applications
+%dir %attr (0755, root, other) %{_datadir}/applications/kde
+%{_datadir}/applications/kde/*plato*
+
+%defattr (-, root, bin)
+%dir %attr (0755, root, other) %{_datadir}/doc
+%dir %attr (0755, root, bin) %{_datadir}/doc/HTML
+%dir %attr (0755, root, bin) %{_datadir}/doc/HTML/en
+%dir %attr (0755, root, bin) %{_datadir}/doc/HTML/en/kplato
+%{_datadir}/doc/HTML/en/kplato/*
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/ext-sources/kpresenter.files	Mon Jan 28 13:41:14 2008 +0000
@@ -0,0 +1,28 @@
+%defattr (-, root, bin)
+%dir %attr (0755, root, bin) %{_bindir}
+%{_bindir}/*presenter*
+%dir %attr (0755, root, bin) %{_libdir}
+%{_libdir}/*presenter*
+%dir %attr (0755, root, other) %{_libdir}/kde3
+%{_libdir}/kde3/*presenter*
+
+%defattr (-, root, other)
+%dir %attr (0755, root, sys) %{_datadir}
+%dir %attr (0755, root, other) %{_datadir}/apps
+%dir %attr (0755, root, other) %{_datadir}/apps/kpresenter
+%{_datadir}/apps/kpresenter/*
+%dir %attr (0755, root, other) %{_datadir}/apps/konqueror
+%dir %attr (0755, root, other) %{_datadir}/apps/konqueror/servicemenus
+%{_datadir}/apps/konqueror/servicemenus/*presenter*
+%dir %attr (0755, root, other) %{_datadir}/services
+%{_datadir}/services/*presenter*
+%dir %attr (0755, root, other) %{_datadir}/applications
+%dir %attr (0755, root, other) %{_datadir}/applications/kde
+%{_datadir}/applications/kde/*presenter*
+
+%defattr (-, root, bin)
+%dir %attr (0755, root, other) %{_datadir}/doc
+%dir %attr (0755, root, bin) %{_datadir}/doc/HTML
+%dir %attr (0755, root, bin) %{_datadir}/doc/HTML/en
+%dir %attr (0755, root, bin) %{_datadir}/doc/HTML/en/kpresenter
+%{_datadir}/doc/HTML/en/kpresenter/*
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/ext-sources/krita.files	Mon Jan 28 13:41:14 2008 +0000
@@ -0,0 +1,35 @@
+%defattr (-, root, bin)
+%dir %attr (0755, root, bin) %{_bindir}
+%{_bindir}/*krita*
+%dir %attr (0755, root, bin) %{_libdir}
+%{_libdir}/*krita*
+%dir %attr (0755, root, other) %{_libdir}/kde3
+%{_libdir}/kde3/*krita*
+
+%defattr (-, root, other)
+%dir %attr (0755, root, sys) %{_datadir}
+%dir %attr (0755, root, other) %{_datadir}/apps
+%dir %attr (0755, root, other) %{_datadir}/apps/krita
+%{_datadir}/apps/krita/*
+%dir %attr (0755, root, other) %{_datadir}/apps/kritaplugins
+%{_datadir}/apps/kritaplugins/*
+%dir %attr (0755, root, other) %{_datadir}/apps/konqueror
+%dir %attr (0755, root, other) %{_datadir}/apps/konqueror/servicemenus
+%{_datadir}/apps/konqueror/servicemenus/*krita*
+%dir %attr (0755, root, other) %{_datadir}/services
+%{_datadir}/services/*krita*
+%dir %attr (0755, root, other) %{_datadir}/applications
+%dir %attr (0755, root, other) %{_datadir}/applications/kde
+%{_datadir}/applications/kde/*krita*
+%dir %attr (0755, root, other) %{_datadir}/servicetypes
+%{_datadir}/servicetypes/*krita*
+%dir %attr (0755, root, other) %{_datadir}/applnk
+%dir %attr (0755, root, other) %{_datadir}/applnk/.hidden
+%{_datadir}/applnk/.hidden/*krita*
+
+%defattr (-, root, bin)
+%dir %attr (0755, root, other) %{_datadir}/doc
+%dir %attr (0755, root, bin) %{_datadir}/doc/HTML
+%dir %attr (0755, root, bin) %{_datadir}/doc/HTML/en
+%dir %attr (0755, root, bin) %{_datadir}/doc/HTML/en/krita
+%{_datadir}/doc/HTML/en/krita/*
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/ext-sources/kspread.files	Mon Jan 28 13:41:14 2008 +0000
@@ -0,0 +1,28 @@
+%defattr (-, root, bin)
+%dir %attr (0755, root, bin) %{_bindir}
+%{_bindir}/*kspread*
+%dir %attr (0755, root, bin) %{_libdir}
+%{_libdir}/*kspread*
+%dir %attr (0755, root, other) %{_libdir}/kde3
+%{_libdir}/kde3/*kspread*
+
+%defattr (-, root, other)
+%dir %attr (0755, root, sys) %{_datadir}
+%dir %attr (0755, root, other) %{_datadir}/apps
+%dir %attr (0755, root, other) %{_datadir}/apps/kspread
+%{_datadir}/apps/kspread/*
+%dir %attr (0755, root, other) %{_datadir}/apps/konqueror
+%dir %attr (0755, root, other) %{_datadir}/apps/konqueror/servicemenus
+%{_datadir}/apps/konqueror/servicemenus/*kspread*
+%dir %attr (0755, root, other) %{_datadir}/services
+%{_datadir}/services/*kspread*
+%dir %attr (0755, root, other) %{_datadir}/applications
+%dir %attr (0755, root, other) %{_datadir}/applications/kde
+%{_datadir}/applications/kde/*kspread*
+
+%defattr (-, root, bin)
+%dir %attr (0755, root, other) %{_datadir}/doc
+%dir %attr (0755, root, bin) %{_datadir}/doc/HTML
+%dir %attr (0755, root, bin) %{_datadir}/doc/HTML/en
+%dir %attr (0755, root, bin) %{_datadir}/doc/HTML/en/kspread
+%{_datadir}/doc/HTML/en/kspread/*
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/ext-sources/kugar.files	Mon Jan 28 13:41:14 2008 +0000
@@ -0,0 +1,31 @@
+%defattr (-, root, bin)
+%dir %attr (0755, root, bin) %{_bindir}
+%{_bindir}/*kugar*
+%{_bindir}/*kudes*
+%dir %attr (0755, root, bin) %{_libdir}
+%{_libdir}/*kugar*
+%{_libdir}/*kudes*
+%dir %attr (0755, root, other) %{_libdir}/kde3
+%{_libdir}/kde3/*kugar*
+%{_libdir}/kde3/*kudes*
+
+%defattr (-, root, other)
+%dir %attr (0755, root, sys) %{_datadir}
+%dir %attr (0755, root, other) %{_datadir}/apps
+%dir %attr (0755, root, other) %{_datadir}/apps/kugar
+%{_datadir}/apps/kugar/*
+%dir %attr (0755, root, other) %{_datadir}/apps/kudesigner
+%{_datadir}/apps/kudesigner/*
+%dir %attr (0755, root, other) %{_datadir}/services
+%{_datadir}/services/*kugar*
+%dir %attr (0755, root, other) %{_datadir}/applications
+%dir %attr (0755, root, other) %{_datadir}/applications/kde
+%{_datadir}/applications/kde/*kugar*
+%{_datadir}/applications/kde/*kudes*
+
+%defattr (-, root, bin)
+%dir %attr (0755, root, other) %{_datadir}/doc
+%dir %attr (0755, root, bin) %{_datadir}/doc/HTML
+%dir %attr (0755, root, bin) %{_datadir}/doc/HTML/en
+%dir %attr (0755, root, bin) %{_datadir}/doc/HTML/en/kugar
+%{_datadir}/doc/HTML/en/kugar/*
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/ext-sources/kword.files	Mon Jan 28 13:41:14 2008 +0000
@@ -0,0 +1,32 @@
+%defattr (-, root, bin)
+%dir %attr (0755, root, bin) %{_bindir}
+%{_bindir}/*kword*
+%dir %attr (0755, root, bin) %{_libdir}
+%{_libdir}/*kword*
+%dir %attr (0755, root, other) %{_libdir}/kde3
+%{_libdir}/kde3/*kword*
+
+%defattr (-, root, other)
+%dir %attr (0755, root, sys) %{_datadir}
+%dir %attr (0755, root, other) %{_datadir}/apps
+%dir %attr (0755, root, other) %{_datadir}/apps/kword
+%{_datadir}/apps/kword/*
+%dir %attr (0755, root, other) %{_datadir}/apps/konqueror
+%dir %attr (0755, root, other) %{_datadir}/apps/konqueror/servicemenus
+%{_datadir}/apps/konqueror/servicemenus/*kword*
+%dir %attr (0755, root, other) %{_datadir}/apps/xsltfilter
+%dir %attr (0755, root, other) %{_datadir}/apps/xsltfilter/export
+%dir %attr (0755, root, other) %{_datadir}/apps/xsltfilter/export/kword
+%{_datadir}/apps/xsltfilter/export/kword/*
+%dir %attr (0755, root, other) %{_datadir}/services
+%{_datadir}/services/*kword*
+%dir %attr (0755, root, other) %{_datadir}/applications
+%dir %attr (0755, root, other) %{_datadir}/applications/kde
+%{_datadir}/applications/kde/*kword*
+
+%defattr (-, root, bin)
+%dir %attr (0755, root, other) %{_datadir}/doc
+%dir %attr (0755, root, bin) %{_datadir}/doc/HTML
+%dir %attr (0755, root, bin) %{_datadir}/doc/HTML/en
+%dir %attr (0755, root, bin) %{_datadir}/doc/HTML/en/kword
+%{_datadir}/doc/HTML/en/kword/*
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/patches/koffice-01-krita.diff	Mon Jan 28 13:41:14 2008 +0000
@@ -0,0 +1,23 @@
+--- koffice-1.4.90/krita/core/tiles/kis_tilemanager.cc.orig	Sat Feb 18 22:21:16 2006
++++ koffice-1.4.90/krita/core/tiles/kis_tilemanager.cc	Sat Feb 18 22:37:39 2006
+@@ -18,8 +18,8 @@
+ 
+ #include <kdebug.h>
+ 
+-#include <sys/mman.h>
+ #include <sys/types.h>
++#include <sys/mman.h>
+ #include <sys/stat.h>
+ #include <unistd.h>
+ #include <string.h>
+@@ -36,6 +36,10 @@
+ #include "kis_tile.h"
+ #include "kis_tilemanager.h"
+ 
++extern "C" {
++extern int madvise(void *addr, size_t, int);
++}
++
+ // Note: the cache file doesn't get deleted when we crash and so :(
+ 
+ KisTileManager* KisTileManager::m_singleton = 0;
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/patches/koffice-02-kross.diff	Mon Jan 28 13:41:14 2008 +0000
@@ -0,0 +1,20 @@
+--- koffice-1.4.90/lib/kross/python/cxx/cxxsupport.cxx.orig	Sat Feb 18 21:42:02 2006
++++ koffice-1.4.90/lib/kross/python/cxx/cxxsupport.cxx	Sat Feb 18 21:42:14 2006
+@@ -3,6 +3,7 @@
+ // All rights reserved. See Legal.htm for full text and disclaimer.
+ //---------------------------------------------------------------------------//
+ 
++#include <wchar.h>
+ #include "Objects.hxx"
+ namespace Py {
+ 
+--- koffice-1.4.90/lib/kross/python/pythonextension.cpp.orig	Sat Feb 18 21:47:50 2006
++++ koffice-1.4.90/lib/kross/python/pythonextension.cpp	Sat Feb 18 21:47:11 2006
+@@ -17,6 +17,7 @@
+  * Boston, MA 02110-1301, USA.
+  ***************************************************************************/
+ 
++#include <wchar.h>
+ #include "pythonextension.h"
+ #include "pythonobject.h"
+ 
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/patches/koffice-03-kspread.diff	Mon Jan 28 13:41:14 2008 +0000
@@ -0,0 +1,12 @@
+--- koffice-1.6.2/filters/kspread/opencalc/opencalcexport.cc.orig	Sat May 19 18:51:12 2007
++++ koffice-1.6.2/filters/kspread/opencalc/opencalcexport.cc	Sat May 19 18:51:51 2007
+@@ -196,8 +196,7 @@
+   QDomNode officeMeta = meta.createElement( "office:meta" );
+ 
+   QDomElement data = meta.createElement( "meta:generator" );
+-  QString app( "KSpread " );
+-  app += KSpread::version;
++  QString app( "KSpread 1.6.2" );
+   data.appendChild( meta.createTextNode( app ) );
+   officeMeta.appendChild( data );
+ 
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/patches/koffice-04-objects.diff	Mon Jan 28 13:41:14 2008 +0000
@@ -0,0 +1,34 @@
+--- koffice-1.6.3/lib/kross/python/cxx/Objects.hxx.orig	2008-01-27 10:32:09.182777156 +0530
++++ koffice-1.6.3/lib/kross/python/cxx/Objects.hxx	2008-01-27 10:32:47.388837002 +0530
+@@ -11,6 +11,14 @@
+ #undef _XOPEN_SOURCE
+ #endif
+ 
++// Prevent multiple conflicting definitions of swab
++// from stdlib.h and unistd.h
++#if defined(__sun) || defined(sun)
++#if defined(_XPG4)
++#undef _XPG4
++#endif
++#endif
++
+ #include "Python.h"
+ #include "Config.hxx"
+ #include "Exception.hxx"
+--- koffice-1.6.3/lib/kross/python/pythonconfig.h.orig	2008-01-27 10:45:34.230137269 +0530
++++ koffice-1.6.3/lib/kross/python/pythonconfig.h	2008-01-27 10:45:55.664385109 +0530
+@@ -30,6 +30,14 @@
+   #undef _POSIX_C_SOURCE
+ #endif
+ 
++// Prevent multiple conflicting definitions of swab
++// from stdlib.h and unistd.h
++#if defined(__sun) || defined(sun)
++#if defined(_XPG4)
++#undef _XPG4
++#endif
++#endif
++
+ // The Python.h needs to be included first.
+ #include <Python.h>
+ #include <object.h>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/patches/koffice-05-libart.diff	Mon Jan 28 13:41:14 2008 +0000
@@ -0,0 +1,65 @@
+--- koffice-1.6.3/karbon/render/art_rgb.h.orig	2008-01-27 11:10:37.443276358 +0530
++++ koffice-1.6.3/karbon/render/art_rgb.h	2008-01-27 11:10:58.447631416 +0530
+@@ -23,7 +23,13 @@
+ #ifdef LIBART_COMPILATION
+ #include "art_misc.h"
+ #else
++#ifdef __cplusplus
++extern "C" {
++#endif
+ #include <libart_lgpl/art_misc.h>
++#ifdef __cplusplus
++}
++#endif
+ #endif
+ 
+ #ifdef __cplusplus
+--- koffice-1.6.3/karbon/render/art_rgb_affine_private.c.orig	2008-01-27 11:11:30.908167054 +0530
++++ koffice-1.6.3/karbon/render/art_rgb_affine_private.c	2008-01-27 11:11:52.705040247 +0530
+@@ -21,7 +21,13 @@
+ #include "art_rgb_affine_private.h"
+ 
+ #include <math.h>
++#ifdef __cplusplus
++extern "C" {
++#endif
+ #include <libart_lgpl/art_misc.h>
++#ifdef __cplusplus
++}
++#endif
+ #include <libart_lgpl/art_point.h>
+ #include <libart_lgpl/art_affine.h>
+ 
+--- koffice-1.6.3/karbon/render/art_rgba_affine.c.orig	2008-01-27 11:12:42.991186535 +0530
++++ koffice-1.6.3/karbon/render/art_rgba_affine.c	2008-01-27 11:13:09.331039452 +0530
+@@ -21,7 +21,13 @@
+ #include "art_rgba_affine.h"
+ 
+ #include <math.h>
++#ifdef __cplusplus
++extern "C" {
++#endif
+ #include <libart_lgpl/art_misc.h>
++#ifdef __cplusplus
++}
++#endif
+ #include <libart_lgpl/art_point.h>
+ #include <libart_lgpl/art_affine.h>
+ #include <art_rgb_affine_private.h>
+--- koffice-1.6.3/karbon/render/vkopainter.cc.orig	2008-01-27 12:04:26.772582484 +0530
++++ koffice-1.6.3/karbon/render/vkopainter.cc	2008-01-27 12:05:47.709883405 +0530
+@@ -31,7 +31,14 @@
+ #include <qimage.h>
+ 
+ #include "libart_lgpl/art_vpath.h"
++#ifdef __cplusplus
++extern "C" {
++#endif /* __cplusplus */
+ #include <libart_lgpl/art_bpath.h>
++#ifdef __cplusplus
++}
++#endif /* __cplusplus */
++
+ #include <libart_lgpl/art_vpath_bpath.h>
+ #include <libart_lgpl/art_svp_vpath.h>
+ #include <libart_lgpl/art_svp_vpath_stroke.h>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/patches/koffice-06-build_kexi_file.diff	Mon Jan 28 13:41:14 2008 +0000
@@ -0,0 +1,8 @@
+--- koffice-1.6.3/kexi/examples/build_kexi_file.sh.orig	2008-01-27 13:30:48.635249600 +0530
++++ koffice-1.6.3/kexi/examples/build_kexi_file.sh	2008-01-27 13:32:18.004188459 +0530
+@@ -1,4 +1,4 @@
+-#!/bin/sh
++#!/bin/bash
+ 
+ # Builds a single .kexi file from a .sql file specified as $1.
+ # The destination .kexi file is saved with name specified as $2.