summaryrefslogtreecommitdiffstats
path: root/redhat/applications/koffice
diff options
context:
space:
mode:
authorFrancois Andriot <francois.andriot@free.fr>2012-08-09 12:02:10 +0200
committerFrancois Andriot <francois.andriot@free.fr>2012-08-09 12:02:10 +0200
commit193ac9dc51fbc8d12aa48fe1191c8512850cc4ff (patch)
tree9eeda8ad34f229e1033e856ed93c17fea30f68e1 /redhat/applications/koffice
parent37e6c5ace1de8d59324c01aacd06aabad16747e2 (diff)
downloadtde-packaging-193ac9dc51fbc8d12aa48fe1191c8512850cc4ff.tar.gz
tde-packaging-193ac9dc51fbc8d12aa48fe1191c8512850cc4ff.zip
RHEL/Fedora: add support for MGA2/MDV2011 in many applications
Diffstat (limited to 'redhat/applications/koffice')
-rw-r--r--redhat/applications/koffice/chalk.xpm295
-rw-r--r--redhat/applications/koffice/koffice-3.5.13-disable_graphicksmagick.patch20
-rw-r--r--redhat/applications/koffice/koffice-3.5.13-fix_lcms_detection.patch11
-rw-r--r--redhat/applications/koffice/koffice-3.5.13-fix_poppler_detect.patch10
-rw-r--r--redhat/applications/koffice/koffice-3.5.13-missing_ldflags.patch61
-rw-r--r--redhat/applications/koffice/trinity-koffice-3.5.13.spec1080
-rw-r--r--redhat/applications/koffice/trinity-koffice.spec1033
7 files changed, 1152 insertions, 1358 deletions
diff --git a/redhat/applications/koffice/chalk.xpm b/redhat/applications/koffice/chalk.xpm
deleted file mode 100644
index 0edc4f49a..000000000
--- a/redhat/applications/koffice/chalk.xpm
+++ /dev/null
@@ -1,295 +0,0 @@
-/* XPM */
-static char *chalk[] = {
-/* columns rows colors chars-per-pixel */
-"32 32 257 2",
-" c #000000",
-". c #0C0C0C",
-"X c #080604",
-"o c #0E0F12",
-"O c #110D01",
-"+ c #1A1200",
-"@ c #131314",
-"# c #171719",
-"$ c #001D0B",
-"% c #1A1C22",
-"& c #00350A",
-"* c #013716",
-"= c #06221C",
-"- c #242424",
-"; c #2D2D2C",
-": c #3D3C3D",
-"> c #343434",
-", c #282C33",
-"< c #000F56",
-"1 c #00164F",
-"2 c #011554",
-"3 c #001263",
-"4 c #051E7B",
-"5 c #0A2C6A",
-"6 c #3B3D41",
-"7 c #005313",
-"8 c #085621",
-"9 c #1D5137",
-"0 c #016914",
-"q c #0B6328",
-"w c #126C3B",
-"e c #23723C",
-"r c #084755",
-"t c #1B5952",
-"y c #1F5475",
-"u c #006044",
-"i c #1B6F41",
-"p c #2E5F48",
-"a c #3D6270",
-"s c #473504",
-"d c #5C4B0B",
-"f c #634F09",
-"g c #4A4A4A",
-"h c #424345",
-"j c #5A5A5A",
-"k c #5A5240",
-"l c #496457",
-"z c #5F636D",
-"x c #605F5D",
-"c c #6D765F",
-"v c #636363",
-"b c #656866",
-"n c #666B73",
-"m c #747573",
-"M c #787778",
-"N c #6C7572",
-"B c #1A3890",
-"V c #0739C1",
-"C c #0030D2",
-"Z c #1E5091",
-"A c #13488F",
-"S c #1243B4",
-"D c #395787",
-"F c #3B5498",
-"G c #2554A9",
-"H c #264CB8",
-"J c #1B4BC1",
-"K c #1650DB",
-"L c #1960DE",
-"P c #2254CF",
-"I c #3766D9",
-"U c #3A7AD6",
-"Y c #2B67E2",
-"T c #236EFE",
-"R c #2C74FD",
-"E c #2F78FD",
-"W c #3269E2",
-"Q c #386BFE",
-"! c #337FFE",
-"~ c #3578FD",
-"^ c #2C7CE6",
-"/ c #4569AF",
-"( c #646287",
-") c #4D70CE",
-"_ c #4777E0",
-"` c #4D7FFE",
-"' c #038021",
-"] c #128D2E",
-"[ c #0EA835",
-"{ c #3F9159",
-"} c #2EB551",
-"| c #22C24D",
-" . c #6E8422",
-".. c #428F5E",
-"X. c #5D8270",
-"o. c #53976B",
-"O. c #58AA6F",
-"+. c #618673",
-"@. c #139CFD",
-"#. c #0795FD",
-"$. c #16A2FD",
-"%. c #11B2F2",
-"&. c #2880DA",
-"*. c #378BF2",
-"=. c #27B4F4",
-"-. c #38A9F2",
-";. c #22ABFE",
-":. c #14C2FB",
-">. c #19C5FE",
-",. c #19C8FE",
-"<. c #17C8FE",
-"1. c #31C5F8",
-"2. c #559C95",
-"3. c #4C81B7",
-"4. c #798484",
-"5. c #7689B0",
-"6. c #4F8DFD",
-"7. c #5394ED",
-"8. c #5091EF",
-"9. c #43A0C6",
-"0. c #52AEE8",
-"q. c #749BE8",
-"w. c #739EFE",
-"e. c #6497F2",
-"r. c #62BDC9",
-"t. c #67A5FD",
-"y. c #7DAFFD",
-"u. c #5CCE82",
-"i. c #56CFF2",
-"p. c #70C4DA",
-"a. c #63DAFC",
-"s. c #66C9F5",
-"d. c #B8682F",
-"f. c #A78F18",
-"g. c #9F915C",
-"h. c #818279",
-"j. c #958E78",
-"k. c #969360",
-"l. c #9FA07B",
-"z. c #B69F47",
-"x. c #D1B928",
-"c. c #FEA509",
-"v. c #FEBE01",
-"b. c #FCB507",
-"n. c #FEAD22",
-"m. c #D7AF68",
-"M. c #DCC82C",
-"N. c #FEC100",
-"B. c #FECC00",
-"V. c #FDD201",
-"C. c #FDDA01",
-"Z. c #FEC614",
-"A. c #F7C825",
-"S. c #F9C63A",
-"D. c #FDDC2A",
-"F. c #F1D629",
-"G. c #F8D638",
-"H. c #E8CC39",
-"J. c #FDE502",
-"K. c #FDE717",
-"L. c #FDF911",
-"P. c #FAEA3F",
-"I. c #FDF933",
-"U. c #D3C254",
-"Y. c #DED16A",
-"T. c #E9D645",
-"R. c #FEC550",
-"E. c #F5D741",
-"W. c #EDD476",
-"Q. c #F7D375",
-"!. c #EDDB63",
-"~. c #FDEA58",
-"^. c #FBF644",
-"/. c #FDFE59",
-"(. c #F5EE49",
-"). c #FCE969",
-"_. c #FBE27C",
-"`. c #FDFE6B",
-"'. c #FDFE71",
-"]. c #92918F",
-"[. c #989A81",
-"{. c #9B9B9A",
-"}. c #949492",
-"|. c #898D8A",
-" X c #8F92A0",
-".X c #9AA3B7",
-"XX c #9BACAA",
-"oX c #A0A182",
-"OX c #B0A996",
-"+X c gray64",
-"@X c #A8ACA9",
-"#X c #AFB0AF",
-"$X c #B4B5B3",
-"%X c #BABABA",
-"&X c #B6B6B3",
-"*X c #ADA8AD",
-"=X c #8BA9E9",
-"-X c #92B3F0",
-";X c #A8BDEB",
-":X c #84D3A7",
-">X c #93CAD8",
-",X c #84C4D6",
-"<X c #8BD4F8",
-"1X c #90C9FD",
-"2X c #93EBFE",
-"3X c #B1C6D5",
-"4X c #AECCFE",
-"5X c #A8C5F8",
-"6X c #A9D6FB",
-"7X c #BACCF3",
-"8X c #B8D9F8",
-"9X c #BCCBEE",
-"0X c #ACE6FB",
-"qX c #D2BD83",
-"wX c #C4BDBA",
-"eX c #CFC497",
-"rX c #C7C3B9",
-"tX c #D1CABB",
-"yX c #ECD98D",
-"uX c #EECFA1",
-"iX c #EDDCA2",
-"pX c #FDF690",
-"aX c #FDFAA8",
-"sX c #FCFAB7",
-"dX c #F8E3A2",
-"fX c #C5C5C6",
-"gX c #D3D3D3",
-"hX c #D8D8D8",
-"jX c #D0D0CE",
-"kX c #C9D8F7",
-"lX c #D6D7E3",
-"zX c #D0DDFC",
-"xX c #C8E4FB",
-"cX c #DEE0E3",
-"vX c #DDFEFE",
-"bX c #D1EDFD",
-"nX c #E3DDD1",
-"mX c #E0DCE3",
-"MX c #E4E1DA",
-"NX c #F7ECCA",
-"BX c #FDFDCB",
-"VX c #FDFDC5",
-"CX c #FBF5DD",
-"ZX c #E1E2E1",
-"AX c #E6E7E8",
-"SX c #EEF0EE",
-"DX c #E9F3F8",
-"FX c #F4E9E4",
-"GX c #FBFBE8",
-"HX c #F4F4F2",
-"JX c #F6FAFB",
-"KX c #F8F5F0",
-"LX c #FCFAF4",
-"PX c #FDFDFD",
-"IX c #F1F7FE",
-"UX c #EBECF2",
-"YX c None",
-/* pixels */
-"YXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYX f O YXYXYXYXYX",
-"YXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXf F.+ YXYXYXYXYX",
-"YXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYX+ F.d YXYXYXYXYX",
-"YXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXf.M.X YXYXYXYXYXYX",
-"YXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXs I.d YXYXYXYXYXYXYX",
-"YXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXO x.G.k . YXYXYXYXYXYX",
-"YXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYX - j M z.(.Q.PXg YXYXYXYXYXYX",
-"YXYXYXYXYXYXYXYXYXYXYXYX # g M @XhXJXPXNX~.G.NXPX&X YXYXYXYXYX",
-"YXYXYXYXYXYXYXYX # h m %XSXPXPXPXPXPXJXW.~.U.<X8XPX- YXYXYXYXYX",
-"YXYXYX . : x ].rXKXPXPXPXPXJXxX6X8X0XNX).T.3.T w.PXv YXYXYX ",
-"YX> }.wXFXPXPXIXkX4X4X-Xy.e.6.~ 6.1XxXW.).k.Q Q ` JX$X YX ",
-"YXv PXxX1Xt.6.*.R E E T R R E t.<XbXdXQ.U.U E ! Y 7XLX@ ",
-"YX; PXs.#.@.$.$.$.$.$.$.@.$.%.$.;.<XyX).2.@.U G 4 F MX: YXYX",
-"YX. FX2X%.>.<.%.%.<.<.<.>.>.,.1.,.9.OXg./ G B 4 3 < .X]. YXYXYX",
-"YX &XvXa.i.p.>X>X,Xp.a.a.a.p.p.2. X+.t r 5 5 3 1 1 5.KX@ YXYXYX",
-"YXYXM PX3XcXKXLXKXrX{.XXr.u.| 0 e {.9 * 8 e q 8 7 * p PXg YXYXYX",
-"YXYXj SXmXJXLXHXZX$Xm l O.| [ 0 N n * t { ] 0 7 & $ = HX|.YXYXYX",
-"YXYX- lXSXLXJXZX$X|.v N O.[ 0 8 4.l o.{ i i u r y D / -XnX YXYX",
-"YXYX. rXgXHXLXmX&XXX+XXXo.0 7 .c G Z A S V V _ zXzX) / PX; YXYX",
-"YXX h +X&XgXAXAXcXgX%X#X#XX.a d.y J P P J S H =XkXvXkX7.JXm YXYX",
-" b jXAXlXcXhXjXtXrXrXgXlXlXOX( _ _ I I I Y *.<X6X2XxXL 5XrX YX",
-"; gXPXFX!.G.G.E.H.S.G.T.yXKXJX.X_ 8.7.-.=.%.%.0.-X=XK C q.GX- YX",
-"g JXiXZ.B.V.B.N.v.N.N.C.B.A.nXjX0.i.-.-.*.^ Y I _ q.=XzXJXPXj YX",
-": SXA.v.V.C.K.D.D.D.K.J.C.B.yX3X0.e.e.q.=X3XkXDXPXLXMX@Xm h @ YX",
-"# gXpXD.K.^./.`.'.`./.I.K.`.sX.X=X9XUXJXPXKXMX&Xh.: o YXYXYX",
-" OXG.pXsXaXsXVXBXsXaXsXaX^.H.jXKXMX%X].v > @ YXYXYXYXYXYXYX",
-"YXn R.B.I.pXBXGXLXGXBX'.L.V.m.b : @ YXYXYXYXYXYXYXYXYXYXYX",
-"YX, uXc.b.D.).aXsXsX).A.c.n.j. YXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYX",
-"YX {.Q.n.b.v.B.C.C.V.Z.S.yX: YXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYX",
-"YXYX# }.qXU.T.(.^.(.T.Y.eXv YXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYX",
-"YXYXYXX g m j.l.oX[.h.x # YXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYX",
-"YXYXYXYX o @ @ @ X YXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYXYX"
-};
diff --git a/redhat/applications/koffice/koffice-3.5.13-disable_graphicksmagick.patch b/redhat/applications/koffice/koffice-3.5.13-disable_graphicksmagick.patch
deleted file mode 100644
index 2ed8017e6..000000000
--- a/redhat/applications/koffice/koffice-3.5.13-disable_graphicksmagick.patch
+++ /dev/null
@@ -1,20 +0,0 @@
---- koffice/configure.in.in.ORI 2011-11-23 14:10:51.406182478 -0500
-+++ koffice/configure.in.in 2011-11-23 14:11:51.714475724 -0500
-@@ -20,7 +20,7 @@
-
- if test -n "$GRAPHICS_MAGICK_CONFIG"; then
- vers=`$GRAPHICS_MAGICK_CONFIG --version 2>/dev/null | $AWK 'BEGIN { FS = "."; } { printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'`
-- if test -n "$vers" && test "$vers" -ge 1001007; then
-+ if test -n "$vers" && test "$vers" -ge 1001007 && test "$vers" -lt 1002000; then
- LIBGMAGICK_LIBS="`$GRAPHICS_MAGICK_CONFIG --libs`"
- LIBGMAGICK_LDFLAGS="`$GRAPHICS_MAGICK_CONFIG --ldflags`"
- LIBGMAGICK_RPATH=
-@@ -36,7 +36,7 @@
- AC_DEFINE(HAVE_GMAGICK,1, [GraphicsMagick is available])
- have_graphicsmagick=yes
- else
-- AC_MSG_WARN([You need at least GraphicsMagick 1.1.7])
-+ AC_MSG_WARN([You need at least GraphicsMagick 1.1.7, but less than 1.2.0])
- fi
-
- fi
diff --git a/redhat/applications/koffice/koffice-3.5.13-fix_lcms_detection.patch b/redhat/applications/koffice/koffice-3.5.13-fix_lcms_detection.patch
new file mode 100644
index 000000000..bf714ab8a
--- /dev/null
+++ b/redhat/applications/koffice/koffice-3.5.13-fix_lcms_detection.patch
@@ -0,0 +1,11 @@
+--- koffice/chalk/configure.in.in.ORI 2012-08-05 22:30:11.362533703 +0200
++++ koffice/chalk/configure.in.in 2012-08-05 22:30:31.456987824 +0200
+@@ -48,7 +48,7 @@
+ fi
+
+
+-ac_link='$LIBTOOL_SHELL --mode=link ${CXX-g++} -o conftest $CXXFLAGS $all_includes $CPPFLAGS $LDFLAGS $all_libraries -ltqt conftest.$ac_ext -llcms 1>&5'
++ac_link='$LIBTOOL_SHELL --mode=link --tag=LD ${CXX-g++} -o conftest $CXXFLAGS $all_includes $CPPFLAGS $LDFLAGS $all_libraries -ltqt conftest.$ac_ext -llcms 1>&5'
+
+ if AC_TRY_EVAL(ac_link) && test -s conftest; then
+ AC_MSG_RESULT(yes)
diff --git a/redhat/applications/koffice/koffice-3.5.13-fix_poppler_detect.patch b/redhat/applications/koffice/koffice-3.5.13-fix_poppler_detect.patch
deleted file mode 100644
index 2675ddd01..000000000
--- a/redhat/applications/koffice/koffice-3.5.13-fix_poppler_detect.patch
+++ /dev/null
@@ -1,10 +0,0 @@
---- koffice/filters/chalk/pdf/configure.in.in.ORI 2011-11-23 14:20:06.517677101 -0500
-+++ koffice/filters/chalk/pdf/configure.in.in 2011-11-23 14:20:14.461584005 -0500
-@@ -1,5 +1,5 @@
- # Compile the pdf import filter only if Poppler is available
--# PKG_CHECK_MODULES(POPPLER, poppler-qt >= 0.5.1, have_poppler=yes, have_poppler=no)
--have_poppler=yes
-+PKG_CHECK_MODULES(POPPLER, poppler-qt >= 0.5.1, have_poppler=yes, have_poppler=no)
-+#have_poppler=yes
-
- AM_CONDITIONAL(include_PDF, test "x$have_poppler" = xyes)
diff --git a/redhat/applications/koffice/koffice-3.5.13-missing_ldflags.patch b/redhat/applications/koffice/koffice-3.5.13-missing_ldflags.patch
new file mode 100644
index 000000000..e6c683dc9
--- /dev/null
+++ b/redhat/applications/koffice/koffice-3.5.13-missing_ldflags.patch
@@ -0,0 +1,61 @@
+--- koffice/lib/store/Makefile.am.ORI 2012-08-05 21:05:16.181010835 +0200
++++ koffice/lib/store/Makefile.am 2012-08-05 21:05:25.027837330 +0200
+@@ -7,7 +7,7 @@
+
+ ####### Files
+
+-libkstore_la_LIBADD = $(LIB_KIO)
++libkstore_la_LIBADD = $(LIB_KIO) $(LIB_QT) $(LIB_KDECORE) $(LIB_KDEUI)
+ libkstore_la_SOURCES = KoStore.cpp KoTarStore.cpp KoDirectoryStore.cpp KoZipStore.cpp KoStoreDrag.cpp KoStoreBase.cpp KoXmlWriter.cpp
+ libkstore_la_LDFLAGS = $(all_libraries) -version-info 3:0:0 $(KDE_LDFLAGS) -no-undefined
+ include_HEADERS = KoStore.h KoStoreDevice.h KoXmlWriter.h
+--- koffice/lib/kwmf/Makefile.am.ORI 2012-08-05 21:09:16.183303850 +0200
++++ koffice/lib/kwmf/Makefile.am 2012-08-05 21:09:35.742920240 +0200
+@@ -3,7 +3,7 @@
+ INCLUDES= $(KOFFICECORE_INCLUDES) -I$(srcdir) $(all_includes)
+ libkwmf_la_LDFLAGS = $(all_libraries) -version-info 3:0:0 -no-undefined
+ # We use kdecore for kdDebug :)
+-libkwmf_la_LIBADD = $(LIB_KDECORE)
++libkwmf_la_LIBADD = $(LIB_KDECORE) $(LIB_QT)
+
+ ####### Files
+
+@@ -16,4 +16,4 @@
+
+ libkowmf_la_SOURCES = kowmfreadprivate.cc kowmfstack.cc kowmfread.cc kowmfwrite.cc kowmfpaint.cc
+ libkowmf_la_LDFLAGS = $(all_libraries) -version-info 2:0:0 -no-undefined
+-libkowmf_la_LIBADD = $(LIB_KDECORE)
++libkowmf_la_LIBADD = $(LIB_KDECORE) $(LIB_QT)
+--- koffice/lib/kofficecore/Makefile.am.ORI 2012-08-05 21:12:34.924406087 +0200
++++ koffice/lib/kofficecore/Makefile.am 2012-08-05 21:12:47.700155525 +0200
+@@ -4,7 +4,7 @@
+ KDE_CXXFLAGS = $(USE_RTTI) $(WOVERLOADED_VIRTUAL)
+ INCLUDES= $(KSTORE_INCLUDES) $(KWMF_INCLUDES) $(all_includes)
+ libkofficecore_la_LIBADD = $(LIB_KSTORE) $(LIB_KOWMF) $(LIB_KPARTS) \
+- $(LIB_KDEPRINT) $(LIB_KABC) $(LIB_KWMF)
++ $(LIB_KDEPRINT) $(LIB_KABC) $(LIB_KWMF) -lDCOP
+
+ ####### Files
+
+--- koffice/lib/koproperty/Makefile.am.ORI 2012-08-05 21:16:10.320181691 +0200
++++ koffice/lib/koproperty/Makefile.am 2012-08-05 21:16:17.135048036 +0200
+@@ -2,7 +2,7 @@
+
+ lib_LTLIBRARIES = libkoproperty.la
+
+-libkoproperty_la_LIBADD = $(LIB_KDEUI) ./editors/libkopropertyeditors.la
++libkoproperty_la_LIBADD = $(LIB_KDEUI) ./editors/libkopropertyeditors.la $(LIB_QT) $(LIB_KDECORE)
+ libkoproperty_la_LDFLAGS = -no-undefined $(all_libraries) -version-info 2:0:0
+ libkoproperty_la_SOURCES = property.cpp customproperty.cpp set.cpp editor.cpp \
+ editoritem.cpp factory.cpp widget.cpp
+--- koffice/kpresenter/Makefile.am.ORI 2012-08-05 21:41:53.120199863 +0200
++++ koffice/kpresenter/Makefile.am 2012-08-05 21:42:03.358832558 +0200
+@@ -72,7 +72,7 @@
+ if include_ARTS
+ ARTSKDE = -lartskde
+ endif
+-libkpresenterprivate_la_LIBADD = autoformEdit/libaf.la $(LIB_KOFFICEUI) $(LIB_KOTEXT) $(LIB_KOPAINTER) $(ARTSKDE)
++libkpresenterprivate_la_LIBADD = autoformEdit/libaf.la $(LIB_KOFFICEUI) $(LIB_KOTEXT) $(LIB_KOPAINTER) $(ARTSKDE) -lsoundserver_idl -lmcop
+
+ ## The part
+ kde_module_LTLIBRARIES = libkpresenterpart.la
diff --git a/redhat/applications/koffice/trinity-koffice-3.5.13.spec b/redhat/applications/koffice/trinity-koffice-3.5.13.spec
new file mode 100644
index 000000000..996f785d1
--- /dev/null
+++ b/redhat/applications/koffice/trinity-koffice-3.5.13.spec
@@ -0,0 +1,1080 @@
+# Default version for this component
+%define kdecomp koffice
+
+# 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}/kde
+%define tde_tdeincludedir %{tde_includedir}/kde
+%define tde_tdelibdir %{tde_libdir}/trinity
+
+%define _docdir %{tde_docdir}
+
+# Disable Kross support for RHEL <= 5 (python is too old)
+%if 0%{?fedora} > 0 || 0%{?rhel} >= 6
+%define with_kross 1
+%endif
+
+%if 0%{?fedora} >= 17
+%define with_ruby 0
+%else
+%define with_ruby 1
+%endif
+
+# Ruby 1.9 includes are located in strance directories ... (taken from ruby 1.9 spec file)
+%global _normalized_cpu %(echo %{_target_cpu} | sed 's/^ppc/powerpc/;s/i.86/i386/;s/sparcv./sparc/;s/armv.*/arm/')
+
+
+Name: trinity-%{kdecomp}
+Summary: An integrated office suite
+Version: 1.6.3
+Release: 5%{?dist}%{?_variant}
+
+Group: Applications/Productivity
+License: GPLv2+
+
+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.tar.gz
+Source100: koshell.png
+
+# [lib/kross/python/scripts/RestrictedPython/Utilities.py] Syntax error [Bug #679]
+Patch2: koffice-3.5.13-kross_utilities_syntax.patch
+# [koffice/chalk] Fix GraphicksMagick 1.3 support [Bug #353]
+Patch3: koffice-3.5.13-chalk_gmagick.patch
+# [koffice/kexi] Various patches for kexi, found on the web [Bug # 777]
+Patch5: kexi-fix-possible-crash-in-buffered-mode-sqlite-2.patch
+Patch6: kexi-hide_hourglass-1.1.3-2.patch
+Patch7: kexi-fix-support-for-boolean-types-in-migration.patch
+Patch8: kexi-mysql_migrate_long_text-1.1.3.patch
+Patch9: kexi-fix-support-for-boolean-types.patch
+Patch10: kexi-thoushand_objects_support-1.1.3-2.patch
+Patch11: kexi-fp_expressions-1.1.3.patch
+# [koffice] Fix compilation with GCC 4.7 [Bug #958]
+Patch12: koffice-3.5.13-fix_gcc47_compilation.patch
+# [koffice] Fix compilation with Ruby 1.9 [Bug #735]
+Patch13: koffice-3.5.13-fix_ruby_1.9.patch
+# [koffice] Fix compilation with libpng [Bug #603]
+Patch14: koffice-3.5.13-fix_libpng.patch
+# [koffice] 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
+Patch15: koffice-3.5.13-fix_bug_657.patch
+# [koffice] Fix accidental conversions of binary files [Bug #1033] [Commit #dbe89307]
+Source1: koffice-3.5.13-damaged_binary_files.tar.gz
+# [koffice] Missing LDFLAGS cause FTBFS on Mageia / Mandriva
+Patch16: koffice-3.5.13-missing_ldflags.patch
+
+# BuildRequires: world-devel ;)
+BuildRequires: trinity-tdelibs-devel
+BuildRequires: trinity-tdegraphics-devel
+BuildRequires: automake libtool
+BuildRequires: freetype-devel
+BuildRequires: fontconfig-devel
+BuildRequires: libart_lgpl-devel
+BuildRequires: libpng-devel
+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
+BuildRequires: perl
+BuildRequires: doxygen
+BuildRequires: aspell-devel
+BuildRequires: libxslt-devel
+BuildRequires: OpenEXR-devel
+BuildRequires: libexif-devel
+BuildRequires: readline-devel
+%if 0%{?with_ruby}
+BuildRequires: ruby ruby-devel >= 1.8.2
+%endif
+BuildRequires: libpaper-devel
+BuildRequires: libutempter-devel
+BuildRequires: GraphicsMagick-devel >= 1.1.0
+
+#%if 0%{?rhel} >= 6 || 0%{?fedora} >= 15
+#BuildRequires: poppler-qt-devel >= 0.1.2
+#%else
+#BuildRequires: trinity-poppler-qt3-devel >= 0.1.2
+#%endif
+
+BuildRequires: trinity-tdegraphics-libpoppler-tqt-devel
+
+# These libraries are either too old or too recent on distributions !
+# We always provide our versions with TDE...
+BuildRequires: trinity-libwpd-devel
+
+%if 0%{?mgaversion} || 0%{?mdkversion}
+BuildRequires: %{_lib}mesagl1-devel
+BuildRequires: %{_lib}mesaglu1-devel
+BuildRequires: %{_lib}xi-devel
+BuildRequires: wv2-devel
+BuildRequires: libpqxx-devel
+%else
+BuildRequires: libGL-devel
+BuildRequires: libGLU-devel
+BuildRequires: libXi-devel
+BuildRequires: trinity-wv2-devel
+BuildRequires: trinity-libpqxx-devel
+%endif
+
+%description
+KOffice is an integrated office suite.
+
+%package suite
+Summary: An integrated office suite
+Group: Applications/Productivity
+Obsoletes: %{name} <= %{version}-%{release}
+Obsoletes: %{name}-i18n < 4:%{version}
+Requires: %{name}-core = %{version}-%{release}
+Requires: %{name}-kword = %{version}-%{release}
+Requires: %{name}-kspread = %{version}-%{release}
+Requires: %{name}-kpresenter = %{version}-%{release}
+Requires: %{name}-kivio = %{version}-%{release}
+Requires: %{name}-karbon = %{version}-%{release}
+Requires: %{name}-kugar = %{version}-%{release}
+Requires: %{name}-kexi = %{version}-%{release}
+Requires: %{name}-kexi-driver-mysql = %{version}-%{release}
+Requires: %{name}-kexi-driver-pgsql = %{version}-%{release}
+Requires: %{name}-kchart = %{version}-%{release}
+Requires: %{name}-kformula = %{version}-%{release}
+Requires: %{name}-filters = %{version}-%{release}
+Requires: %{name}-kplato = %{version}-%{release}
+Requires: %{name}-chalk = %{version}-%{release}
+
+%description suite
+KOffice is an integrated office suite.
+
+%package core
+Summary: Core support files for %{name}
+Group: Applications/Productivity
+Requires: %{name}-libs = %{version}-%{release}
+Requires: perl
+Conflicts: koffice-i18n < %{version}
+%description core
+%{summary}.
+
+%package libs
+Summary: Runtime libraries for %{name}
+Group: System Environment/Libraries
+Conflicts: %{name} <= %{version}-%{release}
+Requires: trinity-kdelibs
+License: LGPLv2+
+%description libs
+%{summary}.
+
+%package devel
+Summary: Development files for %{name}
+Group: Development/Libraries
+Requires: %{name}-libs = %{version}-%{release}
+License: LGPLv2+
+%description devel
+%{summary}.
+
+%package kword
+Summary: A frame-based word processor capable of professional standard documents
+Group: Applications/Productivity
+Requires: %{name}-core = %{version}-%{release}
+%description kword
+%{summary}.
+
+%package kspread
+Summary: A powerful spreadsheet application
+Group: Applications/Productivity
+Requires: %{name}-core = %{version}-%{release}
+%description kspread
+%{summary}.
+
+%package kpresenter
+Summary: A full-featured presentation program
+Group: Applications/Productivity
+Requires: %{name}-core = %{version}-%{release}
+%description kpresenter
+%{summary}.
+
+%package kivio
+Summary: A flowcharting application
+Group: Applications/Productivity
+Requires: %{name}-core = %{version}-%{release}
+Obsoletes: kivio < %{version}-%{release}
+%description kivio
+%{summary}.
+
+%package karbon
+Summary: A vector drawing application
+Group: Applications/Productivity
+Requires: %{name}-core = %{version}-%{release}
+%description karbon
+%{summary}.
+
+%package kugar
+Summary: A tool for generating business quality reports
+Group: Applications/Productivity
+Requires: %{name}-core = %{version}-%{release}
+%description kugar
+%{summary}.
+
+%package kexi
+Summary: An integrated environment for managing data
+Group: Applications/Productivity
+Requires: %{name}-core = %{version}-%{release}
+%description kexi
+%{summary}.
+For additional database drivers take a look at %{name}-kexi-driver-*
+
+%package kexi-driver-mysql
+Summary: Mysql-driver for kexi
+Group: Applications/Productivity
+Requires: %{name}-kexi = %{version}-%{release}
+%description kexi-driver-mysql
+%{summary}.
+
+%package kexi-driver-pgsql
+Summary: Postgresql driver for kexi
+Group: Applications/Productivity
+Requires: %{name}-kexi = %{version}-%{release}
+%description kexi-driver-pgsql
+%{summary}.
+
+%package kchart
+Summary: An integrated graph and chart drawing tool
+Group: Applications/Productivity
+Requires: %{name}-core = %{version}-%{release}
+%description kchart
+%{summary}.
+
+%package kformula
+Summary: A powerful formula editor
+Group: Applications/Productivity
+Requires: %{name}-core = %{version}-%{release}
+Requires: lyx-cmex10-fonts
+%if 0%{?fedora} >= 11 || 0%{?rhel} >= 6
+Requires: dejavu-lgc-sans-fonts
+%else
+Requires: dejavu-lgc-fonts
+%endif
+%description kformula
+%{summary}.
+
+%package filters
+Summary: Import and Export Filters for KOffice
+Group: Applications/Productivity
+Requires: %{name}-core = %{version}-%{release}
+%description filters
+%{summary}.
+
+%package kplato
+Summary: An integrated project management and planning tool
+Group: Applications/Productivity
+Requires: %{name}-core = %{version}-%{release}
+%description kplato
+%{summary}.
+
+%package chalk
+Summary: pixel-based image manipulation program for the TDE Office Suite [Trinity]
+Group: Applications/Productivity
+Requires: %{name}-core = %{version}-%{release}
+Requires: %{name}-chalk-data = %{version}-%{release}
+Requires: %{name}-filters
+%description chalk
+Chalk is a painting and image editing application for KOffice. Chalk contains
+both ease-of-use and fun features like guided painting.
+
+This package is part of the TDE Office Suite.
+
+%package chalk-data
+Summary: data files for Chalk painting program [Trinity]
+Group: Applications/Productivity
+%description chalk-data
+This package contains architecture-independent data files for Chalk,
+the painting program shipped with the TDE Office Suite.
+
+See the chalk package for further information.
+
+This package is part of the TDE Office Suite.
+
+
+
+%prep
+%setup -q -n applications/%{kdecomp}
+%setup -q -n applications/%{kdecomp} -a 1
+
+#patch0 -p1
+#patch1 -p1
+%patch2 -p1
+%patch3 -p1
+%patch5 -p0
+%patch6 -p0
+%patch7 -p0
+%patch8 -p0
+%patch9 -p0
+%patch10 -p0
+%patch11 -p0
+%patch12 -p1 -b .gcc47
+%if 0%{?fedora} >= 17
+%patch13 -p1 -b .ruby
+%patch14 -p1 -b .libpng
+%endif
+%patch15 -p1
+%patch16 -p1
+
+# use LGC variant instead
+%__sed -i.dejavu-lgc \
+ -e 's|DejaVu Sans|DejaVu LGC Sans|' \
+ -e 's|dejavu sans|dejavu lgc sans|' \
+ lib/kformula/{contextstyle,fontstyle,symboltable}.cc
+
+# 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/qt.sh
+export PATH="%{tde_bindir}:${PATH}"
+export LDFLAGS="-L%{tde_libdir} -I%{tde_includedir}"
+export PKG_CONFIG_PATH="%{tde_libdir}/pkgconfig:${PKG_CONFIG_PATH}"
+
+%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 --disable-dependency-tracking \
+ --enable-new-ldflags \
+ --disable-debug --disable-warnings \
+ --with-pic --enable-shared --disable-static \
+ --with-extra-libs=%{tde_libdir} \
+ --enable-final \
+ --with-extra-includes=%{tde_includedir}/tqt \
+ --enable-closure \
+ --disable-kexi-macros \
+ --with-pqxx-includes=%{tde_includedir} \
+ --with-pqxx-libraries=%{tde_libdir} \
+%if 0%{?with_kross} > 0
+ --enable-scripting \
+%else
+ --disable-scripting \
+%endif
+
+%__make %{?_smp_mflags}
+
+
+%install
+%__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
+for lang in *; do
+ if [ -d $lang ]; then
+ pushd $lang
+ for i in */*; do
+ [ -d $i -a -L $i/common ] && rm -f $i/common && ln -sf ../../common $i/common
+ done
+ popd
+ fi
+done
+popd
+
+desktop-file-install \
+ --dir=%{buildroot}%{tde_tdeappdir} \
+ --vendor="" \
+ --delete-original \
+ %{buildroot}%{tde_datadir}/applnk/Office/*.desktop
+
+## Hack-in NoDisplay=True (http://bugzilla.redhat.com/245061)
+## until http://bugzilla.redhat.com/245190 is fixed
+for desktop_file in %{buildroot}%{tde_datadir}/applnk/.hidden/*.desktop ; do
+ grep "^NoDisplay=" ${desktop_file} || \
+ echo "NoDisplay=True" >> ${desktop_file}
+done
+
+## unpackaged files
+# fonts
+rm -rfv %{buildroot}%{tde_datadir}/apps/kformula/fonts/
+# libtool archives
+rm -f %{buildroot}%{tde_libdir}/lib*.la
+# shouldn't these be in koffice-l10n?
+rm -f %{buildroot}%{tde_datadir}/locale/pl/LC_MESSAGES/kexi_{add,delete}_column_gui_transl_pl.sh
+# -devel symlinks to nuke
+rm -f %{buildroot}%{tde_libdir}/lib*common.so
+rm -f %{buildroot}%{tde_libdir}/lib*filters.so
+rm -f %{buildroot}%{tde_libdir}/lib*private.so
+rm -f %{buildroot}%{tde_libdir}/libkarbon*.so
+rm -f %{buildroot}%{tde_libdir}/libkchart*.so
+rm -f %{buildroot}%{tde_libdir}/libkexi*.so
+rm -f %{buildroot}%{tde_libdir}/libkisexiv2.so
+rm -f %{buildroot}%{tde_libdir}/libkformdesigner.so
+rm -f %{buildroot}%{tde_libdir}/libkplato*.so
+rm -f %{buildroot}%{tde_libdir}/libkpresenter*.so
+rm -f %{buildroot}%{tde_libdir}/libkword*.so
+rm -f %{buildroot}%{tde_libdir}/libkross*.so
+rm -f %{buildroot}%{tde_libdir}/libkugar*.so
+
+
+%clean
+%__rm -rf %{buildroot}
+
+%post core
+touch --no-create %{tde_datadir}/icons/crystalsvg &> /dev/null || :
+touch --no-create %{tde_datadir}/icons/hicolor &> /dev/null || :
+touch --no-create %{tde_datadir}/icons/locolor &> /dev/null || :
+
+%postun core
+if [ $1 -eq 0 ]; then
+ gtk-update-icon-cache %{tde_datadir}/icons/crystalsvg &> /dev/null || :
+ gtk-update-icon-cache %{tde_datadir}/icons/hicolor &> /dev/null || :
+ gtk-update-icon-cache %{tde_datadir}/icons/locolor &> /dev/null || :
+ update-desktop-database -q &> /dev/null ||:
+fi
+
+%posttrans core
+gtk-update-icon-cache %{tde_datadir}/icons/crystalsvg &> /dev/null || :
+gtk-update-icon-cache %{tde_datadir}/icons/hicolor &> /dev/null || :
+gtk-update-icon-cache %{tde_datadir}/icons/locolor &> /dev/null || :
+update-desktop-database -q &> /dev/null ||:
+
+%post karbon
+/sbin/ldconfig || :
+
+%postun karbon
+/sbin/ldconfig || :
+
+%post kword
+/sbin/ldconfig || :
+
+%postun kword
+/sbin/ldconfig || :
+
+%posttrans kword
+update-desktop-database -q &> /dev/null ||:
+
+%post kpresenter
+/sbin/ldconfig || :
+
+%postun kpresenter
+/sbin/ldconfig || :
+
+%posttrans kpresenter
+update-desktop-database -q &> /dev/null ||:
+
+%post kugar
+/sbin/ldconfig || :
+
+%postun kugar
+/sbin/ldconfig || :
+
+%posttrans kugar
+update-desktop-database -q &> /dev/null ||:
+
+%post kexi
+/sbin/ldconfig || :
+
+%postun kexi
+/sbin/ldconfig || :
+
+%posttrans kexi
+update-desktop-database -q &> /dev/null ||:
+
+%post kchart
+/sbin/ldconfig || :
+
+%postun kchart
+/sbin/ldconfig || :
+
+%posttrans kchart
+update-desktop-database -q &> /dev/null ||:
+
+%post filters
+/sbin/ldconfig || :
+
+%postun filters
+/sbin/ldconfig || :
+
+%post libs
+/sbin/ldconfig || :
+
+%postun libs
+/sbin/ldconfig || :
+
+%post chalk
+/sbin/ldconfig || :
+
+%postun chalk
+/sbin/ldconfig || :
+
+%posttrans chalk
+update-desktop-database -q &> /dev/null ||:
+
+%files suite
+#empty => virtual package
+
+%files core
+%defattr(-,root,root,-)
+%doc AUTHORS COPYING README
+%{tde_bindir}/koshell
+%{tde_bindir}/kthesaurus
+%{tde_bindir}/koconverter
+%{tde_libdir}/libkdeinit_koshell.so
+%{tde_libdir}/libkdeinit_kthesaurus.so
+%{tde_tdelibdir}/kfile_koffice.*
+%{tde_tdelibdir}/kfile_ooo.*
+%{tde_tdelibdir}/kfile_abiword.*
+%{tde_tdelibdir}/kfile_gnumeric.*
+%{tde_tdelibdir}/kodocinfopropspage.*
+%{tde_tdelibdir}/kofficescan.*
+%{tde_tdelibdir}/kofficethumbnail.*
+%{tde_tdelibdir}/koshell.*
+%{tde_tdelibdir}/kthesaurus.*
+%{tde_tdelibdir}/kwmailmerge_classic.*
+%{tde_tdelibdir}/kwmailmerge_kabc.*
+%{tde_tdelibdir}/kwmailmerge_qtsqldb_power.*
+%{tde_tdelibdir}/kwmailmerge_qtsqldb.*
+%{tde_tdelibdir}/libkounavailpart.*
+%{tde_tdelibdir}/libkprkword.*
+%{tde_tdelibdir}/libthesaurustool.*
+%{tde_tdelibdir}/clipartthumbnail.*
+%{tde_datadir}/apps/koffice/
+%{tde_datadir}/apps/konqueror/servicemenus/*
+%{tde_datadir}/apps/koshell/
+%{tde_datadir}/apps/thesaurus/
+%{tde_datadir}/config.kcfg/koshell.kcfg
+%{tde_tdedocdir}/HTML/en/koffice/
+%{tde_tdedocdir}/HTML/en/koshell/
+%{tde_tdedocdir}/HTML/en/thesaurus/
+%{tde_datadir}/icons/crystalsvg/*/*/*
+%{tde_datadir}/icons/hicolor/*/*/*
+%{tde_datadir}/icons/locolor/*/*/*
+%{tde_datadir}/services/clipartthumbnail.desktop
+%{tde_datadir}/services/kfile*.desktop
+%{tde_datadir}/services/kwmailmerge*.desktop
+%{tde_datadir}/services/kodocinfopropspage.desktop
+%{tde_datadir}/services/kofficethumbnail.desktop
+%{tde_datadir}/services/kounavail.desktop
+%{tde_datadir}/services/kprkword.desktop
+%{tde_datadir}/services/thesaurustool.desktop
+%{tde_datadir}/servicetypes/kochart.desktop
+%{tde_datadir}/servicetypes/kofficepart.desktop
+%{tde_datadir}/servicetypes/koplugin.desktop
+%{tde_datadir}/servicetypes/kwmailmerge.desktop
+%{tde_datadir}/servicetypes/widgetfactory.desktop
+%{tde_tdeappdir}/*koffice.desktop
+%{tde_tdeappdir}/*KThesaurus.desktop
+%{tde_tdeappdir}/*koshell.desktop
+%{tde_datadir}/apps/kofficewidgets/
+%if 0%{?with_kross} > 0
+%{tde_datadir}/apps/kross/
+%{tde_tdelibdir}/krosspython.*
+%if 0%{?with_ruby}
+%{tde_tdelibdir}/krossruby.*
+%endif
+%endif
+
+%files libs
+%defattr(-,root,root,-)
+%doc COPYING.LIB
+#_libdir/libk*common.so.*
+%{tde_libdir}/libkarboncommon.so.*
+%{tde_libdir}/libkspreadcommon.so.*
+%{tde_libdir}/libkdchart.so.*
+%{tde_libdir}/libkochart.so.*
+%{tde_libdir}/libkofficecore.so.*
+%{tde_libdir}/libkofficeui.so.*
+%{tde_libdir}/libkotext.so.*
+%{tde_libdir}/libkowmf.so.*
+%{tde_libdir}/libkopainter.so.*
+%{tde_libdir}/libkstore.so.*
+%{tde_libdir}/libkwmailmerge_interface.so.*
+%{tde_libdir}/libkwmf.so.*
+%{tde_libdir}/libkformulalib.so.*
+%{tde_libdir}/libkopalette.so.*
+%{tde_libdir}/libkoproperty.so.*
+%if 0%{?with_kross} > 0
+%{tde_libdir}/libkrossapi.so.*
+%{tde_libdir}/libkrossmain.so.*
+%endif
+
+%files devel
+%defattr(-,root,root,-)
+%lang(en) %{tde_tdedocdir}/HTML/en/koffice-apidocs/
+%{tde_includedir}/*
+# FIXME: include only shlib symlinks we know/want to export
+%{tde_libdir}/lib*.so
+%exclude %{tde_libdir}/libkdeinit_*.so
+%exclude %{tde_libdir}/libkudesignercore.so
+
+%files kword
+%defattr(-,root,root,-)
+%lang(en) %{tde_tdedocdir}/HTML/en/kword/
+%{tde_bindir}/kword
+%{tde_libdir}/libkdeinit_kword.so
+%{tde_libdir}/libkwordprivate.so.*
+%{tde_tdelibdir}/libkwordpart.*
+%{tde_tdelibdir}/kword.*
+%{tde_datadir}/apps/kword/
+%{tde_datadir}/services/kword*.desktop
+%{tde_datadir}/services/kwserial*.desktop
+%{tde_datadir}/templates/TextDocument.desktop
+%{tde_datadir}/templates/.source/TextDocument.kwt
+%{tde_tdeappdir}/*kword.desktop
+
+%files kspread
+%defattr(-,root,root,-)
+%lang(en) %{tde_tdedocdir}/HTML/en/kspread/
+%{tde_bindir}/kspread
+%{tde_libdir}/libkdeinit_kspread.so
+%{tde_tdelibdir}/kspread.*
+%{tde_tdelibdir}/libkspreadpart.*
+%{tde_tdelibdir}/kwmailmerge_kspread.*
+%{tde_tdelibdir}/libcsvexport.*
+%{tde_tdelibdir}/libcsvimport.*
+%{tde_tdelibdir}/libgnumericexport.*
+%{tde_tdelibdir}/libgnumericimport.*
+%{tde_tdelibdir}/libkspreadhtmlexport.*
+%{tde_tdelibdir}/libkspreadinsertcalendar.*
+%{tde_tdelibdir}/libopencalcexport.*
+%{tde_tdelibdir}/libopencalcimport.*
+%{tde_tdelibdir}/libqproimport.*
+%{tde_datadir}/apps/kspread/
+%{tde_datadir}/services/kspread*.desktop
+%{tde_datadir}/templates/SpreadSheet.desktop
+%{tde_datadir}/templates/.source/SpreadSheet.kst
+%{tde_tdeappdir}/*kspread.desktop
+%if 0%{?with_kross} > 0
+%{tde_tdelibdir}/kspreadscripting.*
+%{tde_tdelibdir}/krosskspreadcore.*
+%endif
+
+%files kpresenter
+%defattr(-,root,root,-)
+%lang(en) %{tde_tdedocdir}/HTML/en/kpresenter/
+%{tde_bindir}/kpresenter
+%{tde_bindir}/kprconverter.pl
+%{tde_libdir}/libkdeinit_kpresenter.so
+%{tde_libdir}/libkpresenterimageexport.so.*
+%{tde_libdir}/libkpresenterprivate.so.*
+%{tde_tdelibdir}/*kpresenter*.*
+%{tde_datadir}/apps/kpresenter/
+%{tde_datadir}/services/kpresenter*.desktop
+%{tde_datadir}/templates/Presentation.desktop
+%{tde_datadir}/templates/.source/Presentation.kpt
+%{tde_tdeappdir}/*kpresenter.desktop
+
+%files karbon
+%defattr(-,root,root,-)
+%lang(en) %{tde_tdedocdir}/HTML/en/karbon/
+%{tde_bindir}/karbon
+%{tde_libdir}/libkdeinit_karbon.so
+%{tde_tdelibdir}/*karbon*.*
+%{tde_tdelibdir}/libwmfexport.*
+%{tde_tdelibdir}/libwmfimport.*
+%{tde_datadir}/apps/karbon/
+%{tde_datadir}/services/karbon*
+%{tde_datadir}/servicetypes/karbon_module.desktop
+%{tde_datadir}/templates/Illustration.desktop
+%{tde_datadir}/templates/.source/Illustration.karbon
+%{tde_tdeappdir}/*karbon.desktop
+
+%files kugar
+%defattr(-,root,root,-)
+%lang(en) %{tde_tdedocdir}/HTML/en/kugar/
+%{tde_bindir}/kugar
+%{tde_bindir}/kudesigner
+%{tde_libdir}/libkdeinit_kugar.so
+%{tde_libdir}/libkdeinit_kudesigner.so
+%{tde_libdir}/libkugarlib.so.*
+%{tde_libdir}/libkudesignercore.so
+%{tde_tdelibdir}/kudesigner.*
+%{tde_tdelibdir}/kugar.*
+%{tde_tdelibdir}/libkudesignerpart.*
+%{tde_tdelibdir}/libkugarpart.*
+%{tde_datadir}/apps/kudesigner/
+%{tde_datadir}/apps/kugar/
+%{tde_datadir}/services/kugar*.desktop
+%{tde_tdeappdir}/*kugar.desktop
+%{tde_tdeappdir}/*kudesigner.desktop
+
+%files kexi
+%defattr(-,root,root,-)
+%lang(en) %{tde_tdedocdir}/HTML/en/kexi/
+%{tde_bindir}/kexi*
+%{tde_bindir}/ksqlite*
+%{tde_libdir}/libkdeinit_kexi.so
+%{tde_libdir}/libkexi*.so.*
+%{tde_libdir}/libkformdesigner.so.*
+%{tde_tdelibdir}/kformdesigner_*.*
+%{tde_tdelibdir}/kexidb_sqlite2driver.*
+%{tde_tdelibdir}/kexidb_sqlite3driver.*
+%{tde_tdelibdir}/kexihandler_*.*
+%{tde_tdelibdir}/kexi.*
+# moved here to workaround bug #394101, alternative is to move libkexi(db|dbparser|utils) to -libs)
+%{tde_tdelibdir}/libkspreadkexiimport.*
+%{tde_datadir}/config/kexirc
+%{tde_datadir}/config/magic/kexi.magic
+%{tde_datadir}/mimelnk/application/*
+%{tde_datadir}/servicetypes/kexi*.desktop
+%{tde_datadir}/services/kexi/
+%{tde_datadir}/apps/kexi/
+%{tde_datadir}/services/kformdesigner/*
+%{tde_tdeappdir}/*kexi.desktop
+%{tde_datadir}/services/kexidb_sqlite*driver.desktop
+%if 0%{?with_kross} > 0
+%{tde_bindir}/krossrunner
+%{tde_tdelibdir}/krosskexiapp.*
+%{tde_tdelibdir}/krosskexidb.*
+%endif
+
+%files kexi-driver-mysql
+%defattr(-,root,root,-)
+%{tde_tdelibdir}/kexidb_mysqldriver.*
+%{tde_tdelibdir}/keximigrate_mysql.*
+%{tde_datadir}/services/keximigrate_mysql.desktop
+%{tde_datadir}/services/kexidb_mysqldriver.desktop
+
+%files kexi-driver-pgsql
+%defattr(-,root,root,-)
+%{tde_tdelibdir}/kexidb_pqxxsqldriver.*
+%{tde_tdelibdir}/keximigrate_pqxx.*
+%{tde_datadir}/services/kexidb_pqxxsqldriver.desktop
+%{tde_datadir}/services/keximigrate_pqxx.desktop
+
+%files kchart
+%defattr(-,root,root,-)
+%lang(en) %{tde_tdedocdir}/HTML/en/kchart/
+%{tde_bindir}/kchart
+%{tde_libdir}/libkchart*.so.*
+%{tde_libdir}/libkdeinit_kchart.so
+%{tde_tdelibdir}/*kchart*.*
+%{tde_datadir}/apps/kchart/
+%{tde_datadir}/services/kchart*.desktop
+%{tde_tdeappdir}/*kchart.desktop
+
+%files kformula
+%defattr(-,root,root,-)
+%lang(en) %{tde_tdedocdir}/HTML/en/kformula/
+%{tde_bindir}/kformula
+%{tde_libdir}/libkdeinit_kformula.so
+%{tde_tdelibdir}/*kformula*.*
+%{tde_datadir}/apps/kformula/
+%{tde_datadir}/services/kformula*.desktop
+%{tde_tdeappdir}/*kformula.desktop
+
+%files kivio
+%defattr(-,root,root,-)
+%lang(en) %{tde_tdedocdir}/HTML/en/kivio/
+%{tde_bindir}/kivio
+%{tde_libdir}/libkdeinit_kivio.so
+%{tde_libdir}/libkiviocommon.so.*
+%{tde_tdelibdir}/*kivio*.*
+%{tde_tdelibdir}/straight_connector.*
+%{tde_datadir}/apps/kivio/
+%{tde_datadir}/config.kcfg/kivio.kcfg
+%{tde_datadir}/services/kivio*.desktop
+%{tde_tdeappdir}/*kivio.desktop
+
+%files filters
+%defattr(-,root,root,-)
+%{tde_libdir}/libkwordexportfilters.so.*
+%{tde_tdelibdir}/libabiwordexport.*
+%{tde_tdelibdir}/libabiwordimport.*
+%{tde_tdelibdir}/libamiproexport.*
+%{tde_tdelibdir}/libamiproimport.*
+%{tde_tdelibdir}/libapplixspreadimport.*
+%{tde_tdelibdir}/libapplixwordimport.*
+%{tde_tdelibdir}/libasciiexport.*
+%{tde_tdelibdir}/libasciiimport.*
+%{tde_tdelibdir}/libdbaseimport.*
+%{tde_tdelibdir}/libdocbookexport.*
+%{tde_tdelibdir}/libexcelimport.*
+%{tde_tdelibdir}/libgenerickofilter.*
+%{tde_tdelibdir}/libhtmlexport.*
+%{tde_tdelibdir}/libhtmlimport.*
+%{tde_tdelibdir}/libkarbonepsimport.*
+%{tde_tdelibdir}/libkfolatexexport.*
+%{tde_tdelibdir}/libkfomathmlexport.*
+%{tde_tdelibdir}/libkfomathmlimport.*
+%{tde_tdelibdir}/libkfopngexport.*
+%{tde_tdelibdir}/libkspreadlatexexport.*
+%{tde_tdelibdir}/libkugarnopimport.*
+%{tde_tdelibdir}/libkwordkword1dot3import.*
+%{tde_tdelibdir}/libkwordlatexexport.*
+%{tde_tdelibdir}/libmswriteexport.*
+%{tde_tdelibdir}/libmswriteimport.*
+%{tde_tdelibdir}/libooimpressexport.*
+%{tde_tdelibdir}/libooimpressimport.*
+%{tde_tdelibdir}/liboowriterexport.*
+%{tde_tdelibdir}/liboowriterimport.*
+%{tde_tdelibdir}/libpalmdocexport.*
+%{tde_tdelibdir}/libpalmdocimport.*
+%{tde_tdelibdir}/libpdfimport.*
+%{tde_tdelibdir}/librtfexport.*
+%{tde_tdelibdir}/librtfimport.*
+%{tde_tdelibdir}/libwmlexport.*
+%{tde_tdelibdir}/libwmlimport.*
+%{tde_tdelibdir}/libwpexport.*
+%{tde_tdelibdir}/libwpimport.*
+%{tde_tdelibdir}/libmswordimport.*
+%{tde_tdelibdir}/libxsltimport.*
+%{tde_tdelibdir}/libxsltexport.*
+%{tde_tdelibdir}/libhancomwordimport.*
+%{tde_tdelibdir}/libkfosvgexport.*
+%{tde_tdelibdir}/liboodrawimport.*
+%{tde_tdelibdir}/libolefilter.*
+%{tde_datadir}/apps/xsltfilter/
+%{tde_datadir}/services/generic_filter.desktop
+%{tde_datadir}/services/ole_powerpoint97_import.desktop
+%{tde_datadir}/services/xslt*.desktop
+%{tde_datadir}/servicetypes/kofilter*.desktop
+
+%files kplato
+%defattr(-,root,root,-)
+%lang(en) %{tde_tdedocdir}/HTML/en/kplato/
+%{tde_bindir}/kplato
+%{tde_libdir}/libkdeinit_kplato.so
+%{tde_tdelibdir}/kplato.*
+%{tde_tdelibdir}/libkplatopart.*
+%{tde_datadir}/apps/kplato/
+%{tde_datadir}/services/kplatopart.desktop
+%{tde_tdeappdir}/*kplato.desktop
+
+%files chalk
+%defattr(-,root,root,-)
+%{tde_bindir}/chalk
+%{tde_tdelibdir}/chalkblurfilter.la
+%{tde_tdelibdir}/chalkblurfilter.so
+%{tde_tdelibdir}/chalkbumpmap.la
+%{tde_tdelibdir}/chalkbumpmap.so
+%{tde_tdelibdir}/chalkcimg.la
+%{tde_tdelibdir}/chalkcimg.so
+%{tde_tdelibdir}/chalk_cmyk_*
+%{tde_tdelibdir}/chalkcmykplugin.la
+%{tde_tdelibdir}/chalkcmykplugin.so
+%{tde_tdelibdir}/chalkcolorify.la
+%{tde_tdelibdir}/chalkcolorify.so
+%{tde_tdelibdir}/chalkcolorrange.la
+%{tde_tdelibdir}/chalkcolorrange.so
+%{tde_tdelibdir}/chalkcolorsfilters.la
+%{tde_tdelibdir}/chalkcolorsfilters.so
+%{tde_tdelibdir}/chalkcolorspaceconversion.la
+%{tde_tdelibdir}/chalkcolorspaceconversion.so
+%{tde_tdelibdir}/chalkconvolutionfilters.la
+%{tde_tdelibdir}/chalkconvolutionfilters.so
+%{tde_tdelibdir}/chalkdefaultpaintops.la
+%{tde_tdelibdir}/chalkdefaultpaintops.so
+%{tde_tdelibdir}/chalkdefaulttools.la
+%{tde_tdelibdir}/chalkdefaulttools.so
+%{tde_tdelibdir}/chalkdropshadow.la
+%{tde_tdelibdir}/chalkdropshadow.so
+%{tde_tdelibdir}/chalkembossfilter.la
+%{tde_tdelibdir}/chalkembossfilter.so
+%{tde_tdelibdir}/chalkexample.la
+%{tde_tdelibdir}/chalkexample.so
+%{tde_tdelibdir}/chalkextensioncolorsfilters.la
+%{tde_tdelibdir}/chalkextensioncolorsfilters.so
+%{tde_tdelibdir}/chalkfastcolortransfer.la
+%{tde_tdelibdir}/chalkfastcolortransfer.so
+%{tde_tdelibdir}/chalkfiltersgallery.la
+%{tde_tdelibdir}/chalkfiltersgallery.so
+%{tde_tdelibdir}/chalk_gray_*
+%{tde_tdelibdir}/chalkgrayplugin.la
+%{tde_tdelibdir}/chalkgrayplugin.so
+%{tde_tdelibdir}/chalkhistogramdocker.la
+%{tde_tdelibdir}/chalkhistogramdocker.so
+%{tde_tdelibdir}/chalkhistogram.la
+%{tde_tdelibdir}/chalkhistogram.so
+%{tde_tdelibdir}/chalkimageenhancement.la
+%{tde_tdelibdir}/chalkimageenhancement.so
+%{tde_tdelibdir}/chalkimagesize.la
+%{tde_tdelibdir}/chalkimagesize.so
+%{tde_tdelibdir}/chalk.la
+%{tde_tdelibdir}/chalklenscorrectionfilter.la
+%{tde_tdelibdir}/chalklenscorrectionfilter.so
+%{tde_tdelibdir}/chalklevelfilter.la
+%{tde_tdelibdir}/chalklevelfilter.so
+%{tde_tdelibdir}/chalk_lms_*
+%{tde_tdelibdir}/chalkmodifyselection.la
+%{tde_tdelibdir}/chalkmodifyselection.so
+%{tde_tdelibdir}/chalknoisefilter.la
+%{tde_tdelibdir}/chalknoisefilter.so
+%{tde_tdelibdir}/chalkoilpaintfilter.la
+%{tde_tdelibdir}/chalkoilpaintfilter.so
+%{tde_tdelibdir}/chalkpixelizefilter.la
+%{tde_tdelibdir}/chalkpixelizefilter.so
+%{tde_tdelibdir}/chalkraindropsfilter.la
+%{tde_tdelibdir}/chalkraindropsfilter.so
+%{tde_tdelibdir}/chalkrandompickfilter.la
+%{tde_tdelibdir}/chalkrandompickfilter.so
+%{tde_tdelibdir}/chalk_rgb_*
+%{tde_tdelibdir}/chalkrgbplugin.la
+%{tde_tdelibdir}/chalkrgbplugin.so
+%{tde_tdelibdir}/chalkrotateimage.la
+%{tde_tdelibdir}/chalkrotateimage.so
+%{tde_tdelibdir}/chalkroundcornersfilter.la
+%{tde_tdelibdir}/chalkroundcornersfilter.so
+%{tde_tdelibdir}/chalkselectiontools.la
+%{tde_tdelibdir}/chalkselectiontools.so
+%{tde_tdelibdir}/chalkselectopaque.la
+%{tde_tdelibdir}/chalkselectopaque.so
+%{tde_tdelibdir}/chalkseparatechannels.la
+%{tde_tdelibdir}/chalkseparatechannels.so
+%{tde_tdelibdir}/chalkshearimage.la
+%{tde_tdelibdir}/chalkshearimage.so
+%{tde_tdelibdir}/chalksmalltilesfilter.la
+%{tde_tdelibdir}/chalksmalltilesfilter.so
+%{tde_tdelibdir}/chalk.so
+%{tde_tdelibdir}/chalkscreenshot.la
+%{tde_tdelibdir}/chalkscreenshot.so
+%{tde_tdelibdir}/chalksobelfilter.la
+%{tde_tdelibdir}/chalksobelfilter.so
+%{tde_tdelibdir}/chalksubstrate.la
+%{tde_tdelibdir}/chalksubstrate.so
+%{tde_tdelibdir}/chalktoolcrop.la
+%{tde_tdelibdir}/chalktoolcrop.so
+%{tde_tdelibdir}/chalktoolcurves.la
+%{tde_tdelibdir}/chalktoolcurves.so
+%{tde_tdelibdir}/chalktoolfilter.la
+%{tde_tdelibdir}/chalktoolfilter.so
+%{tde_tdelibdir}/chalktoolperspectivegrid.la
+%{tde_tdelibdir}/chalktoolperspectivegrid.so
+%{tde_tdelibdir}/chalktoolperspectivetransform.la
+%{tde_tdelibdir}/chalktoolperspectivetransform.so
+%{tde_tdelibdir}/chalktoolpolygon.la
+%{tde_tdelibdir}/chalktoolpolygon.so
+%{tde_tdelibdir}/chalktoolpolyline.la
+%{tde_tdelibdir}/chalktoolpolyline.so
+%{tde_tdelibdir}/chalktoolselectsimilar.la
+%{tde_tdelibdir}/chalktoolselectsimilar.so
+%{tde_tdelibdir}/chalktoolstar.la
+%{tde_tdelibdir}/chalktoolstar.so
+%{tde_tdelibdir}/chalktooltransform.la
+%{tde_tdelibdir}/chalktooltransform.so
+%{tde_tdelibdir}/chalkunsharpfilter.la
+%{tde_tdelibdir}/chalkunsharpfilter.so
+%{tde_tdelibdir}/chalkwavefilter.la
+%{tde_tdelibdir}/chalkwavefilter.so
+%{tde_tdelibdir}/chalkwetplugin.la
+%{tde_tdelibdir}/chalkwetplugin.so
+%{tde_tdelibdir}/chalk_ycbcr_*
+%{tde_tdelibdir}/libchalkgmagickexport.la
+%{tde_tdelibdir}/libchalkgmagickexport.so
+%{tde_tdelibdir}/libchalkgmagickimport.la
+%{tde_tdelibdir}/libchalkgmagickimport.so
+%{tde_tdelibdir}/libchalkjpegexport.la
+%{tde_tdelibdir}/libchalkjpegexport.so
+%{tde_tdelibdir}/libchalkjpegimport.la
+%{tde_tdelibdir}/libchalkjpegimport.so
+%{tde_tdelibdir}/libchalk_openexr_export.la
+%{tde_tdelibdir}/libchalk_openexr_export.so
+%{tde_tdelibdir}/libchalk_openexr_import.la
+%{tde_tdelibdir}/libchalk_openexr_import.so
+%{tde_tdelibdir}/libchalkpart.la
+%{tde_tdelibdir}/libchalkpart.so
+%{tde_tdelibdir}/libchalkpdfimport.la
+%{tde_tdelibdir}/libchalkpdfimport.so
+%{tde_tdelibdir}/libchalkpngexport.la
+%{tde_tdelibdir}/libchalkpngexport.so
+%{tde_tdelibdir}/libchalkpngimport.la
+%{tde_tdelibdir}/libchalkpngimport.so
+%{tde_tdelibdir}/libchalk_raw_import.la
+%{tde_tdelibdir}/libchalk_raw_import.so
+%{tde_tdelibdir}/libchalktiffexport.la
+%{tde_tdelibdir}/libchalktiffexport.so
+%{tde_tdelibdir}/libchalktiffimport.la
+%{tde_tdelibdir}/libchalktiffimport.so
+%{tde_libdir}/libkdeinit_chalk.so
+%{tde_libdir}/libchalk_cmyk_*.so.*
+%{tde_libdir}/libchalkcolor.so.*
+%{tde_libdir}/libchalkcommon.so.*
+%{tde_libdir}/libchalkgrayscale.so.*
+%{tde_libdir}/libchalk_gray_*.so.*
+%{tde_libdir}/libchalkimage.so.*
+%{tde_libdir}/libchalk_lms_*.so.*
+%{tde_libdir}/libchalk_rgb_*.so.*
+%{tde_libdir}/libchalkrgb.so.*
+%{tde_libdir}/libchalkui.so.*
+%{tde_libdir}/libchalk_ycbcr_*.so.*
+%if 0%{?with_kross} > 0
+%{tde_tdelibdir}/krosschalkcore.la
+%{tde_tdelibdir}/krosschalkcore.so
+%{tde_tdelibdir}/chalkscripting.la
+%{tde_tdelibdir}/chalkscripting.so
+%{tde_libdir}/libchalkscripting.so.*
+%endif
+
+%files chalk-data
+%{tde_tdeappdir}/chalk.desktop
+%{tde_datadir}/applnk/.hidden/chalk_*.desktop
+%{tde_datadir}/apps/konqueror/servicemenus/chalk_konqi.desktop
+%{tde_datadir}/apps/chalk
+%{tde_datadir}/apps/chalkplugins
+%lang(en) %{tde_tdedocdir}/HTML/en/chalk
+%{tde_datadir}/icons/hicolor/*/apps/chalk.png
+%{tde_datadir}/services/chalk*.desktop
+%{tde_datadir}/servicetypes/chalk*.desktop
+
+
+%changelog
+* 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/koffice/trinity-koffice.spec b/redhat/applications/koffice/trinity-koffice.spec
deleted file mode 100644
index b89c1251f..000000000
--- a/redhat/applications/koffice/trinity-koffice.spec
+++ /dev/null
@@ -1,1033 +0,0 @@
-# Default version for this component
-%define kdecomp koffice
-%define version 1.6.3
-%define release 5
-
-# 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_appdir %{_datadir}/applications/kde
-%define tde_docdir %{_docdir}/kde
-%define tde_includedir %{_includedir}/kde
-%define tde_libdir %{_libdir}/trinity
-
-# Disable Kross support for RHEL <= 5 (python is too old)
-%if 0%{?fedora} > 0 || 0%{?rhel} >= 6
-%define with_kross 1
-%endif
-
-%if 0%{?fedora} >= 17
-%define with_ruby 0
-%else
-%define with_ruby 1
-%endif
-
-# Ruby 1.9 includes are located in strance directories ... (taken from ruby 1.9 spec file)
-%global _normalized_cpu %(echo %{_target_cpu} | sed 's/^ppc/powerpc/;s/i.86/i386/;s/sparcv./sparc/;s/armv.*/arm/')
-
-
-Name: trinity-%{kdecomp}
-Summary: An integrated office suite
-Version: %{?version}
-Release: %{?release}%{?dist}%{?_variant}
-
-Group: Applications/Productivity
-License: GPLv2+
-
-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.tar.gz
-Source100: koshell.png
-
-# [koffice] Disable GraphicksMagick version >= 1.2.0 [Bug #353]
-Patch0: koffice-3.5.13-disable_graphicksmagick.patch
-# [filters/chalk/pdf] Fix poppler-qt detection [Bug #783]
-Patch1: koffice-3.5.13-fix_poppler_detect.patch
-# [lib/kross/python/scripts/RestrictedPython/Utilities.py] Syntax error [Bug #679]
-Patch2: koffice-3.5.13-kross_utilities_syntax.patch
-# [koffice/chalk] Fix GraphicksMagick 1.3 support [Bug #353]
-Patch3: koffice-3.5.13-chalk_gmagick.patch
-# [koffice/kexi] Various patches for kexi, found on the web [Bug # 777]
-Patch5: kexi-fix-possible-crash-in-buffered-mode-sqlite-2.patch
-Patch6: kexi-hide_hourglass-1.1.3-2.patch
-Patch7: kexi-fix-support-for-boolean-types-in-migration.patch
-Patch8: kexi-mysql_migrate_long_text-1.1.3.patch
-Patch9: kexi-fix-support-for-boolean-types.patch
-Patch10: kexi-thoushand_objects_support-1.1.3-2.patch
-Patch11: kexi-fp_expressions-1.1.3.patch
-# [koffice] Fix compilation with GCC 4.7 [Bug #958]
-Patch12: koffice-3.5.13-fix_gcc47_compilation.patch
-# [koffice] Fix compilation with Ruby 1.9 [Bug #735]
-Patch13: koffice-3.5.13-fix_ruby_1.9.patch
-# [koffice] Fix compilation with libpng [Bug #603]
-Patch14: koffice-3.5.13-fix_libpng.patch
-# [koffice] 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
-Patch15: koffice-3.5.13-fix_bug_657.patch
-# [koffice] Fix accidental conversions of binary files [Bug #1033] [Commit #dbe89307]
-Source1: koffice-3.5.13-damaged_binary_files.tar.gz
-
-
-# BuildRequires: world-devel ;)
-BuildRequires: trinity-kdelibs-devel
-BuildRequires: trinity-kdegraphics-devel
-BuildRequires: automake libtool
-BuildRequires: freetype-devel
-BuildRequires: fontconfig-devel
-BuildRequires: libart_lgpl-devel
-BuildRequires: libpng-devel
-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
-BuildRequires: perl
-BuildRequires: doxygen
-BuildRequires: aspell-devel
-BuildRequires: libxslt-devel
-BuildRequires: OpenEXR-devel
-BuildRequires: libexif-devel
-BuildRequires: libGL-devel libGLU-devel
-BuildRequires: readline-devel
-%if 0%{?with_ruby}
-BuildRequires: ruby ruby-devel >= 1.8.2
-%endif
-BuildRequires: libpaper-devel
-BuildRequires: libXi-devel
-BuildRequires: libutempter-devel
-BuildRequires: GraphicsMagick-devel >= 1.1.0
-
-BuildRequires: trinity-wv2-devel
-BuildRequires: trinity-libwpd-devel
-BuildRequires: trinity-libpqxx-devel
-%if 0%{?rhel} >= 6 || 0%{?fedora} >= 15
-BuildRequires: poppler-qt-devel >= 0.1.2
-%else
-BuildRequires: trinity-poppler-qt3-devel >= 0.1.2
-%endif
-
-%description
-KOffice is an integrated office suite.
-
-%package suite
-Summary: An integrated office suite
-Group: Applications/Productivity
-Obsoletes: %{name} <= %{version}-%{release}
-Obsoletes: %{name}-i18n < 4:%{version}
-Requires: %{name}-core = %{version}-%{release}
-Requires: %{name}-kword = %{version}-%{release}
-Requires: %{name}-kspread = %{version}-%{release}
-Requires: %{name}-kpresenter = %{version}-%{release}
-Requires: %{name}-kivio = %{version}-%{release}
-Requires: %{name}-karbon = %{version}-%{release}
-Requires: %{name}-kugar = %{version}-%{release}
-Requires: %{name}-kexi = %{version}-%{release}
-Requires: %{name}-kexi-driver-mysql = %{version}-%{release}
-Requires: %{name}-kexi-driver-pgsql = %{version}-%{release}
-Requires: %{name}-kchart = %{version}-%{release}
-Requires: %{name}-kformula = %{version}-%{release}
-Requires: %{name}-filters = %{version}-%{release}
-Requires: %{name}-kplato = %{version}-%{release}
-Requires: %{name}-chalk = %{version}-%{release}
-
-%description suite
-KOffice is an integrated office suite.
-
-%package core
-Summary: Core support files for %{name}
-Group: Applications/Productivity
-Requires: %{name}-libs = %{version}-%{release}
-Requires: perl
-Conflicts: koffice-i18n < %{version}
-%description core
-%{summary}.
-
-%package libs
-Summary: Runtime libraries for %{name}
-Group: System Environment/Libraries
-Conflicts: %{name} <= %{version}-%{release}
-Requires: trinity-kdelibs
-License: LGPLv2+
-%description libs
-%{summary}.
-
-%package devel
-Summary: Development files for %{name}
-Group: Development/Libraries
-Requires: %{name}-libs = %{version}-%{release}
-License: LGPLv2+
-%description devel
-%{summary}.
-
-%package kword
-Summary: A frame-based word processor capable of professional standard documents
-Group: Applications/Productivity
-Requires: %{name}-core = %{version}-%{release}
-%description kword
-%{summary}.
-
-%package kspread
-Summary: A powerful spreadsheet application
-Group: Applications/Productivity
-Requires: %{name}-core = %{version}-%{release}
-%description kspread
-%{summary}.
-
-%package kpresenter
-Summary: A full-featured presentation program
-Group: Applications/Productivity
-Requires: %{name}-core = %{version}-%{release}
-%description kpresenter
-%{summary}.
-
-%package kivio
-Summary: A flowcharting application
-Group: Applications/Productivity
-Requires: %{name}-core = %{version}-%{release}
-Obsoletes: kivio < %{version}-%{release}
-%description kivio
-%{summary}.
-
-%package karbon
-Summary: A vector drawing application
-Group: Applications/Productivity
-Requires: %{name}-core = %{version}-%{release}
-%description karbon
-%{summary}.
-
-%package kugar
-Summary: A tool for generating business quality reports
-Group: Applications/Productivity
-Requires: %{name}-core = %{version}-%{release}
-%description kugar
-%{summary}.
-
-%package kexi
-Summary: An integrated environment for managing data
-Group: Applications/Productivity
-Requires: %{name}-core = %{version}-%{release}
-%description kexi
-%{summary}.
-For additional database drivers take a look at %{name}-kexi-driver-*
-
-%package kexi-driver-mysql
-Summary: Mysql-driver for kexi
-Group: Applications/Productivity
-Requires: %{name}-kexi = %{version}-%{release}
-%description kexi-driver-mysql
-%{summary}.
-
-%package kexi-driver-pgsql
-Summary: Postgresql driver for kexi
-Group: Applications/Productivity
-Requires: %{name}-kexi = %{version}-%{release}
-%description kexi-driver-pgsql
-%{summary}.
-
-%package kchart
-Summary: An integrated graph and chart drawing tool
-Group: Applications/Productivity
-Requires: %{name}-core = %{version}-%{release}
-%description kchart
-%{summary}.
-
-%package kformula
-Summary: A powerful formula editor
-Group: Applications/Productivity
-Requires: %{name}-core = %{version}-%{release}
-Requires: lyx-cmex10-fonts
-%if 0%{?fedora} >= 11 || 0%{?rhel} >= 6
-Requires: dejavu-lgc-sans-fonts
-%else
-Requires: dejavu-lgc-fonts
-%endif
-%description kformula
-%{summary}.
-
-%package filters
-Summary: Import and Export Filters for KOffice
-Group: Applications/Productivity
-Requires: %{name}-core = %{version}-%{release}
-%description filters
-%{summary}.
-
-%package kplato
-Summary: An integrated project management and planning tool
-Group: Applications/Productivity
-Requires: %{name}-core = %{version}-%{release}
-%description kplato
-%{summary}.
-
-%package chalk
-Summary: pixel-based image manipulation program for the TDE Office Suite [Trinity]
-Group: Applications/Productivity
-Requires: %{name}-core = %{version}-%{release}
-Requires: %{name}-chalk-data = %{version}-%{release}
-Requires: %{name}-filters
-%description chalk
-Chalk is a painting and image editing application for KOffice. Chalk contains
-both ease-of-use and fun features like guided painting.
-
-This package is part of the TDE Office Suite.
-
-%package chalk-data
-Summary: data files for Chalk painting program [Trinity]
-Group: Applications/Productivity
-%description chalk-data
-This package contains architecture-independent data files for Chalk,
-the painting program shipped with the TDE Office Suite.
-
-See the chalk package for further information.
-
-This package is part of the TDE Office Suite.
-
-
-
-%prep
-%setup -q -n applications/%{kdecomp}
-%setup -q -n applications/%{kdecomp} -a 1
-
-#patch0 -p1
-#patch1 -p1
-%patch2 -p1
-%patch3 -p1
-%patch5 -p0
-%patch6 -p0
-%patch7 -p0
-%patch8 -p0
-%patch9 -p0
-%patch10 -p0
-%patch11 -p0
-%patch12 -p1 -b .gcc47
-%if 0%{?fedora} >= 17
-%patch13 -p1 -b .ruby
-%patch14 -p1 -b .libpng
-%endif
-%patch15 -p1
-
-# use LGC variant instead
-%__sed -i.dejavu-lgc \
- -e 's|DejaVu Sans|DejaVu LGC Sans|' \
- -e 's|dejavu sans|dejavu lgc sans|' \
- lib/kformula/{contextstyle,fontstyle,symboltable}.cc
-
-# 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|%{_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 \
- --disable-rpath --disable-dependency-tracking \
- --enable-new-ldflags \
- --disable-debug --disable-warnings \
- --with-pic --enable-shared --disable-static \
- --with-extra-libs=%{_libdir} \
- --enable-final \
- --with-extra-includes=%{_includedir}/tqt \
- --enable-closure \
- --disable-kexi-macros \
- --with-pqxx-includes=%{_includedir} \
- --with-pqxx-libraries=%{_libdir} \
-%if 0%{?with_kross} > 0
- --enable-scripting \
-%else
- --disable-scripting \
-%endif
-
-%__make %{?_smp_mflags}
-
-
-%install
-%__rm -rf %{buildroot}
-%__make install DESTDIR=%{buildroot}
-
-[ ! -f %{buildroot}%{_datadir}/icons/hicolor/48x48/apps/koshell.png ] && \
-%__install -p -D -m644 %{SOURCE100} %{buildroot}%{_datadir}/icons/hicolor/48x48/apps/koshell.png
-
-# Replace absolute symlinks with relative ones
-pushd %{buildroot}%{tde_docdir}/HTML
-for lang in *; do
- if [ -d $lang ]; then
- pushd $lang
- for i in */*; do
- [ -d $i -a -L $i/common ] && rm -f $i/common && ln -sf ../../common $i/common
- done
- popd
- fi
-done
-popd
-
-desktop-file-install \
- --dir=%{buildroot}%{tde_appdir} \
- --vendor="" \
- --delete-original \
- %{buildroot}%{_datadir}/applnk/Office/*.desktop
-
-## Hack-in NoDisplay=True (http://bugzilla.redhat.com/245061)
-## until http://bugzilla.redhat.com/245190 is fixed
-for desktop_file in %{buildroot}%{_datadir}/applnk/.hidden/*.desktop ; do
- grep "^NoDisplay=" ${desktop_file} || \
- echo "NoDisplay=True" >> ${desktop_file}
-done
-
-## unpackaged files
-# fonts
-rm -rfv %{buildroot}%{_datadir}/apps/kformula/fonts/
-# libtool archives
-rm -f %{buildroot}%{_libdir}/lib*.la
-# shouldn't these be in koffice-l10n?
-rm -f %{buildroot}%{_datadir}/locale/pl/LC_MESSAGES/kexi_{add,delete}_column_gui_transl_pl.sh
-# -devel symlinks to nuke
-rm -f %{buildroot}%{_libdir}/lib*common.so
-rm -f %{buildroot}%{_libdir}/lib*filters.so
-rm -f %{buildroot}%{_libdir}/lib*private.so
-rm -f %{buildroot}%{_libdir}/libkarbon*.so
-rm -f %{buildroot}%{_libdir}/libkchart*.so
-rm -f %{buildroot}%{_libdir}/libkexi*.so
-rm -f %{buildroot}%{_libdir}/libkisexiv2.so
-rm -f %{buildroot}%{_libdir}/libkformdesigner.so
-rm -f %{buildroot}%{_libdir}/libkplato*.so
-rm -f %{buildroot}%{_libdir}/libkpresenter*.so
-rm -f %{buildroot}%{_libdir}/libkword*.so
-rm -f %{buildroot}%{_libdir}/libkross*.so
-rm -f %{buildroot}%{_libdir}/libkugar*.so
-
-
-%clean
-%__rm -rf %{buildroot}
-
-%post core
-touch --no-create %{_datadir}/icons/crystalsvg &> /dev/null || :
-touch --no-create %{_datadir}/icons/hicolor &> /dev/null || :
-touch --no-create %{_datadir}/icons/locolor &> /dev/null || :
-
-%postun core
-if [ $1 -eq 0 ]; then
- gtk-update-icon-cache %{_datadir}/icons/crystalsvg &> /dev/null || :
- gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null || :
- gtk-update-icon-cache %{_datadir}/icons/locolor &> /dev/null || :
- update-desktop-database -q &> /dev/null ||:
-fi
-
-%posttrans core
-gtk-update-icon-cache %{_datadir}/icons/crystalsvg &> /dev/null || :
-gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null || :
-gtk-update-icon-cache %{_datadir}/icons/locolor &> /dev/null || :
-update-desktop-database -q &> /dev/null ||:
-
-%post karbon -p /sbin/ldconfig
-
-%postun karbon -p /sbin/ldconfig
-
-%post kword -p /sbin/ldconfig
-
-%postun kword -p /sbin/ldconfig
-
-%posttrans kword
-update-desktop-database -q &> /dev/null ||:
-
-%post kpresenter -p /sbin/ldconfig
-
-%postun kpresenter -p /sbin/ldconfig
-
-%posttrans kpresenter
-update-desktop-database -q &> /dev/null ||:
-
-%post kugar -p /sbin/ldconfig
-
-%postun kugar -p /sbin/ldconfig
-
-%posttrans kugar
-update-desktop-database -q &> /dev/null ||:
-
-%post kexi -p /sbin/ldconfig
-
-%postun kexi -p /sbin/ldconfig
-
-%posttrans kexi
-update-desktop-database -q &> /dev/null ||:
-
-%post kchart -p /sbin/ldconfig
-
-%postun kchart -p /sbin/ldconfig
-
-%posttrans kchart
-update-desktop-database -q &> /dev/null ||:
-
-%post filters -p /sbin/ldconfig
-%postun filters -p /sbin/ldconfig
-
-%post libs -p /sbin/ldconfig
-%postun libs -p /sbin/ldconfig
-
-%post chalk -p /sbin/ldconfig
-
-%postun chalk -p /sbin/ldconfig
-
-%posttrans chalk
-update-desktop-database -q &> /dev/null ||:
-
-%files suite
-#empty => virtual package
-
-%files core
-%defattr(-,root,root,-)
-%doc AUTHORS COPYING README
-%{_bindir}/koshell
-%{_bindir}/kthesaurus
-%{_bindir}/koconverter
-%{_libdir}/libkdeinit_koshell.so
-%{_libdir}/libkdeinit_kthesaurus.so
-%{tde_libdir}/kfile_koffice.*
-%{tde_libdir}/kfile_ooo.*
-%{tde_libdir}/kfile_abiword.*
-%{tde_libdir}/kfile_gnumeric.*
-%{tde_libdir}/kodocinfopropspage.*
-%{tde_libdir}/kofficescan.*
-%{tde_libdir}/kofficethumbnail.*
-%{tde_libdir}/koshell.*
-%{tde_libdir}/kthesaurus.*
-%{tde_libdir}/kwmailmerge_classic.*
-%{tde_libdir}/kwmailmerge_kabc.*
-%{tde_libdir}/kwmailmerge_qtsqldb_power.*
-%{tde_libdir}/kwmailmerge_qtsqldb.*
-%{tde_libdir}/libkounavailpart.*
-%{tde_libdir}/libkprkword.*
-%{tde_libdir}/libthesaurustool.*
-%{tde_libdir}/clipartthumbnail.*
-%{_datadir}/apps/koffice/
-%{_datadir}/apps/konqueror/servicemenus/*
-%{_datadir}/apps/koshell/
-%{_datadir}/apps/thesaurus/
-%{_datadir}/config.kcfg/koshell.kcfg
-%{tde_docdir}/HTML/en/koffice/
-%{tde_docdir}/HTML/en/koshell/
-%{tde_docdir}/HTML/en/thesaurus/
-%{_datadir}/icons/crystalsvg/*/*/*
-%{_datadir}/icons/hicolor/*/*/*
-%{_datadir}/icons/locolor/*/*/*
-%{_datadir}/services/clipartthumbnail.desktop
-%{_datadir}/services/kfile*.desktop
-%{_datadir}/services/kwmailmerge*.desktop
-%{_datadir}/services/kodocinfopropspage.desktop
-%{_datadir}/services/kofficethumbnail.desktop
-%{_datadir}/services/kounavail.desktop
-%{_datadir}/services/kprkword.desktop
-%{_datadir}/services/thesaurustool.desktop
-%{_datadir}/servicetypes/kochart.desktop
-%{_datadir}/servicetypes/kofficepart.desktop
-%{_datadir}/servicetypes/koplugin.desktop
-%{_datadir}/servicetypes/kwmailmerge.desktop
-%{_datadir}/servicetypes/widgetfactory.desktop
-%{tde_appdir}/*koffice.desktop
-%{tde_appdir}/*KThesaurus.desktop
-%{tde_appdir}/*koshell.desktop
-%{_datadir}/apps/kofficewidgets/
-%if 0%{?with_kross} > 0
-%{_datadir}/apps/kross/
-%{tde_libdir}/krosspython.*
-%if 0%{?with_ruby}
-%{tde_libdir}/krossruby.*
-%endif
-%endif
-
-%files libs
-%defattr(-,root,root,-)
-%doc COPYING.LIB
-#_libdir/libk*common.so.*
-%{_libdir}/libkarboncommon.so.*
-%{_libdir}/libkspreadcommon.so.*
-%{_libdir}/libkdchart.so.*
-%{_libdir}/libkochart.so.*
-%{_libdir}/libkofficecore.so.*
-%{_libdir}/libkofficeui.so.*
-%{_libdir}/libkotext.so.*
-%{_libdir}/libkowmf.so.*
-%{_libdir}/libkopainter.so.*
-%{_libdir}/libkstore.so.*
-%{_libdir}/libkwmailmerge_interface.so.*
-%{_libdir}/libkwmf.so.*
-%{_libdir}/libkformulalib.so.*
-%{_libdir}/libkopalette.so.*
-%{_libdir}/libkoproperty.so.*
-%if 0%{?with_kross} > 0
-%{_libdir}/libkrossapi.so.*
-%{_libdir}/libkrossmain.so.*
-%endif
-
-%files devel
-%defattr(-,root,root,-)
-%lang(en) %{tde_docdir}/HTML/en/koffice-apidocs/
-%{_includedir}/*
-# FIXME: include only shlib symlinks we know/want to export
-%{_libdir}/lib*.so
-%exclude %{_libdir}/libkdeinit_*.so
-%exclude %{_libdir}/libkudesignercore.so
-
-%files kword
-%defattr(-,root,root,-)
-%lang(en) %{tde_docdir}/HTML/en/kword/
-%{_bindir}/kword
-%{_libdir}/libkdeinit_kword.so
-%{_libdir}/libkwordprivate.so.*
-%{tde_libdir}/libkwordpart.*
-%{tde_libdir}/kword.*
-%{_datadir}/apps/kword/
-%{_datadir}/services/kword*.desktop
-%{_datadir}/services/kwserial*.desktop
-%{_datadir}/templates/TextDocument.desktop
-%{_datadir}/templates/.source/TextDocument.kwt
-%{tde_appdir}/*kword.desktop
-
-%files kspread
-%defattr(-,root,root,-)
-%lang(en) %{tde_docdir}/HTML/en/kspread/
-%{_bindir}/kspread
-%{_libdir}/libkdeinit_kspread.so
-%{tde_libdir}/kspread.*
-%{tde_libdir}/libkspreadpart.*
-%{tde_libdir}/kwmailmerge_kspread.*
-%{tde_libdir}/libcsvexport.*
-%{tde_libdir}/libcsvimport.*
-%{tde_libdir}/libgnumericexport.*
-%{tde_libdir}/libgnumericimport.*
-%{tde_libdir}/libkspreadhtmlexport.*
-%{tde_libdir}/libkspreadinsertcalendar.*
-%{tde_libdir}/libopencalcexport.*
-%{tde_libdir}/libopencalcimport.*
-%{tde_libdir}/libqproimport.*
-%{_datadir}/apps/kspread/
-%{_datadir}/services/kspread*.desktop
-%{_datadir}/templates/SpreadSheet.desktop
-%{_datadir}/templates/.source/SpreadSheet.kst
-%{tde_appdir}/*kspread.desktop
-%if 0%{?with_kross} > 0
-%{tde_libdir}/kspreadscripting.*
-%{tde_libdir}/krosskspreadcore.*
-%endif
-
-%files kpresenter
-%defattr(-,root,root,-)
-%lang(en) %{tde_docdir}/HTML/en/kpresenter/
-%{_bindir}/kpresenter
-%{_bindir}/kprconverter.pl
-%{_libdir}/libkdeinit_kpresenter.so
-%{_libdir}/libkpresenterimageexport.so.*
-%{_libdir}/libkpresenterprivate.so.*
-%{tde_libdir}/*kpresenter*.*
-%{_datadir}/apps/kpresenter/
-%{_datadir}/services/kpresenter*.desktop
-%{_datadir}/templates/Presentation.desktop
-%{_datadir}/templates/.source/Presentation.kpt
-%{tde_appdir}/*kpresenter.desktop
-
-%files karbon
-%defattr(-,root,root,-)
-%lang(en) %{tde_docdir}/HTML/en/karbon/
-%{_bindir}/karbon
-%{_libdir}/libkdeinit_karbon.so
-%{tde_libdir}/*karbon*.*
-%{tde_libdir}/libwmfexport.*
-%{tde_libdir}/libwmfimport.*
-%{_datadir}/apps/karbon/
-%{_datadir}/services/karbon*
-%{_datadir}/servicetypes/karbon_module.desktop
-%{_datadir}/templates/Illustration.desktop
-%{_datadir}/templates/.source/Illustration.karbon
-%{tde_appdir}/*karbon.desktop
-
-%files kugar
-%defattr(-,root,root,-)
-%lang(en) %{tde_docdir}/HTML/en/kugar/
-%{_bindir}/kugar
-%{_bindir}/kudesigner
-%{_libdir}/libkdeinit_kugar.so
-%{_libdir}/libkdeinit_kudesigner.so
-%{_libdir}/libkugarlib.so.*
-%{_libdir}/libkudesignercore.so
-%{tde_libdir}/kudesigner.*
-%{tde_libdir}/kugar.*
-%{tde_libdir}/libkudesignerpart.*
-%{tde_libdir}/libkugarpart.*
-%{_datadir}/apps/kudesigner/
-%{_datadir}/apps/kugar/
-%{_datadir}/services/kugar*.desktop
-%{tde_appdir}/*kugar.desktop
-%{tde_appdir}/*kudesigner.desktop
-
-%files kexi
-%defattr(-,root,root,-)
-%lang(en) %{tde_docdir}/HTML/en/kexi/
-%{_bindir}/kexi*
-%{_bindir}/ksqlite*
-%{_libdir}/libkdeinit_kexi.so
-%{_libdir}/libkexi*.so.*
-%{_libdir}/libkformdesigner.so.*
-%{tde_libdir}/kformdesigner_*.*
-%{tde_libdir}/kexidb_sqlite2driver.*
-%{tde_libdir}/kexidb_sqlite3driver.*
-%{tde_libdir}/kexihandler_*.*
-%{tde_libdir}/kexi.*
-# moved here to workaround bug #394101, alternative is to move libkexi(db|dbparser|utils) to -libs)
-%{tde_libdir}/libkspreadkexiimport.*
-%{_datadir}/config/kexirc
-%{_datadir}/config/magic/kexi.magic
-%{_datadir}/mimelnk/application/*
-%{_datadir}/servicetypes/kexi*.desktop
-%{_datadir}/services/kexi/
-%{_datadir}/apps/kexi/
-%{_datadir}/services/kformdesigner/*
-%{tde_appdir}/*kexi.desktop
-%{_datadir}/services/kexidb_sqlite*driver.desktop
-%if 0%{?with_kross} > 0
-%{_bindir}/krossrunner
-%{tde_libdir}/krosskexiapp.*
-%{tde_libdir}/krosskexidb.*
-%endif
-
-%files kexi-driver-mysql
-%defattr(-,root,root,-)
-%{tde_libdir}/kexidb_mysqldriver.*
-%{tde_libdir}/keximigrate_mysql.*
-%{_datadir}/services/keximigrate_mysql.desktop
-%{_datadir}/services/kexidb_mysqldriver.desktop
-
-%files kexi-driver-pgsql
-%defattr(-,root,root,-)
-%{tde_libdir}/kexidb_pqxxsqldriver.*
-%{tde_libdir}/keximigrate_pqxx.*
-%{_datadir}/services/kexidb_pqxxsqldriver.desktop
-%{_datadir}/services/keximigrate_pqxx.desktop
-
-%files kchart
-%defattr(-,root,root,-)
-%lang(en) %{tde_docdir}/HTML/en/kchart/
-%{_bindir}/kchart
-%{_libdir}/libkchart*.so.*
-%{_libdir}/libkdeinit_kchart.so
-%{tde_libdir}/*kchart*.*
-%{_datadir}/apps/kchart/
-%{_datadir}/services/kchart*.desktop
-%{tde_appdir}/*kchart.desktop
-
-%files kformula
-%defattr(-,root,root,-)
-%lang(en) %{tde_docdir}/HTML/en/kformula/
-%{_bindir}/kformula
-%{_libdir}/libkdeinit_kformula.so
-%{tde_libdir}/*kformula*.*
-%{_datadir}/apps/kformula/
-%{_datadir}/services/kformula*.desktop
-%{tde_appdir}/*kformula.desktop
-
-%files kivio
-%defattr(-,root,root,-)
-%lang(en) %{tde_docdir}/HTML/en/kivio/
-%{_bindir}/kivio
-%{_libdir}/libkdeinit_kivio.so
-%{_libdir}/libkiviocommon.so.*
-%{tde_libdir}/*kivio*.*
-%{tde_libdir}/straight_connector.*
-%{_datadir}/apps/kivio/
-%{_datadir}/config.kcfg/kivio.kcfg
-%{_datadir}/services/kivio*.desktop
-%{tde_appdir}/*kivio.desktop
-
-%files filters
-%defattr(-,root,root,-)
-%{_libdir}/libkwordexportfilters.so.*
-%{tde_libdir}/libabiwordexport.*
-%{tde_libdir}/libabiwordimport.*
-%{tde_libdir}/libamiproexport.*
-%{tde_libdir}/libamiproimport.*
-%{tde_libdir}/libapplixspreadimport.*
-%{tde_libdir}/libapplixwordimport.*
-%{tde_libdir}/libasciiexport.*
-%{tde_libdir}/libasciiimport.*
-%{tde_libdir}/libdbaseimport.*
-%{tde_libdir}/libdocbookexport.*
-%{tde_libdir}/libexcelimport.*
-%{tde_libdir}/libgenerickofilter.*
-%{tde_libdir}/libhtmlexport.*
-%{tde_libdir}/libhtmlimport.*
-%{tde_libdir}/libkarbonepsimport.*
-%{tde_libdir}/libkfolatexexport.*
-%{tde_libdir}/libkfomathmlexport.*
-%{tde_libdir}/libkfomathmlimport.*
-%{tde_libdir}/libkfopngexport.*
-%{tde_libdir}/libkspreadlatexexport.*
-%{tde_libdir}/libkugarnopimport.*
-%{tde_libdir}/libkwordkword1dot3import.*
-%{tde_libdir}/libkwordlatexexport.*
-%{tde_libdir}/libmswriteexport.*
-%{tde_libdir}/libmswriteimport.*
-%{tde_libdir}/libooimpressexport.*
-%{tde_libdir}/libooimpressimport.*
-%{tde_libdir}/liboowriterexport.*
-%{tde_libdir}/liboowriterimport.*
-%{tde_libdir}/libpalmdocexport.*
-%{tde_libdir}/libpalmdocimport.*
-%{tde_libdir}/libpdfimport.*
-%{tde_libdir}/librtfexport.*
-%{tde_libdir}/librtfimport.*
-%{tde_libdir}/libwmlexport.*
-%{tde_libdir}/libwmlimport.*
-%{tde_libdir}/libwpexport.*
-%{tde_libdir}/libwpimport.*
-%{tde_libdir}/libmswordimport.*
-%{tde_libdir}/libxsltimport.*
-%{tde_libdir}/libxsltexport.*
-%{tde_libdir}/libhancomwordimport.*
-%{tde_libdir}/libkfosvgexport.*
-%{tde_libdir}/liboodrawimport.*
-%{tde_libdir}/libolefilter.*
-%{_datadir}/apps/xsltfilter/
-%{_datadir}/services/generic_filter.desktop
-%{_datadir}/services/ole_powerpoint97_import.desktop
-%{_datadir}/services/xslt*.desktop
-%{_datadir}/servicetypes/kofilter*.desktop
-
-%files kplato
-%defattr(-,root,root,-)
-%lang(en) %{tde_docdir}/HTML/en/kplato/
-%{_bindir}/kplato
-%{_libdir}/libkdeinit_kplato.so
-%{tde_libdir}/kplato.*
-%{tde_libdir}/libkplatopart.*
-%{_datadir}/apps/kplato/
-%{_datadir}/services/kplatopart.desktop
-%{tde_appdir}/*kplato.desktop
-
-%files chalk
-%defattr(-,root,root,-)
-%{_bindir}/chalk
-%{tde_libdir}/chalkblurfilter.la
-%{tde_libdir}/chalkblurfilter.so
-%{tde_libdir}/chalkbumpmap.la
-%{tde_libdir}/chalkbumpmap.so
-%{tde_libdir}/chalkcimg.la
-%{tde_libdir}/chalkcimg.so
-%{tde_libdir}/chalk_cmyk_*
-%{tde_libdir}/chalkcmykplugin.la
-%{tde_libdir}/chalkcmykplugin.so
-%{tde_libdir}/chalkcolorify.la
-%{tde_libdir}/chalkcolorify.so
-%{tde_libdir}/chalkcolorrange.la
-%{tde_libdir}/chalkcolorrange.so
-%{tde_libdir}/chalkcolorsfilters.la
-%{tde_libdir}/chalkcolorsfilters.so
-%{tde_libdir}/chalkcolorspaceconversion.la
-%{tde_libdir}/chalkcolorspaceconversion.so
-%{tde_libdir}/chalkconvolutionfilters.la
-%{tde_libdir}/chalkconvolutionfilters.so
-%{tde_libdir}/chalkdefaultpaintops.la
-%{tde_libdir}/chalkdefaultpaintops.so
-%{tde_libdir}/chalkdefaulttools.la
-%{tde_libdir}/chalkdefaulttools.so
-%{tde_libdir}/chalkdropshadow.la
-%{tde_libdir}/chalkdropshadow.so
-%{tde_libdir}/chalkembossfilter.la
-%{tde_libdir}/chalkembossfilter.so
-%{tde_libdir}/chalkexample.la
-%{tde_libdir}/chalkexample.so
-%{tde_libdir}/chalkextensioncolorsfilters.la
-%{tde_libdir}/chalkextensioncolorsfilters.so
-%{tde_libdir}/chalkfastcolortransfer.la
-%{tde_libdir}/chalkfastcolortransfer.so
-%{tde_libdir}/chalkfiltersgallery.la
-%{tde_libdir}/chalkfiltersgallery.so
-%{tde_libdir}/chalk_gray_*
-%{tde_libdir}/chalkgrayplugin.la
-%{tde_libdir}/chalkgrayplugin.so
-%{tde_libdir}/chalkhistogramdocker.la
-%{tde_libdir}/chalkhistogramdocker.so
-%{tde_libdir}/chalkhistogram.la
-%{tde_libdir}/chalkhistogram.so
-%{tde_libdir}/chalkimageenhancement.la
-%{tde_libdir}/chalkimageenhancement.so
-%{tde_libdir}/chalkimagesize.la
-%{tde_libdir}/chalkimagesize.so
-%{tde_libdir}/chalk.la
-%{tde_libdir}/chalklenscorrectionfilter.la
-%{tde_libdir}/chalklenscorrectionfilter.so
-%{tde_libdir}/chalklevelfilter.la
-%{tde_libdir}/chalklevelfilter.so
-%{tde_libdir}/chalk_lms_*
-%{tde_libdir}/chalkmodifyselection.la
-%{tde_libdir}/chalkmodifyselection.so
-%{tde_libdir}/chalknoisefilter.la
-%{tde_libdir}/chalknoisefilter.so
-%{tde_libdir}/chalkoilpaintfilter.la
-%{tde_libdir}/chalkoilpaintfilter.so
-%{tde_libdir}/chalkpixelizefilter.la
-%{tde_libdir}/chalkpixelizefilter.so
-%{tde_libdir}/chalkraindropsfilter.la
-%{tde_libdir}/chalkraindropsfilter.so
-%{tde_libdir}/chalkrandompickfilter.la
-%{tde_libdir}/chalkrandompickfilter.so
-%{tde_libdir}/chalk_rgb_*
-%{tde_libdir}/chalkrgbplugin.la
-%{tde_libdir}/chalkrgbplugin.so
-%{tde_libdir}/chalkrotateimage.la
-%{tde_libdir}/chalkrotateimage.so
-%{tde_libdir}/chalkroundcornersfilter.la
-%{tde_libdir}/chalkroundcornersfilter.so
-%{tde_libdir}/chalkselectiontools.la
-%{tde_libdir}/chalkselectiontools.so
-%{tde_libdir}/chalkselectopaque.la
-%{tde_libdir}/chalkselectopaque.so
-%{tde_libdir}/chalkseparatechannels.la
-%{tde_libdir}/chalkseparatechannels.so
-%{tde_libdir}/chalkshearimage.la
-%{tde_libdir}/chalkshearimage.so
-%{tde_libdir}/chalksmalltilesfilter.la
-%{tde_libdir}/chalksmalltilesfilter.so
-%{tde_libdir}/chalk.so
-%{tde_libdir}/chalkscreenshot.la
-%{tde_libdir}/chalkscreenshot.so
-%{tde_libdir}/chalksobelfilter.la
-%{tde_libdir}/chalksobelfilter.so
-%{tde_libdir}/chalksubstrate.la
-%{tde_libdir}/chalksubstrate.so
-%{tde_libdir}/chalktoolcrop.la
-%{tde_libdir}/chalktoolcrop.so
-%{tde_libdir}/chalktoolcurves.la
-%{tde_libdir}/chalktoolcurves.so
-%{tde_libdir}/chalktoolfilter.la
-%{tde_libdir}/chalktoolfilter.so
-%{tde_libdir}/chalktoolperspectivegrid.la
-%{tde_libdir}/chalktoolperspectivegrid.so
-%{tde_libdir}/chalktoolperspectivetransform.la
-%{tde_libdir}/chalktoolperspectivetransform.so
-%{tde_libdir}/chalktoolpolygon.la
-%{tde_libdir}/chalktoolpolygon.so
-%{tde_libdir}/chalktoolpolyline.la
-%{tde_libdir}/chalktoolpolyline.so
-%{tde_libdir}/chalktoolselectsimilar.la
-%{tde_libdir}/chalktoolselectsimilar.so
-%{tde_libdir}/chalktoolstar.la
-%{tde_libdir}/chalktoolstar.so
-%{tde_libdir}/chalktooltransform.la
-%{tde_libdir}/chalktooltransform.so
-%{tde_libdir}/chalkunsharpfilter.la
-%{tde_libdir}/chalkunsharpfilter.so
-%{tde_libdir}/chalkwavefilter.la
-%{tde_libdir}/chalkwavefilter.so
-%{tde_libdir}/chalkwetplugin.la
-%{tde_libdir}/chalkwetplugin.so
-%{tde_libdir}/chalk_ycbcr_*
-%{tde_libdir}/libchalkgmagickexport.la
-%{tde_libdir}/libchalkgmagickexport.so
-%{tde_libdir}/libchalkgmagickimport.la
-%{tde_libdir}/libchalkgmagickimport.so
-%{tde_libdir}/libchalkjpegexport.la
-%{tde_libdir}/libchalkjpegexport.so
-%{tde_libdir}/libchalkjpegimport.la
-%{tde_libdir}/libchalkjpegimport.so
-%{tde_libdir}/libchalk_openexr_export.la
-%{tde_libdir}/libchalk_openexr_export.so
-%{tde_libdir}/libchalk_openexr_import.la
-%{tde_libdir}/libchalk_openexr_import.so
-%{tde_libdir}/libchalkpart.la
-%{tde_libdir}/libchalkpart.so
-%{tde_libdir}/libchalkpdfimport.la
-%{tde_libdir}/libchalkpdfimport.so
-%{tde_libdir}/libchalkpngexport.la
-%{tde_libdir}/libchalkpngexport.so
-%{tde_libdir}/libchalkpngimport.la
-%{tde_libdir}/libchalkpngimport.so
-%{tde_libdir}/libchalk_raw_import.la
-%{tde_libdir}/libchalk_raw_import.so
-%{tde_libdir}/libchalktiffexport.la
-%{tde_libdir}/libchalktiffexport.so
-%{tde_libdir}/libchalktiffimport.la
-%{tde_libdir}/libchalktiffimport.so
-%{_libdir}/libkdeinit_chalk.so
-%{_libdir}/libchalk_cmyk_*.so.*
-%{_libdir}/libchalkcolor.so.*
-%{_libdir}/libchalkcommon.so.*
-%{_libdir}/libchalkgrayscale.so.*
-%{_libdir}/libchalk_gray_*.so.*
-%{_libdir}/libchalkimage.so.*
-%{_libdir}/libchalk_lms_*.so.*
-%{_libdir}/libchalk_rgb_*.so.*
-%{_libdir}/libchalkrgb.so.*
-%{_libdir}/libchalkui.so.*
-%{_libdir}/libchalk_ycbcr_*.so.*
-%if 0%{?with_kross} > 0
-%{tde_libdir}/krosschalkcore.la
-%{tde_libdir}/krosschalkcore.so
-%{tde_libdir}/chalkscripting.la
-%{tde_libdir}/chalkscripting.so
-%{_libdir}/libchalkscripting.so.*
-%endif
-
-%files chalk-data
-%{tde_appdir}/chalk.desktop
-%{_datadir}/applnk/.hidden/chalk_*.desktop
-%{_datadir}/apps/konqueror/servicemenus/chalk_konqi.desktop
-%{_datadir}/apps/chalk
-%{_datadir}/apps/chalkplugins
-%lang(en) %{tde_docdir}/HTML/en/chalk
-%{_datadir}/icons/hicolor/*/apps/chalk.png
-%{_datadir}/services/chalk*.desktop
-%{_datadir}/servicetypes/chalk*.desktop
-
-
-%changelog
-* 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'