# TODO:
# - fix configure arguments (+ compare with FC)
# - create CoinMP library package for PLD (https://projects.coin-or.org/CoinMP)
-# - new language packs: ca@valencia, kmr@latin, sr@latin
+# - new language packs: ca@valencia, kmr@latin, sr@latin, szl
+# - create qrcodegen library package for PLD
#
# 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 kde5 # KDE5 L&F packages
-%bcond_without gtk # GTK2 L&F
%bcond_without gtk3 # GTK3 L&F
%bcond_without qt5 # QT5 L&F
%bcond_with mono # enable compilation of mono bindings
%bcond_with msaccess # with ms access import pieces
%bcond_without parallelbuild # use greater number of jobs to speed up build (default: 1)
%bcond_with tests
+%bcond_without firebird # without Firebird-SDBC driver
+%bcond_without pgsql # without PostgreSQL-SDBC driver
%bcond_without system_beanshell
%bcond_without system_db # without system (i.e. with internal) Berkeley DB
%bcond_with system_hsqldb
%bcond_with system_agg # with system agg
%bcond_without system_hunspell
-%bcond_without system_myspell
+%bcond_with system_qrcodegen # use system qrcodegen library (not in PLD yet)
# this list is same as icedtea6
-%ifnarch i486 i586 i686 pentium3 pentium4 athlon %{x8664}
+%ifnarch i486 i586 i686 pentium3 pentium4 athlon %{x8664} aarch64
%undefine with_java
%endif
%define with_qt5 1
%endif
-%define major_ver 6.3.0
+%define major_ver 6.4.5
%define qt5_ver 5.6
Summary: LibreOffice - powerful office suite
Summary(pl.UTF-8): LibreOffice - potężny pakiet biurowy
Name: libreoffice
-Version: %{major_ver}.4
-Release: 2
+Version: %{major_ver}.2
+Release: 3
License: GPL/LGPL
Group: X11/Applications
Source0: http://download.documentfoundation.org/libreoffice/src/%{major_ver}/%{name}-%{version}.tar.xz
-# Source0-md5: d24bd7e5116743196c67e7df4b18458f
+# Source0-md5: 7305ed1b5774483ca9ca0d6906d8049a
Source1: http://download.documentfoundation.org/libreoffice/src/%{major_ver}/%{name}-dictionaries-%{version}.tar.xz
-# Source1-md5: 81df66dd522a2c56a4f11b24247fb114
+# Source1-md5: f4a3d9dcca02542ec149057d869c8c64
Source2: http://download.documentfoundation.org/libreoffice/src/%{major_ver}/%{name}-help-%{version}.tar.xz
-# Source2-md5: 483f654eaa94f17c462494029d42334a
+# Source2-md5: 19da65b2748531e85740163fc9695f00
Source3: http://download.documentfoundation.org/libreoffice/src/%{major_ver}/%{name}-translations-%{version}.tar.xz
-# Source3-md5: 21459291d488ecd7e4e8fb0fdcc55aca
+# Source3-md5: 58771e45d87413f96a33e35d821a8122
# make (download|fetch) DO_FETCH_TARBALLS=1 WGET=wget
# but not sure if all are needed?
-Source20: http://dev-www.libreoffice.org/src/pdfium-3794.tar.bz2
-# Source20-md5: 4c11c2a0c6a6469ba5c097c755e06fed
+Source20: http://dev-www.libreoffice.org/src/pdfium-3963.tar.bz2
+# Source20-md5: 7688ac08e1292cf7e0d027f506f45c49
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
# Source27-md5: a7983f859eafb2677d7ff386a023bc40
Source28: https://dev-www.libreoffice.org/extern/884ed41809687c3e168fc7c19b16585149ff058eca79acbf3ee784f6630704cc-opens___.ttf
# Source28-md5: 866ba2ca4188f1610b121dfd514a17e8
+Source29: https://dev-www.libreoffice.org/src/QR-Code-generator-1.4.0.tar.gz
+# Source29-md5: 0e81d36829be287ff27ae802e0587463
+Source30: https://dev-www.libreoffice.org/extern/8249374c274932a21846fa7629c2aa9b-officeotron-0.7.4-master.jar
+# Source30-md5: 8249374c274932a21846fa7629c2aa9b
Patch0: disable-failing-test.patch
URL: http://www.documentfoundation.org/
BuildRequires: /usr/bin/getopt
-BuildRequires: Firebird-devel >= 3.0.0.0
+%{?with_firebird:BuildRequires: Firebird-devel >= 3.0.0.0}
BuildRequires: GConf2-devel
BuildRequires: GLM
BuildRequires: ImageMagick
BuildRequires: gperf
BuildRequires: gpgme-c++-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}
+BuildRequires: gstreamer-devel >= 1.0
+BuildRequires: gstreamer-plugins-base-devel >= 1.0
%{?with_gtk3:BuildRequires: gtk+3-devel}
BuildRequires: harfbuzz-icu-devel >= 0.9.42
-%{?with_system_hunspell:BuildRequires: hunspell-devel >=1.2.2}
+%{?with_system_hunspell:BuildRequires: hunspell-devel >= 1.2.2}
BuildRequires: hyphen-devel
%{?with_icecream:BuildRequires: icecream}
BuildRequires: icu
BuildRequires: libmwaw-devel >= 0.3.0
BuildRequires: libnumbertext-devel >= 1.0.0
BuildRequires: libodfgen-devel >= 0.1.1
-BuildRequires: liborcus-devel >= 0.14.0
+BuildRequires: liborcus-devel >= 0.15.0
BuildRequires: libpagemaker-devel >= 0.0.2
BuildRequires: libstaroffice-devel
BuildRequires: libvisio-devel
BuildRequires: libwps-devel >= 0.3.0
BuildRequires: libzmf-devel
BuildRequires: lp_solve-devel
-BuildRequires: silgraphite-devel
BuildRequires: java-libxml
BuildRequires: java-sac
%{?with_system_xalan:BuildRequires: java-xalan}
-%{?with_system_xalan:BuildRequires: java-xalan}
BuildRequires: libart_lgpl-devel
-BuildRequires: libbonobo-devel >= 2.0
BuildRequires: libcdr-devel >= 0.0.8
BuildRequires: libcmis-devel >= 0.5
BuildRequires: libepubgen-devel >= 0.1.0
BuildRequires: libxslt-devel
BuildRequires: libxslt-progs
%{?with_access:%{?with_system_mdbtools:BuildRequires: mdbtools-devel >= 0.6}}
-BuildRequires: mdds-devel >= 1.4.1
+BuildRequires: mdds-devel >= 1.5.0
%{?with_mono:BuildRequires: mono-csharp >= 1.2.3}
%{?with_mono:BuildRequires: mono-static >= 1.2.3}
-%{?with_system_myspell:BuildRequires: myspell-devel}
+BuildRequires: mysql-devel
BuildRequires: mythes-devel
BuildRequires: nas-devel >= 1.7-1
BuildRequires: neon-devel
BuildRequires: pkgconfig
BuildRequires: poppler-cpp-devel >= 0.8.0
BuildRequires: poppler-devel >= 0.8.0
-BuildRequires: portaudio-devel
-BuildRequires: postgresql-devel
+%{?with_pgsql:BuildRequires: postgresql-devel}
BuildRequires: python3 >= 1:3.3
BuildRequires: python3-devel >= 1:3.3
+BuildRequires: python3-lxml
BuildRequires: python3-modules >= 1:3.3
BuildRequires: redland-devel >= 1.0.16
BuildRequires: rpm-pythonprov
BuildRequires: startup-notification-devel >= 0.5
BuildRequires: unixODBC-devel >= 2.2.12-2
BuildRequires: unzip
-BuildRequires: vigra-devel
-BuildRequires: xmlsec1-nss-devel >= 1.2.24
+BuildRequires: xmlsec1-nss-devel >= 1.2.28
BuildRequires: xorg-font-font-adobe-utopia-type1
BuildRequires: xorg-lib-libX11-devel
BuildRequires: xorg-lib-libXaw-devel
Requires: %{name}-impress = %{version}-%{release}
Requires: %{name}-math = %{version}-%{release}
Requires: %{name}-pdfimport = %{version}-%{release}
-Requires: %{name}-postgresql = %{version}-%{release}
+%{?with_pgsql:Requires: %{name}-postgresql = %{version}-%{release}}
Requires: %{name}-pyuno = %{version}-%{release}
Requires: %{name}-web = %{version}-%{release}
Requires: %{name}-wiki-publisher = %{version}-%{release}
Obsoletes: libreoffice-testtools
Obsoletes: openoffice.org
Obsoletes: openoffice.org-testtools
-ExclusiveArch: %{ix86} %{x8664} ppc sparc sparcv9
+ExclusiveArch: %{ix86} %{x8664} ppc sparc sparcv9 aarch64
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%define specflags -fno-strict-aliasing -O2
%description libs-kde5 -l pl.UTF-8
Pakiet biurowy LibreOffice - Interfejs KDE 5.
-%package libs-gtk-common
-Summary: Common files for LibreOffice GTK+ Interface
-Summary(pl.UTF-8): Pakiet wspólny dla interfejsów GTK+ dla LibreOffice
-Group: X11/Libraries
-Requires: %{name}-core = %{version}-%{release}
-%if "%{_rpmversion}" >= "5"
-BuildArch: noarch
-%endif
-
-%description libs-gtk-common
-Common files for LibreOffice GTK+ Interface.
-
-%description libs-gtk-common -l pl.UTF-8
-Pakiet wspólny dla interfejsów GTK+ dla LibreOffice.
-
-%package libs-gtk2
-Summary: LibreOffice GTK+ 2 Interface
-Summary(pl.UTF-8): Interfejs GTK+ 2 dla LibreOffice
-Group: X11/Libraries
-Requires: %{name}-core = %{version}-%{release}
-Requires: %{name}-libs-gtk-common = %{version}-%{release}
-Obsoletes: libreoffice-libs-gtk < 6.2.3.1-2
-Obsoletes: openoffice-i18n-en
-Obsoletes: openoffice-i18n-en-gtk
-Obsoletes: openoffice-libs-gtk
-Obsoletes: openoffice.org-libs-gtk
-
-%description libs-gtk2
-LibreOffice productivity suite - GTK+ 2 Interface.
-
-%description libs-gtk2 -l pl.UTF-8
-Pakiet biurowy LibreOffice - Interfejs GTK+ 2.
-
%package libs-gtk3
Summary: LibreOffice GTK+ 3 Interface
Summary(pl.UTF-8): Interfejs GTK+ 3 dla LibreOffice
Group: X11/Libraries
Requires: %{name}-core = %{version}-%{release}
-Requires: %{name}-libs-gtk-common = %{version}-%{release}
+Obsoletes: libreoffice-libs-gtk-common < 6.4.5.2-1
+Obsoletes: libreoffice-libs-gtk2 < 6.4.5.2-1
%description libs-gtk3
LibreOffice productivity suite - GTK+ 3 Interface.
ln %{SOURCE26} ext_sources
ln %{SOURCE27} ext_sources
ln %{SOURCE28} ext_sources
+ln %{SOURCE29} ext_sources
+ln %{SOURCE30} ext_sources
:> src.downloaded
%build
%{?with_system_beanshell:--with-system-beanshell} \
--with%{!?with_system_hsqldb:out}-system-hsqldb \
%{?with_system_hunspell:--with-system-hunspell --without-myspell-dicts} \
+ --with%{!?with_system_qrcodegen:out}-system-qrcodegen \
%{?with_system_libhnj:--with-system-altlinuxhyphen} \
- %{?with_msaccess:--with%{!?with_system_mdbtools:out}-system-mdbtools}} \
+ %{?with_msaccess:--with%{!?with_system_mdbtools:out}-system-mdbtools} \
--enable-python=system \
--with-external-dict-dir=%{_datadir}/myspell \
--with-external-tar=$(pwd)/ext_sources \
--enable-report-builder \
--enable-scripting-beanshell \
--enable-scripting-javascript \
- --%{?with_kde5:en}%{!?with_kde5:dis}able-kde5 \
+ --%{?with_kde5:en}%{!?with_kde5:dis}able-kf5 \
--%{?with_qt5:en}%{!?with_qt5:dis}able-qt5 \
--with-lang=%{?with_i18n:ALL} \
%if %{with java}
--with-x \
--without-fonts \
--disable-epm \
- --%{?with_gtk:en}%{!?with_gtk:dis}able-gtk \
--%{?with_gtk3:en}%{!?with_gtk3:dis}able-gtk3 \
--enable-dbus \
--with-system-openldap \
--enable-split-app-modules \
--enable-split-opt-features \
--enable-cups \
+ %{__enable_disable firebird firebird-sdbc} \
+ %{__enable_disable pgsql postgresql-sdbc} \
+ --enable-gstreamer-1-0 \
--disable-fetch-external
# this limits processing some files but doesn't limit parallel build
%attr(755,root,root) %{_libdir}/%{name}/program/libdbalo.so
%attr(755,root,root) %{_libdir}/%{name}/program/libdbaselo.so
%attr(755,root,root) %{_libdir}/%{name}/program/libdbaxmllo.so
-%attr(755,root,root) %{_libdir}/%{name}/program/libdbmmlo.so
%attr(755,root,root) %{_libdir}/%{name}/program/libdbpool2.so
%attr(755,root,root) %{_libdir}/%{name}/program/libdbtoolslo.so
%attr(755,root,root) %{_libdir}/%{name}/program/libdbulo.so
%attr(755,root,root) %{_libdir}/%{name}/program/libexpwraplo.so
%attr(755,root,root) %{_libdir}/%{name}/program/libfilelo.so
%attr(755,root,root) %{_libdir}/%{name}/program/libfilterconfiglo.so
-%attr(755,root,root) %{_libdir}/%{name}/program/libfirebird_sdbclo.so
+%{?with_firebird:%attr(755,root,root) %{_libdir}/%{name}/program/libfirebird_sdbclo.so}
%attr(755,root,root) %{_libdir}/%{name}/program/libflatlo.so
%attr(755,root,root) %{_libdir}/%{name}/program/libforlo.so
%attr(755,root,root) %{_libdir}/%{name}/program/libforuilo.so
%attr(755,root,root) %{_libdir}/%{name}/program/pagein*
%attr(755,root,root) %{_libdir}/%{name}/program/senddoc
%attr(755,root,root) %{_libdir}/%{name}/program/uri-encode
-%attr(755,root,root) %{_libdir}/%{name}/program/xid-fullscreen-on-all-monitors
%if %{with java}
%attr(755,root,root) %{_libdir}/%{name}/program/libhsqldb.so
%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_dark_svg.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_elementary_svg.zip
%{_datadir}/%{name}/share/config/images_karasa_jaga.zip
+%{_datadir}/%{name}/share/config/images_karasa_jaga_svg.zip
%{_datadir}/%{name}/share/config/images_sifr.zip
%{_datadir}/%{name}/share/config/images_sifr_dark.zip
+%{_datadir}/%{name}/share/config/images_sifr_dark_svg.zip
%{_datadir}/%{name}/share/config/images_sifr_svg.zip
%{_datadir}/%{name}/share/config/images_tango.zip
%dir %{_datadir}/%{name}/share/config/soffice.cfg
%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-common
-%defattr(644,root,root,755)
-%{_datadir}/%{name}/share/registry/gnome.xcd
-%endif
-
-%if %{with gtk}
-%files libs-gtk2
-%defattr(644,root,root,755)
-%attr(755,root,root) %{_libdir}/%{name}/program/libvclplug_gtklo.so
+%attr(755,root,root) %{_libdir}/%{name}/program/libvclplug_kf5*.so
+%attr(755,root,root) %{_libdir}/%{name}/program/libkf5be1lo.so
%endif
%if %{with gtk3}
%files libs-gtk3
%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/%{name}/program/liblibreofficekitgtk.so
%attr(755,root,root) %{_libdir}/%{name}/program/libvclplug_gtk3lo.so
+%{_datadir}/%{name}/share/registry/gnome.xcd
+# devel stuff?
+#%{_datadir}/gir-1.0/LOKDocView-0.1.gir
%endif
%if %{with qt5}
%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
+%{_libdir}/%{name}/program/access2base.py
%{_datadir}/%{name}/share/config/soffice.cfg/modules/dbapp/menubar
%{_datadir}/%{name}/share/config/soffice.cfg/modules/dbapp/popupmenu
%{_datadir}/%{name}/share/config/soffice.cfg/modules/dbapp/statusbar
%{_datadir}/%{name}/share/xslt/export/xhtml
%{_desktopdir}/libreoffice-xsltfilter.desktop
+%if %{with pgsql}
%files postgresql
%defattr(644,root,root,755)
%{_libdir}/%{name}/program/postgresql-sdbc.ini
%{_datadir}/%{name}/share/registry/postgresql.xcd
%attr(755,root,root) %{_libdir}/%{name}/program/libpostgresql-sdbclo.so
%attr(755,root,root) %{_libdir}/%{name}/program/libpostgresql-sdbc-impllo.so
+%endif
%files ure
%defattr(644,root,root,755)