Browse Source

update: koffice
NEW: koffice-langpack


git-svn-id: http://trac.vinelinux.org/repos/projects/specs@3152 ec354946-7b23-47d6-9f5a-488ba84defc7

inagaki 13 years ago
parent
commit
3c499a7576
2 changed files with 1350 additions and 126 deletions
  1. 371 0
      k/koffice-langpack/koffice-langpack-vl.spec
  2. 979 126
      k/koffice/koffice-vl.spec

+ 371 - 0
k/koffice-langpack/koffice-langpack-vl.spec

@@ -0,0 +1,371 @@
+
+%define koffice_core_version 1:2.3.3
+
+Name:           koffice-langpack
+Summary:        Language files for koffice
+Version:        2.3.2
+Release:        2%{?_dist_release}
+
+Group:          Applications/Productivity
+License:        GPLv2+
+URL:            http://www.koffice.org
+
+BuildRoot:      %{_tmppath}/%{name}-%{version}-root
+BuildArch:      noarch
+# borrowed from kdelibs' tarball, help with locale=Full Name mappings
+Source0: teamnames
+#Source1: ftp://ftp.kde.org/pub/kde/stable/koffice-%{version}/koffice-l10n/koffice-l10n-ar-%{version}.tar.bz2
+#Source2: ftp://ftp.kde.org/pub/kde/stable/koffice-%{version}/koffice-l10n/koffice-l10n-bg-%{version}.tar.bz2
+#Source3: ftp://ftp.kde.org/pub/kde/stable/koffice-%{version}/koffice-l10n/koffice-l10n-br-%{version}.tar.bz2
+Source4: ftp://ftp.kde.org/pub/kde/stable/koffice-%{version}/koffice-l10n/koffice-l10n-ca-%{version}.tar.bz2
+Source5: ftp://ftp.kde.org/pub/kde/stable/koffice-%{version}/koffice-l10n/koffice-l10n-ca@valencia-%{version}.tar.bz2
+#Source6: ftp://ftp.kde.org/pub/kde/stable/koffice-%{version}/koffice-l10n/koffice-l10n-cy-%{version}.tar.bz2
+Source7: ftp://ftp.kde.org/pub/kde/stable/koffice-%{version}/koffice-l10n/koffice-l10n-da-%{version}.tar.bz2
+Source8: ftp://ftp.kde.org/pub/kde/stable/koffice-%{version}/koffice-l10n/koffice-l10n-de-%{version}.tar.bz2
+Source9: ftp://ftp.kde.org/pub/kde/stable/koffice-%{version}/koffice-l10n/koffice-l10n-el-%{version}.tar.bz2
+Source10:ftp://ftp.kde.org/pub/kde/stable/koffice-%{version}/koffice-l10n/koffice-l10n-en_GB-%{version}.tar.bz2
+#Source11:ftp://ftp.kde.org/pub/kde/stable/koffice-%{version}/koffice-l10n/koffice-l10n-eo-%{version}.tar.bz2
+Source12:ftp://ftp.kde.org/pub/kde/stable/koffice-%{version}/koffice-l10n/koffice-l10n-es-%{version}.tar.bz2
+Source13:ftp://ftp.kde.org/pub/kde/stable/koffice-%{version}/koffice-l10n/koffice-l10n-et-%{version}.tar.bz2
+#Source14:ftp://ftp.kde.org/pub/kde/stable/koffice-%{version}/koffice-l10n/koffice-l10n-eu-%{version}.tar.bz2
+#Source15:ftp://ftp.kde.org/pub/kde/stable/koffice-%{version}/koffice-l10n/koffice-l10n-fa-%{version}.tar.bz2
+#Source16:ftp://ftp.kde.org/pub/kde/stable/koffice-%{version}/koffice-l10n/koffice-l10n-fi-%{version}.tar.bz2
+Source17:ftp://ftp.kde.org/pub/kde/stable/koffice-%{version}/koffice-l10n/koffice-l10n-fr-%{version}.tar.bz2
+#Source18:ftp://ftp.kde.org/pub/kde/stable/koffice-%{version}/koffice-l10n/koffice-l10n-fy-%{version}.tar.bz2
+#Source19:ftp://ftp.kde.org/pub/kde/stable/koffice-%{version}/koffice-l10n/koffice-l10n-ga-%{version}.tar.bz2
+Source20:ftp://ftp.kde.org/pub/kde/stable/koffice-%{version}/koffice-l10n/koffice-l10n-gl-%{version}.tar.bz2
+#Source21:ftp://ftp.kde.org/pub/kde/stable/koffice-%{version}/koffice-l10n/koffice-l10n-he-%{version}.tar.bz2
+#Source22:ftp://ftp.kde.org/pub/kde/stable/koffice-%{version}/koffice-l10n/koffice-l10n-hi-%{version}.tar.bz2
+Source23:ftp://ftp.kde.org/pub/kde/stable/koffice-%{version}/koffice-l10n/koffice-l10n-hu-%{version}.tar.bz2
+Source24:ftp://ftp.kde.org/pub/kde/stable/koffice-%{version}/koffice-l10n/koffice-l10n-it-%{version}.tar.bz2
+Source25:ftp://ftp.kde.org/pub/kde/stable/koffice-%{version}/koffice-l10n/koffice-l10n-ja-%{version}.tar.bz2
+Source26:ftp://ftp.kde.org/pub/kde/stable/koffice-%{version}/koffice-l10n/koffice-l10n-kk-%{version}.tar.bz2
+#Source27:ftp://ftp.kde.org/pub/kde/stable/koffice-%{version}/koffice-l10n/koffice-l10n-km-%{version}.tar.bz2
+#Source27:ftp://ftp.kde.org/pub/kde/stable/koffice-%{version}/koffice-l10n/koffice-l10n-lv-%{version}.tar.bz2
+#Source28:ftp://ftp.kde.org/pub/kde/stable/koffice-%{version}/koffice-l10n/koffice-l10n-ms-%{version}.tar.bz2
+Source29:ftp://ftp.kde.org/pub/kde/stable/koffice-%{version}/koffice-l10n/koffice-l10n-nb-%{version}.tar.bz2
+Source30:ftp://ftp.kde.org/pub/kde/stable/koffice-%{version}/koffice-l10n/koffice-l10n-nds-%{version}.tar.bz2
+#Source31:ftp://ftp.kde.org/pub/kde/stable/koffice-%{version}/koffice-l10n/koffice-l10n-ne-%{version}.tar.bz2
+Source32:ftp://ftp.kde.org/pub/kde/stable/koffice-%{version}/koffice-l10n/koffice-l10n-nl-%{version}.tar.bz2
+Source33:ftp://ftp.kde.org/pub/kde/stable/koffice-%{version}/koffice-l10n/koffice-l10n-pl-%{version}.tar.bz2
+Source34:ftp://ftp.kde.org/pub/kde/stable/koffice-%{version}/koffice-l10n/koffice-l10n-pt-%{version}.tar.bz2
+Source35:ftp://ftp.kde.org/pub/kde/stable/koffice-%{version}/koffice-l10n/koffice-l10n-pt_BR-%{version}.tar.bz2
+Source36:ftp://ftp.kde.org/pub/kde/stable/koffice-%{version}/koffice-l10n/koffice-l10n-ru-%{version}.tar.bz2
+#Source37:ftp://ftp.kde.org/pub/kde/stable/koffice-%{version}/koffice-l10n/koffice-l10n-se-%{version}.tar.bz2
+#Source38:ftp://ftp.kde.org/pub/kde/stable/koffice-%{version}/koffice-l10n/koffice-l10n-sk-%{version}.tar.bz2
+#Source39:ftp://ftp.kde.org/pub/kde/stable/koffice-%{version}/koffice-l10n/koffice-l10n-sl-%{version}.tar.bz2
+#Source39:ftp://ftp.kde.org/pub/kde/stable/koffice-%{version}/koffice-l10n/koffice-l10n-sr-%{version}.tar.bz2
+#Source40:ftp://ftp.kde.org/pub/kde/stable/koffice-%{version}/koffice-l10n/koffice-l10n-sr@Latn-%{version}.tar.bz2
+Source40:ftp://ftp.kde.org/pub/kde/stable/koffice-%{version}/koffice-l10n/koffice-l10n-sv-%{version}.tar.bz2
+#Source41:ftp://ftp.kde.org/pub/kde/stable/koffice-%{version}/koffice-l10n/koffice-l10n-ta-%{version}.tar.bz2
+Source42:ftp://ftp.kde.org/pub/kde/stable/koffice-%{version}/koffice-l10n/koffice-l10n-tr-%{version}.tar.bz2
+Source43:ftp://ftp.kde.org/pub/kde/stable/koffice-%{version}/koffice-l10n/koffice-l10n-uk-%{version}.tar.bz2
+Source44:ftp://ftp.kde.org/pub/kde/stable/koffice-%{version}/koffice-l10n/koffice-l10n-wa-%{version}.tar.bz2
+Source45:ftp://ftp.kde.org/pub/kde/stable/koffice-%{version}/koffice-l10n/koffice-l10n-zh_CN-%{version}.tar.bz2
+Source46:ftp://ftp.kde.org/pub/kde/stable/koffice-%{version}/koffice-l10n/koffice-l10n-zh_TW-%{version}.tar.bz2
+Source1000: subdirs-koffice-l10n
+
+## upstreamable patches
+
+## upstream patches
+
+BuildRequires:  gettext
+BuildRequires:  kdelibs4-devel
+BuildRequires:  libxml2
+
+Obsoletes: koffice-langpack-fy  < 2:2.1.81-1
+Obsoletes: koffice-langpack-hne < 2:2.1.91-1
+
+%description
+Language files for koffice
+
+%package ja
+Summary: Japanese language pack for koffice
+Summary(ja): KOffice の日本語サポートパッケージ
+Group: Applications/Productivity
+Requires: koffice-core >= %{koffice_core_version}
+
+%description ja
+Provides additional Japanese translations for koffice.
+
+%package extra
+Summary: Language pack for koffice
+Summary(ja): KOffice の国際化サポートパッケージ(日本語以外)
+Group: Applications/Productivity
+Requires: koffice-core >= %{koffice_core_version}
+
+%description extra
+Provides additional translations for koffice.
+
+
+%prep
+%setup -T -c -q -n %{name}-%{version}
+
+for i in $(cat %{SOURCE1000}) ; do
+  echo $i | grep -v '^#' && \
+  bzip2 -dc %{_sourcedir}/koffice-l10n-$i-%{version}.tar.bz2 | tar -xf -
+done
+
+
+# blacklist kivio docs, let koffice-kivio ship a matching version of them
+for koffice_lang in * ; do
+  if [ -f $koffice_lang/docs/koffice/CMakeLists.txt ]; then
+    sed -i -e 's/add_subdirectory( *kivio *)/#add_subdirectory(kivio)/g' $koffice_lang/docs/koffice/CMakeLists.txt
+  fi
+done
+
+## omit busted stuff
+
+
+%build
+for koffice_lang in * ; do
+    if [ -f $koffice_lang/CMakeLists.txt ]; then
+	pushd $koffice_lang
+	mkdir -p %{_target_platform}
+	pushd %{_target_platform}
+	%cmake \
+	    -DCMAKE_BUILD_TYPE=release \
+	    -DCMAKE_INSTALL_PREFIX:PATH=%{_prefix} \
+	    -DDATA_INSTALL_DIR:PATH=%{_datadir}/kde4/apps \
+	    -DINCLUDE_INSTALL_DIR:PATH=%{_includedir}/kde4 \
+	    -DLIB_INSTALL_DIR:PATH=%{_libdir} \
+	    -DLIBEXEC_INSTALL_DIR:PATH=%{_libexecdir}/kde4 \
+	    -DSYSCONF_INSTALL_DIR:PATH=%{_sysconfdir} \
+	    ..
+	make %{?_smp_mflags}
+	popd
+	popd
+  fi
+done
+
+
+%install
+rm -rf %{buildroot}
+
+for koffice_lang in * ; do
+  if [ -f $koffice_lang/CMakeLists.txt ]; then
+    make install/fast DESTDIR=%{buildroot} -C $koffice_lang/%{_target_platform}
+  fi
+done
+
+
+%clean
+rm -rf %{buildroot}
+
+
+%files ja
+%defattr(-,root,root,-)
+%lang(ja) %{_datadir}/locale/ja/LC_MESSAGES/*
+
+%files extra
+%defattr(-,root,root,-)
+# Catalan
+%lang(ca) %{_datadir}/locale/ca/LC_MESSAGES/*
+%lang(ca) %{_docdir}/HTML/ca/*
+# Catalan (Valencian) 
+%lang(ca@valencia) %{_datadir}/locale/ca@valencia/LC_MESSAGES/*
+# Danish 
+%lang(da) %{_datadir}/locale/da/LC_MESSAGES/*
+%lang(da) %{_docdir}/HTML/da/*
+# German
+%lang(de) %{_datadir}/locale/de/LC_MESSAGES/*
+%lang(de) %{_docdir}/HTML/de/*
+# Greek
+%lang(el) %{_datadir}/locale/el/LC_MESSAGES/*
+# British English
+%lang(en_GB) %{_datadir}/locale/en_GB/LC_MESSAGES/*
+# Spanish
+%lang(es) %{_datadir}/locale/es/LC_MESSAGES/*
+%lang(es) %{_docdir}/HTML/es/*
+# Estonian
+%lang(et) %{_datadir}/locale/et/LC_MESSAGES/*
+%lang(et) %{_docdir}/HTML/et/
+# French
+%lang(fr) %{_datadir}/locale/fr/LC_MESSAGES/*
+%lang(fr) %{_docdir}/HTML/fr/*
+# Galician
+%lang(gl) %{_datadir}/locale/gl/LC_MESSAGES/*
+%lang(gl) %{_docdir}/HTML/gl/*
+# Hungarian
+%lang(hu) %{_datadir}/locale/hu/LC_MESSAGES/*
+# Italian
+%lang(it) %{_datadir}/locale/it/LC_MESSAGES/*
+%lang(it) %{_docdir}/HTML/it/*
+# Kazakh
+%lang(kk) %{_datadir}/locale/kk/LC_MESSAGES/*
+# Bokmal
+%lang(nb) %{_datadir}/kde4/apps/koffice/autocorrect/nb.xml
+%lang(nb) %{_datadir}/locale/nb/LC_MESSAGES/*
+# Low Saxon
+%lang(nds) %{_datadir}/locale/nds/LC_MESSAGES/*
+# Dutch
+%lang(nl) %{_datadir}/locale/nl/LC_MESSAGES/*
+%lang(nl) %{_docdir}/HTML/nl/*
+# Polish
+%lang(pl) %{_datadir}/locale/pl/LC_MESSAGES/*
+# Portuguese
+%lang(pt) %{_datadir}/locale/pt/LC_MESSAGES/*
+%lang(pt) %{_docdir}/HTML/pt/*
+# Brazilian Portuguese 
+%lang(pt_BR) %{_datadir}/locale/pt_BR/LC_MESSAGES/*
+%lang(pt_BR) %{_docdir}/HTML/pt_BR/*
+# Russian
+%lang(ru) %{_datadir}/locale/ru/LC_MESSAGES/*
+%lang(ru) %{_docdir}/HTML/ru/*
+# Swedish 
+%lang(sv) %{_datadir}/locale/sv/LC_MESSAGES/*
+%lang(sv) %{_docdir}/HTML/sv/*
+# Turkish
+%lang(tr) %{_datadir}/locale/tr/LC_MESSAGES/*
+# Ukrainian
+%lang(uk) %{_datadir}/locale/uk/LC_MESSAGES/*
+%lang(uk) %{_docdir}/HTML/uk/*
+# Walloon
+%lang(wa) %{_datadir}/locale/wa/LC_MESSAGES/*
+# Simplified Chinese
+%lang(zh_CN) %{_datadir}/locale/zh_CN/LC_MESSAGES/*
+# Traditional Chinese
+%lang(zh_TW) %{_datadir}/locale/zh_TW/LC_MESSAGES/*
+
+
+%changelog
+* Sun Mar 27 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 2.3.2-2
+- Initial build for Vine Linux
+
+* Mon Feb 21 2011 Rex Dieter <rdieter@fedoraproject.org> - 2:2.3.2-1
+- 2.3.2
+
+* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2:2.3.1-2
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
+
+* Wed Jan 26 2011 Rex Dieter <rdieter@fedoraproject.org> - 2:2.3.1-1
+- koffice-l10n-2.3.1
+
+* Sat Nov 13 2010 Rex Dieter <rdieter@fedoraproject.org> - 2:2.2.84-1
+- koffice-l10n-2.2.84 (2.3beta4)
+
+* Sat Aug 21 2010 Rex Dieter <rdieter@fedoraproject.org> - 2:2.2.2-1
+- koffice-l10n-2.2.2
+
+* Wed Jul 14 2010 Rex Dieter <rdieter@fedoraproject.org> - 2:2.2.1-1
+- koffice-l10n-2.2.1
+
+* Mon May 24 2010 Rex Dieter <rdieter@fedoraproject.org> - 2:2.2.0-1
+- koffice-l10n-2.2.0
+
+* Sat May 15 2010 Kevin Kofler <Kevin@tigcc.ticalc.org> - 2:2.1.91-2
+- don't ship translations of the kivio documentation
+
+* Mon Apr 26 2010 Rex Dieter <rdieter@fedoraproject.org> - 2:2.1.91-1
+- koffice-l10n-2.1.91
+
+* Tue Apr 06 2010 Rex Dieter <rdieter@fedoraproject.org> - 2:2.1.82-1
+- koffice-l10n-2.1.82
+
+* Thu Mar 18 2010 Rex Dieter <rdieter@fedoraproject.org> - 2:2.1.81-1
+- koffice-l10n-2.1.81
+
+* Thu Nov 26 2009 Kevin Kofler <Kevin@tigcc.ticalc.org> - 2:2.1.0-3
+- fix Requires for -wa to include Epoch
+
+* Wed Nov 25 2009 Rex Dieter <rdieter@fedoraproject.org> - 2:2.1.0-2
+- Epoch++ (to trump F-12 branch)
+
+* Sat Nov 21 2009 Rex Dieter <rdieter@fedoraproject.org> - 1:2.1.0-1
+- koffice-l10n-2.1.0
+
+* Fri Oct 23 2009 Rex Dieter <rdieter@fedoraproject.org> - 1:2.0.91-2
+- koffice-l10n-2.0.91
+
+* Sat Oct 03 2009 Rex Dieter <rdieter@fedoraproject.org> - 1:2.0.83-2
+- main virtual subpkg
+- fix a fix missing %%defattr's
+
+* Sat Oct 03 2009 Rex Dieter <rdieter@fedoraproject.org> - 1:2.0.83-1
+- koffice-l10n-2.0.83
+
+* Fri Sep 11 2009 Rex Dieter <rdieter@fedoraproject.org> - 1:2.0.82-1
+- koffice-l10n-2.0.82
+
+* Wed Aug 26 2009 Rex Dieter <rdieter@fedoraproject.org> - 1:2.0.81-1
+- koffice-l10n-2.0.81
+
+* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:2.0.0-2
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
+
+* Sun May 24 2009 Rex Dieter <rdieter@fedoraproject.org> 1:2.0.0-1
+- koffice-l10n-2.0.0
+
+* Wed Apr 08 2009 Rex Dieter <rdieter@fedoraproject.org> 1:1.9.99.0-1
+- koffice-l10n-1.9.99.0
+
+* Wed Feb 18 2009 Rex Dieter <rdieter@fedoraproject.org> 1.9.98.6-1
+- koffice-l10n-1.9.98.6
+
+* Fri Jan 09 2009 Rex Dieter <rdieter@fedoraproject.org> 1.9.98.5-1
+- koffice-l10n-1.9.98.5
+
+* Sun Dec 09 2007 Rex Dieter <rdieter[AT]fedoraproject.org>
+1.6.3-2
+- BR: kdelibs3-devel
+- License: GPLv2+
+
+* Fri Jun 01 2007 Rex Dieter <rdieter[AT]fedoraproject.org>
+1.6.3-1
+- koffice-l10n-1.6.3
+
+* Wed Feb 28 2007 Rex Dieter <rdieter[AT]fedoraproject.org>
+1.6.2-1
+- koffice-l10n-1.6.2
+- drop %%dist
+
+* Fri Dec 01 2006 Rex Dieter <rexdieter[AT]users.sf.net>
+1.6.1-1
+- koffice-l10n-1.6.1
+- avoid file conflict (LC_MESSAGES/kdgantt.mo) with kde-i18n (kde bug #75096)
+
+* Sat Oct 21 2006 Andreas Bierfert <andreas.bierfert[AT]lowlatency.de>
+1.6.0-1
+- version upgrade
+
+* Thu Aug 03 2006 Andreas Bierfert <andreas.bierfert[AT]lowlatency.de>
+1.5.2-1
+- version upgrade
+- add zh_TW
+
+* Tue May 30 2006 Andreas Bierfert <andreas.bierfert[AT]lowlatency.de>
+1.5.1-1
+- version upgrade
+
+* Sat Apr 22 2006 Andreas Bierfert <andreas.bierfert[AT]lowlatency.de>
+1.5.0-1
+- version upgrade
+
+* Wed Feb 15 2006 Andreas Bierfert <andreas.bierfert[AT]lowlatency.de>
+1.4.2-2
+- Rebuild for Fedora Extras 5
+
+* Sat Oct 15 2005 Andreas Bierfert <andreas.bierfert[AT]lowlatency.de>
+1.4.2-1
+- version upgrade
+- add eu
+
+* Sun Aug 14 2005 Andreas Bierfert <andreas.bierfert[AT]lowlatency.de>
+1.4.1-3
+- add dist tag
+
+* Mon Aug 01 2005 Andreas Bierfert <andreas.bierfert[AT]lowlatency.de>
+1.4.1-2
+- change Requires koffice-core from v-r to v only
+
+* Sun Jul 31 2005 Andreas Bierfert <andreas.bierfert[AT]lowlatency.de>
+1.4.1-1
+- upgrade
+
+* Sun Jul 31 2005 Andreas Bierfert <andreas.bierfert[AT]lowlatency.de>
+1.4.0-2
+- move all languages to one langpack srpm
+
+* Mon Jul 04 2005 Andreas Bierfert <andreas.bierfert[AT]lowlatency.de>
+1.4.0-1
+- Split languages from koffice spec

+ 979 - 126
k/koffice/koffice-vl.spec

@@ -1,48 +1,96 @@
-%define sourcedir stable/koffice-%{version}/src
+%define _kde4_version 4.6 
 
 Name: koffice
-URL: http://koffice.kde.org/
-Summary: Integrated office suite for KDE
+Summary: An integrated office suite for KDE
 Summary(ja): KDE 向け統合オフィススイート
-Version: 1.6.3
-Release: 4%{?_dist_release}
+Version: 2.3.3
+Release: 1%{?_dist_release}
 Epoch: 1
+
 Group: Applications/Productivity
-License: GPL
-Source: ftp://ftp.kde.org/pub/kde/{sourcedir}/%{name}-%{version}.tar.bz2
-Source1: %{name}-l10n-ja-%{version}.tar.bz2
-Patch0: koffice-1.6.3-gcc43.patch
-Patch1: koffice-1.6.3-gcc44-elif.patch
-Patch2: koffice-1.6.3-gcc44-glibc210.patch
+# apps GPLv2+, libs LGPLv2+
+License: GPLv2+
+URL: http://koffice.kde.org/
 
-# security fix
-Patch100: koffice-xpdf-CVE-2007-3387.diff
-Patch101: koffice-1.6.3-xpdf2-CVE-2007-4352-5392-5393.diff
+Source: ftp://ftp.kde.org/pub/kde/{sourcedir}/%{name}-%{version}.tar.bz2
+## upstream patches
+# backport support for libwpg 0.2 from Calligra master:
+# http://gitweb.kde.org/calligra.git/commit/9cda7aed2ea103750172e61f5c800a474913fa59
+Patch100:       koffice-2.3.1-libwpg02.patch
+# https://bugs.kde.org/show_bug.cgi?id=267311
+Patch101: http://kexi-project.org/download/patches/2.3/fix-inserting-required-value-2.3.patch
 
 BuildRoot: %{_tmppath}/%{name}-%{version}-root
-BuildRequires: qt-devel >= 3.3.2, kdelibs3-devel >= 3.3, arts-devel >= 1:1.3
-BuildRequires: aspell-devel >= 0.50.2, wv2-devel >= 0.1.8
-BuildRequires: libjpeg-turbo-devel libmng-devel libtiff-devel zlib-devel
-BuildRequires: libxml2-devel libxslt-devel freetype2-devel libart_lgpl-devel
-BuildRequires: jasper-devel doxygen ImageMagick-devel pkgconfig
-BuildRequires: libpng-devel libgsf-devel lcms-devel libexif-devel
-BuildRequires: MySQL-devel postgresql-devel
-BuildRequires: poppler-qt-devel
-BuildRequires: python-devel
-BuildRequires: libwpd-devel >= 0.8.0
-#if %{?_dist_release} 
-#BuildConflicts: ruby-devel
-#else
-BuildRequires: libpqxx-devel libtool-ltdl-devel ruby-devel
+BuildRequires: bzip2-devel bzip2
+BuildRequires: cmake
+BuildRequires: desktop-file-utils
+BuildRequires: doxygen
+BuildRequires: eigen2-devel
+BuildRequires: exiv2-devel
+BuildRequires: fftw3-devel
+BuildRequires: fontconfig-devel
+BuildRequires: freeglut-devel
+BuildRequires: freetype2-devel
+BuildRequires: gettext-devel
+BuildRequires: giflib-devel
+BuildRequires: glib2-devel
+BuildRequires: glew-devel
+#BuildRequires: gmm-devel
+#BuildRequires: GraphicsMagick-devel
+BuildRequires: gsl-devel
+BuildRequires: kdegraphics-devel
+BuildRequires: kdelibs4-devel
+BuildRequires: kdepimlibs-devel
+BuildRequires: lcms2-devel
+BuildRequires: lcms-devel
+BuildRequires: libboost-devel
+BuildRequires: libgsf-devel
+BuildRequires: libjpeg-devel
+BuildRequires: libpng-devel
+BuildRequires: libtiff-devel
+BuildRequires: libwpd-devel
+BuildRequires: libwpg-devel
+BuildRequires: libxml2-devel 
+BuildRequires: libxslt-devel
+BuildRequires: mesa-libGL-devel mesa-libGLU-devel
+#if 0%{?kexi}
+#BuildRequires: freetds-devel
+BuildRequires: libpqxx-devel >= 3.0
+BuildRequires: MySQL-devel MySQL-embedded-devel
 #endif
-Requires: qt >= 3.3.2, kdelibs3 >= 3.3, arts >= 1:1.3
-Requires: freetype2 libjpeg libtiff libmng libpng
-Requires: zlib audiofile libxml2 libxslt
-Requires: libart_lgpl aspell wv2
-Requires(post): kdelibs3
-
-Obsoletes: killustrator kivio
-
+#if 0%{?GTL}
+#BuildRequires: OpenGTL-devel libQtGTL-devel
+#endif
+BuildRequires: OpenEXR-devel
+BuildRequires: openjpeg-devel
+BuildRequires: perl
+BuildRequires: phonon-devel
+BuildRequires: poppler-qt4-devel
+BuildRequires: postgresql-devel
+#BuildRequires: pstoedit
+BuildRequires: qca2-devel
+BuildRequires: qimageblitz-devel
+BuildRequires: readline-devel
+BuildRequires: shared-mime-info
+BuildRequires: soprano-devel
+BuildRequires: sqlite3-devel
+#BuildRequires: xbase-devel
+
+Requires: %{name}-kword = %{epoch}:%{version}-%{release} 
+Requires: %{name}-kspread = %{epoch}:%{version}-%{release} 
+Requires: %{name}-kpresenter = %{epoch}:%{version}-%{release}
+#Requires: %{name}-kivio = %{epoch}:%{version}-%{release}
+Requires: %{name}-karbon = %{epoch}:%{version}-%{release}
+Requires: %{name}-krita = %{epoch}:%{version}-%{release}
+#Requires: %{name}-kugar = %{epoch}:%{version}-%{release}
+Requires: %{name}-kexi = %{epoch}:%{version}-%{release}
+Requires: %{name}-kexi-driver-mysql = %{epoch}:%{version}-%{release}
+Requires: %{name}-kexi-driver-pgsql = %{epoch}:%{version}-%{release}
+#Requires: %{name}-kchart = %{epoch}:%{version}-%{release}
+Requires: %{name}-kformula = %{epoch}:%{version}-%{release}
+Requires: %{name}-filters = %{epoch}:%{version}-%{release}
+Requires: %{name}-kplato = %{epoch}:%{version}-%{release}
+Requires: %{name}-okular-odpgenerator = %{epoch}:%{version}-%{release}
 
 %description
 KOffice is a collection of office applications linked together by a common
@@ -61,116 +109,921 @@ The applications currently included in KOffice are:
 - Kexi (a database management tool)
 - KOffice Workspace (A combination of all of the above)
 
+%package core
+Summary: Core support files for koffice
+Group: Applications/Productivity
+#Requires:       lilypond-emmentaler-fonts
+Requires: %{name}-libs = %{epoch}:%{version}-%{release}
+Requires: kdebase-runtime >= %{_kde4_version}
+#Requires: lyx-fonts
+#Requires: dejavu-lgc-sans-fonts
+Requires: koffice-langpack-ja
+
+%description core
+%{summary}.
+
+%package libs
+Summary: Runtime libraries for koffice
+Summary(ja): koffice のランタイムライブラリ
+Group: System Environment/Libraries
+Requires: qt4 >= %{_qt4_version}
+
+%description libs
+%{summary}.
+
+%package devel
+Summary: Libraries needed for koffice development
+Summary(ja): koffice の開発用ファイル
+Group: Development/Libraries
+Requires: %{name}-libs = %{epoch}:%{version}-%{release}
+Requires: kdelibs4-devel
+
+%description devel
+%{summary}.
+
+
+%package kword
+Summary: An intuitive word processor application with desktop publishing features
+Group: Applications/Productivity
+Requires: %{name}-core = %{epoch}:%{version}-%{release}
+Requires: %{name}-kword-libs = %{epoch}:%{version}-%{release}
+
+%description kword
+KWord is an intuitive word processor and desktop publisher application.
+With it, you can create informative and attractive documents with
+pleasure and ease.
+
+%package kword-libs
+Summary: Runtime libraries for %{name}-kword
+Group: System Environment/Libraries
+
+%description kword-libs
+%{summary}.
+
+
+%package kspread
+Summary: A fully-featured spreadsheet application
+Group: Applications/Productivity
+Requires: %{name}-core = %{epoch}:%{version}-%{release}
+
+%description kspread
+KSpread is a fully-featured calculation and spreadsheet tool.  Use it to
+quickly create and calculate various business-related spreadsheets, such
+as income and expenditure, employee working hours…
+
+
+%package kpresenter
+Summary: A full-featured presentation program
+Group: Applications/Productivity
+Requires: %{name}-core = %{epoch}:%{version}-%{release}
+Requires: %{name}-kpresenter-libs = %{epoch}:%{version}-%{release}
+
+%description kpresenter
+KPresenter is a powerful and easy to use presentation application. You
+can dazzle your audience with stunning slides containing images, videos,
+animation and more.
+
+%package kpresenter-libs
+Summary: Runtime libraries for %{name}-kpresenter
+Group: System Environment/Libraries
+
+%description kpresenter-libs
+%{summary}.
+
+
+%package kivio
+Summary: A diagramming and flowcharting application
+Group: Applications/Productivity
+Requires: %{name}-core = %{epoch}:%{version}-%{release}
+
+%description kivio
+Kivio is an easy to use diagramming and flowcharting application with
+tight integration to the other KOffice applications. It enables you to
+create network diagrams, organisation charts, flowcharts and more.
+
+
+%package karbon
+Summary: A vector drawing application
+Group: Applications/Productivity
+Requires: %{name}-core = %{epoch}:%{version}-%{release}
+Requires: %{name}-karbon-libs = %{epoch}:%{version}-%{release}
+
+%description karbon
+Karbon is a vector drawing application with an user interface that is
+easy to use, highly customizable and extensible. That makes Karbon a
+great application for users starting to explore the world of vector
+graphics as well as for artists wanting to create breathtaking vector
+art.
+
+Whether you want to create clipart, logos, illustrations or photorealistic
+vector images – look no further, Karbon is the tool for you!
+
+%package karbon-libs
+Summary: Runtime libraries for %{name}-karbon
+Group: System Environment/Libraries
+
+%description karbon-libs
+%{summary}.
+
+
+%package krita
+Summary: A creative sketching and painting application 
+Group: Applications/Productivity
+Requires: %{name}-core = %{epoch}:%{version}-%{release}
+Requires: %{name}-krita-libs = %{epoch}:%{version}-%{release}
+Requires: %{name}-filters
+
+%description krita
+Krita is a creative sketching and painting application based on KOffice 
+technology. Whether you want to create art paintings, cartoons, concept
+art or textures, Krita supports most graphics tablets out of the box.
+Krita’s vision statement is:
+* Krita is a KDE program for sketching and painting, offering an end–to–end
+  solution for creating digital painting files from scratch by masters.
+* Fields of painting that Krita explicitly supports are concept art,
+  creation of comics and textures for rendering.
+* Modelled on existing real-world painting materials and workflows,
+  Krita supports creative working by getting out of the way and with
+  snappy response.
+
+%package krita-libs
+Summary: Runtime libraries for %{name}-krita
+Group: System Environment/Libraries
+
+%description krita-libs
+%{summary}.
+
+
+%package kugar
+Summary: A tool for generating business quality reports
+Group: Applications/Productivity
+Requires: %{name}-core = %{epoch}:%{version}-%{release}
+
+%description kugar
+%{summary}
+
+
+%package kexi
+Summary: An integrated environment for managing data
+Group: Applications/Productivity
+Requires: %{name}-core = %{epoch}:%{version}-%{release}
+Requires: %{name}-kexi-libs = %{epoch}:%{version}-%{release}
+
+%description kexi
+Kexi is an integrated data management application.  It can be used for
+creating database schemas, inserting data, performing queries, and
+processing data. Forms can be created to provide a custom interface to
+your data. All database objects – tables, queries and forms – are
+stored in the database, making it easy to share data and design.
+
+For additional database drivers take a look at %{name}-kexi-driver-*
+
+%package kexi-libs
+Summary: Runtime libraries for %{name}-kexi
+Summary(ja): %{name}-kexi のランタイムライブラリ
+Group: System Environment/Libraries
+
+%description kexi-libs
+%{summary}.
+
+%package kexi-driver-mysql
+Summary: mysql-driver for kexi
+Group: Applications/Productivity
+Requires: %{name}-kexi = %{epoch}:%{version}-%{release}
+
+%description kexi-driver-mysql
+%{summary}.
+
+%package kexi-driver-pgsql
+Summary: pgsql-driver for kexi
+Group: Applications/Productivity
+Requires: %{name}-kexi = %{epoch}:%{version}-%{release}
+
+%description kexi-driver-pgsql
+%{summary}.
+
+
+%package kchart
+Summary: An integrated graph and chart drawing tool
+Group: Applications/Productivity
+Requires: %{name}-core = %{epoch}:%{version}-%{release}
+Requires: %{name}-kchart-libs = %{epoch}:%{version}-%{release}
+
+%description kchart
+%{summary}.
+
+%package kchart-libs
+Summary: Runtime libraries for %{name}-kchart
+Group: System Environment/Libraries
+Requires: %{name}-libs = %{epoch}:%{version}-%{release}
+
+%description kchart-libs
+%{summary}.
+
+%package kformula
+Summary: A powerful formula editor
+Group: Applications/Productivity
+Requires: %{name}-core = %{epoch}:%{version}-%{release}
+Requires: %{name}-kformula-libs = %{epoch}:%{version}-%{release}
+#Requires: lyx-fonts
+#Requires: dejavu-lgc-sans-fonts
+
+%description kformula
+%{summary}.
+
+%package kformula-libs
+Summary: Runtime libraries for %{name}-kformula
+Group: System Environment/Libraries
+
+%description kformula-libs
+%{summary}.
+
+%package filters
+Summary: Import and Export Filters for KOffice
+Group: Applications/Productivity
+Requires: %{name}-core = %{epoch}:%{version}-%{release}
+# for karbon eps import filter
+#Requires: pstoedit
+
+%description filters
+%{summary}.
+
+
+%package kplato
+Summary: A project planner
+Group: Applications/Productivity
+Requires: %{name}-core = %{epoch}:%{version}-%{release}
+Requires: %{name}-kplato-libs = %{epoch}:%{version}-%{release}
+
+%description kplato
+KPlato is a project management application. It is intended for managing
+moderately large projects with multiple resources.
+
+%package kplato-libs
+Summary: Runtime libraries for %{name}-kplato 
+Group: System Environment/Libraries 
+
+%description kplato-libs
+%{summary}.
+
+
+%package okular-odpgenerator
+Summary: OpenDocument presenter support for okular
+Group: Applications/Productivity
+Requires: %{name}-kpresenter = %{epoch}:%{version}-%{release}
+Requires: kdegraphics
+
+%description okular-odpgenerator
+%{summary}.
+
+
 %prep
 %setup -q -n %{name}-%{version}
-%if %{?_dist_release} == "vl6"
-%patch0 -p1 -b .gcc43
-%patch1 -p1 -b .elif
-%patch2 -p3 -b .glibc210
-%endif
+%patch100 -p1 -b .libwpg02
+%patch101 -p0 -b .kexi_fix_inserting_required_value
+
+## kdchart munging begin
+pushd plugins/chartshape/kdchart
+mv src kdchart
+sed -i.kdchart_fix -e 's|../src/||' kdchart/Ternary/KDChartTernaryAxis.cpp
+sed -i.kdchart_fix -e 's|add_subdirectory(src)|add_subdirectory(kdchart)|' CMakeLists.txt
+mv include include.kdchart_fix && cp -a include.kdchart_fix include/
+sed -i -e 's|../src|../kdchart|' include/*
+popd
+## kdchart munging end
 
-%patch100 -p0 -b .CVE-2007-3387
-%patch101 -p0 -b .xpdf
 
-# for Python 2.6
-%if %{?_dist_release} == "vl6"
-sed -i -e 's|""2\.5""|""2\.6""|g' configure
-%endif
+%build
+mkdir -p %{_target_platform}
+pushd %{_target_platform}
+# SET EIGEN2_INCLUDE_DIR since our kde4_incdir != eigen2_incdir
+%cmake \
+    -DCMAKE_BUILD_TYPE=release \
+    -DCMAKE_INSTALL_PREFIX:PATH=%{_prefix} \
+    -DDATA_INSTALL_DIR:PATH=%{_datadir}/kde4/apps \
+    -DINCLUDE_INSTALL_DIR:PATH=%{_includedir}/kde4 \
+    -DLIB_INSTALL_DIR:PATH=%{_libdir} \
+    -DLIBEXEC_INSTALL_DIR:PATH=%{_libexecdir}/kde4 \
+    -DSYSCONF_INSTALL_DIR:PATH=%{_sysconfdir} \
+    -DEIGEN2_INCLUDE_DIR=%{_includedir}/eigen2 \
+    -DBUILD_kchart:BOOL=ON \
+    -DBUILD_kexi:BOOL=ON \
+    -DBUILD_kplato:BOOL=ON \
+    ..
+popd
 
+make %{?_smp_mflags} -C %{_target_platform}
 
-%build
-#only for beta
-#make -f Makefile.cvs
-
-unset QTDIR || : ; . /etc/profile.d/qt.sh
-export KDEDIR=%{_prefix}
-
-./configure --prefix=%{_prefix} \
-  --includedir=%{_includedir}/kde \
-  --with-qt-libraries=$QTDIR/lib \
-  --disable-rpath --disable-dependency-tracking \
-  --enable-new-ldflags \
-  --disable-debug --disable-warnings \
-  --with-pic --enable-shared --disable-static \
-  --with-extra-libs=%{_libdir} \
-  --with-pgsqllibdir=%{_libdir} --with-pgsqlincdir=%{_includedir} \
-  --with-pqxxlibdir=%{_libdir} --with-pqxxincdir=%{_includedir} \
-  --disable-final
-
-make %{?_smp_mflags}
-
-tar xjf %{SOURCE1}
-cd %{name}-l10n-ja-%{version}
-./configure --prefix=%{_prefix}
-make %{?_smp_mflags}
+#tar xjf %{SOURCE1}
+#cd %{name}-l10n-ja-%{version}
+#./configure --prefix=%{_prefix}
+#make %{?_smp_mflags}
 
 %install
 rm -rf $RPM_BUILD_ROOT
-make RUN_KAPPFINDER=no DESTDIR=$RPM_BUILD_ROOT install
-
-# Drop -x
-chmod -x $RPM_BUILD_ROOT%{_datadir}/apps/kexi/kross/python/kexiapp/*
-chmod -x $RPM_BUILD_ROOT%{_datadir}/apps/kexi/scripts/copycenter/*
-chmod -x $RPM_BUILD_ROOT%{_datadir}/apps/kexi/scripts/exportxhtml/*
-chmod -x $RPM_BUILD_ROOT%{_datadir}/apps/kexi/scripts/importxhtml/*
-chmod -x $RPM_BUILD_ROOT%{_datadir}/apps/kexi/scripts/projectdocumentor/*
-chmod -x $RPM_BUILD_ROOT%{_datadir}/apps/krita/scripts/changecs/*
-chmod -x $RPM_BUILD_ROOT%{_datadir}/apps/krita/scripts/filterstest/*
-chmod -x $RPM_BUILD_ROOT%{_datadir}/apps/krita/scripts/invertpython/*
-chmod -x $RPM_BUILD_ROOT%{_datadir}/apps/krita/scripts/invertruby/*
-chmod -x $RPM_BUILD_ROOT%{_datadir}/apps/krita/scripts/randompaint/*
-chmod -x $RPM_BUILD_ROOT%{_datadir}/apps/krita/scripts/reshapehisto/*
-chmod -x $RPM_BUILD_ROOT%{_datadir}/apps/krita/scripts/torturefilters/*
-chmod -x $RPM_BUILD_ROOT%{_datadir}/apps/krita/scripts/torturepainting/*
-chmod -x $RPM_BUILD_ROOT%{_datadir}/apps/kross/python/*.py
-chmod -x $RPM_BUILD_ROOT%{_datadir}/apps/kross/python/RestrictedPython/*.py
-chmod -x $RPM_BUILD_ROOT%{_datadir}/apps/kspread/scripts/exporthtml/*
-chmod -x $RPM_BUILD_ROOT%{_datadir}/apps/kspread/scripts/scripteditor/*
-
-# Replace absolute symlinks with relative ones
-pushd $RPM_BUILD_ROOT%{_prefix}/share/doc/HTML/en
-for i in *; do
-    if [ -d $i -a -L $i/common ]; then
-	rm -f $RPM_BUILD_ROOT%{_prefix}/share/doc/HTML/en/$i/common
-	ln -s ../common $RPM_BUILD_ROOT%{_prefix}/share/doc/HTML/en/$i
-    fi
+make install/fast DESTDIR=$RPM_BUILD_ROOT -C %{_target_platform}
+
+## kdchart munging begin
+pushd plugins/chartshape/kdchart
+mkdir -p $RPM_BUILD_ROOT%{_includedir}/KDChart
+install -m644 -p include/* $RPM_BUILD_ROOT%{_includedir}/KDChart/
+for inc_dir in kdchart kdchart/LeveyJennings kdchart/PrerenderedElements kdchart/Scenery kdchart/Ternary ; do
+mkdir -p $RPM_BUILD_ROOT%{_includedir}/${inc_dir}
+install -m644 -p ${inc_dir}/*.h $RPM_BUILD_ROOT%{_includedir}/${inc_dir}/
+rm -f %{buildroot}%{_includedir}/${inc_dir}/*_p.h
 done
 popd
-
-cd %{name}-l10n-ja-%{version}
-make DESTDIR=$RPM_BUILD_ROOT install
-
-rm -rf $RPM_BUILD_ROOT%{_datadir}/locale/pl 
+## kdchart munging end
+
+## unpackaged files
+rm -f $RPM_BUILD_ROOT%{_datadir}/applications/kde4/koffice.desktop
+
+# conflicts with oxygen-icon-theme  
+rm -fv $RPM_BUILD_ROOT%{_datadir}/icons/oxygen/16x16/actions/format-justify-{center,fill,left,right}.png
+rm -fv $RPM_BUILD_ROOT%{_datadir}/icons/oxygen/16x16/actions/format-text-{bold,italic,underline}.png
+rm -fv $RPM_BUILD_ROOT%{_datadir}/icons/oxygen/16x16/actions/object-{group,ungroup}.png
+rm -fv $RPM_BUILD_ROOT%{_datadir}/icons/oxygen/16x16/actions/object-order-{back,front,lower,raise}.png
+
+# extraneous stuff we don't want in -devel
+rm -fv $RPM_BUILD_ROOT%{_libdir}/lib*common.so
+rm -fv $RPM_BUILD_ROOT%{_libdir}/lib*filters.so
+rm -fv $RPM_BUILD_ROOT%{_libdir}/lib*private.so
+rm -fv $RPM_BUILD_ROOT%{_libdir}/libchartshapelib.so
+rm -fv $RPM_BUILD_ROOT%{_libdir}/libkarbon*.so
+rm -fv $RPM_BUILD_ROOT%{_libdir}/libkexi*.so
+rm -fv $RPM_BUILD_ROOT%{_libdir}/libkisexiv2.so
+rm -fv $RPM_BUILD_ROOT%{_libdir}/libkformulalib.so
+rm -fv $RPM_BUILD_ROOT%{_libdir}/libko{chart,plugin,property,report,wmf,wv2}.so
+rm -fv $RPM_BUILD_ROOT%{_libdir}/libkplato*.so
+rm -fv $RPM_BUILD_ROOT%{_libdir}/libkword*.so
+rm -fv $RPM_BUILD_ROOT%{_libdir}/libkrita*.so
+rm -fv $RPM_BUILD_ROOT%{_libdir}/libkross*.so
+rm -fv $RPM_BUILD_ROOT%{_libdir}/libkspreadodf.so
+rm -fv $RPM_BUILD_ROOT%{_libdir}/libkwmf.so
+rm -fv $RPM_BUILD_ROOT%{_libdir}/libmsooxml.so
+rm -fv $RPM_BUILD_ROOT%{_libdir}/libwv2.la
+
+# kchart
+#%if ! 0%{?kchart}
+rm -fv $RPM_BUILD_ROOT%{_libdir}/libkchartcommon.so.*
+rm -fv $RPM_BUILD_ROOT%{_libdir}/kde4/*kchart*.*
+rm -rfv $RPM_BUILD_ROOT%{_datadir}/apps/apps/kchart/
+rm -rfv $RPM_BUILD_ROOT%{_docdir}/HTML/en/kchart/
+rm -fv $RPM_BUILD_ROOT%{_datadir}/kde4/services/kchart*.desktop
+rm -fv $RPM_BUILD_ROOT%{_datadir}/kde4/services/ServiceMenus/kchart_konqi.desktop
+#%endif
+#%if ! 0%{?kexi}
+#rm -rfv $RPM_BUILD_ROOT%{_docdir}/HTML/en/kexi/
+#rm -fv $RPM_BUILD_ROOT%{_datadir}/kde4/services/ServiceMenus/kexi_konqi.desktop
+#%endif
+#%if ! 0%{?kformula}
+#rm -rfv $RPM_BUILD_ROOT%{_docdir}/HTML/en/kformula/
+#rm -fv $RPM_BUILD_ROOT%{_datadir}/kde4/services/ServiceMenus/kformula_konqi.desktop
+#%endif
+#%if ! 0%{?kplato}
+#rm -rfv $RPM_BUILD_ROOT%{_docdir}/HTML/en/kplato/
+#%endif
+#%if ! 0%{?kivio}
+rm -rfv $RPM_BUILD_ROOT%{_docdir}/HTML/en/kivio/
+rm -fv $RPM_BUILD_ROOT%{_datadir}/kde4/services/ServiceMenus/kivio_konqi.desktop
+#%endif
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
-%post
-/sbin/ldconfig
-kbuildsycoca &>/dev/null || :
+%check
+for desktop_file in $RPM_BUILD_ROOT%{_datadir}/applications/kde4/*.desktop ; do
+    desktop-file-validate ${desktop_file} 
+done
+
+%post core
+touch --no-create %{_kde4_iconsdir}/hicolor &> /dev/null || :
+touch --no-create %{_kde4_iconsdir}/oxygen &> /dev/null || :
+
+%posttrans core
+gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null || :
+gtk-update-icon-cache %{_datadir}/icons/oxygen &> /dev/null || :
+update-desktop-database -q &> /dev/null ||:
+
+%postun core
+if [ $1 -eq 0 ] ; then
+    touch --no-create %{_datadir}/icons/hicolor &> /dev/null || :
+    touch --no-create %{_datadir}/icons/oxygen &> /dev/null || :
+    gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null || :
+    gtk-update-icon-cache %{_datadir}/icons/oxygen &> /dev/null || :
+    update-desktop-database -q &> /dev/null ||:
+fi
+
+%post libs -p /sbin/ldconfig
+%postun libs -p /sbin/ldconfig
+
+%posttrans karbon
+update-desktop-database -q &> /dev/null ||:
+
+%postun karbon
+if [ $1 -eq 0 ] ; then
+    update-desktop-database -q &> /dev/null ||:
+fi
 
-%postun -p /sbin/ldconfig
+%post karbon-libs -p /sbin/ldconfig
+%postun karbon-libs -p /sbin/ldconfig
 
-%files
+%posttrans kplato
+update-desktop-database -q &> /dev/null ||:
+
+%postun kplato
+if [ $1 -eq 0 ] ; then
+    update-desktop-database -q &> /dev/null ||:
+fi
+
+%post kplato-libs -p /sbin/ldconfig
+%postun kplato-libs -p /sbin/ldconfig
+
+%posttrans kword
+update-desktop-database -q &> /dev/null ||:
+
+%postun kword
+if [ $1 -eq 0 ] ; then
+    update-desktop-database -q &> /dev/null ||:
+fi
+
+%post kword-libs -p /sbin/ldconfig
+%postun kword-libs -p /sbin/ldconfig
+
+%posttrans kpresenter
+update-desktop-database -q &> /dev/null ||:
+
+%postun kpresenter
+if [ $1 -eq 0 ] ; then
+    update-desktop-database -q &> /dev/null ||:
+fi
+
+%post kpresenter-libs -p /sbin/ldconfig
+%postun kpresenter-libs -p /sbin/ldconfig
+
+%posttrans krita
+update-desktop-database -q &> /dev/null ||:
+update-mime-database %{_datadir}/mime &> /dev/null ||:
+
+%postun krita
+if [ $1 -eq 0 ] ; then
+    update-desktop-database -q &> /dev/null ||:
+    update-mime-database %{_datadir}/mime &> /dev/null ||:
+fi
+
+%post krita-libs -p /sbin/ldconfig
+%postun krita-libs -p /sbin/ldconfig
+
+%posttrans kspread
+update-desktop-database -q &> /dev/null ||:
+update-mime-database %{_datadir}/mime &> /dev/null ||:
+
+%postun kspread
+if [ $1 -eq 0 ] ; then
+    update-desktop-database -q &> /dev/null ||:
+    update-mime-database %{_datadir}/mime &> /dev/null ||:
+fi
+
+%posttrans kugar
+update-desktop-database -q &> /dev/null ||:
+
+%postun kugar
+if [ $1 -eq 0 ] ; then
+    update-desktop-database -q &> /dev/null ||:
+fi
+
+%posttrans kexi
+update-desktop-database -q &> /dev/null ||:
+
+%postun kexi
+if [ $1 -eq 0 ] ; then
+    update-desktop-database -q &> /dev/null ||:
+fi
+
+%post kexi-libs -p /sbin/ldconfig
+%postun kexi-libs -p /sbin/ldconfig
+
+#%if 0%{?kchart}
+#%posttrans kchart
+#update-desktop-database -q &> /dev/null ||:
+
+#%postun kchart
+#if [ $1 -eq 0 ] ; then
+#update-desktop-database -q &> /dev/null ||:
+#fi
+
+#%post kchart-libs -p /sbin/ldconfig
+#%postun kchart-libs -p /sbin/ldconfig
+#%endif
+
+%post filters -p /sbin/ldconfig
+%postun filters -p /sbin/ldconfig 
+
+
+%files 
+%defattr(-,root,root)
+# virtual
+
+%files core
+%defattr(-,root,root)
+%doc AUTHORS COPYING COPYING.LIB README
+%{_bindir}/kthesaurus
+%{_bindir}/koconverter
+%{_libdir}/libkdeinit4_kthesaurus.so
+%{_libdir}/kde4/autocorrect.so
+%{_libdir}/kde4/changecase.so
+%{_libdir}/kde4/defaulttools.so
+%{_libdir}/kde4/kodocinfopropspage.*
+%{_libdir}/kde4/kofficescan.*
+%{_libdir}/kde4/kofficethumbnail.*
+%{_libdir}/kde4/kopabackgroundtool.*
+%{_libdir}/kde4/kofficedockers.*
+%{_libdir}/kde4/kolcmsengine.*
+%{_libdir}/kde4/koreport_barcodeplugin.so
+%{_libdir}/kde4/koreport_chartplugin.so
+%{_libdir}/kde4/koreport_shapeplugin.so
+%{_libdir}/kde4/kounavailpart.*
+%{_libdir}/kde4/paragraphtool.so
+%{_libdir}/kde4/spellcheck.so
+%{_libdir}/kde4/textvariables.so
+%{_libdir}/kde4/thesaurustool.so
+%{_libdir}/kde4/artistictextshape.so
+%{_libdir}/kde4/chartshape.so
+%{_libdir}/kde4/commentshape.so
+%{_libdir}/kde4/divineproportionshape.so
+%{_libdir}/kde4/musicshape.so
+%{_libdir}/kde4/pictureshape.so
+%{_libdir}/kde4/pluginshape.so
+%{_libdir}/kde4/spreadsheetshape.so
+%{_libdir}/kde4/textshape.so
+%{_libdir}/kde4/videoshape.so
+%{_datadir}/kde4/apps/koffice/
+%{_datadir}/kde4/apps/koproperty/
+%{_docdir}/HTML/en/koffice/
+%{_docdir}/HTML/en/thesaurus/
+%{_datadir}/applications/kde4/KThesaurus.desktop
+%{_datadir}/mime/packages/msooxml-all.xml
+%{_datadir}/icons/hicolor/*/*/*
+%{_datadir}/icons/oxygen/*/*/*
+%{_datadir}/kde4/services/autocorrect.desktop
+%{_datadir}/kde4/services/changecase.desktop
+%{_datadir}/kde4/services/defaulttools.desktop
+%{_datadir}/kde4/services/kodocinfopropspage.desktop
+%{_datadir}/kde4/services/kofficethumbnail.desktop
+%{_datadir}/kde4/services/kofficedockers.desktop
+%{_datadir}/kde4/services/kolcmsengine.desktop
+%{_datadir}/kde4/services/kopabackgroundtool.desktop
+%{_datadir}/kde4/services/koreport_barcodeplugin.desktop
+%{_datadir}/kde4/services/koreport_chartplugin.desktop
+%{_datadir}/kde4/services/koreport_shapeplugin.desktop
+%{_datadir}/kde4/services/kounavail.desktop
+%{_datadir}/kde4/services/paragraphtool.desktop
+%{_datadir}/kde4/services/spellcheck.desktop
+%{_datadir}/kde4/services/textvariables.desktop
+%{_datadir}/kde4/services/thesaurustool.desktop
+%{_datadir}/kde4/servicetypes/filtereffect.desktop
+%{_datadir}/kde4/servicetypes/inlinetextobject.desktop
+%{_datadir}/kde4/servicetypes/kochart.desktop
+%{_datadir}/kde4/servicetypes/kofficedocker.desktop
+%{_datadir}/kde4/servicetypes/kofficepart.desktop
+%{_datadir}/kde4/servicetypes/koplugin.desktop
+%{_datadir}/kde4/servicetypes/koreport_itemplugin.desktop
+%{_datadir}/kde4/servicetypes/texteditingplugin.desktop
+%{_datadir}/kde4/servicetypes/textvariableplugin.desktop
+%{_datadir}/kde4/servicetypes/widgetfactory.desktop
+%{_datadir}/kde4/services/*shape.desktop
+%{_datadir}/kde4/apps/formulashape/
+%{_libdir}/kde4/formulashape.*
+%{_datadir}/kde4/apps/musicshape/
+
+%dir %{_datadir}/color/
+%dir %{_datadir}/color/icc/
+%{_datadir}/color/icc/pigment/
+#{_datadir}/kde4/apps/pigmentcms/
+%{_datadir}/kde4/servicetypes/pigment*.desktop
+%{_libdir}/kde4/pathshapes.so
+%{_datadir}/kde4/services/pathshapes.desktop
+
+%files libs
 %defattr(-,root,root)
-%doc AUTHORS COPYING INSTALL README
-%doc %{_datadir}/doc/HTML/en/*
-%{_bindir}/*
-%{_includedir}/kde/*
-%{_libdir}/*
-%{_datadir}/applications
-%{_datadir}/applnk
-%{_datadir}/apps
-%config %{_datadir}/config
-%{_datadir}/config.kcfg
-%{_datadir}/icons
-%{_datadir}/locale/ja/LC_MESSAGES/*
-%{_datadir}/mimelnk
-%{_datadir}/services
-%{_datadir}/servicetypes
-%{_datadir}/templates
+%{_datadir}/kde4/servicetypes/flake*.desktop
+%{_libdir}/libflake.so.*
+%{_libdir}/libchartshapelib.so.*
+%{_libdir}/libkdchart.so.8*
+%{_libdir}/libkochart.so.*
+%{_libdir}/libkokross.so.*
+%{_libdir}/libkomain.so.*
+%{_libdir}/libkoodf.so.*
+%{_libdir}/libkopageapp.so.*
+%{_libdir}/libkoproperty.so.*
+%{_libdir}/libkoplugin.so.*
+%{_libdir}/libkoreport.so.*
+%{_libdir}/libkotext.so.*
+%{_libdir}/libkowidgets.so.*
+%{_libdir}/libkowmf.so.*
+%{_libdir}/libkowv2.so.4*
+%{_libdir}/libkspreadcommon.so.*
+%{_libdir}/libkspreadodf.so.8*
+%{_libdir}/libkwmf.so.*
+%{_libdir}/libkformulalib.so.*
+%{_libdir}/libkformulaprivate.so.*
+%{_libdir}/libmsooxml.so.*
+%{_libdir}/libpigmentcms.so.*
+
+%files devel
+%defattr(-,root,root,-)
+%{_includedir}/kdchart
+%{_includedir}/KDChart/
+%{_includedir}/kde4/*.h
+%{_includedir}/kde4/changetracker/
+%{_includedir}/kde4/kexi/
+%{_includedir}/kde4/styles/
+%{_libdir}/libflake.so
+%{_libdir}/libkdchart.so
+%{_libdir}/libkokross.so
+%{_libdir}/libkomain.so
+%{_libdir}/libkoodf.so
+%{_libdir}/libkopageapp.so
+%{_libdir}/libkotext.so
+%{_libdir}/libkowidgets.so
+%{_libdir}/libpigmentcms.so
+%{_libdir}/libkformdesigner.so
+%{_datadir}/kde4/apps/cmake/modules/FindKOfficeLibs.cmake
+
+%files kword
+%defattr(-,root,root,-)
+%{_bindir}/kword
+%{_datadir}/config/kwordrc
+%{_libdir}/libkdeinit4_kword.so
+%{_libdir}/kde4/krossmodulekword.so
+%{_libdir}/kde4/kwordpart.*
+%{_datadir}/kde4/apps/kword/
+%{_datadir}/kde4/services/*kword*.desktop
+%{_datadir}/templates/TextDocument.desktop
+%{_datadir}/templates/.source/TextDocument.kwt
+%{_datadir}/applications/kde4/*kword.desktop
+%{_datadir}/kde4/services/ServiceMenus/kword_konqi.desktop
+
+%files kword-libs
+%defattr(-,root,root,-)
+%{_libdir}/libkwordprivate.so.*
+
+%files kspread
+%defattr(-,root,root,-)
+%{_bindir}/kspread
+%{_libdir}/libkdeinit4_kspread.so
+%{_libdir}/kde4/krossmodulekspread.so
+%{_libdir}/kde4/kspread*.so
+%{_libdir}/kde4/csvexport.*
+%{_libdir}/kde4/csvimport.*
+%{_libdir}/kde4/gnumericexport.*
+%{_libdir}/kde4/gnumericimport.*
+%{_libdir}/kde4/opencalcexport.*
+%{_libdir}/kde4/opencalcimport.*
+%{_libdir}/kde4/qproimport.*
+%{_datadir}/kde4/apps/kspread/
+%{_datadir}/config/kspreadrc
+%{_datadir}/config.kcfg/kspread.kcfg
+%{_datadir}/kde4/services/kspread*.desktop
+%{_datadir}/templates/SpreadSheet.desktop
+%{_datadir}/templates/.source/SpreadSheet.kst
+%{_datadir}/applications/kde4/*kspread.desktop
+%{_datadir}/kde4/services/ServiceMenus/kspread_konqi.desktop
+%{_datadir}/kde4/services/krossmodulekspread.desktop
+%{_datadir}/kde4/servicetypes/kspread_plugin.desktop
+%{_docdir}/HTML/en/kspread/
+
+%files kpresenter
+%defattr(-,root,root,-)
+%{_bindir}/kpresenter
+%{_libdir}/libkdeinit4_kpresenter.so
+%{_libdir}/kde4/*kpresenter*.*
+%{_libdir}/kde4/kpr_*.*
+%{_libdir}/kde4/Filterkpr2odf.so
+%{_datadir}/kde4/apps/kpresenter/
+%{_datadir}/config/kpresenterrc
+%{_docdir}/HTML/en/kpresenter/
+%{_datadir}/kde4/services/kpr*.desktop
+%{_datadir}/kde4/servicetypes/kpr*.desktop
+%{_datadir}/kde4/servicetypes/presentationeventaction.desktop
+%{_datadir}/kde4/servicetypes/scripteventaction.desktop
+%{_datadir}/templates/Presentation.desktop
+%{_datadir}/templates/.source/Presentation.kpt
+%{_datadir}/applications/kde4/*kpresenter.desktop
+%{_datadir}/kde4/services/Filterkpr2odf.desktop
+%{_datadir}/kde4/services/ServiceMenus/kpresenter_konqi.desktop
+
+%files kpresenter-libs
+%defattr(-,root,root,-)
+%{_libdir}/libkpresenterprivate.so.*
+%{_libdir}/kde4/kprvariables.*
+
+#%files kivio
+#%defattr(-,root,root,-)
+#{_bindir}/kivio
+#{_libdir}/libkdeinit4_kivio.so
+#{_libdir}/libkivioprivate.so.*
+#{_libdir}/kde4/*kivio*.*
+#{_datadir}/kde4/apps/kivio/
+#{_docdir}/HTML/en/kivio/
+#{_datadir}/kde4/services/kivio*.desktop
+#{_datadir}/applications/kde4/kivio.desktop
+#{_datadir}/kde4/services/ServiceMenus/kivio_konqi.desktop
+
+%files karbon
+%defattr(-,root,root,-)
+%{_bindir}/karbon
+%{_datadir}/config/karbonrc
+%{_libdir}/libkdeinit4_karbon.so
+%{_libdir}/kde4/*karbon*.*
+%{_libdir}/kde4/wmfexport.*
+%{_libdir}/kde4/wmfimport.*
+%{_datadir}/kde4/apps/karbon/
+%{_datadir}/kde4/services/karbon*
+%{_datadir}/kde4/servicetypes/karbon_module.desktop
+%{_datadir}/templates/Illustration.desktop
+%{_datadir}/templates/.source/Illustration.karbon
+%{_datadir}/applications/kde4/*karbon.desktop
+%{_docdir}/HTML/en/karbon/
+%{_datadir}/kde4/services/ServiceMenus/karbon_konqi.desktop
+
+%files karbon-libs
+%defattr(-,root,root,-)
+%{_libdir}/libkarboncommon.so.*
+%{_libdir}/libkarbonui.so.*
+
+%files krita
+%defattr(-,root,root,-)
+%{_bindir}/krita
+%{_datadir}/config/kritarc
+%{_libdir}/libkdeinit4_krita.so
+%{_libdir}/kde4/*krita*.*
+%{_datadir}/kde4/apps/krita/
+%{_datadir}/config/krita.knsrc
+%{_datadir}/kde4/services/krita*.desktop
+%{_datadir}/kde4/servicetypes/krita*.desktop
+%{_datadir}/applications/kde4/*krita*.desktop
+%{_datadir}/mime/packages/krita_ora.xml
+%{_datadir}/kde4/apps/kritaplugins/
+%{_datadir}/color/icc/krita/
+%{_datadir}/kde4/services/ServiceMenus/krita_konqi.desktop
+
+%files krita-libs
+%defattr(-,root,root,-)
+%{_libdir}/libkrita*.so.*
+
+%files kexi
+%defattr(-,root,root,-)
+%{_datadir}/kde4/apps/kexi/
+%{_bindir}/kexi*
+%{_libdir}/kde4/kformdesigner_*.*
+%{_libdir}/kde4/kexihandler_*.*
+%{_libdir}/kde4/krossmodulekexidb.so
+%{_libdir}/kde4/kexidb_sqlite3driver.so
+#{_libdir}/kde4/kexidb_sybasedriver.so
+%{_libdir}/kde4/keximigrate_kspread.so
+%{_libdir}/kde4/keximigrate_mdb.so
+#{_libdir}/kde4/keximigrate_sybase.so
+%{_libdir}/kde4/keximigrate_txt.so
+%{_libdir}/kde4/kexirelationdesignshape.so
+%{_datadir}/applications/kde4/*kexi.desktop
+%{_datadir}/config/kexirc
+%{_datadir}/kde4/servicetypes/kexi*.desktop
+%{_datadir}/kde4/services/kexi/
+%{_datadir}/kde4/services/keximigrate_kspread.desktop
+%{_datadir}/kde4/services/keximigrate_mdb.desktop
+#{_datadir}/kde4/services/keximigrate_sybase.desktop
+%{_datadir}/kde4/services/keximigrate_txt.desktop
+%{_datadir}/kde4/services/kexidb_sqlite3driver.desktop
+#{_datadir}/kde4/services/kexidb_sybasedriver.desktop
+%{_datadir}/kde4/services/kformdesigner/*
+%{_docdir}/HTML/en/kexi/
+
+%files kexi-libs
+%defattr(-,root,root,-)
+%{_libdir}/libkexi*.so.*
+%{_libdir}/libkformdesigner.so.*
+
+%files kexi-driver-mysql
+%defattr(-,root,root,-)
+%{_libdir}/kde4/kexidb_mysqldriver.*
+%{_libdir}/kde4/keximigrate_mysql.*
+%{_datadir}/kde4/services/keximigrate_mysql.desktop
+%{_datadir}/kde4/services/kexidb_mysqldriver.desktop
+
+%files kexi-driver-pgsql
+%defattr(-,root,root,-)
+%{_libdir}/kde4/kexidb_pqxxsqldriver.*
+%{_libdir}/kde4/keximigrate_pqxx.*
+%{_datadir}/kde4/services/kexidb_pqxxsqldriver.desktop
+%{_datadir}/kde4/services/keximigrate_pqxx.desktop
+
+#%files kchart
+#%defattr(-,root,root,-)
+#{_libdir}/kde4/*kchart*.*
+#{_datadir}/kde4/apps/kchart/
+#%{_datadir}/kde4/services/kchart*.desktop
+#%{_docdir}/HTML/en/kchart/
+#%{_datadir}/kde4/services/ServiceMenus/kchart_konqi.desktop
+
+#%files kchart-libs
+#%defattr(-,root,root,-)
+#%{_libdir}/libkchartcommon.so.*
+
+%files kformula
+%defattr(-,root,root,-)
+%{_libdir}/kde4/formulashape.*
+%{_docdir}/HTML/en/kformula/
+%{_datadir}/kde4/services/ServiceMenus/kformula_konqi.desktop
+
+%files kformula-libs
+%defattr(-,root,root,-)
+%{_libdir}/libkformulaprivate.so.*
+
+%files filters
+%defattr(-,root,root,-)
+%{_libdir}/libkwordexportfilters.so.*
+%{_libdir}/kde4/abiwordexport.*
+%{_libdir}/kde4/abiwordimport.*
+%{_libdir}/kde4/amiproexport.*
+%{_libdir}/kde4/amiproimport.*
+%{_libdir}/kde4/applixspreadimport.*
+%{_libdir}/kde4/applixwordimport.*
+%{_libdir}/kde4/asciiexport.*
+%{_libdir}/kde4/asciiimport.*
+%{_libdir}/kde4/dbaseimport.*
+%{_libdir}/kde4/docbookexport.*
+%{_libdir}/kde4/docximport.*
+%{_libdir}/kde4/excelimporttodoc.*
+%{_libdir}/kde4/generickofilter.*
+%{_libdir}/kde4/htmlexport.*
+%{_libdir}/kde4/htmlimport.*
+%{_libdir}/kde4/htmlodf_export.*
+%{_libdir}/kde4/kspreadlatexexport.*
+%{_libdir}/kde4/kspreadhtmlimport.*
+%{_libdir}/kde4/kwordkword1dot3import.*
+%{_libdir}/kde4/oowriterexport.*
+%{_libdir}/kde4/oowriterimport.*
+%{_libdir}/kde4/palmdocexport.*
+%{_libdir}/kde4/palmdocimport.*
+%{_libdir}/kde4/powerpointimport.*
+%{_libdir}/kde4/pptximport.*
+%{_libdir}/kde4/rtfexport.*
+%{_libdir}/kde4/rtfimport.*
+%{_libdir}/kde4/wmlexport.*
+%{_libdir}/kde4/wmlimport.*
+%{_libdir}/kde4/wpexport.*
+%{_libdir}/kde4/wpimport.*
+%{_libdir}/kde4/wpgimport.*
+%{_libdir}/kde4/mswordodf_import.*
+%{_libdir}/kde4/xlsximport.*
+%{_libdir}/kde4/xsltimport.*
+%{_libdir}/kde4/xsltexport.*
+%{_libdir}/kde4/hancomwordimport.*
+%{_datadir}/kde4/apps/xsltfilter/
+%{_datadir}/kde4/services/generic_filter.desktop
+%{_datadir}/kde4/services/html-odf_export.desktop
+%{_datadir}/kde4/services/xslt*.desktop
+%{_datadir}/kde4/servicetypes/kofilter*.desktop
+
+%files kplato
+%defattr(-,root,root,-)
+%{_bindir}/kplato
+%{_bindir}/kplatowork
+%{_datadir}/config/kplatorc
+%{_datadir}/config/kplatoworkrc
+%{_datadir}/config.kcfg/kplatosettings.kcfg
+%{_libdir}/libkdeinit4_kplato.so
+%{_libdir}/libkdeinit4_kplatowork.so
+%{_libdir}/kde4/kplatopart.*
+%{_libdir}/kde4/kplatoworkpart.so
+%{_libdir}/libkplato*.so.*
+%{_libdir}/kde4/icalendarexport.*
+%{_libdir}/kde4/krossmodulekplato.so
+%{_datadir}/kde4/services/krossmodulekplato.desktop
+%{_datadir}/kde4/apps/kplato/
+%{_datadir}/kde4/apps/kplatowork/
+%{_datadir}/kde4/services/kplato*.desktop
+%{_datadir}/kde4/servicetypes/kplato*.desktop
+%{_datadir}/applications/kde4/kplato.desktop
+%{_datadir}/applications/kde4/kplatowork.desktop
+
+%files kplato-libs
+%defattr(-,root,root,-)
+%{_libdir}/libkplato*.so.*
+
+%files okular-odpgenerator
+%defattr(-,root,root,-)
+%{_libdir}/kde4/okularGenerator_odp.so
+%{_datadir}/applications/kde4/okularApplication_odp.desktop
+%{_datadir}/kde4/services/libokularGenerator_odp.desktop
+%{_datadir}/kde4/services/okularOdp.desktop
+
 
 %changelog
+* Sun Mar 27 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 1:2.3.3-1
+- new upstream release
+
 * Sun Oct  3 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.6.3-4
 - rebuilt with ImageMagick-6.6.4.8