libreoffice/libreoffice.spec

1159 lines
38 KiB
RPMSpec
Raw Normal View History

%bcond_without l10n
%bcond_with icecream
%bcond_with ccache
%if %{mdvver} < 201900
2020-03-26 20:20:19 +10:00
%bcond_without clang
%else
%bcond_with clang
2020-03-26 20:20:19 +10:00
%endif
%if %rpm5 && %{with clang}
# "/usr/lib/rpm/bin/debugedit: canonicalization unexpectedly shrank by one character"
%define debugcflags %{nil}
%define _enable_debug_packages %{nil}
%define debug_package %{nil}
%endif
%if %{with l10n}
%define langs en_US af ar as bg bn br bs ca cs cy da de dz el en_GB es et eu fa fi fr ga gl gu he hi hr hu it ja ko kn lt lv mai mk ml mr nb nl nn nr nso or pa_IN pl pt pt_BR ro ru si sk sl sr ss st sv ta te th tn tr ts uk ve xh zh_TW zh_CN zu
%define helplangs ar bg bn bs ca cs da de dz el en_GB es et eu fi fr gl gu he hi hr hu it ja ko lt lv mk nb nl nn pl pt pt_BR ro ru si sk sl sv ta tr uk zh_CN zh_TW en_US
2012-04-17 15:11:02 +04:00
%else
%define langs en_US
%define helplangs en_US
2012-04-17 15:11:02 +04:00
%endif
2020-03-24 01:04:15 +10:00
%define javaless 1
2016-12-26 00:47:13 +03:00
%define relurl http://download.documentfoundation.org/libreoffice/src/%{version}
%define devurl http://dev-www.libreoffice.org/ooo_external
2019-10-15 16:00:24 +03:00
%define devexurl http://dev-www.libreoffice.org/extern
2016-12-26 00:47:13 +03:00
%define srcurl http://dev-www.libreoffice.org/src/
%define oxyurl http://ooo.itc.hu/oxygenoffice/download/libreoffice/
%define distroname ROSA
%define ooname libreoffice
2019-10-15 16:00:24 +03:00
%define buildver %{version}.2
2016-12-26 00:47:13 +03:00
%define ooodir %{_libdir}/libreoffice
2019-10-15 23:19:49 +03:00
%define antver 1.8.1
2017-07-31 03:48:44 +03:00
%define antpath %{_builddir}/libreoffice-%{version}/apache-ant-%{antver}
2012-04-17 15:11:02 +04:00
2016-12-26 00:47:13 +03:00
%define ccachedir ~/.ccache-OOo
2012-04-17 15:11:02 +04:00
# for rpm4
%global __requires_exclude libjawt.so|libmyspell.so|libstlport_gcc.so|libmono.so|mono|devel\\(libunoidl(.*)
# for rpm5, overrides %%__requires_exclude
%global __noautoreq 'libjawt.so|libmyspell.so|libstlport_gcc.so|libmono.so|mono|devel\\(libunoidl(.*)'
2020-01-04 04:24:07 +03:00
%global __provides_exclude libsndfile.so\\|libportaudio.so\\|libdb-4.2.so\\|libdb_java-4.2.so\\|libmyspell.so\\|libstlport_gcc.so\\|librdf.so.0\\|libraptor.so.1\\|libxmlsec1-nss.so.1\\|libxmlsec1.so.1
2012-09-17 13:37:52 +04:00
%undefine _disable_rebuild_configure
Summary: Office suite
2013-03-04 13:55:29 +04:00
Name: libreoffice
2012-04-17 15:11:02 +04:00
Epoch: 1
2020-02-27 17:35:17 +00:00
Version: 6.3.5
Release: 8
License: (MPLv1.1 or LGPLv3+) and LGPLv3 and LGPLv2+ and BSD and (MPLv1.1 or GPLv2 or LGPLv2 or Netscape) and Public Domain and ASL 2.0 and Artistic
Group: Office
Url: http://www.libreoffice.org
2013-09-05 22:06:18 +04:00
Source0: %{relurl}/%{ooname}-%{buildver}.tar.xz
Source1: %{relurl}/%{ooname}-dictionaries-%{buildver}.tar.xz
Source2: %{relurl}/%{ooname}-help-%{buildver}.tar.xz
Source3: %{relurl}/%{ooname}-translations-%{buildver}.tar.xz
2019-10-15 16:00:24 +03:00
Source4: %{devexurl}/185d60944ea767075d27247c3162b3bc-unowinreg.dll
Source5: locales.csv
2013-09-05 22:06:18 +04:00
# Unused, should be dropped in future package updates
Source10: Mandriva-Rosa_Icons.tar.bz2
2014-11-13 07:11:49 -05:00
%if %{javaless}
2017-07-31 03:48:44 +03:00
Source20: http://archive.apache.org/dist/ant/binaries/apache-ant-%{antver}-bin.tar.bz2
2014-11-13 07:11:49 -05:00
%endif
Source33: %{devurl}/17410483b5b5f267aa18b7e00b65e6e0-hsqldb_1_8_0.zip
2013-09-05 22:06:18 +04:00
Source35: %{devurl}/798b2ffdc8bcfe7bca2cf92b62caf685-rhino1_5R5.zip
2013-09-18 21:13:44 +11:00
Source36: %{devurl}/a7983f859eafb2677d7ff386a023bc40-xsltml_2.1.2.zip
Source37: %{devurl}/35c94d2df8893241173de1d16b6034c0-swingExSrc.zip
2013-09-05 22:06:18 +04:00
# Extensions
2019-10-15 23:19:49 +03:00
Source49: %{srcurl}pdfium-3794.tar.bz2
Source51: %{srcurl}b63e6340a02ff1cacfeadb2c42286161-JLanguageTool-1.7.0.tar.bz2
Source54: %{oxyurl}b632bdd25649cc4067bcb410bae23d2b-hunart_0.3.oxt
Source56: %{srcurl}b7cae45ad2c23551fd6ccb8ae2c1f59e-numbertext_0.9.5.oxt
Source60: %{oxyurl}af9314c5972d95a5d6da23ffad818f68-OOOP-gallery-pack-2.8.0.0.zip
Source61: %{oxyurl}1be202fbbbc13f10592a98f70a4a87fb-OOOP-templates-pack-2.9.0.0.zip
Source62: %{oxyurl}53ca5e56ccd4cab3693ad32c6bd13343-Sun-ODF-Template-Pack-de_1.0.0.oxt
Source63: %{oxyurl}472ffb92d82cf502be039203c606643d-Sun-ODF-Template-Pack-en-US_1.0.0.oxt
Source64: %{oxyurl}4ad003e7bbda5715f5f38fde1f707af2-Sun-ODF-Template-Pack-es_1.0.0.oxt
Source65: %{oxyurl}a53080dc876edcddb26eb4c3c7537469-Sun-ODF-Template-Pack-fr_1.0.0.oxt
Source66: %{oxyurl}09ec2dac030e1dcd5ef7fa1692691dc0-Sun-ODF-Template-Pack-hu_1.0.0.oxt
Source67: %{oxyurl}b33775feda3bcf823cad7ac361fd49a6-Sun-ODF-Template-Pack-it_1.0.0.oxt
2014-08-05 14:20:18 +04:00
Source68: %{srcurl}4b87018f7fff1d054939d19920b751a0-collada2gltf-master-cb1d97788a.tar.bz2
Source69: %{srcurl}OpenCOLLADA-master-6509aa13af.tar.bz2
Source70: %{srcurl}1f467e5bb703f12cbbb09d5cf67ecf4a-converttexttonumber-1-5-0.oxt
2019-10-15 16:00:24 +03:00
Source71: %{srcurl}lxml-4.1.1.tgz
2019-10-15 23:19:49 +03:00
Source72: %{devexurl}/884ed41809687c3e168fc7c19b16585149ff058eca79acbf3ee784f6630704cc-opens___.ttf
Source80: loffice-libcxx-wrapper.sh
Source1000: libreoffice.rpmlintrc
2017-07-31 03:48:44 +03:00
Patch0: libreoffice-5.4.0.1-disable-test-languagetag.patch
Patch1: libreoffice-4.2.5-icu-49.patch
Patch2: libreoffice-6.3.5.2-kde4-detection.patch
# https://github.com/LibreOffice/core/commit/6fbfad6b
Patch3: 6fbfad6b00e8c35346ee59cd32a0d7ccc0d8c19c.patch
# For Clang <9, GCC <10, when building with libstdc++-gcc10
Patch4: span-old-compilers.patch
# prefer gtk3_kde5 over kde5 because of maturity of gtk3 rendering
Patch5: gtk3_kde5-priority.patch
Patch6: 0001-Force-icons-in-menus-in-GTK-3-VCLs.patch
2013-09-05 22:06:18 +04:00
# ROSA vendor patch
Patch100: libreoffice-4.1-vendor.patch
2019-10-15 16:00:24 +03:00
Patch101: libreoffice-6.2.8.2-desktop-categories.patch
2016-09-06 12:28:22 +10:00
Patch102: libreoffice-5.2.1.2-desktop-protocols.patch
2016-06-20 15:01:55 +03:00
Patch104: libreoffice-5.1.2.2-desktop-startcenter-nomate.patch
2019-07-31 02:21:50 +03:00
BuildRequires: bison
BuildRequires: bsh
%if %{with ccache}
2012-04-17 15:11:02 +04:00
BuildRequires: ccache
%endif
2019-10-15 16:00:24 +03:00
%if %{with clang}
BuildRequires: clang
BuildRequires: stdc++-gcc10-devel
2019-10-15 16:00:24 +03:00
%endif
2013-09-05 22:06:18 +04:00
BuildRequires: desktop-file-utils
BuildRequires: doxygen >= 1.8.4
2012-04-17 15:11:02 +04:00
BuildRequires: ed
BuildRequires: flex
2013-09-05 22:06:18 +04:00
BuildRequires: flute
BuildRequires: git
2012-04-17 15:11:02 +04:00
BuildRequires: gperf
%if %{with icecream}
BuildRequires: icecream
%endif
2013-09-05 22:06:18 +04:00
BuildRequires: icu
2012-04-17 15:11:02 +04:00
BuildRequires: imagemagick
BuildRequires: locales-en
2017-07-31 03:48:44 +03:00
BuildRequires: pkgconfig(libstaroffice-0.0)
BuildRequires: pkgconfig(libzmf-0.0)
2013-09-05 22:06:18 +04:00
BuildRequires: pentaho-libxml
BuildRequires: pentaho-reporting-flow-engine
2012-04-17 15:11:02 +04:00
BuildRequires: perl-Archive-Zip
BuildRequires: perl-MDK-Common
BuildRequires: perl-HTML-Parser
BuildRequires: perl-XML-Twig
BuildRequires: pythonegg(translate-toolkit)
2013-09-05 22:06:18 +04:00
BuildRequires: recode
BuildRequires: sac
BuildRequires: servlet3
BuildRequires: sharutils
2013-09-05 22:06:18 +04:00
BuildRequires: tcsh
2012-04-17 15:11:02 +04:00
BuildRequires: unzip
2013-09-05 22:06:18 +04:00
BuildRequires: xsltproc >= 1.0.19
2012-04-17 15:11:02 +04:00
BuildRequires: zip
BuildRequires: boost-devel
2013-09-05 22:06:18 +04:00
BuildRequires: cups-devel
BuildRequires: db-devel
BuildRequires: glm-devel
2013-09-05 22:06:18 +04:00
BuildRequires: hyphen-devel
BuildRequires: java-devel
2018-08-07 16:29:10 +03:00
BuildRequires: jemalloc-devel
2013-09-05 22:06:18 +04:00
BuildRequires: lpsolve-devel
BuildRequires: mysql-connector-c++-devel
2013-09-05 22:06:18 +04:00
BuildRequires: nas-devel
BuildRequires: openldap-devel
BuildRequires: pam-devel
BuildRequires: readline-devel
2019-10-15 16:00:24 +03:00
BuildRequires: systemtap-devel
2013-09-05 22:06:18 +04:00
BuildRequires: unixODBC-devel
2020-03-01 06:48:29 +00:00
#BuildRequires: vigra-devel
2017-07-31 03:48:44 +03:00
BuildRequires: gpgmepp-devel
2013-09-05 22:06:18 +04:00
BuildRequires: pkgconfig(bluez)
2017-09-02 13:48:17 +10:00
BuildRequires: pkgconfig(cppunit) >= 1.14.0
2013-09-05 22:06:18 +04:00
BuildRequires: pkgconfig(dbus-1)
BuildRequires: pkgconfig(expat)
2014-08-05 14:20:18 +04:00
BuildRequires: pkgconfig(libetonyek-0.1)
BuildRequires: pkgconfig(libfreehand-0.1)
2013-09-05 22:06:18 +04:00
BuildRequires: pkgconfig(freetype2)
BuildRequires: pkgconfig(gconf-2.0)
BuildRequires: pkgconfig(glew)
2013-09-05 22:06:18 +04:00
BuildRequires: pkgconfig(glitz)
BuildRequires: pkgconfig(glu)
BuildRequires: pkgconfig(gnome-vfs-2.0)
BuildRequires: pkgconfig(gnutls)
BuildRequires: pkgconfig(gdk-pixbuf-xlib-2.0)
BuildRequires: pkgconfig(graphite2)
BuildRequires: pkgconfig(gstreamer-plugins-base-1.0)
2013-09-05 22:06:18 +04:00
BuildRequires: pkgconfig(egl)
BuildRequires: pkgconfig(gtk+-2.0)
2016-04-06 00:58:15 +10:00
BuildRequires: pkgconfig(gtk+-3.0)
2013-09-05 22:06:18 +04:00
BuildRequires: pkgconfig(hunspell)
2013-03-04 13:55:29 +04:00
BuildRequires: pkgconfig(lcms2)
2014-08-05 14:20:18 +04:00
BuildRequires: pkgconfig(libabw-0.1)
2013-09-05 22:06:18 +04:00
BuildRequires: pkgconfig(libclucene-core)
BuildRequires: pkgconfig(liblucene++-contrib)
2019-10-15 16:00:24 +03:00
BuildRequires: pkgconfig(libcmis-0.5) >= 0.5.2
2013-09-05 22:06:18 +04:00
BuildRequires: pkgconfig(libcurl)
2014-08-05 14:20:18 +04:00
BuildRequires: pkgconfig(libcdr-0.1)
BuildRequires: pkgconfig(libe-book-0.1)
BuildRequires: pkgconfig(libeot)
2013-09-05 22:06:18 +04:00
BuildRequires: pkgconfig(libexttextcat)
2018-08-07 16:29:10 +03:00
BuildRequires: pkgconfig(libepubgen-0.1)
BuildRequires: pkgconfig(libixion-0.14)
2013-09-05 22:06:18 +04:00
BuildRequires: pkgconfig(liblangtag)
2014-08-05 14:20:18 +04:00
BuildRequires: pkgconfig(libmspub-0.1)
2015-03-04 18:08:30 +10:00
BuildRequires: pkgconfig(libmwaw-0.3) >= 0.3.4
2019-10-15 16:00:24 +03:00
BuildRequires: pkgconfig(libnumbertext)
2014-08-05 14:20:18 +04:00
BuildRequires: pkgconfig(libodfgen-0.1) >= 0.1.0
2019-10-15 16:00:24 +03:00
BuildRequires: pkgconfig(liborcus-0.14) >= 0.14.1
2015-03-04 18:08:30 +10:00
BuildRequires: pkgconfig(libpagemaker-0.0)
BuildRequires: pkgconfig(libpq)
2018-08-07 16:29:10 +03:00
BuildRequires: pkgconfig(libqxp-0.0)
BuildRequires: pkgconfig(librevenge-0.0)
2013-09-05 22:06:18 +04:00
BuildRequires: pkgconfig(librsvg-2.0)
BuildRequires: pkgconfig(libstartup-notification-1.0)
BuildRequires: pkgconfig(libsvg)
2016-10-19 23:49:11 +10:00
BuildRequires: pkgconfig(libtiff-4)
2013-09-05 22:06:18 +04:00
BuildRequires: pkgconfig(libucpp)
2014-08-05 14:20:18 +04:00
BuildRequires: pkgconfig(libvisio-0.1)
BuildRequires: pkgconfig(libwpd-0.10)
BuildRequires: pkgconfig(libwpg-0.3)
BuildRequires: pkgconfig(libwps-0.4)
2013-09-05 22:06:18 +04:00
BuildRequires: pkgconfig(libxml-2.0)
BuildRequires: pkgconfig(libxslt)
BuildRequires: pkgconfig(mdds-1.4)
2013-09-05 22:06:18 +04:00
BuildRequires: pkgconfig(mythes)
BuildRequires: pkgconfig(neon)
BuildRequires: pkgconfig(nspr)
BuildRequires: pkgconfig(nss)
BuildRequires: pkgconfig(poppler)
BuildRequires: pkgconfig(poppler-glib)
BuildRequires: pkgconfig(poppler-cpp)
BuildRequires: pkgconfig(portaudio-2.0)
BuildRequires: pkgconfig(python3)
BuildRequires: pkgconfig(raptor)
BuildRequires: pkgconfig(rasqal)
BuildRequires: pkgconfig(redland)
BuildRequires: pkgconfig(sane-backends)
BuildRequires: pkgconfig(sndfile)
BuildRequires: pkgconfig(xaw7)
2017-09-02 13:48:17 +10:00
BuildRequires: pkgconfig(xmlsec1) >= 1.2.24
2013-09-05 22:06:18 +04:00
BuildRequires: pkgconfig(xpm)
BuildRequires: pkgconfig(xtst)
2019-10-15 16:00:24 +03:00
BuildRequires: pkgconfig(valgrind)
2013-09-05 22:06:18 +04:00
BuildRequires: pkgconfig(zlib)
2019-10-15 16:00:24 +03:00
BuildRequires: kf5activities-devel
BuildRequires: kf5completion-devel
BuildRequires: kf5config-devel
BuildRequires: kf5configwidgets-devel
BuildRequires: kf5coreaddons-devel
BuildRequires: kf5crash-devel
BuildRequires: kf5declarative-devel
BuildRequires: kf5doctools-devel
BuildRequires: kf5globalaccel-devel
BuildRequires: kf5i18n-devel
BuildRequires: kf5idletime-devel
BuildRequires: kf5init-devel
BuildRequires: kf5kcmutils-devel
BuildRequires: kf5kio-devel
BuildRequires: kf5newstuff-devel
BuildRequires: kf5notifications-devel
BuildRequires: kf5plasma-devel
BuildRequires: kf5service-devel
BuildRequires: kf5wayland-devel
BuildRequires: kf5widgetsaddons-devel
BuildRequires: kf5windowsystem-devel
BuildRequires: kf5xmlgui-devel
BuildRequires: pkgconfig(Qt5Concurrent)
BuildRequires: pkgconfig(Qt5Core)
BuildRequires: pkgconfig(Qt5DBus)
BuildRequires: pkgconfig(Qt5Gui)
BuildRequires: pkgconfig(Qt5Multimedia)
BuildRequires: pkgconfig(Qt5Network)
BuildRequires: pkgconfig(Qt5Qml)
BuildRequires: pkgconfig(Qt5Quick)
BuildRequires: pkgconfig(Qt5QuickWidgets)
BuildRequires: pkgconfig(Qt5Sensors)
BuildRequires: pkgconfig(Qt5Script)
BuildRequires: pkgconfig(Qt5Test)
BuildRequires: pkgconfig(Qt5UiTools)
BuildRequires: pkgconfig(Qt5Widgets)
BuildRequires: pkgconfig(Qt5X11Extras)
2012-09-17 13:37:52 +04:00
%if !%{javaless}
2013-09-05 22:06:18 +04:00
BuildRequires: ant
BuildRequires: ant-apache-regexp
BuildRequires: junit
2015-06-19 14:11:59 +04:00
BuildRequires: java-1.8.0-openjdk-devel
%endif
2020-01-04 04:24:07 +03:00
Recommends: %{name}-java = %{EVRD}
2012-04-17 15:11:02 +04:00
# STLport-devel 4.5 + private patches are needed
BuildConflicts: STLport-devel
2013-09-05 22:06:18 +04:00
# Requres to all our packages
Requires: %{name}-base = %{EVRD}
Requires: %{name}-calc = %{EVRD}
Requires: %{name}-draw = %{EVRD}
Requires: %{name}-impress = %{EVRD}
Requires: %{name}-math = %{EVRD}
Requires: %{name}-writer = %{EVRD}
Provides: LibreOffice = %{EVRD}
Provides: LibreOffice-libs = %{EVRD}
2013-08-08 15:42:52 +03:00
2012-04-17 15:11:02 +04:00
%description
LibreOffice is an Open Source, community-developed, multi-platform
office productivity suite. It includes the key desktop applications,
such as a word processor, spreadsheet, presentation manager, formula
editing and drawing program, with a user interface and feature set
similar to other office suites. Sophisticated and flexible,
LibreOffice also works transparently with a variety of file
formats, including Microsoft Office.
%files
#----------------------------------------------------------------------------
2012-04-17 15:11:02 +04:00
%package base
2013-09-05 22:06:18 +04:00
Summary: LibreOffice office suite - database
Group: Office
Requires: %{name}-common = %{EVRD}
Requires: %{name}-java = %{EVRD}
# Require openjdk, we have problems with Oracle Java
Requires: java-openjdk
2012-04-17 15:11:02 +04:00
%description base
This package contains the database component for LibreOffice.
You can extend the functionality of LibreOffice Base by installing these
packages:
* unixodbc: ODBC database support
* libmyodbc | odbc-postgresql | libsqliteodbc | tdsodbc | mdbtools: ODBC
drivers for:
- MySQL
- PostgreSQL
- SQLite
- MS SQL / Sybase SQL
- *.mdb (JET / MS Access)
* libmysql-java | libpg-java | libsapdbc-java: JDBC Drivers
for:
- MySQL
- PostgreSQL
- MaxDB
%files base -f file-lists/base_list.txt
%{_mandir}/man1/lobase*
%{_iconsdir}/hicolor/scalable/apps/mandriva-rosa-lo-base_72.svg
2019-10-15 16:00:24 +03:00
%dir %{ooodir}/share/xdg
2014-08-14 22:01:17 +04:00
%{ooodir}/share/xdg/base.desktop
%{_datadir}/appdata/libreoffice-base.appdata.xml
#----------------------------------------------------------------------------
2012-04-17 15:11:02 +04:00
%package calc
2013-09-05 22:06:18 +04:00
Summary: LibreOffice office suite - spreadsheet
Group: Office
Requires: %{name}-common = %{EVRD}
2012-04-17 15:11:02 +04:00
%description calc
This package contains the spreadsheet component for LibreOffice.
%files calc -f file-lists/calc_list.txt
%{_mandir}/man1/localc*
%{_iconsdir}/hicolor/scalable/apps/mandriva-rosa-lo-calc_72.svg
2019-10-15 16:00:24 +03:00
%dir %{ooodir}/share/xdg
2014-08-14 22:01:17 +04:00
%{ooodir}/share/xdg/calc.desktop
%{_datadir}/appdata/libreoffice-calc.appdata.xml
#----------------------------------------------------------------------------
2012-04-17 15:11:02 +04:00
%package common
Summary: LibreOffice office suite common files
2013-09-05 22:06:18 +04:00
Group: Office
Provides: libreoffice-l10n-en_US = %{EVRD}
Provides: LibreOffice-l10n-en_US = %{EVRD}
2012-04-17 15:11:02 +04:00
# Require at least one style to be installed
2013-09-05 22:06:18 +04:00
Requires: %{name}-style = %{EVRD}
# And breeze too, it should be default for Plasma 5
Requires: %{name}-style-breeze = %{EVRD}
2020-01-04 04:24:07 +03:00
Recommends: %{name}-help-en_US = %{EVRD}
2012-04-17 15:11:02 +04:00
# And then general requires for OOo follows
2013-09-05 22:06:18 +04:00
Requires: ghostscript
Requires: fonts-ttf-liberation
Requires: desktop-common-data >= 2008
2012-04-17 15:11:02 +04:00
# rpm will automatically grab the require for libsane1, but there are some
# configs needed at this package, so we must require it too.
2013-09-05 22:06:18 +04:00
Requires: sane-backends
2014-08-05 14:20:18 +04:00
# Due to {_bindir}/paperconf
2013-09-05 22:06:18 +04:00
# Requires: paper-utils
2014-06-24 15:23:52 +11:00
# Upstream merged
Conflicts: %{name}-core < %{EVRD}
Obsoletes: %{name}-core < %{EVRD}
2014-06-24 15:23:52 +11:00
Conflicts: %{name}-java-common < %{EVRD}
Obsoletes: %{name}-java-common < %{EVRD}
2014-06-24 15:23:52 +11:00
Conflicts: %{name}-dtd-officedocument1.0 < %{EVRD}
Obsoletes: %{name}-dtd-officedocument1.0 < %{EVRD}
2014-06-24 15:23:52 +11:00
Conflicts: %{name}-extension-xsltfilter < %{EVRD}
Obsoletes: %{name}-extension-xsltfilter < %{EVRD}
Conflicts: %{name}-openclipart < 1:5.1.2-2
2017-08-01 04:03:54 +03:00
Obsoletes: %{name}-extension-barcode < %{EVRD}
Conflicts: %{name}-extension-barcode < %{EVRD}
Obsoletes: %{name}-extension-gdocs < %{EVRD}
Conflicts: %{name}-extension-gdocs < %{EVRD}
Obsoletes: %{name}-extension-SmART < %{EVRD}
Conflicts: %{name}-extension-SmART < %{EVRD}
Obsoletes: %{name}-extension-typo < %{EVRD}
Conflicts: %{name}-extension-typo < %{EVRD}
Obsoletes: %{name}-extension-validator < %{EVRD}
Conflicts: %{name}-extension-validator < %{EVRD}
Obsoletes: %{name}-extension-watchwindow < %{EVRD}
Conflicts: %{name}-extension-watchwindow < %{EVRD}
Obsoletes: %{name}-templates-common < %{EVRD}
Conflicts: %{name}-templates-common < %{EVRD}
Obsoletes: %{name}-templates-cs < %{EVRD}
Obsoletes: %{name}-templates-de < %{EVRD}
Obsoletes: %{name}-templates-en_US < %{EVRD}
Obsoletes: %{name}-templates-es < %{EVRD}
Obsoletes: %{name}-templates-fi < %{EVRD}
Obsoletes: %{name}-templates-fr < %{EVRD}
Obsoletes: %{name}-templates-hu < %{EVRD}
Obsoletes: %{name}-templates-it < %{EVRD}
Obsoletes: %{name}-templates-ja < %{EVRD}
Obsoletes: %{name}-templates-nl < %{EVRD}
Obsoletes: %{name}-templates-pl < %{EVRD}
Obsoletes: %{name}-templates-pt_BR < %{EVRD}
Obsoletes: %{name}-templates-sv < %{EVRD}
Obsoletes: %{name}-templates-tr < %{EVRD}
Obsoletes: %{name}-templates-zh_CN < %{EVRD}
Conflicts: %{name}-templates-cs < %{EVRD}
Conflicts: %{name}-templates-de < %{EVRD}
Conflicts: %{name}-templates-en_US < %{EVRD}
Conflicts: %{name}-templates-es < %{EVRD}
Conflicts: %{name}-templates-fi < %{EVRD}
Conflicts: %{name}-templates-fr < %{EVRD}
Conflicts: %{name}-templates-hu < %{EVRD}
Conflicts: %{name}-templates-it < %{EVRD}
Conflicts: %{name}-templates-ja < %{EVRD}
Conflicts: %{name}-templates-nl < %{EVRD}
Conflicts: %{name}-templates-pl < %{EVRD}
Conflicts: %{name}-templates-pt_BR < %{EVRD}
Conflicts: %{name}-templates-sv < %{EVRD}
Conflicts: %{name}-templates-tr < %{EVRD}
Conflicts: %{name}-templates-zh_CN < %{EVRD}
2019-10-15 16:00:24 +03:00
Obsoletes: %{name}-style-galaxy < %{EVRD}
Obsoletes: %{name}-style-oxygen < %{EVRD}
Conflicts: %{name}-style-galaxy < %{EVRD}
Conflicts: %{name}-style-oxygen < %{EVRD}
2020-01-04 04:24:07 +03:00
Recommends: noto-sans-fonts
Recommends: noto-sans-mono-fonts
Recommends: noto-serif-fonts
%description common
This package contains the application-independent files of LibreOffice.
2013-09-18 21:13:44 +11:00
%files common -f file-lists/core_list.txt
%{_iconsdir}/hicolor/scalable/apps/mandriva-rosa-lo_72.svg
%{_mandir}/man1/loffice*
%{_mandir}/man1/lofromtemplate*
%{_mandir}/man1/libreoffice*
%{_mandir}/man1/unopkg.1*
%{_libdir}/libreoffice/program/classes/ScriptProviderForBeanShell.jar
%{_libdir}/libreoffice/program/services/scriptproviderforbeanshell.rdb
%{ooodir}/share/gallery/sg24.*
2019-10-15 23:19:49 +03:00
%{ooodir}/share/libreofficekit
2019-10-15 16:00:24 +03:00
%{_datadir}/appdata/org.libreoffice.kde.metainfo.xml
#----------------------------------------------------------------------------
%package java
Summary: Java dependent parts of LibreOffice
2013-09-05 22:06:18 +04:00
Group: Office
Requires: %{name}-common = %{EVRD}
# (tpg) https://issues.openmandriva.org/show_bug.cgi?id=1056
Requires: pentaho-reporting-flow-engine
2012-04-17 15:11:02 +04:00
%description java
Java dependent parts of LibreOffice.
2013-09-18 21:13:44 +11:00
This package contains templates and other optional parts of LibreOffice
that require a Java stack (such as OpenJDK) to be installed.
2013-09-18 21:13:44 +11:00
%files java -f file-lists/java_common_list.txt
#----------------------------------------------------------------------------
2012-04-17 15:11:02 +04:00
%package devel
2013-09-05 22:06:18 +04:00
Summary: LibreOffice SDK - development files
Group: Office
Requires: %{name}-common = %{EVRD}
%if "%{_lib}" == "lib64"
Provides: devel(libxmlreader(64bit)) = %{EVRD}
Provides: devel(libxmlreaderlo(64bit)) = %{EVRD}
2013-09-05 22:06:18 +04:00
Provides: devel(libreg(64bit)) = %{EVRD}
Provides: devel(libreglo(64bit)) = %{EVRD}
2013-03-04 13:55:29 +04:00
%else
2013-09-05 22:06:18 +04:00
Provides: devel(libxmlreader) = %{EVRD}
Provides: devel(libxmlreaderlo) = %{EVRD}
2013-09-05 22:06:18 +04:00
Provides: devel(libreg) = %{EVRD}
Provides: devel(libreglo) = %{EVRD}
2013-03-04 13:55:29 +04:00
%endif
2012-04-17 15:11:02 +04:00
%description devel
This package contains the files needed to build plugins/add-ons for
LibreOffice (includes, IDL files, build tools, ...). It also contains the
zipped source of the UNO Java libraries for use in IDEs like eclipse.
%files devel -f file-lists/sdk_list.uniq.sorted.txt
#----------------------------------------------------------------------------
2012-04-17 15:11:02 +04:00
%package devel-doc
2013-09-05 22:06:18 +04:00
Summary: LibreOffice SDK - documentation
Group: Office
2012-04-17 15:11:02 +04:00
%description devel-doc
This package contains the documentation of the LibreOffice SDK:
* C++/Java API reference
* IDL reference
* C++/Java/Basic examples
It also contains the gsicheck utility.
%files devel-doc -f file-lists/sdk_doc_list.txt
#----------------------------------------------------------------------------
2012-04-17 15:11:02 +04:00
%package draw
2013-09-05 22:06:18 +04:00
Summary: LibreOffice office suite - drawing
Group: Office
2013-09-05 22:06:18 +04:00
Requires: %{name}-common = %{EVRD}
2012-04-17 15:11:02 +04:00
%description draw
This package contains the drawing component for LibreOffice.
%files draw -f file-lists/draw_list.txt
%{_iconsdir}/hicolor/scalable/apps/mandriva-rosa-lo-draw_72.svg
%{_mandir}/man1/lodraw*
2019-10-15 16:00:24 +03:00
%dir %{ooodir}/share/xdg
2014-08-14 22:01:17 +04:00
%{ooodir}/share/xdg/draw.desktop
%{_datadir}/appdata/libreoffice-draw.appdata.xml
#----------------------------------------------------------------------------
2012-04-17 15:11:02 +04:00
%package gnome
2013-09-05 22:06:18 +04:00
Summary: GNOME Integration for LibreOffice (VFS, GConf)
Group: Office
2013-09-05 22:06:18 +04:00
Requires: %{name}-common = %{EVRD}
2012-04-17 15:11:02 +04:00
%description gnome
This package contains the GNOME VFS support and a GConf backend.
%files gnome -f file-lists/gnome_list.uniq.sorted.txt
#----------------------------------------------------------------------------
2019-10-15 16:00:24 +03:00
%package gtk3-kde5
Summary: GTK3-KDE5 Integration for LibreOffice (Widgets, Dialogs, Addressbook)
Group: Office
Requires: %{name}-common = %{EVRD}
2020-01-04 04:24:07 +03:00
Recommends: %{name}-style-breeze = %{EVRD}
2020-04-04 21:31:11 +03:00
Obsoletes: %{name}-kde4 < %{EVRD}
2019-10-15 16:00:24 +03:00
%description gtk3-kde5
This package contains the KDE5 plugin for drawing LibreOffice widgets with
KDE5/Qt5.x and a KDEish File Picker when running under KDE5.
%files gtk3-kde5
%{ooodir}/program/libvclplug_gtk3_kde5lo.so
%{ooodir}/program/lo_kde5filepicker
#----------------------------------------------------------------------------
%package kde5
Summary: KDE5 Integration for LibreOffice (Widgets, Dialogs, Addressbook)
Group: Office
Requires: %{name}-common = %{EVRD}
2020-01-04 04:24:07 +03:00
Recommends: %{name}-style-breeze = %{EVRD}
2019-10-15 16:00:24 +03:00
%description kde5
This package contains the KDE5 plugin for drawing LibreOffice widgets with
KDE5/Qt5.x and a KDEish File Picker when running under KDE5.
%files kde5
%{ooodir}/program/libkde5be1lo.so
%{ooodir}/program/libvclplug_kde5lo.so
%{ooodir}/program/libvclplug_qt5lo.so
#----------------------------------------------------------------------------
2012-04-17 15:11:02 +04:00
%package impress
2013-09-05 22:06:18 +04:00
Summary: LibreOffice office suite - presentation
Group: Office
Requires: %{name}-common = %{EVRD}
2013-09-05 22:06:18 +04:00
Requires: %{name}-draw = %{EVRD}
Obsoletes: %{name}-presentation-minimizer < %{EVRD}
2012-04-17 15:11:02 +04:00
%description impress
This package contains the presentation component for LibreOffice.
%files impress -f file-lists/impress_list.txt
%{_iconsdir}/hicolor/scalable/apps/mandriva-rosa-lo-impress_72.svg
%{_mandir}/man1/loimpress*
2019-10-15 16:00:24 +03:00
%dir %{ooodir}/share/xdg
2014-08-14 22:01:17 +04:00
%{ooodir}/share/xdg/impress.desktop
%{_datadir}/appdata/libreoffice-impress.appdata.xml
#----------------------------------------------------------------------------
2012-04-17 15:11:02 +04:00
%package math
2013-09-05 22:06:18 +04:00
Summary: LibreOffice office suite - equation editor
Group: Office
2013-09-05 22:06:18 +04:00
Requires: %{name}-common = %{EVRD}
2012-04-17 15:11:02 +04:00
%description math
This package contains the equation editor component for LibreOffice.
%files math -f file-lists/math_list.txt
%{_iconsdir}/hicolor/scalable/apps/mandriva-rosa-lo-math_72.svg
%{_mandir}/man1/lomath*
2019-10-15 16:00:24 +03:00
%dir %{ooodir}/share/xdg
2014-08-14 22:01:17 +04:00
%{ooodir}/share/xdg/math.desktop
2016-09-07 13:57:56 +10:00
#----------------------------------------------------------------------------
2012-04-17 15:11:02 +04:00
%package openclipart
2013-09-05 22:06:18 +04:00
Summary: LibreOffice Open Clipart data
Group: Office
2013-09-05 22:06:18 +04:00
Requires: %{name}-common = %{EVRD}
2012-04-17 15:11:02 +04:00
%description openclipart
This package contains the LibreOffice Open Clipart data, including images
and sounds.
%files openclipart
%{ooodir}/share/gallery/apples*
%{ooodir}/share/gallery/arrows*
%{ooodir}/share/gallery/bigapple*
%{ooodir}/share/gallery/bullets*
%{ooodir}/share/gallery/computers*
%{ooodir}/share/gallery/diagrams*
%{ooodir}/share/gallery/education*
%{ooodir}/share/gallery/environment*
%{ooodir}/share/gallery/finance*
%{ooodir}/share/gallery/flower*
%{ooodir}/share/gallery/htmlexpo*
%{ooodir}/share/gallery/people*
2019-10-15 16:00:24 +03:00
%{ooodir}/share/gallery/personas*
%{ooodir}/share/gallery/sg[0-9]*.*
%{ooodir}/share/gallery/sky.*
%{ooodir}/share/gallery/sounds*
%{ooodir}/share/gallery/symbols*
%{ooodir}/share/gallery/transportation*
%{ooodir}/share/gallery/txtshapes*
%{ooodir}/share/gallery/www-graf*
%exclude %{ooodir}/share/gallery/sg24.*
#----------------------------------------------------------------------------
2012-04-17 15:11:02 +04:00
%package pyuno
2013-09-05 22:06:18 +04:00
Summary: Python bindings for UNO library
Group: Office
2013-09-05 22:06:18 +04:00
Requires: %{name}-common = %{EVRD}
# mailmerge.py was packaged in libreoffice-common by mistake
Conflicts: %{name}-common < 1:4.4.7
2014-06-24 15:23:52 +11:00
Conflicts: %{name}-mailmerge < %{EVRD}
Obsoletes: %{name}-mailmerge < %{EVRD}
2012-04-17 15:11:02 +04:00
%description pyuno
This package contains the Python bindings for the UNO library.
%files pyuno -f file-lists/pyuno_list.txt
#----------------------------------------------------------------------------
%define style_package()\
%{expand:\
%%package style-%1 \
Summary: %1 symbol style for LibreOffice \
Group: Office \
Requires: %{name}-common = %{EVRD} \
Provides: %{name}-style = %{EVRD} \
Obsoletes: %{name}-common < 1:6.3.5 \
Conflicts: %{name}-common < 1:6.3.5 \
\
%%description style-%1 \
%1 symbol style for LibreOffice \
\
%%files style-%1 \
%{ooodir}/share/config/images_%{1}*.zip
}
%style_package breeze
%style_package colibre
%style_package elementary
%style_package karasa_jaga
%style_package sifr
%style_package tango
#----------------------------------------------------------------------------
2012-04-17 15:11:02 +04:00
%package writer
2013-09-05 22:06:18 +04:00
Summary: LibreOffice office suite - word processor
Group: Office
2013-09-05 22:06:18 +04:00
Requires: %{name}-common = %{EVRD}
2020-01-04 04:24:07 +03:00
Recommends: libreoffice-pagination
2012-04-17 15:11:02 +04:00
%description writer
This package contains the word processor component for LibreOffice.
%files writer -f file-lists/writer_list.txt
%{_iconsdir}/hicolor/scalable/apps/mandriva-rosa-lo-writer_72.svg
%{_mandir}/man1/loweb*
%{_mandir}/man1/lowriter*
2019-10-15 16:00:24 +03:00
%dir %{ooodir}/share/xdg
2014-08-14 22:01:17 +04:00
%{ooodir}/share/xdg/writer.desktop
%{_datadir}/appdata/libreoffice-writer.appdata.xml
2012-04-17 15:11:02 +04:00
#----------------------------------------------------------------------------
2012-04-17 15:11:02 +04:00
%package wiki-publisher
2013-09-05 22:06:18 +04:00
Summary: LibreOffice office suite - Wiki Publisher extension
Group: Office
2013-09-05 22:06:18 +04:00
Requires: %{name}-common = %{EVRD}
Requires: %{name}-writer = %{EVRD}
2012-09-17 13:37:52 +04:00
%if !%{javaless}
Requires: apache-commons-logging
2012-04-17 15:11:02 +04:00
%endif
%description wiki-publisher
With Wiki Publisher extesion is possible by using %{name}-writer to create
wiki page articles on MediaWiki servers without having to know the syntax of
MediaWiki markup language. This extension also enables publishing of the
wiki pages.
%files wiki-publisher
%{ooodir}/share/extensions/wiki-publisher
#----------------------------------------------------------------------------
2013-09-18 21:13:44 +11:00
%package extension-converttexttonumber
Summary: Text to number converter for LibreOffice
Group: Office
Requires: %{name}-calc = %{EVRD}
%description extension-converttexttonumber
ConvertTextToNumber replaces numbers and dates, formatted as text, with
real numbers.
Choices can be made about marking of cells, including cells with
non-default decimal separators, conversion of dates, and more.
As a result of the conversion, the text cells will become real numbers,
and then will be counted as expected in formulas Calc.
%files extension-converttexttonumber
%{ooodir}/share/extensions/ConvertTextToNumber
#----------------------------------------------------------------------------
%package extension-languagetool
Summary: A LibreOffice extension for style and grammar proofreading
Group: Office
Requires: %{name}-writer = %{EVRD}
%description extension-languagetool
A LibreOffice extension for style and grammar proofreading.
%files extension-languagetool
%{ooodir}/share/extensions/LanguageTool
#----------------------------------------------------------------------------
%package extension-nlpsolver
Summary: Solver extension for LibreOffice Calc
Group: Office
Requires: %{name}-calc = %{EVRD}
%description extension-nlpsolver
Extension integrating a solver engine for optimizing nonlinear programming
models into Calc.
%files extension-nlpsolver
%{ooodir}/share/extensions/nlpsolver
#----------------------------------------------------------------------------
%package extension-numbertext
Summary: Number-to-Text conversion function for LibreOffice Calc
Group: Office
Requires: %{name}-calc = %{EVRD}
%description extension-numbertext
Number-to-Text conversion function for LibreOffice Calc.
%files extension-numbertext
%{ooodir}/share/extensions/numbertext
#----------------------------------------------------------------------------
2012-09-17 13:37:52 +04:00
%package postgresql
2013-09-05 22:06:18 +04:00
Summary: PostgreSQL connector for LibreOffice
Group: Office
Requires: %{name}-base = %{EVRD}
2012-09-17 13:37:52 +04:00
%description postgresql
A PostgreSQl connector for the database front-end for LibreOffice. Allows
creation and management of PostgreSQL databases through a GUI.
2012-04-17 15:11:02 +04:00
%files postgresql
%{ooodir}/program/libpostgresql-sdbclo.so
%{ooodir}/program/libpostgresql-sdbc-impllo.so
%{ooodir}/program/postgresql-sdbc.ini
%{ooodir}/program/services/postgresql-sdbc.rdb
%{ooodir}/share/registry/postgresql.xcd
#----------------------------------------------------------------------------
%if %{with l10n}
2012-04-17 15:11:02 +04:00
%define l10n_package()\
%{expand:\
%%package l10n-%{1} \
Summary: %(echo "%{2}" | sed -e 's,___, ,g') language support for LibreOffice \
Group: Office \
Provides: %{ooname}-l10n = %{EVRD} \
Requires: %{ooname}-common = %{EVRD} \
Requires: locales-%(echo %{1} | awk -F '_' '{print $1}') \
Provides: LibreOffice-l10n-%{1} = %{EVRD} \
\
%%description l10n-%{1} \
This package contains the localization of LibreOffice in %(echo "%{2}" | sed -e 's,___, ,g'). \
It contains the user interface, the templates and the autotext \
features. Please note that not all of these are available for all \
possible language. You can switch user interface language using the \
standard locales system. \
\
%%files l10n-%{1} \
%{ooodir}/share/registry/res/*_%{3}.* \
%{ooodir}/share/registry/*-%{3}.* \
%%optional %{ooodir}/share/registry/*_%{3}.* \
%{ooodir}/share/autotext/%{3} \
%{ooodir}/readmes/README_%{3} \
%{ooodir}/program/resource/%{1}
}
%{expand:
%(for i in %{langs}; do \
[ "$i" = "en_US" ] && continue; \
name="$(grep "^${i};" %{SOURCE5} | awk -F ';' '{print $2}' | tail -n 1 | sed -E -e 's,[[:blank:]],___,g' || :)" ; \
j="$(echo "$i" | sed -e 's,_,-,g')" ; \
echo "%%{l10n_package "$i" "$name" "$j"}"; \
done)}
2012-04-17 15:11:02 +04:00
%define help_package()\
%{expand:
%%package help-%{1} \
Summary: %(echo "%{2}" | sed -e 's,___, ,g') help for LibreOffice \
Group: Office \
Provides: %{ooname}-help = %{EVRD} \
Requires: %{ooname}-l10n-%{1} = %{EVRD} \
Provides: LibreOffice-help-%{1} = %{EVRD} \
\
%%description help-%{1} \
Localized help files of LibreOffice in %(echo "%{2}" | sed -e 's,___, ,g'). \
\
%%files help-%{1} \
%{ooodir}/help/%{3}
}
%{expand:
%(for i in %{helplangs} ; do \
name="$(grep "^${i};" %{SOURCE5} | awk -F ';' '{print $2}' | tail -n 1 || :)" ; \
j="$(echo "$i" | sed -e 's,_,-,g')" ; \
echo "%%{help_package "$i" "$(echo "$name" | sed -E -e 's,[[:blank:]],___,g')" "$j"}"; \
done) }
2012-04-17 15:11:02 +04:00
%endif
#----------------------------------------------------------------------------
2012-04-17 15:11:02 +04:00
%prep
2013-09-05 22:06:18 +04:00
%setup -q -c -a 1 -a 2 -a 3
2012-09-17 13:37:52 +04:00
rm -rf git-hooks */git-hooks
2012-04-17 15:11:02 +04:00
for a in */*; do mv `pwd`/$a .; done
#ant
2012-09-17 13:37:52 +04:00
%if %{javaless}
2013-09-05 22:06:18 +04:00
tar -xjvf %{SOURCE20}
2012-04-17 15:11:02 +04:00
%endif
2013-09-05 22:06:18 +04:00
%apply_patches
2012-04-17 15:11:02 +04:00
# to make the friggin cppunit tests work
mkdir -p ~/tmp
chmod 777 ~/tmp
# 4.4.1.2 specific
chmod +x bin/unpack-sources
2012-04-17 15:11:02 +04:00
%build
2020-03-02 09:54:45 +00:00
# path to external tarballs
EXTSRCDIR=`dirname %{SOURCE0}`
export LC_ALL=en_US.UTF-8
export LANG=en_US
%if !%{with icecream}
2012-04-17 15:11:02 +04:00
PATH=$PATH:/usr/sbin
export PATH
%endif
%if %{with ccache}
2012-04-17 15:11:02 +04:00
export CCACHE_DIR=%{ccachedir}
%endif
%setup_compile_flags
%if %{with clang}
# not using %%clang_gcc_wrapper here because it fails
# to deal with complex quotation like
# -DCPPUNIT_PLUGIN_EXPORT='extern "C" SAL_DLLPUBLIC_EXPORT'
for i in %noclang_optflags ; do
export CFLAGS="$(echo "$CFLAGS" | sed -e "s,${i},,g")"
export CXXFLAGS="$(echo "$CXXFLAGS" | sed -e "s,${i},,g")"
done
mkdir -p local_bin
install -m0755 %{SOURCE80} "local_bin/clang++"
export PATH="${PWD}/local_bin:${PATH}"
export CC=clang
export CXX=clang++
export CPP=clang-cpp
# libstdc++ from gcc5 is too old, use newer version of libstdc++
export CPPFLAGS="$CPPFLAGS -I%{_includedir}/libstdc++-gcc10 -I%{_includedir}/libstdc++-gcc10/%{_host}"
export CXXFLAGS="$CXXFLAGS -nostdinc++ $CPPFLAGS -Wno-unused-command-line-argument -D__STDCPP_WANT_MATH_SPEC_FUNCS__"
export LIBCCX_LIBS="-lstdc++-gcc10"
2019-10-15 16:00:24 +03:00
%endif
2012-04-17 15:11:02 +04:00
echo "Configure start at: "`date` >> ooobuildtime.log
2012-04-17 15:11:02 +04:00
2014-08-07 09:31:54 +04:00
touch autogen.lastrun
2019-10-15 16:00:24 +03:00
%if %{with clang}
sed -i \
-e "s!clang -V!clang -v!g" \
-e "s!clang -qversion!clang --version!g" \
configure
%endif
2020-01-04 04:24:07 +03:00
%configure \
2013-09-05 22:06:18 +04:00
%{?_smp_mflags:--with-parallelism="`getconf _NPROCESSORS_ONLN`"} \
2014-06-24 03:38:51 +11:00
--with-vendor=ROSA \
2017-07-31 03:48:44 +03:00
--with-build-version="ROSA %{buildver}-%{release}" \
--disable-coinmp \
2013-09-05 22:06:18 +04:00
--disable-fetch-external \
2020-03-02 09:54:45 +00:00
--with-external-tar="$EXTSRCDIR" \
--disable-gstreamer-0.10 \
--enable-release-build \
2019-10-15 16:00:24 +03:00
--enable-gtk3-kde5 \
--enable-kde5 \
--enable-qt5 \
2014-08-07 09:04:49 +04:00
--disable-firebird-sdbc \
--disable-introspection \
--enable-eot \
2013-03-04 13:55:29 +04:00
--enable-odk \
--enable-split-app-modules \
2014-06-24 15:23:52 +11:00
--enable-split-opt-features \
2013-09-05 22:06:18 +04:00
--without-fonts \
2019-10-15 16:00:24 +03:00
--without-lxml \
2013-03-04 13:55:29 +04:00
--without-junit \
2012-09-17 13:37:52 +04:00
%if %{javaless}
--with-ant-home="%{antpath}" \
2020-03-02 09:54:45 +00:00
%else
--with-jdk-home="%{java_home}" \
2012-04-17 15:11:02 +04:00
%endif
--with-lang="$(echo %{langs} | sed -e 's,_,-,g')" \
2012-04-17 15:11:02 +04:00
--without-myspell-dicts \
--with-system-dicts \
2013-09-05 22:06:18 +04:00
--with-help \
2012-04-17 15:11:02 +04:00
--with-external-dict-dir=%{_datadir}/dict/ooo \
2012-09-17 13:37:52 +04:00
--with-external-hyph-dir=%{_datadir}/dict/ooo \
--with-external-thes-dir=%{_datadir}/dict/ooo \
2013-09-05 22:06:18 +04:00
--with-system-libs \
--with-system-ucpp \
--enable-ext-ct2n \
--enable-ext-numbertext \
--enable-ext-nlpsolver \
--enable-ext-languagetool \
2012-09-17 13:37:52 +04:00
--enable-ext-wiki-publisher \
--enable-ext-mariadb-connector \
%if %{with ccache} && !%{with icecream}
2012-04-17 15:11:02 +04:00
--with-gcc-speedup=ccache \
%else
%if !%{with ccache} && %{with icecream}
2012-04-17 15:11:02 +04:00
--with-gcc-speedup=icecream \
--with-max-jobs=10 \
--with-icecream-bindir=%{_libdir}/icecc/bin
%else
%if %{with ccache} && %{with icecream}
2012-04-17 15:11:02 +04:00
--with-gcc-speedup=ccache,icecream \
--with-max-jobs=10 \
--with-icecream-bindir=%{_libdir}/icecc/bin
%endif
%endif
%endif
sed -i -e "s,\$ENV{'MD5SUM'},md5sum,g" solenv/bin/modules/installer/systemactions.pm solenv/bin/modules/installer.pm
2012-04-17 15:11:02 +04:00
echo "Configure end at: "`date` >> ooobuildtime.log
echo "Make start at: "`date` >> ooobuildtime.log
2014-08-05 15:12:22 +04:00
# some configs to improve build process
2012-04-17 15:11:02 +04:00
# http://wiki.services.openoffice.org/wiki/Building_OpenOffice.org
2014-08-05 14:20:18 +04:00
# needs to check if it does any effect
2012-04-17 15:11:02 +04:00
export nodep=TRUE
export NO_HIDS=TRUE
export MAXPROCESS=4
2012-04-17 15:11:02 +04:00
2014-08-05 14:20:18 +04:00
mkdir -p external/tarballs
ln -sf %{SOURCE2} external/tarballs/
ln -sf %{SOURCE3} external/tarballs/
2014-08-14 22:01:17 +04:00
cp %{SOURCE4} external/tarballs/
2014-11-13 08:57:48 -05:00
2014-09-05 08:06:17 -04:00
ln -sf %{SOURCE33} external/tarballs/
2014-08-05 14:20:18 +04:00
ln -sf %{SOURCE35} external/tarballs/
ln -sf %{SOURCE36} external/tarballs/
2014-08-05 16:50:43 +04:00
ln -sf %{SOURCE37} external/tarballs/
2017-07-31 03:48:44 +03:00
cp %{SOURCE49} external/tarballs/
2014-08-05 14:20:18 +04:00
2014-08-05 16:50:43 +04:00
ln -sf %{SOURCE51} external/tarballs/
ln -sf %{SOURCE54} external/tarballs/
ln -sf %{SOURCE56} external/tarballs/
2014-08-05 15:12:22 +04:00
ln -sf %{SOURCE60} external/tarballs/
2014-08-05 15:34:30 +04:00
ln -sf %{SOURCE61} external/tarballs/
2014-08-05 16:50:43 +04:00
ln -sf %{SOURCE62} external/tarballs/
ln -sf %{SOURCE63} external/tarballs/
ln -sf %{SOURCE64} external/tarballs/
ln -sf %{SOURCE65} external/tarballs/
ln -sf %{SOURCE66} external/tarballs/
ln -sf %{SOURCE67} external/tarballs/
2014-08-05 14:20:18 +04:00
ln -sf %{SOURCE68} external/tarballs/
ln -sf %{SOURCE69} external/tarballs/
ln -sf %{SOURCE70} external/tarballs/
2014-08-05 14:20:18 +04:00
2019-10-15 16:00:24 +03:00
cp %{SOURCE71} external/tarballs/
cp %{SOURCE72} external/tarballs/
2014-08-05 14:20:18 +04:00
touch external/tarballs/.downloaded
2012-04-17 15:11:02 +04:00
# We use make build here because the default target is "allandcheck".
2014-08-05 14:20:18 +04:00
# Checking should go to check
#%%make V=1 verbose=t GMAKE_OPTIONS='VERBOSE=1' build-nocheck
%make -r -s V=0 build-nocheck
echo "Make end at: "`date` >> ooobuildtime.log
echo "Install start at: "`date` >> ooobuildtime.log
2012-04-17 15:11:02 +04:00
%install
# sbin due to icu stuff there
PATH=$PATH:/usr/sbin
make DESTDIR=%{buildroot} distro-pack-install
rm -rf %{buildroot}/opt
# Mandriva Rosa icons
mkdir -p %{buildroot}%{_iconsdir}/hicolor/scalable/apps/
tar -xjvf %{SOURCE10} --exclude Libre_Office* -C %{buildroot}%{_iconsdir}/hicolor/scalable/apps/
2017-11-02 23:28:47 +03:00
sed -i 's/^Icon=.*$/Icon=libreoffice-calc/' %{buildroot}%{ooodir}/share/xdg/calc.desktop
sed -i 's/^Icon=.*$/Icon=libreoffice-writer/' %{buildroot}%{ooodir}/share/xdg/writer.desktop
sed -i 's/^Icon=.*$/Icon=libreoffice-impress/' %{buildroot}%{ooodir}/share/xdg/impress.desktop
sed -i 's/^Icon=.*$/Icon=libreoffice-draw/' %{buildroot}%{ooodir}/share/xdg/draw.desktop
sed -i 's/^Icon=.*$/Icon=libreoffice-base/' %{buildroot}%{ooodir}/share/xdg/base.desktop
sed -i 's/^Icon=.*$/Icon=libreoffice-math/' %{buildroot}%{ooodir}/share/xdg/math.desktop
sed -i 's/^Icon=.*$/Icon=libreoffice-startcenter/' %{buildroot}%{ooodir}/share/xdg/startcenter.desktop
2012-04-17 15:11:02 +04:00
# fix permissions for stripping
find %{buildroot} -type f -exec chmod u+rw '{}' \;
# fix permission of .so libraries
find %{buildroot} -type f \( -name '*.so' -o -name '*.so.*' \) -exec chmod a+x '{}' \;
# Change progress bar colors
2013-03-04 13:55:29 +04:00
sed -i '/^ProgressBarColor/d;/^ProgressFrameColor/d' \
%{buildroot}%{ooodir}/program/sofficerc
echo 'ProgressBarColor=68,135,223' >> %{buildroot}%{ooodir}/program/sofficerc
echo 'ProgressFrameColor=112,171,229' >> %{buildroot}%{ooodir}/program/sofficerc
2012-04-17 15:11:02 +04:00
#dev300 fix position and size
2013-03-04 13:55:29 +04:00
sed -i '/^ProgressPosition/d;/^ProgressSize/d' \
%{buildroot}%{ooodir}/program/sofficerc
echo 'ProgressPosition=10,307' >> %{buildroot}%{ooodir}/program/sofficerc
echo 'ProgressSize=377,9' >> %{buildroot}%{ooodir}/program/sofficerc
2012-04-17 15:11:02 +04:00
# move python bits into site-packages
mkdir -p %{buildroot}/%{py3_platsitedir}
pushd %{buildroot}/%{py3_platsitedir}
echo "import sys, os" > uno.py
echo "sys.path.append('%{ooodir}/program')" >> uno.py
2016-01-31 20:06:57 +03:00
echo "os.putenv('URE_BOOTSTRAP', 'vnd.sun.star.pathname:%{_libdir}/%{name}/program/fundamentalrc')" >> uno.py
cat %{buildroot}%{ooodir}/program/uno.py >> uno.py
rm -f %{buildroot}%{ooodir}/program/uno.py*
mv -f %{buildroot}%{ooodir}/program/unohelper.py* .
mv -f %{buildroot}%{ooodir}/program/officehelper.py* .
popd
sed -i 's|%{ooodir}/program/uno.py|%{py3_platsitedir}/uno.py|' file-lists/pyuno_list.txt
sed -i 's|%{ooodir}/program/unohelper.py|%{py3_platsitedir}/unohelper.py|' file-lists/pyuno_list.txt
sed -i 's|%{ooodir}/program/officehelper.py|%{py3_platsitedir}/officehelper.py|' file-lists/pyuno_list.txt
# common shouldn't depend on writer...
# but common does depend on libswdlo.so
grep libswdlo.so file-lists/writer_list.txt >>file-lists/common_list.txt
sed -i -e '/libswdlo.so/d' file-lists/writer_list.txt
2012-04-17 15:11:02 +04:00
## Installation fixes
## remove fix wrong manpages files, extension gz->xz
for p in common base calc writer impress draw math; do
sed -i '/^.*man.*\.gz$/d' file-lists/${p}_list.txt
2012-04-17 15:11:02 +04:00
done;
## sort removing duplicates
sort -u file-lists/gnome_list.txt > file-lists/gnome_list.uniq.sorted.txt
2017-11-02 23:28:47 +03:00
sort -u file-lists/sdk_list.txt > file-lists/sdk_list.uniq.sorted.txt
2012-04-17 15:11:02 +04:00
2013-03-04 13:55:29 +04:00
# Fix weirdo filenames wreaking havoc because they're regular expressions
sed -i -e 's/\[/?/g;s/\]/?/g' file-lists/sdk*.txt
## Split help
cd file-lists
for i in lang_*.txt; do
grep /help/ $i >${i/lang/help} || touch ${i/lang/help}
sed -i -e '/\/help\//d' $i
done
cd ..
# Split gallery
grep /share/gallery/ file-lists/common_list.txt >file-lists/gallery_list.txt
sed -i -e '/\/share\/gallery\//d' file-lists/common_list.txt
# We catch those in a regex to catch Sun Template extras
sed -i -e '/gallery\/sg[0-9]*\..*/d' file-lists/gallery_list.txt
2012-04-17 15:11:02 +04:00
## merge en-US with common
cat file-lists/lang_en_US_list.txt >> file-lists/common_list.txt
2014-06-24 19:50:04 +11:00
## merge dtd with common
2014-06-24 15:23:52 +11:00
cat file-lists/dtd_list.txt >> file-lists/common_list.txt
sort -u file-lists/common_list.txt > file-lists/common_list.uniq.sorted.txt
cat file-lists/common_list.uniq.sorted.txt >>file-lists/core_list.txt
2014-06-24 19:50:04 +11:00
## make sure we don't have duplicate files in core
sort -u file-lists/core_list.txt > file-lists/core_list.uniq.sorted.txt
cat file-lists/core_list.uniq.sorted.txt > file-lists/core_list.txt
2014-08-14 22:01:17 +04:00
egrep -v "libreoffice/share/xdg/(base|calc|draw|impress|math|writer)" file-lists/core_list.txt > file-lists/core_list.uniq.sorted.txt
cat file-lists/core_list.uniq.sorted.txt > file-lists/core_list.txt
## styles have their own packages
sed -E -i -e "/^.*images_.*\.zip$/d" file-lists/*.txt
echo %{ooodir}/share/config/images_helpimg.zip >> file-lists/core_list.txt
%check
# FIXME enable once the connection failures in firebird and hsqldb are fixed
# make check