# TODO:
# - fix configure arguments (+ compare with FC)
# - create CoinMP library package for PLD (https://projects.coin-or.org/CoinMP)
+# - new language packs: ca@valencia, fy, kab, kmr@latin, sr@latin
#
# NOTE - FIXME FOR 3.4.3 !!!:
# - normal build (i686) requires about 27 GB of disk space:
# Conditional build:
%bcond_without java # without Java support (disables help support)
%bcond_without kde4 # KDE4 L&F packages
+%bcond_without kde5 # KDE5 L&F packages
%bcond_without gtk # GTK2 L&F
%bcond_with gtk3 # GTK3 L&F (experimental)
+%bcond_without qt5 # QT5 L&F
%bcond_with mono # enable compilation of mono bindings
%bcond_without mozilla # without mozilla components
%bcond_without i18n # do not create i18n packages (extra build time)
%undefine with_system_hsqldb
%endif
-%define major_ver 6.0.4
+%if %{with kde5}
+%define with_qt5 1
+%endif
+
+%define major_ver 6.2.3
+%define qt5_ver 5.6
Summary: LibreOffice - powerful office suite
Summary(pl.UTF-8): LibreOffice - potężny pakiet biurowy
Name: libreoffice
-Version: %{major_ver}.2
+Version: %{major_ver}.1
Release: 1
License: GPL/LGPL
Group: X11/Applications
Source0: http://download.documentfoundation.org/libreoffice/src/%{major_ver}/%{name}-%{version}.tar.xz
-# Source0-md5: 35cf97f2a9bd8fc173fc75b05e38bf29
+# Source0-md5: 317b0a49e4530e3024ef2387d1546052
Source1: http://download.documentfoundation.org/libreoffice/src/%{major_ver}/%{name}-dictionaries-%{version}.tar.xz
-# Source1-md5: 141cba04584b87f4bf77adf54293818c
+# Source1-md5: bc0df852dd2d8070183a9b1cc6eb5533
Source2: http://download.documentfoundation.org/libreoffice/src/%{major_ver}/%{name}-help-%{version}.tar.xz
-# Source2-md5: 0dd519a43ad53d0dbfcabbbebbd9ec2a
+# Source2-md5: f0c202f99e2ce5da1b50cf272b328784
Source3: http://download.documentfoundation.org/libreoffice/src/%{major_ver}/%{name}-translations-%{version}.tar.xz
-# Source3-md5: 8677d98f37ea964f9e5bdc7b83e9b9ff
+# Source3-md5: d0ce31efd93d4f8e0d292cfc58c98c80
# make (download|fetch) DO_FETCH_TARBALLS=1 WGET=wget
# but not sure if all are needed?
-Source20: http://dev-www.libreoffice.org/src/pdfium-3235.tar.bz2
-# Source20-md5: a7c08f44c6e2e1d7a71f7073cb9d5786
+Source20: http://dev-www.libreoffice.org/src/pdfium-3550.tar.bz2
+# Source20-md5: f30752217c6eb4f895a03c4f3c8c835b
Source21: http://dev-www.libreoffice.org/src/17410483b5b5f267aa18b7e00b65e6e0-hsqldb_1_8_0.zip
# Source21-md5: 17410483b5b5f267aa18b7e00b65e6e0
Source22: http://dev-www.libreoffice.org/src/CoinMP-1.7.6.tgz
# Source24-md5: 0168229624cfac409e766913506961a8
Source25: http://dev-www.libreoffice.org/src/35c94d2df8893241173de1d16b6034c0-swingExSrc.zip
# Source25-md5: 35c94d2df8893241173de1d16b6034c0
-Source26: https://dev-www.libreoffice.org/extern/odfvalidator-1.2.0-incubating-SNAPSHOT-jar-with-dependencies+ODFTOOLKIT-460+ODFTOOLKIT-461.jar
-# Source26-md5: f430ee376fea2bee62c8510d8b94e813
+Source26: https://dev-www.libreoffice.org/extern/odfvalidator-1.2.0-incubating-SNAPSHOT-jar-with-dependencies-971c54fd38a968f5860014b44301872706f9e540.jar
+# Source26-md5: 52edf061bc1063dd624cf69170db4d5f
Source27: http://dev-www.libreoffice.org/src/a7983f859eafb2677d7ff386a023bc40-xsltml_2.1.2.zip
# Source27-md5: a7983f859eafb2677d7ff386a023bc40
+Source28: https://dev-www.libreoffice.org/extern/49a64f3bcf20a7909ba2751349231d6652ded9cd2840e961b5164d09de3ffa63-opens___.ttf
+# Source28-md5: 8a1bf9fdd3ccd488d781956f73f2208d
Patch0: disable-failing-test.patch
BuildRequires: glib2-devel >= 2.13.5
BuildRequires: gperf
BuildRequires: gpgme-c++-devel
-BuildRequires: graphite2-devel
+BuildRequires: graphite2-devel >= 0.9.3
BuildRequires: gstreamer0.10-devel >= 0.10.0
BuildRequires: gstreamer0.10-plugins-base-devel >= 0.10.0
%{?with_gtk:BuildRequires: gtk+2-devel >= 2:2.10}
%{?with_gtk3:BuildRequires: gtk+3-devel}
-BuildRequires: harfbuzz-icu-devel
+BuildRequires: harfbuzz-icu-devel >= 0.9.42
%{?with_system_hunspell:BuildRequires: hunspell-devel >=1.2.2}
BuildRequires: hyphen-devel
%{?with_icecream:BuildRequires: icecream}
BuildRequires: liblangtag-devel
BuildRequires: libmspub-devel
BuildRequires: libmwaw-devel >= 0.3.0
+BuildRequires: libnumbertext-devel >= 1.0.0
BuildRequires: libodfgen-devel >= 0.1.1
-BuildRequires: liborcus-devel >= 0.13.3
+BuildRequires: liborcus-devel >= 0.14.0
BuildRequires: libpagemaker-devel >= 0.0.2
BuildRequires: libstaroffice-devel
BuildRequires: libvisio-devel
BuildRequires: libcdr-devel >= 0.0.8
BuildRequires: libcmis-devel >= 0.5
BuildRequires: libepubgen-devel >= 0.1.0
-BuildRequires: libexttextcat-devel
+BuildRequires: libexttextcat-devel >= 3.4.1
BuildRequires: libgltf-devel < 0.2.0
BuildRequires: libgltf-devel >= 0.1.0
%{?with_system_libhnj:BuildRequires: libhnj-devel}
BuildRequires: libxslt-devel
BuildRequires: libxslt-progs
%{?with_access:%{?with_system_mdbtools:BuildRequires: mdbtools-devel >= 0.6}}
-BuildRequires: mdds-devel >= 1.2
+BuildRequires: mdds-devel >= 1.4.1
%{?with_mono:BuildRequires: mono-csharp >= 1.2.3}
%{?with_mono:BuildRequires: mono-static >= 1.2.3}
%{?with_system_myspell:BuildRequires: myspell-devel}
BuildRequires: jdk >= 1.4.0_00
BuildRequires: jre-X11
%endif
+%if %{with kde5}
+BuildRequires: kf5-kconfig-devel
+BuildRequires: kf5-kcoreaddons-devel
+BuildRequires: kf5-ki18n-devel
+BuildRequires: kf5-kio-devel
+BuildRequires: kf5-kwindowsystem-devel
+BuildRequires: libxcb-devel
+%endif
+%if %{with qt5}
+BuildRequires: Qt5Core-devel >= %{qt5_ver}
+BuildRequires: Qt5Gui-devel >= %{qt5_ver}
+BuildRequires: Qt5Network-devel >= %{qt5_ver}
+BuildRequires: Qt5Widgets-devel >= %{qt5_ver}
+BuildRequires: qt5-build >= %{qt5_ver}
+BuildRequires: qt5-qmake >= %{qt5_ver}
+%endif
# contains (dlopened) *.so libs
BuildConflicts: java-gcj-compat
Requires: %{name}-base = %{version}-%{release}
- kontrola CVS,
- infrastruktura służąca do komunikowania się w ramach projektu.
-%package libs-kde
-Summary: LibreOffice KDE Interface
-Summary(pl.UTF-8): Interfejs KDE dla LibreOffice
+%package libs-kde4
+Summary: LibreOffice KDE 4 Interface
+Summary(pl.UTF-8): Interfejs KDE 4 dla LibreOffice
Group: X11/Libraries
Requires: %{name}-core = %{version}-%{release}
+Obsoletes: libreoffice-libs-kde < 6.2.3.1-2
Obsoletes: openoffice-i18n-en
Obsoletes: openoffice-i18n-en-kde
Obsoletes: openoffice-libs-kde
Obsoletes: openoffice.org-libs-kde
-%description libs-kde
-LibreOffice productivity suite - KDE Interface.
+%description libs-kde4
+LibreOffice productivity suite - KDE 4 Interface.
-%description libs-kde -l pl.UTF-8
-Pakiet biurowy LibreOffice - Interfejs KDE.
+%description libs-kde4 -l pl.UTF-8
+Pakiet biurowy LibreOffice - Interfejs KDE 4.
+
+%package libs-kde5
+Summary: LibreOffice KDE 5 Interface
+Summary(pl.UTF-8): Interfejs KDE 5 dla LibreOffice
+Group: X11/Libraries
+Requires: %{name}-core = %{version}-%{release}
+
+%description libs-kde5
+LibreOffice productivity suite - KDE 5 Interface.
+
+%description libs-kde5 -l pl.UTF-8
+Pakiet biurowy LibreOffice - Interfejs KDE 5.
%package libs-gtk
Summary: LibreOffice GTK+ Interface
%description libs-gtk -l pl.UTF-8
Pakiet biurowy LibreOffice - Interfejs GTK+.
+%package libs-qt5
+Summary: LibreOffice Qt5 Interface
+Summary(pl.UTF-8): Interfejs Qt5 dla LibreOffice
+Group: X11/Libraries
+Requires: %{name}-core = %{version}-%{release}
+
+%description libs-qt5
+LibreOffice productivity suite - Qt5 Interface.
+
+%description libs-qt5 -l pl.UTF-8
+Pakiet biurowy LibreOffice - Interfejs Qt5.
+
%package core
Summary: Core modules for LibreOffice
Summary(pl.UTF-8): Podstawowe moduły dla LibreOffice
ln %{SOURCE25} ext_sources
ln %{SOURCE26} ext_sources
ln %{SOURCE27} ext_sources
+ln %{SOURCE28} ext_sources
:> src.downloaded
%build
--enable-scripting-beanshell \
--enable-scripting-javascript \
--%{?with_kde4:en}%{!?with_kde4:dis}able-kde4 \
+ --%{?with_kde5:en}%{!?with_kde5:dis}able-kde5 \
+ --%{?with_qt5:en}%{!?with_qt5:dis}able-qt5 \
--with-lang=%{?with_i18n:ALL} \
%if %{with java}
--with-java \
%attr(755,root,root) %{_libdir}/%{name}/program/libcanvastoolslo.so
%attr(755,root,root) %{_libdir}/%{name}/program/libchartcontrollerlo.so
%attr(755,root,root) %{_libdir}/%{name}/program/libchartcorelo.so
-%attr(755,root,root) %{_libdir}/%{name}/program/libchartopengllo.so
%attr(755,root,root) %{_libdir}/%{name}/program/libcmdmaillo.so
%attr(755,root,root) %{_libdir}/%{name}/program/libcollator_data.so
%attr(755,root,root) %{_libdir}/%{name}/program/libcomphelper.so
%attr(755,root,root) %{_libdir}/%{name}/program/libmsfilterlo.so
%attr(755,root,root) %{_libdir}/%{name}/program/libmsformslo.so
%attr(755,root,root) %{_libdir}/%{name}/program/libmtfrendererlo.so
-%attr(755,root,root) %{_libdir}/%{name}/program/libmysqllo.so
+%attr(755,root,root) %{_libdir}/%{name}/program/libmysql_jdbclo.so
+%attr(755,root,root) %{_libdir}/%{name}/program/libmysqlclo.so
%attr(755,root,root) %{_libdir}/%{name}/program/libodbclo.so
%attr(755,root,root) %{_libdir}/%{name}/program/libodfflatxmllo.so
%attr(755,root,root) %{_libdir}/%{name}/program/liboffacclo.so
%attr(755,root,root) %{_libdir}/%{name}/program/libxmlsecurity.so
%attr(755,root,root) %{_libdir}/%{name}/program/libxoflo.so
%attr(755,root,root) %{_libdir}/%{name}/program/libxolo.so
-%attr(755,root,root) %{_libdir}/%{name}/program/libxsec_fw.so
%attr(755,root,root) %{_libdir}/%{name}/program/libxsec_xmlsec.so
%attr(755,root,root) %{_libdir}/%{name}/program/libxsltdlglo.so
%attr(755,root,root) %{_libdir}/%{name}/program/libxsltfilterlo.so
%{_libdir}/%{name}/program/opengl/areaHashCRC64TFragmentShader.glsl
%{_libdir}/%{name}/program/opengl/areaScaleFastFragmentShader.glsl
%{_libdir}/%{name}/program/opengl/areaScaleFragmentShader.glsl
-%{_libdir}/%{name}/program/opengl/backgroundFragmentShader.glsl
-%{_libdir}/%{name}/program/opengl/backgroundVertexShader.glsl
%{_libdir}/%{name}/program/opengl/basicFragmentShader.glsl
%{_libdir}/%{name}/program/opengl/basicVertexShader.glsl
%{_libdir}/%{name}/program/opengl/blendedTextureFragmentShader.glsl
%{_libdir}/%{name}/program/opengl/combinedTextureFragmentShader.glsl
%{_libdir}/%{name}/program/opengl/combinedTextureVertexShader.glsl
%{_libdir}/%{name}/program/opengl/combinedVertexShader.glsl
-%{_libdir}/%{name}/program/opengl/commonFragmentShader.glsl
-%{_libdir}/%{name}/program/opengl/commonVertexShader.glsl
%{_libdir}/%{name}/program/opengl/convolutionFragmentShader.glsl
-%{_libdir}/%{name}/program/opengl/debugFragmentShader.glsl
-%{_libdir}/%{name}/program/opengl/debugVertexShader.glsl
%{_libdir}/%{name}/program/opengl/diffTextureFragmentShader.glsl
%{_libdir}/%{name}/program/opengl/dissolveFragmentShader.glsl
%{_libdir}/%{name}/program/opengl/dumbVertexShader.glsl
%{_libdir}/%{name}/program/opengl/maskedTextureFragmentShader.glsl
%{_libdir}/%{name}/program/opengl/maskedTextureVertexShader.glsl
%{_libdir}/%{name}/program/opengl/maskFragmentShader.glsl
-%{_libdir}/%{name}/program/opengl/pickingFragmentShader.glsl
-%{_libdir}/%{name}/program/opengl/pickingVertexShader.glsl
%{_libdir}/%{name}/program/opengl/radialGradientFragmentShader.glsl
%{_libdir}/%{name}/program/opengl/radialMultiColorGradientFragmentShader.glsl
%{_libdir}/%{name}/program/opengl/radialTwoColorGradientFragmentShader.glsl
%{_libdir}/%{name}/program/opengl/rectangularTwoColorGradientFragmentShader.glsl
%{_libdir}/%{name}/program/opengl/reflectionFragmentShader.glsl
%{_libdir}/%{name}/program/opengl/reflectionVertexShader.glsl
-%{_libdir}/%{name}/program/opengl/renderTextureFragmentShader.glsl
-%{_libdir}/%{name}/program/opengl/renderTextureVertexShader.glsl
%{_libdir}/%{name}/program/opengl/replaceColorFragmentShader.glsl
%{_libdir}/%{name}/program/opengl/rippleFragmentShader.glsl
-%{_libdir}/%{name}/program/opengl/screenTextFragmentShader.glsl
-%{_libdir}/%{name}/program/opengl/screenTextVertexShader.glsl
-%{_libdir}/%{name}/program/opengl/shape3DFragmentShaderBatch.glsl
-%{_libdir}/%{name}/program/opengl/shape3DFragmentShaderBatchScroll.glsl
-%{_libdir}/%{name}/program/opengl/shape3DFragmentShader.glsl
-%{_libdir}/%{name}/program/opengl/shape3DFragmentShaderV300.glsl
-%{_libdir}/%{name}/program/opengl/shape3DVertexShaderBatch.glsl
-%{_libdir}/%{name}/program/opengl/shape3DVertexShaderBatchScroll.glsl
-%{_libdir}/%{name}/program/opengl/shape3DVertexShader.glsl
-%{_libdir}/%{name}/program/opengl/shape3DVertexShaderV300.glsl
%{_libdir}/%{name}/program/opengl/solidFragmentShader.glsl
%{_libdir}/%{name}/program/opengl/staticFragmentShader.glsl
-%{_libdir}/%{name}/program/opengl/symbolFragmentShader.glsl
-%{_libdir}/%{name}/program/opengl/symbolVertexShader.glsl
-%{_libdir}/%{name}/program/opengl/textFragmentShaderBatch.glsl
-%{_libdir}/%{name}/program/opengl/textFragmentShader.glsl
%{_libdir}/%{name}/program/opengl/textureFragmentShader.glsl
%{_libdir}/%{name}/program/opengl/textureVertexShader.glsl
-%{_libdir}/%{name}/program/opengl/textVertexShaderBatch.glsl
-%{_libdir}/%{name}/program/opengl/textVertexShader.glsl
%{_libdir}/%{name}/program/opengl/transformedTextureVertexShader.glsl
%{_libdir}/%{name}/program/opengl/vortexFragmentShader.glsl
%{_libdir}/%{name}/program/opengl/vortexGeometryShader.glsl
%dir %{_datadir}/%{name}/share/config
%{_datadir}/%{name}/share/config/images_breeze.zip
%{_datadir}/%{name}/share/config/images_breeze_dark.zip
+%{_datadir}/%{name}/share/config/images_breeze_svg.zip
+%{_datadir}/%{name}/share/config/images_colibre.zip
+%{_datadir}/%{name}/share/config/images_colibre_svg.zip
%{_datadir}/%{name}/share/config/images_elementary.zip
-%{_datadir}/%{name}/share/config/images_galaxy.zip
-%{_datadir}/%{name}/share/config/images_hicontrast.zip
+%{_datadir}/%{name}/share/config/images_elementary_svg.zip
+%{_datadir}/%{name}/share/config/images_karasa_jaga.zip
%{_datadir}/%{name}/share/config/images_sifr.zip
%{_datadir}/%{name}/share/config/images_sifr_dark.zip
%{_datadir}/%{name}/share/config/images_tango.zip
%{_datadir}/%{name}/share/template/common/wizard/styles
%dir %{_datadir}/%{name}/share/wizards
+%{_datadir}/%{name}/share/wizards/resources_en_US.properties
%dir %{_datadir}/%{name}/share/wordbook
%{_datadir}/%{name}/share/wordbook/en-GB.dic
%{_datadir}/%{name}/share/wordbook/en-US.dic
+%{_datadir}/%{name}/share/wordbook/hu_AkH11.dic
%{_datadir}/%{name}/share/wordbook/sl.dic
%{_datadir}/%{name}/share/wordbook/technical.dic
%dir %{_datadir}/%{name}/readmes
%{_datadir}/%{name}/readmes/README_en-US
+%{_datadir}/%{name}/share/libreofficekit
+
%{_datadir}/mime/packages/libreoffice.xml
%{_iconsdir}/hicolor/*/mimetypes/libreoffice-*.png
%{_iconsdir}/hicolor/*/mimetypes/libreoffice-*.svg
%{_iconsdir}/hicolor/*/apps/libreoffice-main.png
%{_iconsdir}/hicolor/*/apps/libreoffice-main.svg
+%{_iconsdir}/hicolor/*/apps/libreoffice-chart.png
+%{_iconsdir}/hicolor/*/apps/libreoffice-chart.svg
+%{_iconsdir}/hicolor/*/apps/libreoffice-basic.svg
+%{_iconsdir}/hicolor/*/apps/libreoffice-extension.svg
%{_desktopdir}/libreoffice-startcenter.desktop
-%{_desktopdir}/libreoffice-qstart.desktop
%{_iconsdir}/hicolor/*/apps/libreoffice-startcenter.png
%{_iconsdir}/hicolor/*/apps/libreoffice-startcenter.svg
+%{_datadir}/mime-info/libreoffice.keys
+%{_datadir}/mime-info/libreoffice.mime
+
%{_mandir}/man1/loffice.1
%{_mandir}/man1/lofromtemplate.1
%{_mandir}/man1/libreoffice.1*
%{_mandir}/man1/unopkg.1*
%if %{with kde4}
-%files libs-kde
+%files libs-kde4
%defattr(644,root,root,755)
%attr(755,root,root) %{_libdir}/%{name}/program/libvclplug_kde4*.so
%attr(755,root,root) %{_libdir}/%{name}/program/libkde4be1lo.so
%endif
+%if %{with kde5}
+%files libs-kde5
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/%{name}/program/libvclplug_kde5*.so
+%attr(755,root,root) %{_libdir}/%{name}/program/libkde5be1lo.so
+%endif
+
%if %{with gtk} || %{with gtk3}
%files libs-gtk
%defattr(644,root,root,755)
-%attr(755,root,root) %{_libdir}/%{name}/program/libqstart_gtklo.so
%attr(755,root,root) %{_libdir}/%{name}/program/libvclplug_gtk*.so
%{_datadir}/%{name}/share/registry/gnome.xcd
%endif
+%if %{with qt5}
+%files libs-qt5
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/%{name}/program/libvclplug_qt5*.so
+%endif
+
%files base
%defattr(644,root,root,755)
%attr(755,root,root) %{_bindir}/lobase
%{_iconsdir}/hicolor/*/apps/libreoffice-base.png
%{_iconsdir}/hicolor/*/apps/libreoffice-base.svg
%attr(755,root,root) %{_libdir}/%{name}/program/libabplo.so
+%attr(755,root,root) %{_libdir}/%{name}/program/libdbahsqllo.so
%attr(755,root,root) %{_libdir}/%{name}/program/libdbplo.so
+%attr(755,root,root) %{_libdir}/%{name}/program/libnumbertextlo.so
%attr(755,root,root) %{_libdir}/%{name}/program/librptlo.so
%attr(755,root,root) %{_libdir}/%{name}/program/librptuilo.so
%attr(755,root,root) %{_libdir}/%{name}/program/librptxmllo.so