LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File calligra.spec of Package calligra (Project openSUSE:Factory)

#
# spec file for package calligra
#
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#


Name:           calligra
Version:        2.5.3
Release:        0
Summary:        Libraries and Base Files for the Calligra Suite
License:        GPL-2.0+ and LGPL-2.1+
Group:          Productivity/Office/Suite
Url:            http://www.calligra.org/
Source0:        ftp://ftp.kde.org/pub/kde/stable/%{name}-%{version}/%{name}-%{version}.tar.bz2
Source1:        hi16-app-kexi.png
Source2:        hi22-app-kexi.png
Source3:        hi32-app-kexi.png
Source4:        hi48-app-kexi.png
Source5:        hisc-app-kexi.svgz
# PATCH-FIX-OPENSUSE remove_python_shebangs.patch asterios.dramis@gmail.com -- Remove python shebangs from various scripts (fixes rpmlint warning "non-executable-script")
Patch0:         remove_python_shebangs.patch
BuildRequires:  OpenEXR-devel
%if 0%{?suse_version} > 1210
BuildRequires:  OpenGTL-devel
BuildRequires:  create-resources
%endif
BuildRequires:  fdupes
BuildRequires:  fftw3-devel
%if 0%{?suse_version} > 1140
BuildRequires:  freetds-devel
%endif
BuildRequires:  glew-devel
BuildRequires:  gsl-devel
BuildRequires:  java-devel
%if 0%{?suse_version} > 1210
BuildRequires:  libQtGTL-devel
%endif
BuildRequires:  libQtWebKit-devel
BuildRequires:  libeigen2-devel
BuildRequires:  libexiv2-devel
BuildRequires:  libgsf-devel
BuildRequires:  libicu-devel
BuildRequires:  libkdcraw-devel
BuildRequires:  libkdepimlibs4-devel
BuildRequires:  liblcms-devel
BuildRequires:  liblcms2-devel
BuildRequires:  libmysqld-devel
BuildRequires:  libpoppler-qt4-devel
BuildRequires:  libpqxx-devel
BuildRequires:  libqca2-devel
BuildRequires:  librcps-devel
BuildRequires:  libsoprano-devel
%if 0%{?suse_version} > 1140
BuildRequires:  libspnav-devel
%endif
%if 0%{?suse_version} > 1220
BuildRequires:  libvisio-devel
%endif
BuildRequires:  libwpd-devel
BuildRequires:  libwpg-devel
BuildRequires:  libwps-devel
BuildRequires:  marble-devel
BuildRequires:  mysql-devel
BuildRequires:  okular-devel
%if 0%{?suse_version} > 1210
BuildRequires:  openjpeg-devel
%endif
# Needed to copy some icons to the hicolor directory (so they can be used with other icon themes)
BuildRequires:  oxygen-icon-theme
BuildRequires:  postgresql-devel
BuildRequires:  pstoedit
BuildRequires:  sqlite-devel
BuildRequires:  xbase-devel
BuildRequires:  pkgconfig(gl)
BuildRequires:  pkgconfig(glu)
Recommends:     %{name}-doc = %{version}
Recommends:     kdepim4-runtime
Suggests:       calligra-braindump
Suggests:       calligra-flow
Suggests:       calligra-karbon
Suggests:       calligra-kexi
Suggests:       calligra-krita
Suggests:       calligra-plan
Suggests:       calligra-sheets
Suggests:       calligra-stage
Suggests:       calligra-words
# calligra-kformula was last used at version 2.3.73 in KDE:Unstable:Playground
Provides:       calligra-kformula = %{version}
Obsoletes:      calligra-kformula < %{version}
# calligra-kthesaurus was last used at version 2.4.92 in KDE:Release:49
Provides:       calligra-kthesaurus = %{version}
Obsoletes:      calligra-kthesaurus < %{version}
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%kde4_runtime_requires
%kde4_pimlibs_requires
Requires(post): shared-mime-info
Requires(postun): shared-mime-info

%description
The Calligra Suite is a set of applications that allows you to easily complete
your work. There are office applications, as well as Graphic applications.
There is also a comprehensive set of plug-ins. The Calligra Suite is unique
because not only does it consist of the normal word processor (Words) and
spreadsheet (Sheets) applications, but it also brings you Graphic applications
as well.

The Calligra Suite consists of 8 applications, the office applications are
Words, Sheets, Stage, Kexi, Flow, and Plan, and the graphic applications are
Krita and Karbon. Each application is unique and aimed towards normal personal
and professional uses.

This package contains the base files and libraries for the Suite.

%package braindump
Summary:        Mind Mapper Application
License:        GPL-2.0+ and LGPL-2.1+
Group:          Productivity/Office/Suite
%kde4_runtime_requires

%description braindump
Braindump is the mind mapper application of the Calligra Suite.

%package devel
Summary:        The Build Enviroment from Calligra
License:        GPL-2.0+ and LGPL-2.1+
Group:          Development/Libraries/KDE
Requires:       %{name} = %{version}
Requires:       calligra-flow
Requires:       calligra-karbon
Requires:       calligra-kexi
Requires:       calligra-krita
Requires:       calligra-plan
Requires:       calligra-sheets
Requires:       calligra-words

%description devel
This package contains the build environment needed to compile Calligra
applications.

%package flow
Summary:        Flow Chart Drawing Application
License:        GPL-2.0+ and LGPL-2.1+
Group:          Productivity/Office/Suite
Requires:       %{name} = %{version}
%kde4_runtime_requires

%description flow
Flow is the flow chart drawing application of the Calligra Suite.

%package karbon
Summary:        Vector Drawing Application
License:        GPL-2.0+ and LGPL-2.1+
Group:          Productivity/Office/Suite
Requires:       %{name} = %{version}
Requires:       pstoedit
%kde4_runtime_requires

%description karbon
Karbon is the vector drawing application of the Calligra Suite.

%package kexi
Summary:        Database Application
License:        GPL-2.0+ and LGPL-2.1+
Group:          Productivity/Office/Suite
Requires:       %{name} = %{version}
Requires:       libktexteditor
Suggests:       kexi-mssql-driver
Suggests:       kexi-mysql-driver
Suggests:       kexi-postgresql-driver
Suggests:       kexi-spreadsheet-import
Suggests:       kexi-xbase-driver
%kde4_runtime_requires

%description kexi
Kexi is the database application of the Calligra Suite.

%package kexi-mssql-driver
Summary:        Database Application - MS SQL & Sybase Server driver
License:        GPL-2.0+ and LGPL-2.1+
Group:          Productivity/Office/Suite
%kde4_runtime_requires

%description kexi-mssql-driver
Kexi is the database application of the Calligra Suite.

This package contains Kexi MS SQL & Sybase Server driver.

%package kexi-mysql-driver
Summary:        Database Application - MySQL driver
License:        GPL-2.0+ and LGPL-2.1+
Group:          Productivity/Office/Suite
%kde4_runtime_requires

%description kexi-mysql-driver
Kexi is the database application of the Calligra Suite.

This package contains Kexi MySQL driver.

%package kexi-postgresql-driver
Summary:        Database Application - PostgreSQL driver
License:        GPL-2.0+ and LGPL-2.1+
Group:          Productivity/Office/Suite
%kde4_runtime_requires

%description kexi-postgresql-driver
Kexi is the database application of the Calligra Suite.

This package contains Kexi PostgreSQL driver.

%package kexi-spreadsheet-import
Summary:        Spreadsheet-to-Kexi-table import plugin
License:        GPL-2.0+ and LGPL-2.1+
Group:          Productivity/Office/Suite
%kde4_runtime_requires

%description kexi-spreadsheet-import
Kexi is the database application of the Calligra Suite.

This package contains a Spreadsheet-to-Kexi-table import plugin.

%package kexi-xbase-driver
Summary:        Database Application - XBase driver
License:        GPL-2.0+ and LGPL-2.1+
Group:          Productivity/Office/Suite
%kde4_runtime_requires

%description kexi-xbase-driver
Kexi is the database application of the Calligra Suite.

This package contains Kexi XBase driver.

%package krita
Summary:        Image Manipulation Application
License:        GPL-2.0+ and LGPL-2.1+
Group:          Productivity/Office/Suite
Requires:       %{name} = %{version}
Recommends:     create-resources
Requires(post): shared-mime-info
Requires(postun): shared-mime-info
%kde4_runtime_requires

%description krita
Krita is the image manipulation application of the Calligra Suite.

%package plan
Summary:        Project Management Application
License:        GPL-2.0 and GPL-2.0+ and LGPL-2.1+
Group:          Productivity/Office/Suite
Requires:       %{name} = %{version}
%kde4_runtime_requires
%kde4_pimlibs_requires

%description plan
Plan is the project management application of the Calligra Suite.

%package stage
Summary:        Application for Creating Presentations
License:        GPL-2.0+ and LGPL-2.1+
Group:          Productivity/Office/Suite
Requires:       %{name} = %{version}
%kde4_runtime_requires

%description stage
Stage is the presentation application of the Calligra Suite.

%package sheets
Summary:        Spreadsheet Application
License:        GPL-2.0+ and LGPL-2.1+
Group:          Productivity/Office/Suite
Requires:       %{name} = %{version}
%kde4_runtime_requires

%description sheets
Sheets is the spreadsheet application of the Calligra Suite.

%package tools
Summary:        Various tools for the Calligra Suite
License:        GPL-2.0+ and LGPL-2.1+
Group:          Productivity/Office/Suite
Requires:       %{name} = %{version}
%kde4_runtime_requires

%description tools
This package contains various tools for the Calligra Suite.

%package words
Summary:        Word Processor
License:        GPL-2.0 and GPL-2.0+ and LGPL-2.1+
Group:          Productivity/Office/Suite
Requires:       %{name} = %{version}
%kde4_runtime_requires

%description words
Words is the word processor application of the Calligra Suite.

%prep
%setup -q
%patch0

%build
%cmake_kde4 -d build -- -DBUILD_active=false -DIHAVEPATCHEDQT=TRUE
%make_jobs

%install
cd build
%kde4_makeinstall

# Create filelists
%create_subdir_filelist -d braindump -v devel
%create_subdir_filelist -d filters/flow -f flow
%create_subdir_filelist -d filters/karbon -f karbon
%create_subdir_filelist -d filters/plan -f plan
%create_subdir_filelist -d filters/sheets -f sheets
%create_subdir_filelist -d filters/stage -f stage
%create_subdir_filelist -d filters/words -f words -v devel
%create_subdir_filelist -d flow -v devel
%create_subdir_filelist -d karbon -v devel
%create_subdir_filelist -d kexi -v devel
%create_subdir_filelist -d krita -v devel
%create_subdir_filelist -d plan -v devel
%create_subdir_filelist -d stage -f stage -v devel
%create_subdir_filelist -d sheets -v devel
%create_subdir_filelist -d tools -v devel
%create_subdir_filelist -d words -v devel
cd ..

# Remove doc files from filelists (packaged in calligra-doc spec file)
sed -ri s,.*/usr/share/doc/kde/HTML/en/.*,, filelists/*

%create_exclude_filelist

# Remove doc files (packaged in calligra-doc spec file)
rm -rf %{buildroot}%{_kde4_htmldir}/en/

# Do not use fdupes in %%{buildroot} as this causes icons in the calligra-package to be symlinks against the kexi-package, so that these are missing in krita (bnc#688012)
%fdupes -s %{buildroot}%{_kde4_datadir}/color/icc/krita/
%fdupes -s %{buildroot}%{_kde4_datadir}/locale/
%fdupes -s %{buildroot}%{_kde4_appsdir}/calligra/
%fdupes -s %{buildroot}%{_kde4_appsdir}/flow/stencils/
%fdupes -s %{buildroot}%{_kde4_appsdir}/kexi/
%fdupes -s %{buildroot}%{_kde4_appsdir}/krita/
%fdupes -s %{buildroot}%{_kde4_iconsdir}/
%fdupes -s %{buildroot}%{_kde4_includedir}/

%suse_update_desktop_file -r braindump  Qt KDE Office Database
%suse_update_desktop_file -r flow       Qt KDE Office FlowChart
%suse_update_desktop_file -r karbon     Qt KDE Graphics VectorGraphics
%suse_update_desktop_file -r kexi       Qt KDE Office Database
%suse_update_desktop_file -r krita      Qt KDE Graphics RasterGraphics
%suse_update_desktop_file -r plan       Qt KDE Office ProjectManagement
%suse_update_desktop_file -r planwork   Qt KDE Office ProjectManagement
%suse_update_desktop_file -r stage      Qt KDE Office Presentation
%suse_update_desktop_file -r sheets     Qt KDE Office Spreadsheet
%suse_update_desktop_file -r words      Qt KDE Office WordProcessor

%kde_post_install

# Copy some application icons from "oxygen-icon-theme" package to hicolor directory (so they can be used with other icon themes)
for i in {16,32,48,64}; do
  mkdir -p %{buildroot}%{_kde4_iconsdir}/hicolor/"$i"x"$i"/apps
  cp -a %{_kde4_iconsdir}/oxygen/"$i"x"$i"/apps/kivio.png %{buildroot}%{_kde4_iconsdir}/hicolor/"$i"x"$i"/apps/;
done
# Install hicolor application icons for kexi
for i in {16,22,32,48}; do
  mkdir -p %{buildroot}%{_kde4_iconsdir}/hicolor/"$i"x"$i"/apps
done
mkdir -p %{buildroot}%{_kde4_iconsdir}/hicolor/scalable/apps
install -pm 0644 %{SOURCE1} %{buildroot}%{_kde4_iconsdir}/hicolor/16x16/apps/kexi.png
install -pm 0644 %{SOURCE2} %{buildroot}%{_kde4_iconsdir}/hicolor/22x22/apps/kexi.png
install -pm 0644 %{SOURCE3} %{buildroot}%{_kde4_iconsdir}/hicolor/32x32/apps/kexi.png
install -pm 0644 %{SOURCE4} %{buildroot}%{_kde4_iconsdir}/hicolor/48x48/apps/kexi.png
install -pm 0644 %{SOURCE5} %{buildroot}%{_kde4_iconsdir}/hicolor/scalable/apps/kexi.svgz

%post
/sbin/ldconfig
/usr/bin/update-mime-database %{_kde4_datadir}/mime &> /dev/null || :

%postun
/sbin/ldconfig
/usr/bin/update-mime-database %{_kde4_datadir}/mime &> /dev/null || :

%post krita
/sbin/ldconfig
/usr/bin/update-mime-database %{_kde4_datadir}/mime &> /dev/null || :

%postun krita
/sbin/ldconfig
/usr/bin/update-mime-database %{_kde4_datadir}/mime &> /dev/null || :

%post   braindump -p /sbin/ldconfig

%postun braindump -p /sbin/ldconfig

%post   flow -p /sbin/ldconfig

%postun flow -p /sbin/ldconfig

%post   karbon -p /sbin/ldconfig

%postun karbon -p /sbin/ldconfig

%post   kexi -p /sbin/ldconfig

%postun kexi -p /sbin/ldconfig

%post   plan -p /sbin/ldconfig

%postun plan -p /sbin/ldconfig

%post   stage -p /sbin/ldconfig

%postun stage -p /sbin/ldconfig

%post   sheets -p /sbin/ldconfig

%postun sheets -p /sbin/ldconfig

%post   tools -p /sbin/ldconfig

%postun tools -p /sbin/ldconfig

%post   words -p /sbin/ldconfig

%postun words -p /sbin/ldconfig

%files -f filelists/exclude
%defattr(-,root,root,-)
%doc COPYING COPYING.LIB README
%dir %{_kde4_datadir}/color
%dir %{_kde4_datadir}/color/icc
%dir %{_kde4_sharedir}/templates
%dir %{_kde4_sharedir}/templates/.source
%{_kde4_datadir}/color/icc/pigment/
%{_kde4_datadir}/mime/packages/msooxml-all.xml
%{_kde4_applicationsdir}/calligra.desktop
%{_kde4_appsdir}/calligra/
%{_kde4_appsdir}/formulashape/
%{_kde4_appsdir}/koproperty/
%{_kde4_appsdir}/musicshape/
%if 0%{?suse_version} > 1210
%dir %{_kde4_appsdir}/pigmentcms
%dir %{_kde4_appsdir}/pigmentcms/ctlcolorspaces
%dir %{_kde4_appsdir}/pigmentcms/ctlcolortransformations
%dir %{_kde4_appsdir}/pigmentcms/ctlcompositeops
%dir %{_kde4_appsdir}/pigmentcms/ctlmodules
%dir %{_kde4_appsdir}/pigmentcms/ctlprofiles
%dir %{_kde4_appsdir}/pigmentcms/ctltemplates
%endif
%{_kde4_iconsdir}/oxygen/*/actions/curve-connector.*
%{_kde4_iconsdir}/oxygen/*/actions/insert-endnote.*
%{_kde4_iconsdir}/oxygen/*/actions/insert-footnote.*
%{_kde4_iconsdir}/oxygen/*/actions/lines-connector.*
%{_kde4_iconsdir}/oxygen/*/actions/object-align-horizontal-center-calligra.*
%{_kde4_iconsdir}/oxygen/*/actions/object-align-horizontal-left-calligra.*
%{_kde4_iconsdir}/oxygen/*/actions/object-align-horizontal-right-calligra.*
%{_kde4_iconsdir}/oxygen/*/actions/object-align-vertical-bottom-calligra.*
%{_kde4_iconsdir}/oxygen/*/actions/object-align-vertical-bottom-top-calligra.*
%{_kde4_iconsdir}/oxygen/*/actions/object-align-vertical-center-calligra.*
%{_kde4_iconsdir}/oxygen/*/actions/object-align-vertical-top-calligra.*
%{_kde4_iconsdir}/oxygen/*/actions/object-group-calligra.*
%{_kde4_iconsdir}/oxygen/*/actions/object-order-back-calligra.*
%{_kde4_iconsdir}/oxygen/*/actions/object-order-front-calligra.*
%{_kde4_iconsdir}/oxygen/*/actions/object-order-lower-calligra.*
%{_kde4_iconsdir}/oxygen/*/actions/object-order-raise-calligra.*
%{_kde4_iconsdir}/oxygen/*/actions/object-ungroup-calligra.*
%{_kde4_iconsdir}/oxygen/*/actions/shape-choose.*
%{_kde4_iconsdir}/oxygen/*/actions/standard-connector.*
%{_kde4_iconsdir}/oxygen/*/actions/straight-connector.*
%{_kde4_iconsdir}/oxygen/*/actions/table.*
%{_kde4_iconsdir}/oxygen/*/actions/x-shape-chart.*
%{_kde4_iconsdir}/oxygen/*/actions/x-shape-connection.*
%{_kde4_iconsdir}/oxygen/*/actions/x-shape-formula.*
%{_kde4_iconsdir}/oxygen/*/actions/x-shape-image.*
%{_kde4_iconsdir}/oxygen/*/actions/x-shape-text.*
%{_kde4_libdir}/libchartshapelib.so.*
%{_kde4_libdir}/libflake.so.*
%{_kde4_libdir}/libkdchart.so.*
%{_kde4_libdir}/libkformulalib.so.*
%{_kde4_libdir}/libkochart.so.*
%{_kde4_libdir}/libkokross.so.*
%{_kde4_libdir}/libkomain.so.*
%{_kde4_libdir}/libkoodf.so.*
%{_kde4_libdir}/libkopageapp.so.*
%{_kde4_libdir}/libkoplugin.so.*
%{_kde4_libdir}/libkoproperty.so.*
%{_kde4_libdir}/libkoreport.so.*
%{_kde4_libdir}/libkotext.so.*
%{_kde4_libdir}/libkowidgets.so.*
%{_kde4_libdir}/libkundo2.so.*
%{_kde4_libdir}/liblibwmf.so.*
%{_kde4_libdir}/libmsooxml.so.*
%{_kde4_libdir}/libpigmentcms.so.*
%{_kde4_libdir}/libtextlayout.so.*
%{_kde4_modulesdir}/artistictextshape.so
%{_kde4_modulesdir}/autocorrect.so
%{_kde4_modulesdir}/calligradockers.so
%{_kde4_modulesdir}/calligragoogledocs.so
%{_kde4_modulesdir}/changecase.so
%{_kde4_modulesdir}/chartshape.so
%{_kde4_modulesdir}/commentshape.so
%{_kde4_modulesdir}/defaulttools.so
%{_kde4_modulesdir}/formulashape.so
%{_kde4_modulesdir}/kodocinfopropspage.so
%{_kde4_modulesdir}/kolcmsengine.so
%{_kde4_modulesdir}/kopabackgroundtool.so
%{_kde4_modulesdir}/koreport_*.so
%{_kde4_modulesdir}/musicshape.so
%{_kde4_modulesdir}/pathshapes.so
%{_kde4_modulesdir}/pictureshape.so
%{_kde4_modulesdir}/pluginshape.so
%if 0%{?suse_version} > 1140
%{_kde4_modulesdir}/spacenavigator.so
%endif
%{_kde4_modulesdir}/spellcheck.so
%{_kde4_modulesdir}/textshape.so
%{_kde4_modulesdir}/textvariables.so
%{_kde4_modulesdir}/thesaurustool.so
%{_kde4_modulesdir}/vectorshape.so
%{_kde4_modulesdir}/videoshape.so
%{_kde4_servicesdir}/artistictextshape.desktop
%{_kde4_servicesdir}/autocorrect.desktop
%{_kde4_servicesdir}/calligradockers.desktop
%{_kde4_servicesdir}/changecase.desktop
%{_kde4_servicesdir}/chartshape.desktop
%{_kde4_servicesdir}/commentshape.desktop
%{_kde4_servicesdir}/defaulttools.desktop
%{_kde4_servicesdir}/formulashape.desktop
%{_kde4_servicesdir}/kchartpart.desktop
%{_kde4_servicesdir}/kformulapart.desktop
%{_kde4_servicesdir}/kodocinfopropspage.desktop
%{_kde4_servicesdir}/kolcmsengine.desktop
%{_kde4_servicesdir}/kopabackgroundtool.desktop
%{_kde4_servicesdir}/koreport_barcodeplugin.desktop
%{_kde4_servicesdir}/koreport_chartplugin.desktop
%{_kde4_servicesdir}/koreport_mapsplugin.desktop
%{_kde4_servicesdir}/koreport_webplugin.desktop
%{_kde4_servicesdir}/musicshape.desktop
%{_kde4_servicesdir}/pathshapes.desktop
%{_kde4_servicesdir}/pictureshape.desktop
%{_kde4_servicesdir}/pluginshape.desktop
%if 0%{?suse_version} > 1140
%{_kde4_servicesdir}/spacenavigator.desktop
%endif
%{_kde4_servicesdir}/spellcheck.desktop
%{_kde4_servicesdir}/textshape.desktop
%{_kde4_servicesdir}/textvariables.desktop
%{_kde4_servicesdir}/thesaurustool.desktop
%{_kde4_servicesdir}/vectorshape.desktop
%{_kde4_servicesdir}/videoshape.desktop
%{_kde4_servicetypesdir}/calligra_application.desktop
%{_kde4_servicetypesdir}/calligra_deferred_plugin.desktop
%{_kde4_servicetypesdir}/calligradocker.desktop
%{_kde4_servicetypesdir}/calligrapart.desktop
%{_kde4_servicetypesdir}/filtereffect.desktop
%{_kde4_servicetypesdir}/flake.desktop
%{_kde4_servicetypesdir}/flakedevice.desktop
%{_kde4_servicetypesdir}/flakeshape.desktop
%{_kde4_servicetypesdir}/flaketool.desktop
%{_kde4_servicetypesdir}/inlinetextobject.desktop
%{_kde4_servicetypesdir}/kochart.desktop
%{_kde4_servicetypesdir}/kofilter.desktop
%{_kde4_servicetypesdir}/kofilterwrapper.desktop
%{_kde4_servicetypesdir}/koplugin.desktop
%{_kde4_servicetypesdir}/koreport_itemplugin.desktop
%{_kde4_servicetypesdir}/pigment.desktop
%{_kde4_servicetypesdir}/pigmentextension.desktop
%{_kde4_servicetypesdir}/presentationeventaction.desktop
%{_kde4_servicetypesdir}/scripteventaction.desktop
%{_kde4_servicetypesdir}/texteditingplugin.desktop
%{_kde4_servicetypesdir}/textvariableplugin.desktop

%files devel -f filelists/devel
%defattr(-,root,root,-)
%{_kde4_appsdir}/cmake/modules/FindCalligraLibs.cmake
%{_kde4_includedir}/*
%{_kde4_libdir}/libchartshapelib.so
%{_kde4_libdir}/libflake.so
%{_kde4_libdir}/libkdchart.so
%{_kde4_libdir}/libkformulalib.so
%{_kde4_libdir}/libkochart.so
%{_kde4_libdir}/libkokross.so
%{_kde4_libdir}/libkomain.so
%{_kde4_libdir}/libkoodf.so
%{_kde4_libdir}/libkopageapp.so
%{_kde4_libdir}/libkoplugin.so
%{_kde4_libdir}/libkoproperty.so
%{_kde4_libdir}/libkoreport.so
%{_kde4_libdir}/libkotext.so
%{_kde4_libdir}/libkowidgets.so
%{_kde4_libdir}/libkundo2.so
%{_kde4_libdir}/liblibwmf.so
%{_kde4_libdir}/libmsooxml.so
%{_kde4_libdir}/libpigmentcms.so
%{_kde4_libdir}/libtextlayout.so

%files braindump -f filelists/braindump
%defattr(-,root,root,-)
%doc braindump/COPYING
%dir %{_kde4_appsdir}/stateshape/
%dir %{_kde4_appsdir}/stateshape/states

%files flow -f filelists/flow
%defattr(-,root,root,-)
%doc flow/AUTHORS flow/CHANGELOG flow/CHANGES flow/LICENSE flow/NOTES flow/README
%{_kde4_iconsdir}/hicolor/*/apps/kivio.*

%files karbon -f filelists/karbon
%defattr(-,root,root,-)
%doc karbon/AUTHORS karbon/CHANGES karbon/COPYING.LIB karbon/IDEAS karbon/README karbon/TODO
%{_kde4_servicesdir}/ServiceMenus/karbon_konqi.desktop
%{_kde4_sharedir}/templates/Illustration.desktop
%{_kde4_sharedir}/templates/.source/Illustration.odg

%files kexi -f filelists/kexi
%defattr(-,root,root,-)
%doc kexi/CHANGES kexi/README
%{_kde4_iconsdir}/hicolor/*/apps/kexi.*
%dir %{_kde4_servicesdir}/kexi/
%dir %{_kde4_servicesdir}/kformdesigner/
# Included in kexi-*-driver packages
%if 0%{?suse_version} > 1140
%exclude %{_kde4_modulesdir}/kexi*_sybase*.so
%exclude %{_kde4_servicesdir}/kexi*_sybase*.desktop
%endif
%exclude %{_kde4_modulesdir}/kexi*_mysql*.so
%exclude %{_kde4_servicesdir}/kexi*_mysql*.desktop
%exclude %{_kde4_modulesdir}/kexi*_pqxx*.so
%exclude %{_kde4_servicesdir}/kexi*_pqxx*.desktop
%exclude %{_kde4_modulesdir}/kexi*_xbase*.so
%exclude %{_kde4_servicesdir}/kexi*_xbase*.desktop

%if 0%{?suse_version} > 1140
%files kexi-mssql-driver
%defattr(-,root,root,-)
%{_kde4_modulesdir}/kexidb_sybasedriver.so
%{_kde4_modulesdir}/keximigrate_sybase.so
%{_kde4_servicesdir}/kexidb_sybasedriver.desktop
%{_kde4_servicesdir}/keximigrate_sybase.desktop
%endif

%files kexi-mysql-driver
%defattr(-,root,root,-)
%{_kde4_modulesdir}/kexidb_mysqldriver.so
%{_kde4_modulesdir}/keximigrate_mysql.so
%{_kde4_servicesdir}/kexidb_mysqldriver.desktop
%{_kde4_servicesdir}/keximigrate_mysql.desktop

%files kexi-postgresql-driver
%defattr(-,root,root,-)
%{_kde4_modulesdir}/kexidb_pqxxsqldriver.so
%{_kde4_modulesdir}/keximigrate_pqxx.so
%{_kde4_servicesdir}/kexidb_pqxxsqldriver.desktop
%{_kde4_servicesdir}/keximigrate_pqxx.desktop

%files kexi-spreadsheet-import
%defattr(-,root,root,-)
%{_kde4_modulesdir}/keximigrate_spreadsheet.so
%{_kde4_servicesdir}/keximigrate_spreadsheet.desktop

%files kexi-xbase-driver
%defattr(-,root,root,-)
%{_kde4_modulesdir}/kexidb_xbasedriver.so
%{_kde4_modulesdir}/keximigrate_xbase.so
%{_kde4_servicesdir}/kexidb_xbasedriver.desktop
%{_kde4_servicesdir}/keximigrate_xbase.desktop

%files krita -f filelists/krita
%defattr(-,root,root,-)
%doc krita/AUTHORS krita/README
%dir %{_kde4_datadir}/color/icc/krita/
%dir %{_kde4_appsdir}/kritaplugins/
%dir %{_kde4_appsdir}/kritaplugins/metadataeditor
%{_kde4_servicesdir}/ServiceMenus/krita_konqi.desktop

%files plan -f filelists/plan
%defattr(-,root,root,-)
%doc plan/CHANGELOG plan/TODO plan/examples/
%{_kde4_appsdir}/planwork/
%dir %{_kde4_iconsdir}/hicolor/45x45
%dir %{_kde4_iconsdir}/hicolor/45x45/mimetypes
%dir %{_kde4_modulesdir}/planconvert/

%files stage -f filelists/stage
%defattr(-,root,root,-)
%doc stage/AUTHORS stage/CHANGES stage/TODO
%{_kde4_appsdir}/stage/kpartplugins/
%{_kde4_servicesdir}/ServiceMenus/kpresenter_konqi.desktop
%{_kde4_sharedir}/templates/Presentation.desktop
%{_kde4_sharedir}/templates/.source/Presentation.odp

%files sheets -f filelists/sheets
%defattr(-,root,root,-)
%doc sheets/AUTHORS sheets/CHANGES sheets/README sheets/TODO
%{_kde4_appsdir}/tables/
%{_kde4_appsdir}/tables/kpartplugins/
%{_kde4_servicesdir}/ServiceMenus/kspread_konqi.desktop
%{_kde4_sharedir}/templates/SpreadSheet.desktop
%{_kde4_sharedir}/templates/.source/SpreadSheet.ods

%files tools -f filelists/tools
%defattr(-,root,root,-)
# Included in karbon, stage, krita, sheets, words packages
%exclude %{_kde4_servicesdir}/ServiceMenus/karbon_konqi.desktop
%exclude %{_kde4_servicesdir}/ServiceMenus/kpresenter_konqi.desktop
%exclude %{_kde4_servicesdir}/ServiceMenus/krita_konqi.desktop
%exclude %{_kde4_servicesdir}/ServiceMenus/kspread_konqi.desktop
%exclude %{_kde4_servicesdir}/ServiceMenus/words_konqi.desktop

%files words -f filelists/words
%defattr(-,root,root,-)
%dir %{_kde4_appsdir}/words/html-odf
%{_kde4_appsdir}/words/kpartplugins/
%{_kde4_servicesdir}/ServiceMenus/words_konqi.desktop
%{_kde4_sharedir}/templates/TextDocument.desktop
%{_kde4_sharedir}/templates/.source/TextDocument.odt

%changelog