diff options
Diffstat (limited to 'libreoffice.spec')
-rw-r--r-- | libreoffice.spec | 65 |
1 files changed, 32 insertions, 33 deletions
diff --git a/libreoffice.spec b/libreoffice.spec index 43717b2..308aa33 100644 --- a/libreoffice.spec +++ b/libreoffice.spec @@ -6,10 +6,11 @@ # LTO needs newer toolchain stack only %bcond_with lto %bcond_without system_gpgme +%bcond_without system_curl %bcond_with firebird Name: libreoffice -Version: 7.4.2.3 -Release: 3 +Version: 7.5.0.2 +Release: 2 Summary: A Free Office Suite (Framework) License: LGPL-3.0-or-later AND MPL-2.0+ Group: Productivity/Office/Suite @@ -26,9 +27,9 @@ Source402: %{external_url}/b7cae45ad2c23551fd6ccb8ae2c1f59e-numbertext_%{nu Source450: %{external_url}/1f467e5bb703f12cbbb09d5cf67ecf4a-converttexttonumber-1-5-0.oxt Source452: %{external_url}/90401bca927835b6fbae4a707ed187c8-nlpsolver-0.9.tar.bz2 # GPGME bundle list -Source1000: %{external_url}/gpgme-1.13.1.tar.bz2 -Source1001: %{external_url}/libgpg-error-1.37.tar.bz2 -Source1002: %{external_url}/libassuan-2.5.3.tar.bz2 +Source1000: %{external_url}/gpgme-1.18.0.tar.bz2 +Source1001: %{external_url}/libgpg-error-1.43.tar.bz2 +Source1002: %{external_url}/libassuan-2.5.5.tar.bz2 # Internal bundled stuff we can't remove # To build this we would pull cygwin; not worth it Source2001: https://dev-www.libreoffice.org/extern/185d60944ea767075d27247c3162b3bc-unowinreg.dll @@ -43,25 +44,23 @@ Source2005: %{external_url}/a7983f859eafb2677d7ff386a023bc40-xsltml_2.1.2.zi Source2006: https://dev-www.libreoffice.org/extern/8249374c274932a21846fa7629c2aa9b-officeotron-0.7.4-master.jar Source2007: https://dev-www.libreoffice.org/extern/odfvalidator-0.9.0-RC2-SNAPSHOT-jar-with-dependencies-2726ab578664434a545f8379a01a9faffac0ae73.jar # PDFium is bundled everywhere -Source2008: %{external_url}/pdfium-5058.tar.bz2 +Source2008: %{external_url}/pdfium-5408.tar.bz2 # Single C file with patches from LO Source2009: %{external_url}/dtoa-20180411.tgz # Skia is part of chromium and bundled everywhere as by google only way is monorepo way Source2010: %{external_url}/skia-m103-b301ff025004c9cd82816c86c547588e6c24b466.tar.xz Source2012: %{external_url}/libcmis-0.5.2.tar.xz -Source2013: %{external_url}/dragonbox-1.1.0.tar.gz +Source2013: %{external_url}/dragonbox-1.1.3.tar.gz # do not use the broken help; unopkg complained about it when registering extensions # FIXME: the right fix is to compile the help and produce the .db_, .ht_, and other files Patch2: nlpsolver-no-broken-help.diff Patch3: mediawiki-no-broken-help.diff # Build with java 8 Patch101: 0001-Revert-java-9-changes.patch -Patch202: boost-1.81-locale.patch # try to save space by using hardlinks Patch990: install-with-hardlinks.diff # save time by relying on rpm check rather than doing stupid find+grep Patch991: libreoffice-no-destdircheck.patch -Patch999: Add-riscv64-support.diff BuildRequires: %{name}-share-linker BuildRequires: ant BuildRequires: autoconf @@ -74,7 +73,6 @@ BuildRequires: curl-devel BuildRequires: dejavu-fonts BuildRequires: doxygen >= 1.8.4 BuildRequires: flex >= 2.6.0 -BuildRequires: flute BuildRequires: fontforge BuildRequires: glm-devel BuildRequires: abseil-cpp-devel @@ -83,29 +81,21 @@ BuildRequires: gperf >= 3.1 BuildRequires: graphviz BuildRequires: hyphen-devel BuildRequires: junit -BuildRequires: libbase BuildRequires: cppunit-devel >= 1.14.0 BuildRequires: liberation-fonts BuildRequires: libexif -BuildRequires: libfonts -BuildRequires: libformula BuildRequires: libjpeg-devel -BuildRequires: openjpeg2-devel BuildRequires: libwebp-devel -BuildRequires: liblayout -BuildRequires: libloader -BuildRequires: librepository -BuildRequires: libserializer BuildRequires: libtool-ltdl-devel BuildRequires: lpsolve-devel BuildRequires: make BuildRequires: openldap-devel -BuildRequires: pentaho-libxml +%ifarch %{java_arches} BuildRequires: pentaho-reporting-flow-engine +%endif BuildRequires: pkgconfig BuildRequires: python3-lxml BuildRequires: sac -BuildRequires: ucpp BuildRequires: unixODBC-devel BuildRequires: unzip BuildRequires: xml-commons-apis @@ -114,6 +104,7 @@ BuildRequires: zip BuildRequires: perl(Archive::Zip) BuildRequires: perl(Digest::MD5) BuildRequires: pkgconfig(apr-util-1) +BuildRequires: pkgconfig(atk) >= 2.28 BuildRequires: pkgconfig(bluez) BuildRequires: pkgconfig(dbus-1) >= 0.60 BuildRequires: pkgconfig(epoxy) >= 1.2 @@ -146,6 +137,7 @@ BuildRequires: pkgconfig(libmspub-0.1) >= 0.1 BuildRequires: pkgconfig(libmwaw-0.3) >= 0.3.21 BuildRequires: pkgconfig(libnumbertext) >= 1.0.6 BuildRequires: pkgconfig(libodfgen-0.1) >= 0.1.4 +BuildRequires: pkgconfig(libopenjp2) BuildRequires: pkgconfig(liborcus-0.17) BuildRequires: pkgconfig(libpagemaker-0.0) BuildRequires: pkgconfig(libpng) @@ -154,6 +146,7 @@ BuildRequires: pkgconfig(libqxp-0.0) BuildRequires: pkgconfig(librevenge-0.0) >= 0.0.1 BuildRequires: pkgconfig(librsvg-2.0) BuildRequires: pkgconfig(libstaroffice-0.0) >= 0.0.6 +BuildRequires: pkgconfig(libtiff-4) BuildRequires: pkgconfig(libvisio-0.1) >= 0.1 BuildRequires: pkgconfig(libwpd-0.10) >= 0.10 BuildRequires: pkgconfig(libwpg-0.3) @@ -166,7 +159,7 @@ BuildRequires: pkgconfig(mythes) BuildRequires: pkgconfig(nspr) >= 4.8 BuildRequires: pkgconfig(nss) >= 3.9.3 BuildRequires: pkgconfig(python3) -BuildRequires: pkgconfig(redland) +BuildRequires: pkgconfig(redland) redland BuildRequires: pkgconfig(sane-backends) BuildRequires: pkgconfig(serf-1) >= 1.3.9 BuildRequires: pkgconfig(xmlsec1-nss) >= 1.2.28 @@ -309,13 +302,15 @@ This package provides gdb pretty printers for package %{name}. Summary: LibreOffice Base Group: Productivity/Office/Suite Requires: %{name} = %{version} +%ifarch %{java_arches} Requires: pentaho-reporting-flow-engine +%endif Supplements: %{name} Obsoletes: %{name}-base-drivers-mysql # default database connector %if %{with firebird} Requires: %{name}-base-drivers-firebird -%else +%else %ifarch %{java_arches} Requires: jre >= 1.8 %endif @@ -484,7 +479,6 @@ Group: Documentation/HTML Requires: %{name} = %{version} Requires: gcc-c++ Requires: make -Requires: ucpp Requires: zip Recommends: java-devel >= 9.0 Provides: libreoffice-ure-devel = %{version} @@ -508,7 +502,7 @@ Obsoletes: libreoffice-ure-devel-doc < %{version} %description sdk-doc This package includes documentation and examples for the LibreOffice Software Development Kit (SDK). - +%ifarch %{java_arches} %package calc-extensions Summary: LibreOffice Calc Extensions Group: Productivity/Office/Suite @@ -538,7 +532,7 @@ Requires: jre >= 1.8 This package provides extensions for LibreOffice Writer: - MediaWiki Publisher - +%endif %package -n libreofficekit Summary: A library providing access to LibreOffice functionality Group: Productivity/Office/Suite @@ -724,7 +718,7 @@ Provides %{langname} translations and additional resources (help files, etc.) fo %langpack -l da -n Danish -X -m da_DK -T %langpack -l de -n German -X -M -T %langpack -l dgo -n Dogri -X -%langpack -l dsb -n Lower_Sorbian -X +%langpack -l dsb -n Lower_Sorbian -X -T %langpack -l dz -n Dzongkha -s ctl -T -X %langpack -l el -n Greek -m el_GR -T -X %langpack -l en -n English -L en-US -X -M -g en_US -T -j en_US @@ -747,7 +741,7 @@ Provides %{langname} translations and additional resources (help files, etc.) fo %langpack -l he -n Hebrew -s ctl -m he_IL -T -X %langpack -l hi -n Hindi -s ctl -p hi-IN -m hi_IN -T -X %langpack -l hr -n Croatian -m hr_HR -X -T -%langpack -l hsb -n Upper_Sorbian -X +%langpack -l hsb -n Upper_Sorbian -X -T %langpack -l hu -n Hungarian -X -m hu_HU -T %langpack -l it -n Italian -X -m it_IT -T %langpack -l id -n Indonesian -T -M -X @@ -826,10 +820,8 @@ Provides %{langname} translations and additional resources (help files, etc.) fo %setup -q -b2 -b4 %patch2 %patch3 -%patch202 -p1 %patch990 -p1 %patch991 -p1 -%patch999 -p1 # Disable some of the failing tests (some are random) # Following two tests are really flaky @@ -899,7 +891,6 @@ export NOCONFIGURE=yes --with-system-headers \ --with-system-libs \ --with-system-jars \ - --with-system-ucpp \ --with-system-dicts \ --with-system-libpng \ --without-system-libcmis \ @@ -927,10 +918,14 @@ export NOCONFIGURE=yes --enable-randr \ --without-fonts \ --without-myspell-dicts \ - --with-jdk-home=$JAVA_HOME \ --with-webdav=serf \ +%ifarch %{java_arches} + --with-jdk-home=$JAVA_HOME \ --with-beanshell-jar=%{_datadir}/java/bsh.jar \ --with-ant-home=%{_datadir}/ant \ +%else + --without-java \ +%endif --with-external-dict-dir=%{_datadir}/hunspell \ --with-external-hyph-dir=%{_datadir}/hyphen \ --with-external-thes-dir=%{_datadir}/mythes \ @@ -1129,7 +1124,9 @@ cp uno.py %{buildroot}%{_libdir}/%{name}/program/uno.py # Generate python cache files %py_byte_compile %{__python3} %{buildroot}/%{_libdir}/libreoffice/program/ +%ifarch %{java_arches} %py_byte_compile %{__python3} %{buildroot}/%{_libdir}/libreoffice/share/extensions/ +%endif %py_byte_compile %{__python3} %{buildroot}/%{_libdir}/libreoffice/share/Scripts/python/ %py_byte_compile %{__python3} %{buildroot}/%{_libdir}/libreoffice/sdk/examples/python/ # Move python cache to respective filelist @@ -1191,10 +1188,12 @@ mv tmplist file-lists/common_list.txt echo "%{_libdir}/libreoffice/program/libmysqlclo.so" >> file-lists/base_list.txt # Remove empty files +%ifarch %{java_arches} rm %{buildroot}%{_libdir}/libreoffice/share/extensions/*/help/*.done rm %{buildroot}%{_libdir}/libreoffice/share/extensions/*/help/*/*.ht_ rm %{buildroot}%{_libdir}/libreoffice/share/extensions/wiki-publisher/help/sa-IN/help.key_ rm %{buildroot}%{_libdir}/libreoffice/share/extensions/nlpsolver/locale/NLPSolverCommon_en_US.default +%endif %post /sbin/ldconfig @@ -1284,14 +1283,14 @@ exit 0 %dir %{_libdir}/libreoffice/sdk/lib %files -f file-lists/sdk_doc_list.txt sdk-doc - +%ifarch %{java_arches} %files calc-extensions %{_libdir}/%{name}/share/extensions/nlpsolver %{_libdir}/%{name}/share/extensions/numbertext %files writer-extensions %{_libdir}/%{name}/share/extensions/wiki-publisher - +%endif %files icon-themes %dir %{_datadir}/%{name} %dir %{_datadir}/%{name}/share |