%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
Summary(pl.UTF-8): LibreOffice - potężny pakiet biurowy
Name: libreoffice
Version: %{major_ver}.4
-Release: 1
+Release: 4
License: GPL/LGPL
Group: X11/Applications
Source0: http://download.documentfoundation.org/libreoffice/src/%{major_ver}/%{name}-%{version}.tar.xz
# 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: 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: 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
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
%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
%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}