# 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
+# - new language packs: ca@valencia, 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_without gtk3 # GTK3 L&F
%bcond_without system_myspell
# 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.2.3
+%define major_ver 6.3.0
%define qt5_ver 5.6
Summary: LibreOffice - powerful office suite
Summary(pl.UTF-8): LibreOffice - potężny pakiet biurowy
Name: libreoffice
-Version: %{major_ver}.1
-Release: 1
+Version: %{major_ver}.4
+Release: 4
License: GPL/LGPL
Group: X11/Applications
Source0: http://download.documentfoundation.org/libreoffice/src/%{major_ver}/%{name}-%{version}.tar.xz
-# Source0-md5: 317b0a49e4530e3024ef2387d1546052
+# Source0-md5: d24bd7e5116743196c67e7df4b18458f
Source1: http://download.documentfoundation.org/libreoffice/src/%{major_ver}/%{name}-dictionaries-%{version}.tar.xz
-# Source1-md5: bc0df852dd2d8070183a9b1cc6eb5533
+# Source1-md5: 81df66dd522a2c56a4f11b24247fb114
Source2: http://download.documentfoundation.org/libreoffice/src/%{major_ver}/%{name}-help-%{version}.tar.xz
-# Source2-md5: f0c202f99e2ce5da1b50cf272b328784
+# Source2-md5: 483f654eaa94f17c462494029d42334a
Source3: http://download.documentfoundation.org/libreoffice/src/%{major_ver}/%{name}-translations-%{version}.tar.xz
-# Source3-md5: d0ce31efd93d4f8e0d292cfc58c98c80
+# Source3-md5: 21459291d488ecd7e4e8fb0fdcc55aca
# make (download|fetch) DO_FETCH_TARBALLS=1 WGET=wget
# but not sure if all are needed?
-Source20: http://dev-www.libreoffice.org/src/pdfium-3550.tar.bz2
-# Source20-md5: f30752217c6eb4f895a03c4f3c8c835b
+Source20: http://dev-www.libreoffice.org/src/pdfium-3794.tar.bz2
+# Source20-md5: 4c11c2a0c6a6469ba5c097c755e06fed
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
# 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
+Source28: https://dev-www.libreoffice.org/extern/884ed41809687c3e168fc7c19b16585149ff058eca79acbf3ee784f6630704cc-opens___.ttf
+# Source28-md5: 866ba2ca4188f1610b121dfd514a17e8
Patch0: disable-failing-test.patch
+Patch1: mdds-1.5-orcus-0.15.patch
+Patch2: poppler-0.82.patch
+Patch3: poppler-0.83.patch
+Patch4: poppler-0.86.patch
URL: http://www.documentfoundation.org/
BuildRequires: /usr/bin/getopt
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: libzmf-devel
BuildRequires: lp_solve-devel
BuildRequires: silgraphite-devel
-%if %{with kde4}
-BuildRequires: kde4-kdelibs-devel
-BuildRequires: qt4-build
-%endif
BuildRequires: java-libxml
BuildRequires: java-sac
%{?with_system_xalan:BuildRequires: java-xalan}
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: poppler-devel >= 0.8.0
BuildRequires: portaudio-devel
BuildRequires: postgresql-devel
-BuildRequires: python3 >= 3.3
-BuildRequires: python3-devel >= 3.3
-BuildRequires: python3-modules >= 3.3
+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: rpmbuild(macros) >= 1.660
BuildRequires: Qt5Gui-devel >= %{qt5_ver}
BuildRequires: Qt5Network-devel >= %{qt5_ver}
BuildRequires: Qt5Widgets-devel >= %{qt5_ver}
+BuildRequires: Qt5X11Extras-devel >= %{qt5_ver}
BuildRequires: qt5-build >= %{qt5_ver}
BuildRequires: qt5-qmake >= %{qt5_ver}
%endif
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
- kontrola CVS,
- infrastruktura służąca do komunikowania się w ramach projektu.
-%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-kde4
-LibreOffice productivity suite - KDE 4 Interface.
-
-%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}
+Obsoletes: libreoffice-libs-kde < 6.2.3.1-2
+Obsoletes: libreoffice-libs-kde4 < 6.3.0-1
%description libs-kde5
LibreOffice productivity suite - KDE 5 Interface.
Ten pakiet dostarcza zasoby zawierające menu i okna dialogowe w języku
dogri.
+%package i18n-dsb
+Summary: LibreOffice - interface in Lower Sorbian language
+Summary(pl.UTF-8): LibreOffice - interfejs w języku dolnołużyckim
+Group: I18n
+Requires: %{name}-core = %{version}-%{release}
+Obsoletes: openoffice.org-i18n-dsb
+%if "%{_rpmversion}" >= "5"
+BuildArch: noarch
+%endif
+
+%description i18n-dsb
+This package provides resources containing menus and dialogs in
+Lower Sorbian language.
+
+%description i18n-dsb -l pl.UTF-8
+Ten pakiet dostarcza zasoby zawierające menu i okna dialogowe w języku
+dolnołużyckim.
+
%package i18n-dz
Summary: LibreOffice - interface in Dzongkha language
Summary(pl.UTF-8): Openoffice.org - interfejs w języku dżongkha
Ten pakiet dostarcza zasoby zawierające menu i okna dialogowe w języku
francuskim.
+%package i18n-fy
+Summary: LibreOffice - interface in Frisian language
+Summary(pl.UTF-8): LibreOffice - interfejs w języku fryzyjskim
+Group: I18n
+Requires: %{name}-core = %{version}-%{release}
+Obsoletes: openoffice-i18n-fy
+Obsoletes: openoffice-i18n-fy-gtk
+Obsoletes: openoffice.org-i18n-fy
+Obsoletes: openoffice.org-i18n-fy-gtk
+Obsoletes: openoffice.org-i18n-fy-kde
+%if "%{_rpmversion}" >= "5"
+BuildArch: noarch
+%endif
+
+%description i18n-fy
+This package provides resources containing menus and dialogs in
+Frisian language.
+
+%description i18n-fy -l pl.UTF-8
+Ten pakiet dostarcza zasoby zawierające menu i okna dialogowe w języku
+fryzyjskim.
+
%package i18n-ga
Summary: LibreOffice - interface in Irish language
Summary(pl.UTF-8): LibreOffice - interfejs w języku irlandzkim
Ten pakiet dostarcza zasoby zawierające menu i okna dialogowe w języku
gruzińskim.
+%package i18n-kab
+Summary: LibreOffice - interface in Kabyle language
+Summary(pl.UTF-8): LibreOffice - interfejs w języku kabylskim
+Group: I18n
+Requires: %{name}-core = %{version}-%{release}
+Obsoletes: openoffice.org-i18n-kab
+%if "%{_rpmversion}" >= "5"
+BuildArch: noarch
+%endif
+
+%description i18n-kab
+This package provides resources containing menus and dialogs in
+Kabyle language.
+
+%description i18n-kab -l pl.UTF-8
+Ten pakiet dostarcza zasoby zawierające menu i okna dialogowe w języku
+kabylskim.
+
%package i18n-kk
Summary: LibreOffice - interface in Kazakh language
Summary(pl.UTF-8): LibreOffice - interfejs w języku kazachskim
%prep
%setup -q -a1 -a2 -a3
%patch0 -p1
+%patch1 -p1
+%patch2 -p1
+%patch3 -p1
+%patch4 -p1
for dir in *-%{version}; do
[ -f $dir/ChangeLog ] && mv $dir/ChangeLog ChangeLog-$dir
--enable-report-builder \
--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} \
%attr(755,root,root) %{_libdir}/%{name}/program/libpdfiumlo.so
%attr(755,root,root) %{_libdir}/%{name}/program/libpricinglo.so
%attr(755,root,root) %{_libdir}/%{name}/program/libprotocolhandlerlo.so
-%attr(755,root,root) %{_libdir}/%{name}/program/librecentfile.so
%attr(755,root,root) %{_libdir}/%{name}/program/libsaxlo.so
%attr(755,root,root) %{_libdir}/%{name}/program/libsblo.so
%attr(755,root,root) %{_libdir}/%{name}/program/libscnlo.so
%{_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_sifr_svg.zip
%{_datadir}/%{name}/share/config/images_tango.zip
%dir %{_datadir}/%{name}/share/config/soffice.cfg
%dir %{_datadir}/%{name}/share/config/soffice.cfg/cui
%dir %{_datadir}/%{name}/share/registry/res
%{_datadir}/%{name}/share/registry/res/fcfg_langpack_en-US.xcd
+%dir %{_datadir}/%{name}/share/theme_definitions
+%dir %{_datadir}/%{name}/share/theme_definitions/ios
+%{_datadir}/%{name}/share/theme_definitions/ios/*.svg
+%{_datadir}/%{name}/share/theme_definitions/ios/*.xml
+
+%dir %{_datadir}/%{name}/share/tipoftheday
+%{_datadir}/%{name}/share/tipoftheday/tipoftheday*.png
+
%dir %{_datadir}/%{name}/share/template
%dir %{_datadir}/%{name}/share/template/common
%{_datadir}/%{name}/share/template/common/internal
%{_mandir}/man1/libreoffice.1*
%{_mandir}/man1/unopkg.1*
-%if %{with kde4}
-%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)
%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
+%{_libdir}/girepository-1.0/LOKDocView-0.1.typelib
+# devel stuff?
+#%{_datadir}/gir-1.0/LOKDocView-0.1.gir
%endif
%if %{with qt5}
%attr(755,root,root) %{_bindir}/localc
%attr(755,root,root) %{_bindir}/oocalc
%attr(755,root,root) %{_libdir}/%{name}/program/scalc
+%attr(755,root,root) %{_libdir}/%{name}/program/opencltest
%{_mandir}/man1/localc.1
%{_desktopdir}/libreoffice-calc.desktop
%{_iconsdir}/hicolor/*/apps/libreoffice-calc.png
%files i18n-dgo -f dgo.lang
%defattr(644,root,root,755)
+%files i18n-dsb -f dsb.lang
+%defattr(644,root,root,755)
+
%files i18n-dz -f dz.lang
%defattr(644,root,root,755)
%files i18n-fr -f fr.lang
%defattr(644,root,root,755)
+%files i18n-fy -f fy.lang
+%defattr(644,root,root,755)
+
%files i18n-ga -f ga.lang
%defattr(644,root,root,755)
%files i18n-ka -f ka.lang
%defattr(644,root,root,755)
+%files i18n-kab -f kab.lang
+%defattr(644,root,root,755)
+
%files i18n-kk -f kk.lang
%defattr(644,root,root,755)