File calligra-doc.spec of Package calligra
#
# spec file for package calligra-doc
#
# 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-doc
Version: 2.4.2
Release: 0
Summary: Documentation of the Calligra Suite
License: GFDL-1.2
Group: Documentation/HTML
Url: http://www.calligra.org/
Source0: ftp://ftp.kde.org/pub/kde/unstable/calligra-%{version}/calligra-%{version}.tar.bz2
BuildRequires: Mesa-devel
BuildRequires: OpenEXR-devel
%if 0%{?suse_version} > 1210
BuildRequires: OpenGTL-devel
BuildRequires: create-resources
BuildRequires: dcmtk-devel
%endif
BuildRequires: fdupes
BuildRequires: fftw3-devel
%if 0%{?suse_version} > 1140
BuildRequires: freetds-devel
%endif
BuildRequires: glew-devel
BuildRequires: gsl-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
%if 0%{?suse_version} > 1130
BuildRequires: liblcms2-devel
%endif
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
BuildRequires: libwpd-devel
BuildRequires: libwpg-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
Requires: calligra = %{version}
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
%description
Documentation of the Calligra Office Suite applications.
%prep
%setup -q -n calligra-%{version}
%build
%cmake_kde4 -d build -- -DBUILD_mobile=false -DBUILD_active=false -DIHAVEPATCHEDQT=TRUE
cd doc
make
cd ..
%install
cd build/doc
%kde4_makeinstall
rm %{buildroot}%{_kde4_applicationsdir}/calligra.desktop
cd ..
%files
%defattr(-,root,root,-)
%doc COPYING COPYING.DOC README
%doc %lang(en) %{_kde4_htmldir}/en/calligra/
%doc %lang(en) %{_kde4_htmldir}/en/kexi/
%doc %lang(en) %{_kde4_htmldir}/en/sheets/
%doc %lang(en) %{_kde4_htmldir}/en/stage/
%doc %lang(en) %{_kde4_htmldir}/en/thesaurus/
%changelog