1 |
# WARNING: This package is synced with FC |
2 |
# (tv) fix sdk requires: |
3 |
%global __requires_exclude devel\\(libreglo|devel\\(libxmlreaderlo|devel\\(libunoidllo |
4 |
# (tv) disable bytecompiling out of std path: |
5 |
%global _python_bytecompile_extra 0 |
6 |
|
7 |
# Workaround link issues |
8 |
%define _disable_ld_no_undefined 1 |
9 |
|
10 |
# download path contains version without the last (fourth) digit |
11 |
%global libo_version 24.2.2 |
12 |
# Should contain .alphaX / .betaX, if this is pre-release (actually |
13 |
# pre-RC) version. The pre-release string is part of tarball file names, |
14 |
# so we need a way to define it easily at one place. |
15 |
%global libo_prerelease %{nil} |
16 |
# Should contain any suffix of release tarball name, e.g., -buildfix1. |
17 |
%global libo_buildfix %{nil} |
18 |
# rhbz#715152 state vendor |
19 |
%global vendoroption --with-vendor="Mageia" |
20 |
%global libo_python python3 |
21 |
%global libo_python_executable %{__python3} |
22 |
%global libo_python_sitearch %{python3_sitearch} |
23 |
# rhbz#465664 jar-repacking breaks help by reordering META-INF/MANIFEST.MF |
24 |
%global __jar_repack %{nil} |
25 |
# make it easier to download sources from pre-release site |
26 |
%if 0%{?prerelease} |
27 |
%global source_url https://dev-builds.libreoffice.org/pre-releases/src |
28 |
%else |
29 |
%global source_url https://download.documentfoundation.org/libreoffice/src/%{libo_version} |
30 |
%endif |
31 |
# URL for external projects' tarballs |
32 |
%global external_url https://dev-www.libreoffice.org/src |
33 |
%global weak_deps 1 |
34 |
%global girapiversion 0.1 |
35 |
|
36 |
# get english only and no-langpacks for a faster smoketest build |
37 |
# fedpkg compile/install/local/mockbuild does not handle --without ATM, |
38 |
# so it is necessary to change this to bcond_with to achieve the same |
39 |
# effect |
40 |
%ifarch %arm |
41 |
%bcond_with langpacks |
42 |
%else |
43 |
%bcond_without langpacks |
44 |
%endif |
45 |
|
46 |
# Disable firebird for RHEL |
47 |
%if 0%{?rhel} |
48 |
%bcond_with firebird |
49 |
%else |
50 |
%bcond_without firebird |
51 |
%endif |
52 |
|
53 |
# Handle KDE/Qt integration for Fedora and RHEL/EPEL |
54 |
%if 0%{?rhel} && 0%{?rhel} < 10 |
55 |
%bcond_with kf5 |
56 |
%bcond_with kf6 |
57 |
%endif |
58 |
|
59 |
# KDE Plasma 5 integration only for Fedora |
60 |
%if 0%{?mageia} |
61 |
%bcond_without kf5 |
62 |
%endif |
63 |
|
64 |
# KDE Plasma 6 integration for Fedora and RHEL/EPEL 10+ |
65 |
%if 0%{?mageia} |
66 |
%bcond_with kf6 |
67 |
%endif |
68 |
|
69 |
|
70 |
# generated by %%langpack definitions |
71 |
%global langpack_langs %{nil} |
72 |
|
73 |
%global bundling_options %{nil} |
74 |
|
75 |
Summary: Free Software Productivity Suite |
76 |
Name: libreoffice |
77 |
Epoch: 1 |
78 |
Version: %{libo_version}.2 |
79 |
Release: %mkrel 1 |
80 |
# default new files are: MPLv2 |
81 |
# older files are typically: MPLv2 incorporating work under ASLv2 |
82 |
# nlpsolver is: LGPLv3 |
83 |
# icon-themes/karasa_jaga/COPYING: LGPLv3+ |
84 |
# icon-themes/colibre/COPYING-ICONS: CC0 |
85 |
# lotuswordpro is: Either LGPL 2.1 or SISSL 1.1 |
86 |
# wizards/source/access2base: Either MPLv2 or LGPLv3+ |
87 |
# writerperfect/source/common/DirectoryStream.cxx: MPLv2 or LGPLv2+ |
88 |
# extras/source/autocorr/lang/hr/license.md: GPL 2.0 or LGPL2 or MPLv1.1 |
89 |
# odk/examples/java/...: 3 clause BSD |
90 |
License: MPL-2.0 and Apache-2.0 and LGPL-3.0-only and LGPL-3.0-or-later and CC0-1.0 and BSD-3-Clause and (LGPL-2.1-only or SISSL) and (MPL-2.0 or LGPL-3.0-or-later) and (MPL-2.0 or LGPL-2.1-or-later) and (MPL-1.1 or GPL-2.0-only or LGPL-2.1-only) |
91 |
Group: Office/Suite |
92 |
URL: https://www.libreoffice.org/ |
93 |
|
94 |
Source0: %{source_url}/libreoffice-%{version}%{?libo_prerelease}%{?libo_buildfix}.tar.xz |
95 |
Source1: %{source_url}/libreoffice-%{version}%{?libo_prerelease}%{?libo_buildfix}.tar.xz.asc |
96 |
Source2: %{source_url}/libreoffice-help-%{version}%{?libo_prerelease}%{?libo_buildfix}.tar.xz |
97 |
Source3: %{source_url}/libreoffice-help-%{version}%{?libo_prerelease}%{?libo_buildfix}.tar.xz.asc |
98 |
Source4: %{source_url}/libreoffice-translations-%{version}%{?libo_prerelease}%{?libo_buildfix}.tar.xz |
99 |
Source5: %{source_url}/libreoffice-translations-%{version}%{?libo_prerelease}%{?libo_buildfix}.tar.xz.asc |
100 |
Source6: gpgkey-C2839ECAD9408FBE9531C3E9F434A1EFAFEEAEA3.gpg.asc |
101 |
Source7: https://dev-www.libreoffice.org/extern/185d60944ea767075d27247c3162b3bc-unowinreg.dll |
102 |
Source8: libreoffice-multiliblauncher.sh |
103 |
|
104 |
Source9: %{external_url}/dtoa-20180411.tgz |
105 |
Source11: %{external_url}/a7983f859eafb2677d7ff386a023bc40-xsltml_2.1.2.zip |
106 |
|
107 |
# Unfortunately later versions of hsqldb changed the file format, so if we use a later version we lose |
108 |
# backwards compatability. |
109 |
# LibreOffice is also pinned to use hsqldb really old version 1.8.0 so there's currently no way building |
110 |
# with system provided hsqldb without major hacking. |
111 |
Source12: %{external_url}/17410483b5b5f267aa18b7e00b65e6e0-hsqldb_1_8_0.zip |
112 |
Source13: %{external_url}/../extern/f543e6e2d7275557a839a164941c0a86e5f2c3f2a0042bfc434c88c6dde9e140-opens___.ttf |
113 |
Source14: %{external_url}/Java-WebSocket-1.5.4.tar.gz |
114 |
%global bundling_options %{?bundling_options} --without-system-hsqldb |
115 |
|
116 |
Provides: bundled(hsqldb) = 1.8.0 |
117 |
Provides: bundled(xsltml) = 2.1.2 |
118 |
|
119 |
# symbolic icons |
120 |
Source42: https://raw.githubusercontent.com/gnome-design-team/gnome-icons/master/apps-symbolic/Adwaita/scalable/apps/libreoffice-base-symbolic.svg |
121 |
Source43: https://raw.githubusercontent.com/gnome-design-team/gnome-icons/master/apps-symbolic/Adwaita/scalable/apps/libreoffice-calc-symbolic.svg |
122 |
Source44: https://raw.githubusercontent.com/gnome-design-team/gnome-icons/master/apps-symbolic/Adwaita/scalable/apps/libreoffice-draw-symbolic.svg |
123 |
Source45: https://raw.githubusercontent.com/gnome-design-team/gnome-icons/master/apps-symbolic/Adwaita/scalable/apps/libreoffice-impress-symbolic.svg |
124 |
Source46: https://raw.githubusercontent.com/gnome-design-team/gnome-icons/master/apps-symbolic/Adwaita/scalable/apps/libreoffice-main-symbolic.svg |
125 |
Source47: https://raw.githubusercontent.com/gnome-design-team/gnome-icons/master/apps-symbolic/Adwaita/scalable/apps/libreoffice-math-symbolic.svg |
126 |
Source48: https://raw.githubusercontent.com/gnome-design-team/gnome-icons/master/apps-symbolic/Adwaita/scalable/apps/libreoffice-writer-symbolic.svg |
127 |
|
128 |
# build tools |
129 |
BuildRequires: appstream-util |
130 |
BuildRequires: autoconf |
131 |
BuildRequires: automake |
132 |
BuildRequires: bc |
133 |
BuildRequires: binutils |
134 |
BuildRequires: bison |
135 |
BuildRequires: desktop-file-utils |
136 |
BuildRequires: doxygen |
137 |
BuildRequires: findutils |
138 |
BuildRequires: flex |
139 |
BuildRequires: gcc-c++ |
140 |
BuildRequires: gettext |
141 |
BuildRequires: gnupg2 |
142 |
BuildRequires: gperf |
143 |
BuildRequires: hunspell-en-US |
144 |
BuildRequires: icu |
145 |
BuildRequires: libtool-ltdl-devel |
146 |
BuildRequires: make |
147 |
BuildRequires: pkgconfig(libmariadb) |
148 |
BuildRequires: patch |
149 |
BuildRequires: perl(Digest::MD5) |
150 |
BuildRequires: perl(FindBin) |
151 |
BuildRequires: perl(base) |
152 |
BuildRequires: perl(lib) |
153 |
%if 0%{?mageia} |
154 |
BuildRequires: pkgconfig(appstream-glib) |
155 |
%endif |
156 |
# (tv) for xmllint: |
157 |
BuildRequires: libxml2-utils |
158 |
# (tv) for xsltproc: |
159 |
BuildRequires: xsltproc |
160 |
BuildRequires: zip |
161 |
|
162 |
# libs / headers - common |
163 |
BuildRequires: %{libo_python}-devel |
164 |
BuildRequires: %{libo_python}-setuptools |
165 |
BuildRequires: pkgconfig(box2d) |
166 |
BuildRequires: boost-devel |
167 |
BuildRequires: cups-devel |
168 |
BuildRequires: dragonbox-static |
169 |
BuildRequires: fontpackages-devel |
170 |
%if %{with firebird} |
171 |
BuildRequires: firebird-devel |
172 |
BuildRequires: pkgconfig(fbclient) |
173 |
%endif |
174 |
BuildRequires: glm-devel |
175 |
BuildRequires: hyphen-devel |
176 |
BuildRequires: libjpeg-turbo-devel |
177 |
BuildRequires: lpsolve-devel |
178 |
BuildRequires: openldap-devel |
179 |
BuildRequires: pam-devel |
180 |
BuildRequires: pkgconfig(bluez) |
181 |
BuildRequires: pkgconfig(dconf) |
182 |
BuildRequires: pkgconfig(epoxy) |
183 |
BuildRequires: pkgconfig(evolution-data-server-1.2) |
184 |
BuildRequires: pkgconfig(expat) |
185 |
BuildRequires: pkgconfig(freetype2) |
186 |
BuildRequires: pkgconfig(gobject-introspection-1.0) |
187 |
BuildRequires: pkgconfig(gstreamer-1.0) |
188 |
BuildRequires: pkgconfig(gstreamer-plugins-base-1.0) |
189 |
BuildRequires: pkgconfig(gtk+-3.0) |
190 |
BuildRequires: pkgconfig(gtk4) |
191 |
BuildRequires: pkgconfig(hunspell) |
192 |
BuildRequires: pkgconfig(ice) |
193 |
BuildRequires: pkgconfig(icu-i18n) |
194 |
BuildRequires: pkgconfig(lcms2) |
195 |
BuildRequires: pkgconfig(libabw-0.1) |
196 |
BuildRequires: pkgconfig(libargon2) |
197 |
BuildRequires: pkgconfig(libcdr-0.1) |
198 |
BuildRequires: pkgconfig(libclucene-core) |
199 |
BuildRequires: pkgconfig(libcmis-0.6) |
200 |
BuildRequires: pkgconfig(libcurl) |
201 |
BuildRequires: pkgconfig(libetonyek-0.1) |
202 |
BuildRequires: pkgconfig(libexttextcat) |
203 |
BuildRequires: pkgconfig(libfreehand-0.1) |
204 |
BuildRequires: pkgconfig(liblangtag) |
205 |
BuildRequires: pkgconfig(libmspub-0.1) |
206 |
BuildRequires: pkgconfig(libmwaw-0.3) |
207 |
BuildRequires: pkgconfig(libodfgen-0.1) |
208 |
BuildRequires: pkgconfig(libpagemaker-0.0) |
209 |
BuildRequires: pkgconfig(libpq) |
210 |
BuildRequires: pkgconfig(librevenge-0.0) |
211 |
BuildRequires: pkgconfig(libstaroffice-0.0) |
212 |
BuildRequires: pkgconfig(libtiff-4) |
213 |
BuildRequires: pkgconfig(libvisio-0.1) |
214 |
BuildRequires: pkgconfig(libwebp) |
215 |
BuildRequires: pkgconfig(libwpd-0.10) |
216 |
BuildRequires: pkgconfig(libwpg-0.3) |
217 |
BuildRequires: pkgconfig(libwps-0.4) |
218 |
BuildRequires: pkgconfig(libxml-2.0) |
219 |
BuildRequires: pkgconfig(libxslt) |
220 |
BuildRequires: pkgconfig(libzmf-0.0) |
221 |
BuildRequires: pkgconfig(mythes) |
222 |
BuildRequires: pkgconfig(neon) |
223 |
BuildRequires: pkgconfig(nss) |
224 |
BuildRequires: pkgconfig(poppler) |
225 |
BuildRequires: pkgconfig(poppler-cpp) |
226 |
BuildRequires: pkgconfig(redland) |
227 |
BuildRequires: pkgconfig(sane-backends) |
228 |
BuildRequires: pkgconfig(xext) |
229 |
BuildRequires: pkgconfig(xinerama) |
230 |
BuildRequires: pkgconfig(xmlsec1-nss) |
231 |
BuildRequires: pkgconfig(xt) |
232 |
BuildRequires: pkgconfig(zlib) |
233 |
BuildRequires: unixODBC-devel |
234 |
BuildRequires: %{libo_python} |
235 |
|
236 |
# Uncomment for backtraces |
237 |
#BuildRequires: gdb |
238 |
|
239 |
# libs / headers - conditional |
240 |
%if 0%{?mageia} |
241 |
BuildRequires: pkgconfig(libe-book-0.1) |
242 |
%endif |
243 |
|
244 |
%if %{with kf5} |
245 |
# (tv) global devel pkg: |
246 |
BuildRequires: cmake(Qt5Core) |
247 |
BuildRequires: cmake(Qt5Gui) |
248 |
BuildRequires: cmake(Qt5Widgets) |
249 |
BuildRequires: cmake(Qt5X11Extras) |
250 |
BuildRequires: cmake(KF5Config) |
251 |
BuildRequires: cmake(KF5CoreAddons) |
252 |
BuildRequires: cmake(KF5KDE4Support) |
253 |
BuildRequires: cmake(KF5I18n) |
254 |
BuildRequires: cmake(KF5KIO) |
255 |
BuildRequires: cmake(KF5WindowSystem) |
256 |
%endif |
257 |
|
258 |
%if %{with kf6} |
259 |
BuildRequires: cmake(Qt6Core) |
260 |
BuildRequires: cmake(Qt6Gui) |
261 |
BuildRequires: cmake(Qt6Network) |
262 |
BuildRequires: cmake(Qt6Widgets) |
263 |
BuildRequires: cmake(KF6Config) |
264 |
BuildRequires: cmake(KF6CoreAddons) |
265 |
BuildRequires: cmake(KF6I18n) |
266 |
BuildRequires: cmake(KF6KIO) |
267 |
BuildRequires: cmake(KF6WindowSystem) |
268 |
%endif |
269 |
|
270 |
BuildRequires: gpgme-devel |
271 |
BuildRequires: pkgconfig(cppunit) >= 1.14.0 |
272 |
BuildRequires: pkgconfig(graphite2) |
273 |
BuildRequires: pkgconfig(harfbuzz) |
274 |
BuildRequires: pkgconfig(libeot) |
275 |
BuildRequires: pkgconfig(libepubgen-0.1) |
276 |
BuildRequires: pkgconfig(libqxp-0.0) |
277 |
BuildRequires: pkgconfig(liborcus-0.18) |
278 |
BuildRequires: pkgconfig(mdds-2.1) |
279 |
BuildRequires: pkgconfig(zxing) |
280 |
BuildRequires: pkgconfig(libnumbertext) |
281 |
BuildRequires: frozen-static |
282 |
BuildRequires: zxcvbn-c-devel |
283 |
|
284 |
#ifarch %%{java_arches} |
285 |
# java stuff |
286 |
BuildRequires: ant |
287 |
BuildRequires: java-devel |
288 |
BuildRequires: junit |
289 |
BuildRequires: pentaho-reporting-flow-engine |
290 |
#endif |
291 |
|
292 |
# fonts needed for tests |
293 |
BuildRequires: fonts-ttf-dejavu |
294 |
BuildRequires: google-crosextra-carlito-fonts |
295 |
#BuildRequires: google-carlito-fonts |
296 |
#BuildRequires: google-rubik-fonts |
297 |
BuildRequires: google-crosextra-caladea-fonts |
298 |
# KacstBook used in vcl/qa/cppunit tests |
299 |
# Amiri used in vcl/qa/cppunit tests |
300 |
#BuildRequires: amiri-fonts |
301 |
#BuildRequires: amiri-quran-fonts |
302 |
BuildRequires: fonts-ttf-arabic-kacst |
303 |
BuildRequires: fonts-ttf-liberation |
304 |
BuildRequires: fonts-ttf-libertine |
305 |
|
306 |
%ifarch %arm |
307 |
BuildRequires: libatomic-devel |
308 |
%endif |
309 |
|
310 |
# (tv) libreoffice metapackage requires all of the programs |
311 |
Requires: %{name}-writer%{?_isa} = %{epoch}:%{version}-%{release} |
312 |
Requires: %{name}-calc%{?_isa} = %{epoch}:%{version}-%{release} |
313 |
Requires: %{name}-impress%{?_isa} = %{epoch}:%{version}-%{release} |
314 |
Requires: %{name}-draw%{?_isa} = %{epoch}:%{version}-%{release} |
315 |
Requires: %{name}-math%{?_isa} = %{epoch}:%{version}-%{release} |
316 |
Requires: %{name}-base%{?_isa} = %{epoch}:%{version}-%{release} |
317 |
Requires: %{name}-emailmerge%{?_isa} = %{epoch}:%{version}-%{release} |
318 |
|
319 |
# not upstreamed: upstream wants an automatic restart after a crash; we |
320 |
# want a nice abrt report |
321 |
Patch0: 0001-don-t-suppress-crashes.patch |
322 |
# disable tip-of-the-day dialog by default |
323 |
Patch1: 0001-disble-tip-of-the-day-dialog-by-default.patch |
324 |
# rhbz#1736810 disable opencl by default again |
325 |
Patch2: 0001-Resolves-rhbz-1432468-disable-opencl-by-default.patch |
326 |
# backported |
327 |
Patch3: 0001-default-to-sifr-for-gnome-light-mode.patch |
328 |
# backported |
329 |
Patch4: py313.patch |
330 |
# not upstreamed |
331 |
# fix FTB in ppc64le from sharkcz |
332 |
# https://lists.freedesktop.org/archives/libreoffice/2023-August/090870.html |
333 |
Patch11: lo-7.6-ppc64le-tests.patch |
334 |
# icu 74 compatibility patch, from gentoo, via arch linux |
335 |
# https://bugs.gentoo.org/917618 |
336 |
# https://bugs.documentfoundation.org/show_bug.cgi?id=158108 |
337 |
Patch12: libreoffice-7.5.8.2-icu-74-compatibility.patch |
338 |
Patch500: 0001-disable-libe-book-support.patch |
339 |
# https://lists.freedesktop.org/archives/libreoffice/2023-September/090948.html |
340 |
Patch501: kahansum_test_fix_for_aarc64_s390x.patch |
341 |
|
342 |
%global instdir %{_libdir} |
343 |
%global baseinstdir %{instdir}/libreoffice |
344 |
%global sdkinstdir %{baseinstdir}/sdk |
345 |
%global datadir %{_datadir}/%{name} |
346 |
%global fontname opensymbol |
347 |
# HACK: Get the data dir for -data subpackage. I haven't found any better |
348 |
# way to do this... |
349 |
%global oldname %{name} |
350 |
%global name %{name}-data |
351 |
%global lodatadocdir %{_pkgdocdir} |
352 |
%global name %{oldname} |
353 |
|
354 |
%if 0%{?__isa_bits} == 64 |
355 |
%global mark64 ()(64bit) |
356 |
%endif |
357 |
|
358 |
%description |
359 |
LibreOffice is an Open Source, community-developed, office productivity suite. |
360 |
It includes the key desktop applications, such as a word processor, |
361 |
spreadsheet, presentation manager, formula editor and drawing program, with a |
362 |
user interface and feature set similar to other office suites. Sophisticated |
363 |
and flexible, LibreOffice also works transparently with a variety of file |
364 |
formats, including Microsoft Office File Formats. |
365 |
|
366 |
%package filters |
367 |
Summary: All import / export filters |
368 |
Group: Office/Utilities |
369 |
Requires: %{name}-core%{?_isa} = %{epoch}:%{version}-%{release} |
370 |
Requires: %{name}-ure%{?_isa} = %{epoch}:%{version}-%{release} |
371 |
Requires: %{name}-calc%{?_isa} = %{epoch}:%{version}-%{release} |
372 |
Requires: %{name}-graphicfilter%{?_isa} = %{epoch}:%{version}-%{release} |
373 |
Requires: %{name}-impress%{?_isa} = %{epoch}:%{version}-%{release} |
374 |
Requires: %{name}-writer%{?_isa} = %{epoch}:%{version}-%{release} |
375 |
Requires: %{name}-xsltfilter%{?_isa} = %{epoch}:%{version}-%{release} |
376 |
|
377 |
%description filters |
378 |
Metapackage to pull in all subpackages that contain import or export |
379 |
filters. |
380 |
|
381 |
%package core |
382 |
Summary: Core modules for LibreOffice |
383 |
Group: Office/Utilities |
384 |
Requires: %{name}-%{fontname}-fonts = %{epoch}:%{version}-%{release} |
385 |
Requires: %{name}-ure%{?_isa} = %{epoch}:%{version}-%{release} |
386 |
Requires: %{name}-data = %{epoch}:%{version}-%{release} |
387 |
%if 0%{?weak_deps} |
388 |
Requires: %{name}-plugin%{?_isa} = %{epoch}:%{version}-%{release} |
389 |
%else |
390 |
# these two plugins used to be part of core--keep it that way |
391 |
Requires: %{name}-x11%{?_isa} = %{epoch}:%{version}-%{release} |
392 |
%endif |
393 |
Requires: %{name}-gtk3%{?_isa} = %{epoch}:%{version}-%{release} |
394 |
Requires: fonts-ttf-liberation |
395 |
Requires: fonts-ttf-dejavu |
396 |
Requires: google-crosextra-caladea-fonts |
397 |
Requires: google-crosextra-carlito-fonts |
398 |
# users have reported these TTF fonts are needed since LO 5.3 to get |
399 |
# good results from Office documents mga#20725 |
400 |
Recommends: fonts-ttf-urw |
401 |
# (tmb), (mga#20905, mga#24315) only require the virtual provide or we will break |
402 |
# live iso # feature "remove unused locales" |
403 |
Requires: %{name}-langpack = %{epoch}:%{version}-%{release} |
404 |
#ifarch %{java_arches} |
405 |
# rhbz#949106 libreoffice-core drags in both openjdk 1.7.0 and 1.8.0 |
406 |
Recommends: java-headless >= 1:1.6 |
407 |
#else |
408 |
#Obsoletes: libreoffice-nlpsolver < 1:7.4.0.0 |
409 |
#Obsoletes: libreoffice-officebean < 1:7.4.0.0 |
410 |
#Obsoletes: libreoffice-officebean-common < 1:7.4.0.0 |
411 |
#Obsoletes: libreoffice-wiki-publisher < 1:7.4.0.0 |
412 |
#%endif |
413 |
Obsoletes: libreoffice-headless < 1:4.4.0.0 |
414 |
Provides: libreoffice-headless = %{epoch}:%{version}-%{release} |
415 |
Provides: libreoffice-headless%{?_isa} = %{epoch}:%{version}-%{release} |
416 |
Obsoletes: libreoffice-bsh < 1:7.3.0.4 |
417 |
Obsoletes: libreoffice-rhino < 1:7.3.0.4 |
418 |
|
419 |
%description core |
420 |
The shared core libraries and support files for LibreOffice. |
421 |
|
422 |
%package pyuno |
423 |
Summary: Python support for LibreOffice |
424 |
Group: Development/Python |
425 |
Requires: %{name}-core%{?_isa} = %{epoch}:%{version}-%{release} |
426 |
Requires: %{name}-ure%{?_isa} = %{epoch}:%{version}-%{release} |
427 |
Requires: %{libo_python}%{?_isa} |
428 |
|
429 |
%description pyuno |
430 |
Python bindings for the LibreOffice UNO component model. Allows scripts both |
431 |
external to LibreOffice and within the internal LibreOffice scripting framework |
432 |
to be written in python. |
433 |
|
434 |
%package base |
435 |
Summary: Database front-end for LibreOffice |
436 |
Group: Databases |
437 |
%if %{with firebird} |
438 |
Requires: firebird |
439 |
%endif |
440 |
%ifarch %{java_arches} |
441 |
Requires: java-headless >= 1:1.6 |
442 |
%endif |
443 |
Requires: pentaho-reporting-flow-engine |
444 |
Requires: postgresql-jdbc |
445 |
Requires: %{name}-core%{?_isa} = %{epoch}:%{version}-%{release} |
446 |
Requires: %{name}-calc%{?_isa} = %{epoch}:%{version}-%{release} |
447 |
Requires: %{name}-data = %{epoch}:%{version}-%{release} |
448 |
Requires: %{name}-pyuno%{?_isa} = %{epoch}:%{version}-%{release} |
449 |
Requires: %{name}-ure%{?_isa} = %{epoch}:%{version}-%{release} |
450 |
|
451 |
%description base |
452 |
GUI database front-end for LibreOffice. Allows creation and management of |
453 |
databases through a GUI. |
454 |
|
455 |
#ifarch %{java_arches} |
456 |
|
457 |
%package officebean |
458 |
Summary: JavaBean for LibreOffice Components |
459 |
Group: Development/C |
460 |
Requires: %{name}-core%{?_isa} = %{epoch}:%{version}-%{release} |
461 |
Requires: %{name}-officebean-common = %{epoch}:%{version}-%{release} |
462 |
|
463 |
%description officebean |
464 |
Allows embedding of LibreOffice documents within the Java environment. It |
465 |
provides a Java AWT window into which the backend LibreOffice process draws |
466 |
its visual representation |
467 |
|
468 |
%package officebean-common |
469 |
Summary: Common JavaBean for LibreOffice Components |
470 |
Requires: %{name}-data = %{epoch}:%{version}-%{release} |
471 |
BuildArch: noarch |
472 |
|
473 |
%description officebean-common |
474 |
Arch-independent part of %{name}-officebean. |
475 |
|
476 |
%package wiki-publisher |
477 |
Summary: Create Wiki articles on MediaWiki servers with LibreOffice |
478 |
Group: Office/Utilities |
479 |
Requires: %{name}-writer%{?_isa} = %{epoch}:%{version}-%{release} |
480 |
Requires: %{name}-core%{?_isa} = %{epoch}:%{version}-%{release} |
481 |
Requires: %{name}-ure%{?_isa} = %{epoch}:%{version}-%{release} |
482 |
|
483 |
%description wiki-publisher |
484 |
The Wiki Publisher enables you to create Wiki articles on MediaWiki servers |
485 |
without having to know the syntax of the MediaWiki markup language. Publish |
486 |
your new and existing documents transparently with writer to a wiki page. |
487 |
|
488 |
%package nlpsolver |
489 |
Summary: Non-linear solver engine for LibreOffice Calc |
490 |
Group: Office/Utilities |
491 |
Requires: %{name}-core%{?_isa} = %{epoch}:%{version}-%{release} |
492 |
Requires: %{name}-calc%{?_isa} = %{epoch}:%{version}-%{release} |
493 |
Requires: %{name}-ure%{?_isa} = %{epoch}:%{version}-%{release} |
494 |
|
495 |
%description nlpsolver |
496 |
A non-linear solver engine for Calc as an alternative to the default linear |
497 |
programming model when more complex, nonlinear programming is required. |
498 |
|
499 |
#endif |
500 |
|
501 |
%package ogltrans |
502 |
Summary: 3D OpenGL slide transitions for LibreOffice |
503 |
Group: Office/Utilities |
504 |
Requires: %{name}-core%{?_isa} = %{epoch}:%{version}-%{release} |
505 |
Requires: %{name}-ure%{?_isa} = %{epoch}:%{version}-%{release} |
506 |
|
507 |
%description ogltrans |
508 |
OpenGL Transitions enable 3D slide transitions to be used in LibreOffice. |
509 |
Requires good quality 3D support for your graphics card for best experience. |
510 |
|
511 |
%package pdfimport |
512 |
Summary: PDF Importer for LibreOffice Draw |
513 |
Group: Office/Utilities |
514 |
Requires: %{name}-core%{?_isa} = %{epoch}:%{version}-%{release} |
515 |
Requires: %{name}-ure%{?_isa} = %{epoch}:%{version}-%{release} |
516 |
|
517 |
%description pdfimport |
518 |
The PDF Importer imports PDF into drawing documents to preserve layout |
519 |
and enable basic editing of PDF documents. |
520 |
|
521 |
%package %{fontname}-fonts |
522 |
Summary: LibreOffice dingbats font |
523 |
Group: System/Fonts/True type |
524 |
Requires: fontpackages-filesystem |
525 |
BuildArch: noarch |
526 |
|
527 |
%description %{fontname}-fonts |
528 |
A dingbats font, OpenSymbol, suitable for use by LibreOffice for bullets and |
529 |
mathematical symbols. |
530 |
|
531 |
%package writer |
532 |
Summary: LibreOffice Word Processor Application |
533 |
Group: Office/Word processor |
534 |
Requires: %{name}-core%{?_isa} = %{epoch}:%{version}-%{release} |
535 |
Requires: %{name}-data = %{epoch}:%{version}-%{release} |
536 |
Requires: %{name}-ogltrans%{?_isa} = %{epoch}:%{version}-%{release} |
537 |
Requires: %{name}-pdfimport%{?_isa} = %{epoch}:%{version}-%{release} |
538 |
Requires: %{name}-pyuno%{?_isa} = %{epoch}:%{version}-%{release} |
539 |
Requires: %{name}-ure%{?_isa} = %{epoch}:%{version}-%{release} |
540 |
|
541 |
%description writer |
542 |
The LibreOffice Word Processor application. |
543 |
|
544 |
%package emailmerge |
545 |
Summary: Email mail-merge component for LibreOffice |
546 |
Group: Networking/Mail |
547 |
Requires: %{name}-writer%{?_isa} = %{epoch}:%{version}-%{release} |
548 |
Requires: %{name}-pyuno%{?_isa} = %{epoch}:%{version}-%{release} |
549 |
|
550 |
%description emailmerge |
551 |
Enables the LibreOffice writer module to mail-merge to email. |
552 |
|
553 |
%package calc |
554 |
Summary: LibreOffice Spreadsheet Application |
555 |
Group: Office/Spreadsheet |
556 |
Requires: %{name}-core%{?_isa} = %{epoch}:%{version}-%{release} |
557 |
Requires: %{name}-data = %{epoch}:%{version}-%{release} |
558 |
Requires: %{name}-pdfimport%{?_isa} = %{epoch}:%{version}-%{release} |
559 |
Requires: %{name}-pyuno%{?_isa} = %{epoch}:%{version}-%{release} |
560 |
Requires: %{name}-ure%{?_isa} = %{epoch}:%{version}-%{release} |
561 |
|
562 |
%description calc |
563 |
The LibreOffice Spreadsheet application. |
564 |
|
565 |
%package draw |
566 |
Summary: LibreOffice Drawing Application |
567 |
Group: Graphics/Editors and Converters |
568 |
Requires: %{name}-core%{?_isa} = %{epoch}:%{version}-%{release} |
569 |
Requires: %{name}-data = %{epoch}:%{version}-%{release} |
570 |
Requires: %{name}-pdfimport%{?_isa} = %{epoch}:%{version}-%{release} |
571 |
Requires: %{name}-pyuno%{?_isa} = %{epoch}:%{version}-%{release} |
572 |
Requires: %{name}-graphicfilter%{?_isa} = %{epoch}:%{version}-%{release} |
573 |
Requires: %{name}-ure%{?_isa} = %{epoch}:%{version}-%{release} |
574 |
|
575 |
%description draw |
576 |
The LibreOffice Drawing Application. |
577 |
|
578 |
%package impress |
579 |
Summary: LibreOffice Presentation Application |
580 |
Group: Office/Utilities |
581 |
Requires: %{name}-core%{?_isa} = %{epoch}:%{version}-%{release} |
582 |
Requires: %{name}-data = %{epoch}:%{version}-%{release} |
583 |
Requires: %{name}-ogltrans%{?_isa} = %{epoch}:%{version}-%{release} |
584 |
Requires: %{name}-pdfimport%{?_isa} = %{epoch}:%{version}-%{release} |
585 |
Requires: %{name}-pyuno%{?_isa} = %{epoch}:%{version}-%{release} |
586 |
Requires: %{name}-graphicfilter%{?_isa} = %{epoch}:%{version}-%{release} |
587 |
Requires: %{name}-ure%{?_isa} = %{epoch}:%{version}-%{release} |
588 |
|
589 |
%description impress |
590 |
The LibreOffice Presentation Application. |
591 |
|
592 |
%package math |
593 |
Summary: LibreOffice Equation Editor Application |
594 |
Group: Sciences/Mathematics |
595 |
Requires: %{name}-core%{?_isa} = %{epoch}:%{version}-%{release} |
596 |
Requires: %{name}-pdfimport%{?_isa} = %{epoch}:%{version}-%{release} |
597 |
Requires: %{name}-pyuno%{?_isa} = %{epoch}:%{version}-%{release} |
598 |
Requires: %{name}-ure%{?_isa} = %{epoch}:%{version}-%{release} |
599 |
|
600 |
%description math |
601 |
The LibreOffice Equation Editor Application. |
602 |
|
603 |
%package graphicfilter |
604 |
Summary: LibreOffice Extra Graphic filters |
605 |
Group: Office/Utilities |
606 |
Requires: %{name}-core%{?_isa} = %{epoch}:%{version}-%{release} |
607 |
Requires: %{name}-data = %{epoch}:%{version}-%{release} |
608 |
Requires: %{name}-ure%{?_isa} = %{epoch}:%{version}-%{release} |
609 |
|
610 |
%description graphicfilter |
611 |
The graphicfilter module for LibreOffice provides graphic filters, e.g. svg. |
612 |
|
613 |
%package xsltfilter |
614 |
Summary: Optional xsltfilter module for LibreOffice |
615 |
Group: Office/Utilities |
616 |
Requires: %{name}-core%{?_isa} = %{epoch}:%{version}-%{release} |
617 |
|
618 |
%description xsltfilter |
619 |
The xsltfilter module for LibreOffice, provides additional docbook and |
620 |
xhtml export transforms. Install this to enable docbook export. |
621 |
|
622 |
%package postgresql |
623 |
Summary: PostgreSQL connector for LibreOffice |
624 |
Group: Office/Utilities |
625 |
Requires: %{name}-base%{?_isa} = %{epoch}:%{version}-%{release} |
626 |
Requires: %{name}-core%{?_isa} = %{epoch}:%{version}-%{release} |
627 |
Requires: %{name}-ure%{?_isa} = %{epoch}:%{version}-%{release} |
628 |
|
629 |
%description postgresql |
630 |
A PostgreSQL connector for the database front-end for LibreOffice. Allows |
631 |
creation and management of PostgreSQL databases through a GUI. |
632 |
|
633 |
%package ure |
634 |
Summary: UNO Runtime Environment |
635 |
Group: Development/Other |
636 |
Requires: %{name}-ure-common = %{epoch}:%{version}-%{release} |
637 |
Requires: unzip%{?_isa} |
638 |
#ifarch %{java_arches} |
639 |
#rhbz#1164551 we want to ensure that a libjvm.so of this arch is available |
640 |
Requires: libjvm.so%{?mark64} |
641 |
#endif |
642 |
|
643 |
%description ure |
644 |
UNO is the component model of LibreOffice. UNO offers interoperability between |
645 |
programming languages, other components models and hardware architectures, |
646 |
either in process or over process boundaries, in the Intranet as well as in the |
647 |
Internet. UNO components may be implemented in and accessed from any |
648 |
programming language for which a UNO implementation (AKA language binding) and |
649 |
an appropriate bridge or adapter exists |
650 |
|
651 |
%package ure-common |
652 |
Summary: Common UNO Runtime Environment |
653 |
|
654 |
%description ure-common |
655 |
Arch-independent part of %{name}-ure. |
656 |
|
657 |
%package sdk |
658 |
Summary: Software Development Kit for LibreOffice |
659 |
Group: Development/Other |
660 |
Requires: %{name}-core%{?_isa} = %{epoch}:%{version}-%{release} |
661 |
Requires: %{name}-ure%{?_isa} = %{epoch}:%{version}-%{release} |
662 |
Requires: unzip%{?_isa} |
663 |
#ifarch %{java_arches} |
664 |
Requires: java-devel |
665 |
#endif |
666 |
|
667 |
%description sdk |
668 |
The LibreOffice SDK is an add-on for the LibreOffice office suite. It provides |
669 |
the necessary tools for programming using the LibreOffice APIs and for creating |
670 |
extensions (UNO components) for LibreOffice. To set the build environment for |
671 |
building against the sdk use %{sdkinstdir}/setsdkenv_unix.sh. |
672 |
|
673 |
%package sdk-doc |
674 |
Summary: Software Development Kit documentation for LibreOffice |
675 |
Group: Development/Other |
676 |
|
677 |
%description sdk-doc |
678 |
This provides documentation for programming using the LibreOffice APIs |
679 |
and examples of creating extensions (UNO components) for LibreOffice. |
680 |
|
681 |
%package glade |
682 |
Summary: Support for creating LibreOffice dialogs in glade |
683 |
Group: Development/GNOME and GTK+ |
684 |
Requires: %{name}-core%{?_isa} = %{epoch}:%{version}-%{release} |
685 |
Requires: %{name}-ure%{?_isa} = %{epoch}:%{version}-%{release} |
686 |
|
687 |
%description glade |
688 |
%{name}-glade contains a catalog of LibreOffice-specific widgets for |
689 |
glade tool to check the visual appearance of dialogs. |
690 |
|
691 |
%package librelogo |
692 |
Summary: LibreLogo scripting language |
693 |
Group: Office/Utilities |
694 |
Requires: %{name}-writer%{?_isa} = %{epoch}:%{version}-%{release} |
695 |
Requires: %{name}-pyuno%{?_isa} = %{epoch}:%{version}-%{release} |
696 |
|
697 |
%description librelogo |
698 |
Enables LibreLogo scripting in Writer. LibreLogo is a Logo-like |
699 |
programming language with interactive vectorgraphics for education and |
700 |
DTP. |
701 |
|
702 |
%package data |
703 |
Summary: LibreOffice data files |
704 |
Group: Office/Utilities |
705 |
|
706 |
%description data |
707 |
%{name}-data contains platform-independent data files. |
708 |
|
709 |
%package x11 |
710 |
Summary: LibreOffice generic X11 support plug-in |
711 |
Group: Office/Utilities |
712 |
Requires: %{name}-core%{?_isa} = %{epoch}:%{version}-%{release} |
713 |
Requires: %{name}-ure%{?_isa} = %{epoch}:%{version}-%{release} |
714 |
Provides: %{name}-plugin = %{epoch}:%{version}-%{release} |
715 |
Provides: %{name}-plugin%{?_isa} = %{epoch}:%{version}-%{release} |
716 |
%if 0%{?weak_depsNO} |
717 |
Supplements: (%{name}-core%{?_isa} and Xserver) |
718 |
%endif |
719 |
|
720 |
%description x11 |
721 |
A plug-in for LibreOffice that enables generic X11 support. |
722 |
|
723 |
%package gtk3 |
724 |
Summary: LibreOffice GTK+ 3 integration plug-in |
725 |
Group: Office/Suite |
726 |
Requires: %{name}-core%{?_isa} = %{epoch}:%{version}-%{release} |
727 |
Requires: %{name}-ure%{?_isa} = %{epoch}:%{version}-%{release} |
728 |
Requires: gstreamer1(element-gtksink)%{?mark64} |
729 |
Obsoletes: libreoffice-gtk2 < 1:6.2.0.0 |
730 |
Conflicts: %{name}-core < 5.0.0 |
731 |
%if 0%{?weak_depsNO} |
732 |
Supplements: (%{name}-core%{?_isa} and gtk3%{?_isa}) |
733 |
%endif |
734 |
|
735 |
%description gtk3 |
736 |
A plug-in for LibreOffice that enables integration into GTK+ 3 environment. |
737 |
|
738 |
%package gtk4 |
739 |
Summary: LibreOffice GTK+ 4 experimental integration plug-in |
740 |
Requires: %{name}-core%{?_isa} = %{epoch}:%{version}-%{release} |
741 |
Requires: %{name}-ure%{?_isa} = %{epoch}:%{version}-%{release} |
742 |
Supplements: (%{name}-core%{?_isa} and gtk4%{?_isa}) |
743 |
|
744 |
%description gtk4 |
745 |
An experimental plug-in for LibreOffice that enables integration into GTK+ 4 environment. |
746 |
|
747 |
%if %{with kf5} |
748 |
|
749 |
%package kf5 |
750 |
Summary: LibreOffice KDE Frameworks 5 integration plug-in |
751 |
Requires: %{name}-core%{?_isa} = %{epoch}:%{version}-%{release} |
752 |
Requires: %{name}-ure%{?_isa} = %{epoch}:%{version}-%{release} |
753 |
Provides: %{name}-plugin = %{epoch}:%{version}-%{release} |
754 |
Provides: %{name}-plugin%{?_isa} = %{epoch}:%{version}-%{release} |
755 |
Obsoletes: libreoffice-kde4 < 1:6.3.0.0 |
756 |
Obsoletes: libreoffice-kde5 < 1:6.4.7.3 |
757 |
Obsoletes: libreoffice-kde4-debuginfo < 1:6.3.0.0 |
758 |
Obsoletes: libreoffice-kde5-debuginfo < 1:6.4.7.3 |
759 |
%if (0%{?fedora} && 0%{?fedora} < 40) |
760 |
Supplements: (%{name}-core%{?_isa} and plasma-workspace) |
761 |
%endif |
762 |
|
763 |
%description kf5 |
764 |
A plug-in for LibreOffice that enables integration into the KDE Frameworks 5. |
765 |
%endif |
766 |
|
767 |
%if %{with kf6} |
768 |
|
769 |
%package kf6 |
770 |
Summary: LibreOffice KDE Frameworks 6 integration plug-in |
771 |
Requires: %{name}-core%{?_isa} = %{epoch}:%{version}-%{release} |
772 |
Requires: %{name}-ure%{?_isa} = %{epoch}:%{version}-%{release} |
773 |
Provides: %{name}-plugin = %{epoch}:%{version}-%{release} |
774 |
Provides: %{name}-plugin%{?_isa} = %{epoch}:%{version}-%{release} |
775 |
Obsoletes: libreoffice-kde4 < 1:6.3.0.0 |
776 |
Obsoletes: libreoffice-kde5 < 1:6.4.7.3 |
777 |
Obsoletes: libreoffice-kde4-debuginfo < 1:6.3.0.0 |
778 |
Obsoletes: libreoffice-kde5-debuginfo < 1:6.4.7.3 |
779 |
%if (0%{?fedora} && 0%{?fedora} < 40) |
780 |
Supplements: (%{name}-core%{?_isa} and plasma-workspace) |
781 |
%endif |
782 |
|
783 |
%description kf6 |
784 |
A plug-in for LibreOffice that enables integration into the KDE Frameworks 6. |
785 |
|
786 |
%endif |
787 |
|
788 |
%package -n libreofficekit |
789 |
Summary: A library providing access to LibreOffice functionality |
790 |
Group: Development/Other |
791 |
License: MPLv2.0 |
792 |
|
793 |
%description -n libreofficekit |
794 |
LibreOfficeKit can be used to access LibreOffice functionality |
795 |
through C/C++, without any need to use UNO. |
796 |
|
797 |
For now it only offers document conversion (in addition to an |
798 |
experimental tiled rendering API). |
799 |
|
800 |
%package -n libreofficekit-devel |
801 |
Summary: Development files for libreofficekit |
802 |
Group: Development/C |
803 |
Requires: libreofficekit%{?_isa} = %{epoch}:%{version}-%{release} |
804 |
License: MPLv2.0 |
805 |
|
806 |
%description -n libreofficekit-devel |
807 |
The libreofficekit-devel package contains libraries and header files for |
808 |
developing applications that use libreofficekit. |
809 |
|
810 |
%if 0%{?_enable_debug_packages} |
811 |
|
812 |
%package gdb-debug-support |
813 |
Summary: Additional support for debugging with gdb |
814 |
Group: Development/Other |
815 |
Requires: gdb%{?_isa} |
816 |
Requires: %{libo_python}-six |
817 |
Requires: libreoffice-core%{?_isa} = %{epoch}:%{version}-%{release} |
818 |
Supplements: libreoffice-debuginfo%{?_isa} |
819 |
|
820 |
%description gdb-debug-support |
821 |
This package provides gdb pretty printers for package %{name}. |
822 |
|
823 |
%files gdb-debug-support |
824 |
%{_datadir}/gdb/auto-load%{baseinstdir} |
825 |
%{_datadir}/libreoffice/gdb |
826 |
|
827 |
%endif |
828 |
|
829 |
%define _langpack_common(Eg:j:l:) \ |
830 |
%{!-E: \ |
831 |
%{baseinstdir}/program/resource/%{-g:%{-g*}}%{!-g:%{-l*}}/LC_MESSAGES/*.mo \ |
832 |
%{baseinstdir}/share/registry/res/registry_%{-l*}.xcd \ |
833 |
} \ |
834 |
%{baseinstdir}/share/template/%{-l*} \ |
835 |
%{baseinstdir}/share/registry/Langpack-%{-l*}.xcd \ |
836 |
%{baseinstdir}/share/registry/res/fcfg_langpack_%{-l*}.xcd \ |
837 |
%{baseinstdir}/share/wizards/resources_%{-j:%{-j*}}%{!-j:%{-l*}}.properties \ |
838 |
%{nil} |
839 |
|
840 |
# Mageia: |
841 |
# - we depends on locales-XX so that uninstalling unwanted locales works |
842 |
# (-u enables to pick a non default locales-XX pkg instead) |
843 |
# - We provides libreoffice-langpack (mga#20905) as LO requires that virtual |
844 |
# provide or we will break live iso # feature "remove unused locales" |
845 |
# - We define Group |
846 |
# - We don't recommend non existing langpacks-XX for fonts |
847 |
# - We requires instead of recommending help packages (-T option) |
848 |
|
849 |
# Defines a language pack subpackage. |
850 |
# |
851 |
# It's necessary to define language code (-l) and language name (-n). |
852 |
# Additionally, it's possible |
853 |
# * to require autocorr, hunspell, hyphen or mythes package or font for |
854 |
# given language, |
855 |
# * to provide libreoffice-langpack-loc package, where loc is glibc |
856 |
# locale--this is necessary for urpmi to pick it automatically, |
857 |
# * to require other, unrelated, packages, |
858 |
# * to specify file serving as file list. |
859 |
# For these, lower case character argument takes an argument specifying |
860 |
# language, upper case character argument uses language from -l. |
861 |
# |
862 |
# All remaining arguments are considered to be files and added to the file |
863 |
# list. |
864 |
# |
865 |
# Aa: autocorr dependency |
866 |
# c: additional config file (just the name stem) |
867 |
# E: base (US English) langpack |
868 |
# Ff: font language dependency |
869 |
# g: glibc/java locale |
870 |
# Hh: hunspell dependency |
871 |
# i: additional language added to this package |
872 |
# j: java locale for the additional language |
873 |
# k: glibc locale for the additional language |
874 |
# L: internal (LibreOffice) language code, used in file names |
875 |
# l: language code, e.g., cs |
876 |
# Mm: mythes dependency |
877 |
# n: language name, e.g., Czech |
878 |
# p: Provides: of libreoffice-langpack |
879 |
# r: comma-separated list of additional requires |
880 |
# S:s: script classification (cjk, ctl). -S is only a marker, as it does |
881 |
# not add any .xcd into the package (the file does not exist for at |
882 |
# least one CTL-using locale, si) |
883 |
# T has help files |
884 |
# u: requires locales-XX (w/o, we requires the proper locales-XX automatically) (MGA) |
885 |
# Xx: has autotext definitions |
886 |
# Yy: hyphen dependency |
887 |
# |
888 |
# Example: |
889 |
# libreoffice-langpack-cs: langpack for Czech lang. requiring hyphen-cs, |
890 |
# autocorr-cs, mythes-cs-CZ and suitable font: |
891 |
# %%langpack -l cs -n Czech -H -A -m cs-CZ |
892 |
# b de q tu z BCD G IJK N PQR Z0123456789 |
893 |
%define langpack(Aa:c:EFf:g:Hh:i:j:k:L:l:Mm:n:p:r:S:s:Tu:Xx:Yy:) \ |
894 |
%define lang %{-l:%{-l*}}%{!-l:%{error:Language code not defined}} \ |
895 |
%define _langpack_lang %{-L:%{-L*}}%{!-L:%{lang}} \ |
896 |
%define pkgname langpack-%{lang} \ |
897 |
%define langname %{-n:%{-n*}}%{!-n:%{error:Language name not defined}} \ |
898 |
\ |
899 |
%global langpack_langs %{langpack_langs} %{_langpack_lang} %{-i:%{-i*}} \ |
900 |
\ |
901 |
%package %{pkgname} \ |
902 |
Summary: %{langname} language pack for LibreOffice \ |
903 |
Group: System/Internationalization \ |
904 |
Requires: %{name}-core%{?_isa} = %{epoch}:%{version}-%{release} \ |
905 |
Provides: %name-langpack = %{epoch}:%{version}-%{release} \ |
906 |
%{-a:Requires: autocorr-%{-a*}}%{!-a:%{-A:Requires: autocorr-%{lang}}} \ |
907 |
%{-f:Requires: font(:lang=%{-f*})}%{!-f:%{-F:Requires: font(:lang=%{lang})}} \ |
908 |
%{-h:Requires: hunspell-%{-h*}}%{!-h:%{-H:Requires: hunspell-%{lang}}} \ |
909 |
%{-m:Requires: mythes-%{-m*}}%{!-m:%{-M:Requires: mythes-%{lang}}} \ |
910 |
%{-u:Requires: locales-%{-u*}}%{!-u:Requires: locales-%{lang}} \ |
911 |
%{-y:Requires: hyphen-%{-y*}}%{!-y:%{-Y:Requires: hyphen-%{lang}}} \ |
912 |
%{-r:Requires: %{-r*}} \ |
913 |
%{-p:Provides: %{name}-langpack-%{-p*} = %{epoch}:%{version}-%{release}} \ |
914 |
%{-p:Provides: %{name}-langpack-%{-p*}%{?_isa} = %{epoch}:%{version}-%{release}} \ |
915 |
%if 0%{?weak_deps} \ |
916 |
%{-T:Recommends: %{name}-help-%{lang}} \ |
917 |
%endif \ |
918 |
\ |
919 |
%description %{pkgname} \ |
920 |
Provides additional %{langname} translations and resources for LibreOffice. \ |
921 |
\ |
922 |
%{-T: \ |
923 |
%package help-%{lang} \ |
924 |
Summary: %{langname} help for LibreOffice \ |
925 |
Group: System/Internationalization \ |
926 |
Requires: %{name}-core%{?_isa} = %{epoch}:%{version}-%{release} \ |
927 |
%{-u:Requires: locales-%{-u*}}%{!-u:Requires: locales-%{lang}} \ |
928 |
\ |
929 |
%description help-%{lang} \ |
930 |
Provides %{langname} help for LibreOffice. \ |
931 |
\ |
932 |
%files help-%{lang} \ |
933 |
%docdir %{baseinstdir}/help/%{_langpack_lang} \ |
934 |
%{baseinstdir}/help/%{_langpack_lang} \ |
935 |
} \ |
936 |
\ |
937 |
%files %{pkgname} \ |
938 |
%{expand:%%_langpack_common %{-E} -l %{_langpack_lang} %{-g:-g %{-g*} -j %{-g*}}} \ |
939 |
%{-x:%{baseinstdir}/share/autotext/%{-x*}}%{!-x:%{-X:%{baseinstdir}/share/autotext/%{_langpack_lang}}} \ |
940 |
%{-c:%{baseinstdir}/share/registry/%{-c*}.xcd} \ |
941 |
%{-s:%{baseinstdir}/share/registry/%{-s*}_%{_langpack_lang}.xcd} \ |
942 |
%{-i:%{expand:%%_langpack_common %{-E} -l %{-i*} %{-k:-g %{-k*}} %{-j:-j %{-j*}}}} \ |
943 |
%{nil} |
944 |
|
945 |
# Defines an auto-correction subpackage. |
946 |
# |
947 |
# i: add autocorrections from additional language |
948 |
# l: language code |
949 |
# n: language name |
950 |
# L the filename does not contain country code |
951 |
# |
952 |
# All remaining arguments are considered to be files and added to the file |
953 |
# list. |
954 |
%define autocorr(i:Ll:n:) \ |
955 |
%define lang %{-l:%{-l*}}%{!-l:%{error:Language code not defined}} \ |
956 |
%define pkgname autocorr-%{lang} \ |
957 |
%define langname %{-n:%{-n*}}%{!-n:%{error:Language name not defined}} \ |
958 |
\ |
959 |
%package -n %{pkgname} \ |
960 |
Summary: %{langname} auto-correction rules \ |
961 |
Group: Text tools \ |
962 |
Requires: locales-%{lang} \ |
963 |
BuildArch: noarch \ |
964 |
\ |
965 |
%description -n %{pkgname} \ |
966 |
Rules for auto-correcting common %{langname} typing errors. \ |
967 |
\ |
968 |
%files -n %{pkgname} \ |
969 |
%doc instdir/LICENSE \ |
970 |
%dir %{_datadir}/autocorr \ |
971 |
%{-L:%{_datadir}/autocorr/acor_%{lang}.dat} \ |
972 |
%{!-L:%{_datadir}/autocorr/acor_%{lang}-*.dat} \ |
973 |
%{nil} |
974 |
|
975 |
# Mageia: |
976 |
# - rename pt-BR -> pt_BR, pt-PT -> pt, zh-Han? -> zh_CN/TW in order to match locales-XX |
977 |
# - We use 'font(:lang=xx)' deps vs 'langpacks-xx' on FC, thus we've different -f option for pt_BR & zh_* |
978 |
|
979 |
%langpack -l en -n English -F -h en-US -Y -M -A -E -L en-US -T -X -g en_US |
980 |
|
981 |
%if %{with langpacks} |
982 |
|
983 |
%langpack -l af -n Afrikaans -F -H -Y -A -X |
984 |
%langpack -l ar -n Arabic -F -H -s ctl -T -X |
985 |
%langpack -l as -n Assamese -F -H -Y -X |
986 |
%langpack -l bg -n Bulgarian -F -H -Y -M -A -T -X |
987 |
%langpack -l bn -n Bengali -F -H -Y -T -X |
988 |
%langpack -l br -n Breton -F -H -X |
989 |
%langpack -l ca -n Catalan -F -H -Y -M -A -T -X |
990 |
%langpack -l cs -n Czech -F -H -Y -M -A -T -X |
991 |
%langpack -l cy -n Welsh -F -H -Y -X |
992 |
%langpack -l da -n Danish -F -H -Y -M -A -T -X |
993 |
%langpack -l de -n German -F -H -Y -M -A -T -X |
994 |
%langpack -l dz -n Dzongkha -F -s ctl -T -X |
995 |
%langpack -l el -n Greek -F -H -Y -M -A -T -X |
996 |
%langpack -l eo -n Esperanto -F -H -M -T -X |
997 |
%langpack -l es -n Spanish -F -H -Y -M -A -T -X |
998 |
%langpack -l et -n Estonian -F -H -Y -T -X |
999 |
%langpack -l eu -n Basque -F -H -Y -T -X |
1000 |
%langpack -l fa -n Farsi -A -H -Y -s ctl -X |
1001 |
%langpack -l fi -n Finnish -F -r libreoffice-voikko -A -T -X |
1002 |
%langpack -l fr -n French -F -H -Y -M -A -T -X |
1003 |
%langpack -l fy -n Frisian -F -H -X |
1004 |
%langpack -l ga -n Irish -F -H -Y -M -A -X |
1005 |
%langpack -l gl -n Galician -F -H -Y -T -X |
1006 |
%langpack -l gu -n Gujarati -F -H -Y -s ctl -T -X |
1007 |
%langpack -l he -n Hebrew -F -H -s ctl -T -X |
1008 |
%langpack -l hi -n Hindi -F -H -Y -s ctl -T -X |
1009 |
%langpack -l hr -n Croatian -F -H -Y -A -T -X |
1010 |
%langpack -l hu -n Hungarian -F -H -Y -M -A -T -X |
1011 |
%{baseinstdir}/share/wordbook/hu_AkH11.dic |
1012 |
%langpack -l id -n Indonesian -F -H -Y -T -X |
1013 |
%langpack -l it -n Italian -F -H -Y -M -A -T -X |
1014 |
%langpack -l ja -n Japanese -F -A -s cjk -T -X |
1015 |
%langpack -l kk -n Kazakh -F -H -X |
1016 |
%langpack -l kn -n Kannada -F -H -Y -X |
1017 |
%langpack -l ko -n Korean -F -H -A -s cjk -T -X |
1018 |
%langpack -l lt -n Lithuanian -F -H -Y -A -T -X |
1019 |
%langpack -l lv -n Latvian -F -H -Y -M -T -X |
1020 |
%langpack -l mai -n Maithili -F -X |
1021 |
%langpack -l ml -n Malayalam -F -H -Y -X |
1022 |
%langpack -l mr -n Marathi -F -H -Y -X |
1023 |
%langpack -l nb -n Bokmal -F -H -Y -M -T -X |
1024 |
%langpack -l nl -n Dutch -F -H -Y -M -A -T -X -X |
1025 |
%langpack -l nn -n Nynorsk -F -H -Y -M -T |
1026 |
%define langpack_lang Southern Ndebele |
1027 |
%langpack -l nr -n %{langpack_lang} -F -H -X |
1028 |
%define langpack_lang Northern Sotho |
1029 |
%langpack -l nso -n %{langpack_lang} -F -H -X |
1030 |
%langpack -l or -n Odia -F -H -Y -s ctl -X |
1031 |
%langpack -l pa -n Punjabi -F -H -Y -s ctl -L pa-IN -g pa_IN -X |
1032 |
%langpack -l pl -n Polish -F -H -Y -M -A -T -X |
1033 |
|
1034 |
|
1035 |
|
1036 |
|
1037 |
%define langpack_lang Brazilian Portuguese |
1038 |
%langpack -l pt_BR -n %{langpack_lang} -f pt -h pt -y pt -m pt -a pt -p pt_BR -T -X -g pt_BR -L pt-BR |
1039 |
|
1040 |
|
1041 |
%langpack -l pt -n Portuguese -f pt -h pt -y pt -m pt -a pt -p pt_PT -T -L pt -x pt |
1042 |
%langpack -l ro -n Romanian -A -F -H -Y -M -T -X |
1043 |
%langpack -l ru -n Russian -F -H -Y -M -A -T -X |
1044 |
%langpack -l si -n Sinhalese -F -H -S ctl -T -X |
1045 |
%langpack -l sk -n Slovak -F -H -Y -M -A -T -X |
1046 |
%langpack -l sl -n Slovenian -F -H -Y -M -A -T -X |
1047 |
%{baseinstdir}/share/wordbook/sl.dic |
1048 |
|
1049 |
#rhbz#452379 clump serbian translations together |
1050 |
%langpack -l sr -n Serbian -F -H -Y -A -i sr-Latn -k sr@latin -j sr_Latn -x sr* |
1051 |
%langpack -l ss -n Swati -F -H -X |
1052 |
%define langpack_lang Southern Sotho |
1053 |
# note that langpacks-st seems to be missing as of the time of writing, so no -F here |
1054 |
%langpack -l st -n %{langpack_lang} -H -X |
1055 |
%langpack -l sv -n Swedish -F -H -Y -M -A -T -X |
1056 |
%langpack -l ta -n Tamil -F -H -Y -s ctl -T -X |
1057 |
%langpack -l te -n Telugu -F -H -Y -X |
1058 |
%langpack -l th -n Thai -F -H -s ctl -c ctlseqcheck_th -X |
1059 |
%langpack -l tn -n Tswana -F -H -X |
1060 |
%langpack -l tr -n Turkish -F -A -T -X |
1061 |
%langpack -l ts -n Tsonga -F -H -X |
1062 |
%langpack -l uk -n Ukrainian -F -H -Y -M -T -X |
1063 |
%langpack -l ve -n Venda -F -H -X |
1064 |
%langpack -l xh -n Xhosa -F -H -X |
1065 |
|
1066 |
|
1067 |
%define langpack_lang Simplified Chinese |
1068 |
%langpack -l zh_CN -n %{langpack_lang} -f zh-cn -a zh -p zh_CN -s cjk -T -L zh-CN -X -g zh_CN |
1069 |
%{baseinstdir}/share/template/common/l10n/zh_CN_ott_normal.ott |
1070 |
|
1071 |
%define langpack_lang Traditional Chinese |
1072 |
%langpack -l zh_TW -n %{langpack_lang} -f zh-tw -a zh -p zh_TW -s cjk -T -L zh-TW -X -g zh_TW |
1073 |
|
1074 |
%langpack -l zu -n Zulu -F -H -Y -X |
1075 |
%undefine langpack_lang |
1076 |
|
1077 |
%endif |
1078 |
|
1079 |
%autocorr -l en -n English |
1080 |
|
1081 |
%if %{with langpacks} |
1082 |
|
1083 |
%autocorr -l af -n Afrikaans |
1084 |
%autocorr -l bg -n Bulgarian |
1085 |
%autocorr -l ca -n Catalan |
1086 |
%autocorr -l cs -n Czech |
1087 |
%autocorr -l da -n Danish |
1088 |
%autocorr -l de -n German -L |
1089 |
%define autocorr_lang Lower Sorbian |
1090 |
%autocorr -l dsb -n %{autocorr_lang} -L |
1091 |
%autocorr -l el -n Greek |
1092 |
%autocorr -l es -n Spanish -L |
1093 |
%autocorr -l fa -n Farsi |
1094 |
%autocorr -l fi -n Finnish |
1095 |
%autocorr -l fr -n French -L |
1096 |
%autocorr -l ga -n Irish |
1097 |
%autocorr -l hr -n Croatian |
1098 |
%define autocorr_lang Upper Sorbian |
1099 |
%autocorr -l hsb -n %{autocorr_lang} -L |
1100 |
%autocorr -l hu -n Hungarian |
1101 |
%autocorr -l is -n Icelandic |
1102 |
%autocorr -l it -n Italian -L |
1103 |
%autocorr -l ja -n Japanese |
1104 |
%autocorr -l ko -n Korean |
1105 |
%autocorr -l lb -n Luxembourgish |
1106 |
%autocorr -l lt -n Lithuanian |
1107 |
%autocorr -l mn -n Mongolian |
1108 |
%autocorr -l nl -n Dutch |
1109 |
%autocorr -l pl -n Polish |
1110 |
%autocorr -l pt -n Portuguese |
1111 |
%autocorr -l ro -n Romanian |
1112 |
%autocorr -l ru -n Russian |
1113 |
%autocorr -l sk -n Slovak |
1114 |
%autocorr -l sl -n Slovenian |
1115 |
%autocorr -l sr -n Serbian |
1116 |
%autocorr -l sv -n Swedish |
1117 |
%autocorr -l th -n Thai |
1118 |
%autocorr -l tr -n Turkish |
1119 |
%autocorr -l vi -n Vietnamese |
1120 |
%autocorr -l vro -n Võro |
1121 |
%autocorr -l zh -n Chinese |
1122 |
|
1123 |
%endif |
1124 |
|
1125 |
%define make_autocorr_aliases(l:) \ |
1126 |
%{?-l: \ |
1127 |
for lang in %{*}; do \ |
1128 |
ln -sf acor_%{-l*}.dat acor_$lang.dat \ |
1129 |
done \ |
1130 |
} \ |
1131 |
%{!?-l:%{error:-l must be present}} |
1132 |
|
1133 |
%prep |
1134 |
# verify tarballs |
1135 |
gpg2 --dearmor < %{SOURCE6} > keyring.gpg |
1136 |
gpgv2 --keyring ./keyring.gpg %{SOURCE1} %{SOURCE0} |
1137 |
gpgv2 --keyring ./keyring.gpg %{SOURCE3} %{SOURCE2} |
1138 |
gpgv2 --keyring ./keyring.gpg %{SOURCE5} %{SOURCE4} |
1139 |
|
1140 |
%setup -q -n %{name}-%{version}%{?libo_prerelease} -b 2 -b 4 |
1141 |
rm -rf git-hooks */git-hooks |
1142 |
|
1143 |
#Customize Palette to add Red Hat colours |
1144 |
#TODO: have and add mageia colours |
1145 |
(head -n -1 extras/source/palettes/standard.soc && \ |
1146 |
echo -e ' <draw:color draw:name="Red Hat 1" draw:color="#cc0000"/> |
1147 |
<draw:color draw:name="Red Hat 2" draw:color="#0093d9"/> |
1148 |
<draw:color draw:name="Red Hat 3" draw:color="#ff8d00"/> |
1149 |
<draw:color draw:name="Red Hat 4" draw:color="#abb400"/> |
1150 |
<draw:color draw:name="Red Hat 5" draw:color="#4e376b"/>' && \ |
1151 |
tail -n 1 extras/source/palettes/standard.soc) > redhat.soc |
1152 |
mv -f redhat.soc extras/source/palettes/standard.soc |
1153 |
|
1154 |
# apply patches |
1155 |
%autopatch -p1 -M 99 |
1156 |
%if 0%{?rhel} |
1157 |
%patch -P 500 -p1 |
1158 |
%endif |
1159 |
|
1160 |
%ifarch aarch64 s390x ppc64le |
1161 |
%patch -P 501 -p1 |
1162 |
%endif |
1163 |
|
1164 |
# tests failling on Mageia: |
1165 |
sed -i '/CppunitTest_sd_import_tests/d' sd/Module_sd.mk |
1166 |
sed -i '/CppunitTest_sdext_pdfimport/d' sdext/Module_sdext.mk |
1167 |
sed -i '/CppunitTest_dbaccess_macros_test/d' dbaccess/Module_dbaccess.mk |
1168 |
|
1169 |
# Temporarily disable failing tests |
1170 |
%ifarch ppc64le |
1171 |
sed -i -e s/CppunitTest_dbaccess_RowSetClones// dbaccess/Module_dbaccess.mk |
1172 |
# the following actually succeeded as of 2024-02-23, remove if it succeeds again. |
1173 |
#sed -i -e s/CppunitTest_dbaccess_hsqldb_test// dbaccess/Module_dbaccess.mk |
1174 |
%endif |
1175 |
%ifarch aarch64 |
1176 |
# Nothing to do |
1177 |
%endif |
1178 |
%ifarch s390x |
1179 |
# SwMacrosTest::testVba fails |
1180 |
sed -i -e s/CppunitTest_sw_macros_test// sw/Module_sw.mk |
1181 |
# https://bugs.documentfoundation.org/show_bug.cgi?id=125978 |
1182 |
sed -i -e s/CustomTarget_uno_test// testtools/Module_testtools.mk |
1183 |
# failing testTdf149402_vba |
1184 |
sed -i -e s/CppunitTest_basic_macros// basic/Module_basic.mk |
1185 |
# Other test exclusions pointed out by sharkcz |
1186 |
sed -i -e /CppunitTest_vcl_svm_test/d vcl/Module_vcl.mk |
1187 |
sed -i -e /CppunitTest_sw_core_layout/d sw/Module_sw.mk |
1188 |
# https://bugs.documentfoundation.org/show_bug.cgi?id=158722 |
1189 |
sed -i -e /CppunitTest_desktop_lib/d desktop/Module_desktop.mk |
1190 |
# https://bugs.documentfoundation.org/show_bug.cgi?id=159184 |
1191 |
sed -i -e /CppunitTest_vcl_png_test/d vcl/Module_vcl.mk |
1192 |
# https://bugs.documentfoundation.org/show_bug.cgi?id=159211 |
1193 |
sed -i -e /CppunitTest_sd_png_export_tests/d sd/Module_sd.mk |
1194 |
%endif |
1195 |
|
1196 |
#see rhbz#2072615 |
1197 |
rm -f vcl/qa/cppunit/graphicfilter/data/tiff/fail/CVE-2017-9936-1.tiff |
1198 |
|
1199 |
%build |
1200 |
# path to external tarballs |
1201 |
EXTSRCDIR=`dirname %{SOURCE0}` |
1202 |
|
1203 |
#use the RPM_OPT_FLAGS but remove the LibreOffice overridden ones |
1204 |
for i in $RPM_OPT_FLAGS; do |
1205 |
case "$i" in |
1206 |
-pipe|-Wall|-Werror*|-fexceptions) continue;; |
1207 |
esac |
1208 |
ARCH_FLAGS="$ARCH_FLAGS $i" |
1209 |
done |
1210 |
%ifarch s390 s390x %{arm} |
1211 |
# these builders typically do not have enough memory to link the big libs with -g2 |
1212 |
ARCH_FLAGS="$ARCH_FLAGS -g1" |
1213 |
%endif |
1214 |
export ARCH_FLAGS |
1215 |
export CFLAGS="$ARCH_FLAGS -I%{_includedir}/zxcvbn -I%{_includedir}/KF6/KConfig/" |
1216 |
export CXXFLAGS="$ARCH_FLAGS -I%{_includedir}/zxcvbn -I%{_includedir}/KF6/KConfig/" |
1217 |
|
1218 |
# Distro build options |
1219 |
%define distrooptions --enable-eot %{!?with_firebird:--disable-firebird-sdbc} %{?with_kf5:--enable-kf5} %{?with_kf6:--enable-kf6} |
1220 |
|
1221 |
#ifarch %{java_arches} |
1222 |
%if 1 |
1223 |
%define javaoptions --with-java --enable-ext-nlpsolver --enable-ext-wiki-publisher |
1224 |
%else |
1225 |
%define javaoptions --without-java |
1226 |
%endif |
1227 |
|
1228 |
%if %{with langpacks} |
1229 |
%define with_lang --with-lang='%{langpack_langs}' |
1230 |
%endif |
1231 |
|
1232 |
aclocal -I m4 |
1233 |
autoconf |
1234 |
|
1235 |
SMP_MFLAGS=%{?_smp_mflags} |
1236 |
SMP_MFLAGS=$[${SMP_MFLAGS/-j/}] |
1237 |
|
1238 |
%if 0%{?flatpak} |
1239 |
%define flatpakoptions --with-beanshell-jar=/app/share/java/bsh.jar --with-boost-libdir=%{_libdir} --with-external-dict-dir=/app/share/hunspell --with-external-hyph-dir=/app/share/hyphen --with-external-thes-dir=/app/share/mythes --with-flute-jar=/app/share/java/flute.jar --with-jdk-home=/app/lib/jvm/java --with-jfreereport-jar=/app/share/java/flow-engine.jar --with-libbase-jar=/app/share/java/libbase.jar --with-libfonts-jar=/app/share/java/libfonts.jar --with-libformula-jar=/app/share/java/libformula.jar --with-liblayout-jar=/app/share/java/liblayout.jar --with-libloader-jar=/app/share/java/libloader.jar --with-librepository-jar=/app/share/java/librepository.jar --with-libserializer-jar=/app/share/java/libserializer.jar --with-libxml-jar=/app/share/java/libxml.jar --with-sac-jar=/app/share/java/sac.jar FIREBIRDCONFIG=%{_libdir}/fb_config QT4INC=%{_includedir} |
1240 |
%if 0%{?rhel} |
1241 |
%global flatpakoptions %{flatpakoptions} --with-boost-libdir=%{_libdir} |
1242 |
%endif |
1243 |
%endif |
1244 |
|
1245 |
# TODO: enable coinmp? |
1246 |
# avoid running autogen.sh on make |
1247 |
touch autogen.lastrun |
1248 |
%configure \ |
1249 |
%vendoroption \ |
1250 |
%{?with_lang} \ |
1251 |
--with-parallelism=$SMP_MFLAGS \ |
1252 |
--disable-coinmp \ |
1253 |
--disable-community-flavor \ |
1254 |
--disable-fetch-external \ |
1255 |
--disable-openssl \ |
1256 |
--disable-pdfium \ |
1257 |
--disable-skia \ |
1258 |
--enable-dconf \ |
1259 |
--enable-evolution2 \ |
1260 |
--enable-introspection \ |
1261 |
--enable-odk \ |
1262 |
--enable-release-build \ |
1263 |
--enable-symbols \ |
1264 |
--with-build-version="%{version}-%{release}" \ |
1265 |
--with-external-dict-dir=/usr/share/hunspell \ |
1266 |
--with-external-tar="$EXTSRCDIR" \ |
1267 |
--with-help \ |
1268 |
--with-system-dicts \ |
1269 |
--with-system-libs \ |
1270 |
--without-export-validation \ |
1271 |
--without-fonts \ |
1272 |
--without-lxml \ |
1273 |
--without-system-libfixmath \ |
1274 |
--enable-python=system \ |
1275 |
--with-idlc-cpp=cpp \ |
1276 |
--disable-scripting-beanshell --disable-scripting-javascript \ |
1277 |
--enable-gtk4 \ |
1278 |
%{javaoptions} \ |
1279 |
%{distrooptions} \ |
1280 |
%{?bundling_options} \ |
1281 |
%{?archoptions} \ |
1282 |
%{?flatpakoptions} \ |
1283 |
--with-system-zxcvbn |
1284 |
|
1285 |
if ! %make_build; then |
1286 |
echo "build attempt 1 failed" |
1287 |
make verbose=true build |
1288 |
fi |
1289 |
|
1290 |
#generate the icons and mime type stuff |
1291 |
export DESTDIR=../output |
1292 |
export KDEMAINDIR=/usr |
1293 |
export GNOMEDIR=/usr |
1294 |
export GNOME_MIME_THEME=hicolor |
1295 |
export PREFIXDIR=/usr |
1296 |
# TODO use empty variables? Should make the renaming hacks in %%install |
1297 |
# unnecessary. |
1298 |
. ./bin/get_config_variables PRODUCTVERSIONSHORT PRODUCTVERSION SRCDIR WORKDIR PKG_CONFIG INSTDIR |
1299 |
pushd $WORKDIR/CustomTarget/sysui/share/libreoffice |
1300 |
./create_tree.sh |
1301 |
popd |
1302 |
mkdir $WORKDIR/os-integration |
1303 |
cp -pr $WORKDIR/CustomTarget/sysui/share/output/usr/share/* $WORKDIR/os-integration |
1304 |
cp -pr $WORKDIR/CustomTarget/sysui/share/libreoffice/LOKDocView-%{girapiversion}.* $WORKDIR/os-integration |
1305 |
|
1306 |
%install |
1307 |
# remove workdir before install, to allow build on space-constrained machines |
1308 |
# remove the biggest offenders |
1309 |
rm -rf $WORKDIR/CxxObject $WORKDIR/GenCxxObject $WORKDIR/HelpTarget $WORKDIR/LinkTarget |
1310 |
|
1311 |
# TODO investigate use of make distro-pack-install |
1312 |
#figure out the icon version |
1313 |
. ./bin/get_config_variables PRODUCTVERSIONSHORT PRODUCTVERSION SRCDIR WORKDIR |
1314 |
export PRODUCTVERSIONSHORT PRODUCTVERSION |
1315 |
|
1316 |
# installation |
1317 |
|
1318 |
install -m 0755 -d %{buildroot}%{instdir} |
1319 |
if ! make instsetoo_native PKGFORMAT=installed DISABLE_STRIP=1 EPM=not-used-but-must-be-set; then |
1320 |
echo - ---dump log start--- |
1321 |
cat $WORKDIR/installation/LibreOffice/installed/logging/en-US/log_*_en-US.log |
1322 |
echo - ---dump log end--- |
1323 |
echo - ---dump log start -- SDK--- |
1324 |
cat $WORKDIR/installation/LibreOffice_SDK/installed/logging/en-US/log_*_en-US.log |
1325 |
echo - ---dump log end -- SDK--- |
1326 |
echo - ---dump log start -- languagepacks--- |
1327 |
cat $WORKDIR/installation/LibreOffice_languagepack/installed/logging/en-US/log_*_en-US.log |
1328 |
echo - ---dump log end -- languagepacks--- |
1329 |
exit 1 |
1330 |
fi |
1331 |
install -m 0755 -d %{buildroot}%{baseinstdir} |
1332 |
mv $WORKDIR/installation/LibreOffice/installed/install/en-US/* %{buildroot}%{baseinstdir} |
1333 |
%if %{with langpacks} |
1334 |
for langpack in $WORKDIR/installation/LibreOffice_languagepack/installed/install/*; do |
1335 |
[ `basename $langpack` = log ] && continue |
1336 |
cp -rp $langpack/* %{buildroot}%{baseinstdir} |
1337 |
rm -rf $langpack |
1338 |
done |
1339 |
%endif |
1340 |
mv $WORKDIR/installation/LibreOffice_SDK/installed/install/en-US/sdk %{buildroot}%{sdkinstdir} |
1341 |
chmod -R +w %{buildroot}%{baseinstdir} |
1342 |
|
1343 |
# postprocessing and tweaks |
1344 |
|
1345 |
# The installer currently sets UserInstallation to |
1346 |
# $ORIGIN/../libreoffice/4, which is of course total nonsense. Because I |
1347 |
# have no inclination to crawl through mountains of perl code to figure out |
1348 |
# where it comes from, I am just going to replace it by a sensible |
1349 |
# value here. |
1350 |
sed -i -e '/UserInstallation/s@\$ORIGIN/..@$SYSUSERCONFIG@' %{buildroot}%{baseinstdir}/program/bootstraprc |
1351 |
|
1352 |
#configure sdk |
1353 |
pushd %{buildroot}%{sdkinstdir} |
1354 |
sed -e "s,@OO_SDK_NAME@,sdk," \ |
1355 |
-e "s,@OO_SDK_HOME@,%{sdkinstdir}," \ |
1356 |
-e "s,@OFFICE_HOME@,%{baseinstdir}," \ |
1357 |
-e "s,@OO_SDK_MAKE_HOME@,/usr/bin," \ |
1358 |
-e "s,@OO_SDK_ZIP_HOME@,/usr/bin," \ |
1359 |
-e "s,@OO_SDK_CPP_HOME@,/usr/bin," \ |
1360 |
-e "s,@OO_SDK_CAT_HOME@,/usr/bin," \ |
1361 |
-e "s,@OO_SDK_SED_HOME@,/usr/bin," \ |
1362 |
-e "s,@OO_SDK_CC_55_OR_HIGHER@,," \ |
1363 |
-e "s,@OO_SDK_JAVA_HOME@,$JAVA_HOME," \ |
1364 |
-e "s,@OO_SDK_OUTPUT_DIR@,\$HOME," \ |
1365 |
-e "s,@SDK_AUTO_DEPLOYMENT@,NO," \ |
1366 |
setsdkenv_unix.sh.in > setsdkenv_unix.sh |
1367 |
# ensure no unexpanded vars sneaked in |
1368 |
grep '@[A_Z0-9_]\+@' setsdkenv_unix.sh && exit 1 |
1369 |
chmod 755 setsdkenv_unix.sh |
1370 |
# we don't want to install the input file |
1371 |
rm -f setsdkenv_unix.sh.in |
1372 |
# TODO: is this still necessary? |
1373 |
#fix permissions |
1374 |
find examples -type f -exec chmod -x {} \; |
1375 |
popd |
1376 |
|
1377 |
#ensure a template dir for each lang |
1378 |
pushd %{buildroot}%{baseinstdir}/share/template |
1379 |
for I in %{langpack_langs}; do |
1380 |
mkdir -p $I |
1381 |
done |
1382 |
popd |
1383 |
|
1384 |
#Set some aliases to canonical autocorrect language files for locales with matching languages |
1385 |
pushd %{buildroot}%{baseinstdir}/share/autocorr |
1386 |
|
1387 |
%make_autocorr_aliases -l en-GB en-AG en-AU en-BS en-BW en-BZ en-CA en-DK en-GH en-HK en-IE en-IN en-JM en-NG en-NZ en-SG en-TT |
1388 |
%make_autocorr_aliases -l en-US en-PH |
1389 |
#en-ZA exists and has a good autocorrect file with two or three extras that make sense for |
1390 |
#neighbouring english speaking territories |
1391 |
%make_autocorr_aliases -l en-ZA en-NA en-ZW |
1392 |
%if %{with langpacks} |
1393 |
%make_autocorr_aliases -l af-ZA af-NA |
1394 |
%make_autocorr_aliases -l nl-NL nl-AW |
1395 |
%make_autocorr_aliases -l sv-SE sv-FI |
1396 |
%else |
1397 |
rm -f acor_[a-df-z]*.dat acor_e[lsu]*.dat |
1398 |
# (tv) Fix installed (but unpackaged) file on armv7: |
1399 |
rm -f %{buildroot}%{baseinstdir}/share/template/common/l10n/zh_CN_ott_normal.ott |
1400 |
%endif |
1401 |
popd |
1402 |
#rhbz#484055 make these shared across multiple applications |
1403 |
install -m 0755 -d %{buildroot}%{_datadir} |
1404 |
mv -f %{buildroot}%{baseinstdir}/share/autocorr %{buildroot}%{_datadir}/autocorr |
1405 |
chmod 755 %{buildroot}%{_datadir}/autocorr |
1406 |
ln -s %{_datadir}/autocorr %{buildroot}%{baseinstdir}/share/autocorr |
1407 |
|
1408 |
#remove it in case we didn't build with gcj |
1409 |
rm -f %{buildroot}%{baseinstdir}/program/classes/sandbox.jar |
1410 |
# we don't need this in the install |
1411 |
rm -f %{buildroot}%{baseinstdir}/program/classes/smoketest.jar |
1412 |
|
1413 |
#remove dummy .dat files |
1414 |
rm -f %{buildroot}%{baseinstdir}/program/root?.dat |
1415 |
|
1416 |
#set standard permissions for rpmlint |
1417 |
find %{buildroot}%{baseinstdir} -exec chmod +w {} \; |
1418 |
find %{buildroot}%{baseinstdir} -type d -exec chmod 0755 {} \; |
1419 |
|
1420 |
# move python bits into site-packages |
1421 |
install -m 0755 -d %{buildroot}%{libo_python_sitearch} |
1422 |
pushd %{buildroot}%{libo_python_sitearch} |
1423 |
echo "import sys, os" > uno.py |
1424 |
echo "sys.path.append('%{baseinstdir}/program')" >> uno.py |
1425 |
echo "os.putenv('URE_BOOTSTRAP', 'vnd.sun.star.pathname:%{baseinstdir}/program/fundamentalrc')" >> uno.py |
1426 |
cat %{buildroot}%{baseinstdir}/program/uno.py >> uno.py |
1427 |
rm -f %{buildroot}%{baseinstdir}/program/uno.py* |
1428 |
mv -f %{buildroot}%{baseinstdir}/program/unohelper.py* . |
1429 |
mv -f %{buildroot}%{baseinstdir}/program/officehelper.py* . |
1430 |
popd |
1431 |
|
1432 |
#https://fedoraproject.org/wiki/Changes/No_more_automagic_Python_bytecompilation_phase_3 |
1433 |
%py_byte_compile %{libo_python_executable} %{buildroot}%{baseinstdir}/program |
1434 |
rm -rf %{buildroot}%{baseinstdir}/program/__pycache__ |
1435 |
|
1436 |
# rhbz#477435 package opensymbol separately |
1437 |
pushd %{buildroot}%{baseinstdir}/program/resource/common/fonts |
1438 |
install -d -m 0755 %{buildroot}%{_fontdir} |
1439 |
install -p -m 0644 *.ttf %{buildroot}%{_fontdir} |
1440 |
popd |
1441 |
rm -rf %{buildroot}%{baseinstdir}/program/resource/common/fonts/*ttf |
1442 |
rm -rf %{buildroot}%{baseinstdir}/share/fonts/truetype/*.ttf |
1443 |
|
1444 |
# move platform-independent data into shared dir |
1445 |
install -m 0755 -d %{buildroot}%{datadir} |
1446 |
rm -f %{buildroot}%{baseinstdir}/CREDITS.fodt %{buildroot}%{baseinstdir}/LICENSE* %{buildroot}%{baseinstdir}/NOTICE |
1447 |
# rhbz#1473749 ensure display of files in license/about dialogs works |
1448 |
ln -sr %{buildroot}%{lodatadocdir}/CREDITS.fodt %{buildroot}%{baseinstdir}/CREDITS.fodt |
1449 |
ln -sr %{buildroot}%{lodatadocdir}/LICENSE.html %{buildroot}%{baseinstdir}/LICENSE.html |
1450 |
|
1451 |
#ensure that no sneaky un-prelinkable, un-fpic or non executable shared libs |
1452 |
#have snuck through |
1453 |
pic=0 |
1454 |
executable=0 |
1455 |
for foo in `find %{buildroot}%{instdir} -name "*" -exec file {} \;| grep ": ELF" | cut -d: -f 1` ; do |
1456 |
chmod +wx $foo |
1457 |
ls -asl $foo |
1458 |
result=`readelf -d $foo | grep TEXTREL` || true |
1459 |
if [ "$result" != "" ]; then |
1460 |
echo "TEXTREL Warning: $foo is b0rked (-fpic missing)" |
1461 |
pic=1 |
1462 |
fi |
1463 |
result=`readelf -l $foo | grep GNU_STACK | grep RWE` || true |
1464 |
if [ "$result" != "" ]; then |
1465 |
echo "GNU_STACK Warning: $foo is b0rked (-noexecstack missing)" |
1466 |
executable=1 |
1467 |
fi |
1468 |
done |
1469 |
if [ $pic == 1 ]; then false; fi |
1470 |
if [ $executable == 1 ]; then false; fi |
1471 |
|
1472 |
#make up some /usr/bin scripts |
1473 |
install -m 0755 -d %{buildroot}%{_bindir} |
1474 |
|
1475 |
pushd %{buildroot}%{_bindir} |
1476 |
echo \#\!/bin/sh > ooffice |
1477 |
echo exec libreoffice \"\$@\" >> ooffice |
1478 |
chmod a+x ooffice |
1479 |
|
1480 |
echo \#\!/bin/sh > ooviewdoc |
1481 |
echo exec libreoffice --view \"\$@\" >> ooviewdoc |
1482 |
chmod a+x ooviewdoc |
1483 |
|
1484 |
for app in base calc draw impress math writer; do |
1485 |
echo \#\!/bin/sh > oo$app |
1486 |
echo exec libreoffice --$app \"\$@\" >> oo$app |
1487 |
chmod a+x oo$app |
1488 |
done |
1489 |
|
1490 |
sed -e s/LAUNCHER/unopkg/g -e s/BRAND/libreoffice/g %{SOURCE8} > unopkg |
1491 |
chmod a+x unopkg |
1492 |
|
1493 |
sed -e s/LAUNCHER/soffice/g -e s/BRAND/libreoffice/g %{SOURCE8} > libreoffice |
1494 |
chmod a+x libreoffice |
1495 |
|
1496 |
%if 0%{?flatpak} |
1497 |
sed -i -e 's|/usr/lib|/app/lib|g' unopkg libreoffice |
1498 |
%endif |
1499 |
|
1500 |
# rhbz#499474 provide a /usr/bin/soffice for .recently-used.xbel |
1501 |
ln -s %{baseinstdir}/program/soffice soffice |
1502 |
# rhbz#499474 provide a /usr/bin/openoffice.org for backwards compat |
1503 |
ln -s libreoffice openoffice.org |
1504 |
popd |
1505 |
|
1506 |
pushd %{buildroot}%{baseinstdir}/share/xdg/ |
1507 |
chmod u+w *.desktop |
1508 |
ICONVERSION=`echo $PRODUCTVERSION | sed -e 's/\.//'` |
1509 |
for file in *.desktop; do |
1510 |
# rhbz#156677 remove the version from Name= |
1511 |
# rhbz#156067 don't version the icons |
1512 |
sed -i -e "s/ *$PRODUCTVERSION//g" \ |
1513 |
-e "s/$ICONVERSION//g" \ |
1514 |
-e "s/$PRODUCTVERSIONSHORT//g" \ |
1515 |
$file |
1516 |
done |
1517 |
# rhbz#186515 do not show startcenter |
1518 |
#sed -i -e /NoDisplay/s/false/true/ startcenter.desktop |
1519 |
# relocate the .desktop and icon files |
1520 |
install -m 0755 -d %{buildroot}%{_datadir}/applications |
1521 |
for app in base calc draw impress math startcenter writer xsltfilter; do |
1522 |
sed -i -e 's/\${UNIXBASISROOTNAME}/%{name}/' $app.desktop |
1523 |
desktop-file-validate $app.desktop |
1524 |
install -m 0644 -p $app.desktop %{buildroot}%{_datadir}/applications/libreoffice-$app.desktop |
1525 |
done |
1526 |
popd |
1527 |
|
1528 |
# disabled: web template |
1529 |
for i in calc draw impress math writer; do |
1530 |
desktop-file-install --vendor="" \ |
1531 |
--remove-category="Application" \ |
1532 |
--add-category="Office" \ |
1533 |
--add-category="X-Mageia-CrossDesktop" \ |
1534 |
--dir %{buildroot}%{_datadir}/applications %{buildroot}%{_datadir}/applications/*${i}*desktop |
1535 |
done |
1536 |
|
1537 |
%if 0%{?flatpak} |
1538 |
# Transform the libreoffice-*.desktop files into |
1539 |
# org.libreoffice.LibreOffice.*.desktop ones: |
1540 |
solenv/bin/assemble-flatpak-desktop.sh %{buildroot}%{_datadir}/applications/ \ |
1541 |
%{buildroot}%{_datadir}/applications/ |
1542 |
rm %{buildroot}%{_datadir}/applications/libreoffice-*.desktop |
1543 |
%endif |
1544 |
|
1545 |
pushd $WORKDIR/os-integration |
1546 |
#get rid of the gnome icons and other unneeded files |
1547 |
rm -rf icons/gnome applications application-registry |
1548 |
|
1549 |
#relocate the rest of them |
1550 |
# rhbz#901346 512x512 icons are not used by anything |
1551 |
for icon in `find icons -path '*/512x512' -prune -o -type f -print`; do |
1552 |
install -m 0755 -d %{buildroot}%{_datadir}/`dirname $icon` |
1553 |
install -m 0644 -p $icon %{buildroot}%{_datadir}/`echo $icon | sed -e s@libreoffice$ICONVERSION-@libreoffice-@ | sed -e s@libreoffice$PRODUCTVERSION-@libreoffice-@` |
1554 |
done |
1555 |
#add our mime-types, e.g. for .oxt extensions |
1556 |
install -m 0755 -d %{buildroot}%{_datadir}/mime/packages |
1557 |
install -m 0644 -p mime/packages/libreoffice$PRODUCTVERSION.xml %{buildroot}%{_datadir}/mime/packages/libreoffice.xml |
1558 |
|
1559 |
# restrict abipkgdiff to shared objects that actually have a stable ABI |
1560 |
for pkg in core base officebean ogltrans pdfimport calc writer impress graphicfilter postgresql ure pyuno x11 gtk3 gtk4 kf5 libreofficekit; do |
1561 |
cat > %{buildroot}%{baseinstdir}/program/${pkg}.abignore << _EOF |
1562 |
[suppress_file] |
1563 |
file_name_not_regexp=.*\.so\.[0-9]+ |
1564 |
_EOF |
1565 |
done |
1566 |
|
1567 |
# install LibreOfficeKit |
1568 |
install -m 0755 -d %{buildroot}%{_libdir}/girepository-1.0 |
1569 |
install -m 0644 -p LOKDocView-%{girapiversion}.typelib %{buildroot}%{_libdir}/girepository-1.0/LOKDocView-%{girapiversion}.typelib |
1570 |
install -m 0755 -d %{buildroot}%{_libdir}/gir-1.0 |
1571 |
install -m 0644 -p LOKDocView-%{girapiversion}.gir %{buildroot}%{_libdir}/gir-1.0/LOKDocView-%{girapiversion}.gir |
1572 |
mv %{buildroot}%{baseinstdir}/program/liblibreofficekitgtk.so %{buildroot}%{_libdir} |
1573 |
popd |
1574 |
|
1575 |
# install LibreOfficeKit headers |
1576 |
install -m 0755 -d %{buildroot}%{_includedir}/LibreOfficeKit |
1577 |
install -m 0644 -p include/LibreOfficeKit/* %{buildroot}%{_includedir}/LibreOfficeKit |
1578 |
|
1579 |
rm -rf %{buildroot}%{baseinstdir}/readmes |
1580 |
rm -rf %{buildroot}%{baseinstdir}/licenses |
1581 |
rm -rf %{buildroot}%{baseinstdir}/share/theme_definitions |
1582 |
|
1583 |
# to-do, remove this in libreoffice 4.4 when --without-ppds is gone, it'll do the right thing on its own then |
1584 |
install -m 0755 -d %{buildroot}%{baseinstdir}/share/psprint/driver |
1585 |
install -m 0644 -p vcl/unx/generic/printer/configuration/ppds/SGENPRT.PS %{buildroot}%{baseinstdir}/share/psprint/driver/SGENPRT.PS |
1586 |
|
1587 |
# rhbz#452385 to auto have postgres in classpath if subsequently installed |
1588 |
sed -i -e "s#URE_MORE_JAVA_CLASSPATH_URLS.*#& file:///usr/share/java/postgresql-jdbc.jar#" %{buildroot}%{baseinstdir}/program/fundamentalrc |
1589 |
|
1590 |
# move glade catalog to system glade dir |
1591 |
install -m 0755 -d %{buildroot}%{_datadir}/glade/catalogs |
1592 |
mv %{buildroot}%{baseinstdir}/share/glade/libreoffice-catalog.xml %{buildroot}%{_datadir}/glade/catalogs |
1593 |
install -m 0755 -d %{buildroot}%{_datadir}/glade3/catalogs |
1594 |
ln -sr %{buildroot}%{_datadir}/glade/catalogs/libreoffice-catalog.xml %{buildroot}%{_datadir}/glade3/catalogs |
1595 |
|
1596 |
# rhbz#1049543 install appdata |
1597 |
install -m 0755 -d %{buildroot}%{_datadir}/metainfo |
1598 |
install -m 0644 -p sysui/desktop/appstream-appdata/*.appdata.xml %{buildroot}%{_datadir}/metainfo |
1599 |
|
1600 |
# rhbz#1215800 install symbolic icons |
1601 |
install -m 0755 -d %{buildroot}%{_datadir}/icons/hicolor/symbolic/apps |
1602 |
install -m 0644 -p %{SOURCE42} %{buildroot}%{_datadir}/icons/hicolor/symbolic/apps |
1603 |
install -m 0644 -p %{SOURCE43} %{buildroot}%{_datadir}/icons/hicolor/symbolic/apps |
1604 |
install -m 0644 -p %{SOURCE44} %{buildroot}%{_datadir}/icons/hicolor/symbolic/apps |
1605 |
install -m 0644 -p %{SOURCE45} %{buildroot}%{_datadir}/icons/hicolor/symbolic/apps |
1606 |
install -m 0644 -p %{SOURCE46} %{buildroot}%{_datadir}/icons/hicolor/symbolic/apps |
1607 |
install -m 0644 -p %{SOURCE47} %{buildroot}%{_datadir}/icons/hicolor/symbolic/apps |
1608 |
install -m 0644 -p %{SOURCE48} %{buildroot}%{_datadir}/icons/hicolor/symbolic/apps |
1609 |
|
1610 |
%if 0%{?flatpak} |
1611 |
# Duplicate icons/*/*/apps/libreoffice-* as |
1612 |
# icons/*/*/apps/org.libreoffice.LibreOffice.* (so they end up "with both their |
1613 |
# original libreoffice-* name as well as the org.libreoffice name needed by |
1614 |
# Flatpak, which fixes the window icons", see <https://github.com/flathub/ |
1615 |
# org.libreoffice.LibreOffice/commit/945f6caad87658b1df1e8918bd5f64939058ab7f> |
1616 |
# "clean up desktop integration"): |
1617 |
for i in %{buildroot}%{_datadir}/icons/*/*/apps/libreoffice-*; do |
1618 |
cp -a "$i" \ |
1619 |
"$(dirname "$i")"/org.libreoffice.LibreOffice."${i##*/apps/libreoffice-}" |
1620 |
done |
1621 |
%endif |
1622 |
|
1623 |
# install man pages |
1624 |
install -m 0755 -d %{buildroot}%{_mandir}/man1 |
1625 |
install -m 0644 -p sysui/desktop/man/*.1 %{buildroot}%{_mandir}/man1 |
1626 |
for app in oobase oocalc oodraw ooffice ooimpress oomath ooviewdoc oowriter openoffice.org soffice; do |
1627 |
echo '.so man1/libreoffice.1' > $app.1 |
1628 |
install -m 0644 -p $app.1 %{buildroot}%{_mandir}/man1 |
1629 |
done |
1630 |
|
1631 |
%if 0%{?_enable_debug_packages} |
1632 |
export DESTDIR=%{buildroot} |
1633 |
./solenv/bin/install-gdb-printers -a %{_datadir}/gdb/auto-load%{baseinstdir} -c -i %{baseinstdir} -p %{_datadir}/libreoffice/gdb |
1634 |
%endif |
1635 |
|
1636 |
%if 0%{?flatpak} |
1637 |
# Assemble the libreoffice-*.appdata.xml files into a single |
1638 |
# org.libreoffice.LibreOffice.appdata.xml: |
1639 |
solenv/bin/assemble-flatpak-appdata.sh \ |
1640 |
%{buildroot}%{_datadir}/metainfo/ 0 |
1641 |
rm %{buildroot}%{_datadir}/metainfo/libreoffice-*.appdata.xml |
1642 |
%endif |
1643 |
|
1644 |
#ifarch %{java_arches} |
1645 |
# rhbz#1247399 - move stable API jars to noarch java location |
1646 |
install -m 0755 -d %{buildroot}%{_javadir}/%{name} |
1647 |
for jar in %{buildroot}%{baseinstdir}/program/classes/*.jar; do |
1648 |
j=`basename $jar` |
1649 |
case ${j%.jar} in |
1650 |
juh|jurt|libreoffice|ridl|unoloader|unoil|officebean) |
1651 |
mv $jar %{buildroot}%{_javadir}/%{name} |
1652 |
ln -sr %{buildroot}%{_javadir}/%{name}/$j $jar |
1653 |
;; |
1654 |
esac |
1655 |
done |
1656 |
#else |
1657 |
## make sure something creates this dir |
1658 |
#install -m 0755 -d %{buildroot}%{baseinstdir}/share/extensions |
1659 |
## and remove this |
1660 |
#rm -f %{buildroot}%{baseinstdir}/program/officebean.abignore |
1661 |
#endif |
1662 |
|
1663 |
%check |
1664 |
# (temp fix until testsuite is run): |
1665 |
rm -f %{buildroot}%{baseinstdir}/program/classes/smoketest.jar |
1666 |
exit 0 |
1667 |
make unitcheck slowcheck |
1668 |
# we don't need this anymore |
1669 |
rm -f %{buildroot}%{baseinstdir}/program/classes/smoketest.jar |
1670 |
|
1671 |
%files |
1672 |
|
1673 |
%files filters |
1674 |
|
1675 |
%files core |
1676 |
%dir %{baseinstdir} |
1677 |
%{baseinstdir}/CREDITS.fodt |
1678 |
%{baseinstdir}/LICENSE.html |
1679 |
%dir %{baseinstdir}/help |
1680 |
%{baseinstdir}/help/idxcaption.xsl |
1681 |
%{baseinstdir}/help/idxcontent.xsl |
1682 |
%{baseinstdir}/help/main_transform.xsl |
1683 |
%{baseinstdir}/presets |
1684 |
%dir %{baseinstdir}/program |
1685 |
%if 0%{?mageia} |
1686 |
%{baseinstdir}/program/core.abignore |
1687 |
%endif |
1688 |
%{baseinstdir}/program/libbasprovlo.so |
1689 |
%{baseinstdir}/program/libcairocanvaslo.so |
1690 |
%{baseinstdir}/program/libcanvasfactorylo.so |
1691 |
#ifarch %{java_arches} |
1692 |
%dir %{baseinstdir}/program/classes |
1693 |
%{baseinstdir}/program/classes/commonwizards.jar |
1694 |
%{baseinstdir}/program/classes/form.jar |
1695 |
%{baseinstdir}/program/classes/query.jar |
1696 |
%{baseinstdir}/program/classes/report.jar |
1697 |
%{baseinstdir}/program/classes/ScriptFramework.jar |
1698 |
%{baseinstdir}/program/classes/ScriptProviderForJava.jar |
1699 |
%{baseinstdir}/program/classes/table.jar |
1700 |
%{baseinstdir}/program/classes/unoil.jar |
1701 |
%{baseinstdir}/program/classes/XMergeBridge.jar |
1702 |
%{baseinstdir}/program/classes/xmerge.jar |
1703 |
#endif |
1704 |
%{baseinstdir}/program/libcmdmaillo.so |
1705 |
%{baseinstdir}/program/libdeployment.so |
1706 |
%{baseinstdir}/program/libdeploymentgui.so |
1707 |
%{baseinstdir}/program/libdlgprovlo.so |
1708 |
%{baseinstdir}/program/libfps_officelo.so |
1709 |
%{baseinstdir}/program/gdbtrace |
1710 |
%{baseinstdir}/program/gengal |
1711 |
%{baseinstdir}/program/gengal.bin |
1712 |
%{baseinstdir}/program/libi18nsearchlo.so |
1713 |
%{baseinstdir}/program/libldapbe2lo.so |
1714 |
%{baseinstdir}/program/libacclo.so |
1715 |
%{baseinstdir}/program/libanimcorelo.so |
1716 |
%{baseinstdir}/program/libavmedia*.so |
1717 |
%{baseinstdir}/program/libbasctllo.so |
1718 |
%{baseinstdir}/program/libbiblo.so |
1719 |
%{baseinstdir}/program/libcached1.so |
1720 |
%{baseinstdir}/program/libcanvastoolslo.so |
1721 |
%{baseinstdir}/program/libchart*lo.so |
1722 |
%{baseinstdir}/program/libclewlo.so |
1723 |
%{baseinstdir}/program/libcollator_data.so |
1724 |
%{baseinstdir}/program/libcppcanvaslo.so |
1725 |
%{baseinstdir}/program/libctllo.so |
1726 |
%{baseinstdir}/program/libcuilo.so |
1727 |
%{baseinstdir}/program/libdbalo.so |
1728 |
%{baseinstdir}/program/libdbahsqllo.so |
1729 |
%{baseinstdir}/program/libdbaselo.so |
1730 |
%{baseinstdir}/program/libdbaxmllo.so |
1731 |
%{baseinstdir}/program/libdbpool2.so |
1732 |
%{baseinstdir}/program/libdbtoolslo.so |
1733 |
%{baseinstdir}/program/libdbulo.so |
1734 |
%{baseinstdir}/program/libdeploymentmisclo.so |
1735 |
%{baseinstdir}/program/libdesktop_detectorlo.so |
1736 |
%{baseinstdir}/program/libdict_ja.so |
1737 |
%{baseinstdir}/program/libdict_zh.so |
1738 |
%{baseinstdir}/program/libdocmodello.so |
1739 |
%{baseinstdir}/program/libdrawinglayerlo.so |
1740 |
%{baseinstdir}/program/libdrawinglayercorelo.so |
1741 |
%{baseinstdir}/program/libeditenglo.so |
1742 |
%{baseinstdir}/program/libembobj.so |
1743 |
%{baseinstdir}/program/libemboleobj.so |
1744 |
%{baseinstdir}/program/libemfiolo.so |
1745 |
%{baseinstdir}/program/libevoab*.so |
1746 |
%{baseinstdir}/program/libevtattlo.so |
1747 |
%{baseinstdir}/program/libicglo.so |
1748 |
%{baseinstdir}/program/libindex_data.so |
1749 |
%{baseinstdir}/program/libfilelo.so |
1750 |
%{baseinstdir}/program/libfilterconfiglo.so |
1751 |
%{baseinstdir}/program/libflatlo.so |
1752 |
%{baseinstdir}/program/libfrmlo.so |
1753 |
%{baseinstdir}/program/libguesslanglo.so |
1754 |
%{baseinstdir}/program/libhelplinkerlo.so |
1755 |
%{baseinstdir}/program/libhyphenlo.so |
1756 |
#ifarch %{java_arches} |
1757 |
%{baseinstdir}/program/libjdbclo.so |
1758 |
#endif |
1759 |
%{baseinstdir}/program/libLanguageToollo.so |
1760 |
%{baseinstdir}/program/liblnglo.so |
1761 |
%{baseinstdir}/program/libloglo.so |
1762 |
%{baseinstdir}/program/liblocaledata_en.so |
1763 |
%{baseinstdir}/program/liblocaledata_es.so |
1764 |
%{baseinstdir}/program/liblocaledata_euro.so |
1765 |
%{baseinstdir}/program/liblocaledata_others.so |
1766 |
%{baseinstdir}/program/libmozbootstraplo.so |
1767 |
%{baseinstdir}/program/libmsfilterlo.so |
1768 |
%{baseinstdir}/program/libmtfrendererlo.so |
1769 |
%{baseinstdir}/program/libmysql_jdbclo.so |
1770 |
%{baseinstdir}/program/libmysqlclo.so |
1771 |
%{baseinstdir}/program/libodbclo.so |
1772 |
%{baseinstdir}/program/liboglcanvaslo.so |
1773 |
%{baseinstdir}/program/liboffacclo.so |
1774 |
%{baseinstdir}/program/libooxlo.so |
1775 |
%{baseinstdir}/program/libopencllo.so |
1776 |
%{baseinstdir}/program/libpcrlo.so |
1777 |
%{baseinstdir}/program/libpdffilterlo.so |
1778 |
%{baseinstdir}/program/libprotocolhandlerlo.so |
1779 |
%{baseinstdir}/program/libsaxlo.so |
1780 |
%{baseinstdir}/program/libscnlo.so |
1781 |
%{baseinstdir}/program/libscriptframe.so |
1782 |
%{baseinstdir}/program/libsdlo.so |
1783 |
%{baseinstdir}/program/libsdbc2.so |
1784 |
%{baseinstdir}/program/libsdbtlo.so |
1785 |
%{baseinstdir}/program/libsddlo.so |
1786 |
%{baseinstdir}/program/libsduilo.so |
1787 |
%{baseinstdir}/program/libspelllo.so |
1788 |
%{baseinstdir}/program/libsrtrs1.so |
1789 |
%{baseinstdir}/program/libstoragefdlo.so |
1790 |
%{baseinstdir}/program/libsvgiolo.so |
1791 |
%{baseinstdir}/program/libsvxlo.so |
1792 |
%{baseinstdir}/program/libsvxcorelo.so |
1793 |
%{baseinstdir}/program/libswdlo.so |
1794 |
%{baseinstdir}/program/libswlo.so |
1795 |
%{baseinstdir}/program/libtextconv_dict.so |
1796 |
%{baseinstdir}/program/libtextconversiondlgslo.so |
1797 |
%{baseinstdir}/program/libtextfdlo.so |
1798 |
%{baseinstdir}/program/libodfflatxmllo.so |
1799 |
# TODO: shouldn't it have lo suffix? |
1800 |
%{baseinstdir}/program/libucbhelper.so |
1801 |
%{baseinstdir}/program/libucpchelp1.so |
1802 |
%{baseinstdir}/program/libucpdav1.so |
1803 |
%{baseinstdir}/program/libucphier1.so |
1804 |
%{baseinstdir}/program/libucppkg1.so |
1805 |
%{baseinstdir}/program/libunordflo.so |
1806 |
%{baseinstdir}/program/libunopkgapp.so |
1807 |
%{baseinstdir}/program/libunoxmllo.so |
1808 |
%{baseinstdir}/program/libuuilo.so |
1809 |
%{baseinstdir}/program/libvbahelperlo.so |
1810 |
%{baseinstdir}/program/libxmlfalo.so |
1811 |
%{baseinstdir}/program/libxmlfdlo.so |
1812 |
%{baseinstdir}/program/libxoflo.so |
1813 |
%{baseinstdir}/program/libxsec_xmlsec.so |
1814 |
%{baseinstdir}/program/libxsltdlglo.so |
1815 |
%{baseinstdir}/program/libxsltfilterlo.so |
1816 |
%{baseinstdir}/program/libxstor.so |
1817 |
# TODO how useful this is in Fedora? |
1818 |
%{baseinstdir}/program/liblosessioninstalllo.so |
1819 |
%{baseinstdir}/program/libmigrationoo2lo.so |
1820 |
%{baseinstdir}/program/libmigrationoo3lo.so |
1821 |
%{baseinstdir}/program/libmsformslo.so |
1822 |
%{baseinstdir}/program/opencl |
1823 |
%dir %{baseinstdir}/program/opengl |
1824 |
%{baseinstdir}/program/opengl/*.glsl |
1825 |
%{baseinstdir}/program/types/offapi.rdb |
1826 |
%{baseinstdir}/program/libpasswordcontainerlo.so |
1827 |
%{baseinstdir}/program/pagein-common |
1828 |
%dir %{baseinstdir}/program/resource |
1829 |
%dir %{baseinstdir}/program/resource/common |
1830 |
%dir %{baseinstdir}/program/resource/common/fonts |
1831 |
%{baseinstdir}/program/senddoc |
1832 |
%dir %{baseinstdir}/program/services |
1833 |
%{baseinstdir}/program/services/services.rdb |
1834 |
%{baseinstdir}/program/libsimplecanvaslo.so |
1835 |
%{baseinstdir}/program/libslideshowlo.so |
1836 |
%{baseinstdir}/program/libsmlo.so |
1837 |
%{baseinstdir}/program/libsmdlo.so |
1838 |
%{baseinstdir}/program/libsofficeapp.so |
1839 |
%{baseinstdir}/program/libstringresourcelo.so |
1840 |
%{baseinstdir}/program/libsysshlo.so |
1841 |
%{baseinstdir}/program/libucpcmis1lo.so |
1842 |
%{baseinstdir}/program/libucpexpand1lo.so |
1843 |
%{baseinstdir}/program/libucpextlo.so |
1844 |
%{baseinstdir}/program/libucpimagelo.so |
1845 |
%{baseinstdir}/program/libucptdoc1lo.so |
1846 |
%{baseinstdir}/program/lounorc |
1847 |
%{baseinstdir}/program/libupdatefeedlo.so |
1848 |
%{baseinstdir}/program/uri-encode |
1849 |
%{baseinstdir}/program/libvbaeventslo.so |
1850 |
%{baseinstdir}/program/libvclcanvaslo.so |
1851 |
%{baseinstdir}/program/versionrc |
1852 |
%dir %{baseinstdir}/share |
1853 |
%dir %{baseinstdir}/share/classification |
1854 |
%{baseinstdir}/share/classification/example*.xml |
1855 |
%dir %{baseinstdir}/share/fonts |
1856 |
%dir %{baseinstdir}/share/fonts/truetype |
1857 |
%{baseinstdir}/share/fonts/truetype/fc_local.conf |
1858 |
%dir %{baseinstdir}/share/Scripts |
1859 |
#ifarch %{java_arches} |
1860 |
%{baseinstdir}/share/Scripts/java |
1861 |
#endif |
1862 |
%dir %{baseinstdir}/share/autotext |
1863 |
%dir %{_datadir}/autocorr |
1864 |
%{baseinstdir}/share/autocorr |
1865 |
%{baseinstdir}/share/basic |
1866 |
%dir %{baseinstdir}/share/config |
1867 |
%{baseinstdir}/share/config/images_breeze.zip |
1868 |
%{baseinstdir}/share/config/images_breeze_svg.zip |
1869 |
%{baseinstdir}/share/config/images_breeze_dark.zip |
1870 |
%{baseinstdir}/share/config/images_breeze_dark_svg.zip |
1871 |
%{baseinstdir}/share/config/images_colibre.zip |
1872 |
%{baseinstdir}/share/config/images_colibre_svg.zip |
1873 |
%{baseinstdir}/share/config/images_colibre_dark.zip |
1874 |
%{baseinstdir}/share/config/images_colibre_dark_svg.zip |
1875 |
%{baseinstdir}/share/config/images_elementary.zip |
1876 |
%{baseinstdir}/share/config/images_elementary_svg.zip |
1877 |
%{baseinstdir}/share/config/images_helpimg.zip |
1878 |
%{baseinstdir}/share/config/images_karasa_jaga.zip |
1879 |
%{baseinstdir}/share/config/images_karasa_jaga_svg.zip |
1880 |
%{baseinstdir}/share/config/images_sifr.zip |
1881 |
%{baseinstdir}/share/config/images_sifr_dark.zip |
1882 |
%{baseinstdir}/share/config/images_sifr_dark_svg.zip |
1883 |
%{baseinstdir}/share/config/images_sifr_svg.zip |
1884 |
%{baseinstdir}/share/config/images_sukapura.zip |
1885 |
%{baseinstdir}/share/config/images_sukapura_svg.zip |
1886 |
%{baseinstdir}/share/config/images_sukapura_dark.zip |
1887 |
%{baseinstdir}/share/config/images_sukapura_dark_svg.zip |
1888 |
%dir %{baseinstdir}/share/tipoftheday |
1889 |
%{baseinstdir}/share/tipoftheday/* |
1890 |
%dir %{baseinstdir}/share/toolbarmode |
1891 |
%{baseinstdir}/share/toolbarmode/* |
1892 |
%dir %{baseinstdir}/share/config/soffice.cfg |
1893 |
%{baseinstdir}/share/config/soffice.cfg/modules |
1894 |
%{baseinstdir}/share/config/soffice.cfg/*/ui |
1895 |
%{baseinstdir}/share/palette |
1896 |
%{baseinstdir}/share/config/wizard |
1897 |
%dir %{baseinstdir}/share/dtd |
1898 |
%{baseinstdir}/share/dtd/officedocument |
1899 |
%{baseinstdir}/share/gallery |
1900 |
%dir %{baseinstdir}/share/labels |
1901 |
%{baseinstdir}/share/labels/labels.xml |
1902 |
%dir %{baseinstdir}/share/psprint |
1903 |
%config %{baseinstdir}/share/psprint/psprint.conf |
1904 |
%{baseinstdir}/share/psprint/driver |
1905 |
%dir %{baseinstdir}/share/registry |
1906 |
%{baseinstdir}/share/registry/draw.xcd |
1907 |
%{baseinstdir}/share/registry/gnome.xcd |
1908 |
%{baseinstdir}/share/registry/lingucomponent.xcd |
1909 |
%{baseinstdir}/share/registry/main.xcd |
1910 |
%{baseinstdir}/share/registry/math.xcd |
1911 |
%{baseinstdir}/share/registry/oo-ad-ldap.xcd.sample |
1912 |
%{baseinstdir}/share/registry/oo-ldap.xcd.sample |
1913 |
%dir %{baseinstdir}/share/registry/res |
1914 |
%dir %{baseinstdir}/share/template |
1915 |
%dir %{baseinstdir}/share/template/common |
1916 |
%{baseinstdir}/share/template/common/draw |
1917 |
%{baseinstdir}/share/template/common/internal |
1918 |
%{baseinstdir}/share/template/common/officorr |
1919 |
%{baseinstdir}/share/template/common/offimisc |
1920 |
%{baseinstdir}/share/template/common/personal |
1921 |
%{baseinstdir}/share/template/common/presnt |
1922 |
%{baseinstdir}/share/template/common/styles |
1923 |
%{baseinstdir}/share/template/common/wizard |
1924 |
%{baseinstdir}/share/template/common/l10n/ |
1925 |
%{baseinstdir}/share/template/wizard |
1926 |
%dir %{baseinstdir}/share/wordbook |
1927 |
%{baseinstdir}/share/wordbook/en-GB.dic |
1928 |
%{baseinstdir}/share/wordbook/en-US.dic |
1929 |
%{baseinstdir}/share/wordbook/technical.dic |
1930 |
%{baseinstdir}/program/liblnthlo.so |
1931 |
%{_bindir}/unopkg |
1932 |
%{_mandir}/man1/unopkg.1* |
1933 |
%{baseinstdir}/program/libxmlsecurity.so |
1934 |
%{baseinstdir}/program/libconfigmgrlo.so |
1935 |
%{baseinstdir}/program/libdesktopbe1lo.so |
1936 |
%{baseinstdir}/program/libfsstoragelo.so |
1937 |
%{baseinstdir}/program/libi18npoollo.so |
1938 |
%{baseinstdir}/program/libbasegfxlo.so |
1939 |
# TODO: shouldn't it have lo suffix? |
1940 |
%{baseinstdir}/program/libcomphelper.so |
1941 |
%{baseinstdir}/program/libfwklo.so |
1942 |
# TODO: shouldn't it have lo suffix? |
1943 |
%{baseinstdir}/program/libi18nutil.so |
1944 |
%{baseinstdir}/program/libpackage2.so |
1945 |
%{baseinstdir}/program/libsblo.so |
1946 |
%{baseinstdir}/program/libsfxlo.so |
1947 |
%{baseinstdir}/program/libsotlo.so |
1948 |
%{baseinstdir}/program/libspllo.so |
1949 |
%{baseinstdir}/program/libsvllo.so |
1950 |
%{baseinstdir}/program/libsvtlo.so |
1951 |
%{baseinstdir}/program/libtklo.so |
1952 |
%{baseinstdir}/program/libtllo.so |
1953 |
%{baseinstdir}/program/libucb1.so |
1954 |
%{baseinstdir}/program/libucpfile1.so |
1955 |
%{baseinstdir}/program/libutllo.so |
1956 |
%{baseinstdir}/program/libvcllo.so |
1957 |
%{baseinstdir}/program/libwriterperfectlo.so |
1958 |
%{baseinstdir}/program/libxmlscriptlo.so |
1959 |
%{baseinstdir}/program/libxolo.so |
1960 |
%{baseinstdir}/program/liblocalebe1lo.so |
1961 |
%{baseinstdir}/program/libucpgio1lo.so |
1962 |
%{baseinstdir}/program/types/oovbaapi.rdb |
1963 |
#share unopkg |
1964 |
%dir %{baseinstdir}/share/extensions |
1965 |
%{baseinstdir}/program/unopkg |
1966 |
%{baseinstdir}/program/unopkg.bin |
1967 |
%{baseinstdir}/program/bootstraprc |
1968 |
%{baseinstdir}/program/fundamentalrc |
1969 |
%{baseinstdir}/program/setuprc |
1970 |
%{baseinstdir}/program/intro.png |
1971 |
%{baseinstdir}/program/intro-highres.png |
1972 |
%{baseinstdir}/program/opencltest |
1973 |
%{baseinstdir}/program/soffice |
1974 |
%{baseinstdir}/program/soffice.bin |
1975 |
%{baseinstdir}/program/sofficerc |
1976 |
%{baseinstdir}/program/unoinfo |
1977 |
%{baseinstdir}/program/oosplash |
1978 |
%{baseinstdir}/program/shell/ |
1979 |
%dir %{baseinstdir}/share/filter |
1980 |
%{baseinstdir}/share/filter/oox-drawingml-adj-names |
1981 |
%{baseinstdir}/share/filter/oox-drawingml-cs-presets |
1982 |
%{baseinstdir}/share/filter/signature-line.svg |
1983 |
%{baseinstdir}/share/filter/signature-line-draw.svg |
1984 |
%{baseinstdir}/share/filter/vml-shape-types |
1985 |
%{baseinstdir}/share/xdg/ |
1986 |
%{baseinstdir}/program/redirectrc |
1987 |
%if 0%{?flatpak} |
1988 |
%{_datadir}/metainfo/org.libreoffice.LibreOffice.appdata.xml |
1989 |
%{_datadir}/applications/org.libreoffice.LibreOffice.desktop |
1990 |
%else |
1991 |
%{_datadir}/applications/libreoffice-startcenter.desktop |
1992 |
%endif |
1993 |
#launchers |
1994 |
%{_bindir}/libreoffice |
1995 |
%{_bindir}/openoffice.org |
1996 |
%{_bindir}/soffice |
1997 |
%{_bindir}/ooffice |
1998 |
%{_bindir}/ooviewdoc |
1999 |
%{_mandir}/man1/libreoffice.1* |
2000 |
%{_mandir}/man1/openoffice.org.1* |
2001 |
%{_mandir}/man1/soffice.1* |
2002 |
%{_mandir}/man1/ooffice.1* |
2003 |
%{_mandir}/man1/ooviewdoc.1* |
2004 |
|
2005 |
%files base |
2006 |
#ifarch %{java_arches} |
2007 |
%{baseinstdir}/program/classes/hsqldb.jar |
2008 |
%{baseinstdir}/program/classes/reportbuilder.jar |
2009 |
%{baseinstdir}/program/classes/reportbuilderwizard.jar |
2010 |
%{baseinstdir}/program/classes/sdbc_hsqldb.jar |
2011 |
#endif |
2012 |
%{baseinstdir}/program/access2base.py |
2013 |
%if 0%{?mageia} |
2014 |
%{baseinstdir}/program/base.abignore |
2015 |
%endif |
2016 |
%{baseinstdir}/program/base.abignore |
2017 |
%{baseinstdir}/program/libabplo.so |
2018 |
%{baseinstdir}/program/libdbplo.so |
2019 |
%if %{with firebird} |
2020 |
%{baseinstdir}/program/libfirebird_sdbclo.so |
2021 |
%endif |
2022 |
#ifarch %{java_arches} |
2023 |
%{baseinstdir}/program/libhsqldb.so |
2024 |
%{baseinstdir}/program/librptlo.so |
2025 |
%{baseinstdir}/program/librptuilo.so |
2026 |
%{baseinstdir}/program/librptxmllo.so |
2027 |
#endif |
2028 |
%{baseinstdir}/share/registry/base.xcd |
2029 |
#ifarch %{java_arches} |
2030 |
%{baseinstdir}/share/registry/reportbuilder.xcd |
2031 |
#endif |
2032 |
%{baseinstdir}/program/sbase |
2033 |
%if 0%{?flatpak} |
2034 |
%{_datadir}/applications/org.libreoffice.LibreOffice.base.desktop |
2035 |
%else |
2036 |
%{_datadir}/metainfo/libreoffice-base.appdata.xml |
2037 |
%{_datadir}/applications/libreoffice-base.desktop |
2038 |
%endif |
2039 |
%{_bindir}/oobase |
2040 |
%{_mandir}/man1/oobase.1* |
2041 |
|
2042 |
#ifarch %{java_arches} |
2043 |
|
2044 |
%files wiki-publisher |
2045 |
%docdir %{baseinstdir}/share/extensions/wiki-publisher/license |
2046 |
%{baseinstdir}/share/extensions/wiki-publisher |
2047 |
|
2048 |
%files nlpsolver |
2049 |
%docdir %{baseinstdir}/share/extensions/nlpsolver/help |
2050 |
%{baseinstdir}/share/extensions/nlpsolver |
2051 |
|
2052 |
%files officebean |
2053 |
%{baseinstdir}/program/classes/officebean.jar |
2054 |
%{baseinstdir}/program/officebean.abignore |
2055 |
%{baseinstdir}/program/libofficebean.so |
2056 |
|
2057 |
%files officebean-common |
2058 |
%{_javadir}/%{name}/officebean.jar |
2059 |
|
2060 |
#endif |
2061 |
|
2062 |
%files ogltrans |
2063 |
%{baseinstdir}/program/ogltrans.abignore |
2064 |
%{baseinstdir}/program/libOGLTranslo.so |
2065 |
%{baseinstdir}/program/opengl/basicFragmentShader.glsl |
2066 |
%{baseinstdir}/program/opengl/basicVertexShader.glsl |
2067 |
%{baseinstdir}/program/opengl/dissolveFragmentShader.glsl |
2068 |
%{baseinstdir}/program/opengl/fadeBlackFragmentShader.glsl |
2069 |
%{baseinstdir}/program/opengl/fadeFragmentShader.glsl |
2070 |
%{baseinstdir}/program/opengl/glitterFragmentShader.glsl |
2071 |
%{baseinstdir}/program/opengl/glitterVertexShader.glsl |
2072 |
%{baseinstdir}/program/opengl/honeycombFragmentShader.glsl |
2073 |
%{baseinstdir}/program/opengl/honeycombGeometryShader.glsl |
2074 |
%{baseinstdir}/program/opengl/honeycombVertexShader.glsl |
2075 |
%{baseinstdir}/program/opengl/rippleFragmentShader.glsl |
2076 |
%{baseinstdir}/program/opengl/reflectionFragmentShader.glsl |
2077 |
%{baseinstdir}/program/opengl/reflectionVertexShader.glsl |
2078 |
%{baseinstdir}/program/opengl/staticFragmentShader.glsl |
2079 |
%{baseinstdir}/program/opengl/vortexFragmentShader.glsl |
2080 |
%{baseinstdir}/program/opengl/vortexGeometryShader.glsl |
2081 |
%{baseinstdir}/program/opengl/vortexVertexShader.glsl |
2082 |
%{baseinstdir}/share/config/soffice.cfg/simpress/transitions-ogl.xml |
2083 |
%{baseinstdir}/share/registry/ogltrans.xcd |
2084 |
|
2085 |
%files pdfimport |
2086 |
%{baseinstdir}/program/pdfimport.abignore |
2087 |
%{baseinstdir}/program/libpdfimportlo.so |
2088 |
%{baseinstdir}/program/xpdfimport |
2089 |
%{baseinstdir}/share/registry/pdfimport.xcd |
2090 |
%dir %{baseinstdir}/share/xpdfimport |
2091 |
%{baseinstdir}/share/xpdfimport/xpdfimport_err.pdf |
2092 |
|
2093 |
%_font_pkg -n %{fontname} opens___.ttf |
2094 |
%doc instdir/LICENSE |
2095 |
|
2096 |
%files calc |
2097 |
%{baseinstdir}/program/calc.abignore |
2098 |
%{baseinstdir}/program/libanalysislo.so |
2099 |
%{baseinstdir}/program/libcalclo.so |
2100 |
%{baseinstdir}/program/libdatelo.so |
2101 |
%{baseinstdir}/program/libforlo.so |
2102 |
%{baseinstdir}/program/libforuilo.so |
2103 |
%{baseinstdir}/program/libnumbertextlo.so |
2104 |
%{baseinstdir}/program/libpricinglo.so |
2105 |
%{baseinstdir}/program/libsclo.so |
2106 |
%{baseinstdir}/program/libscdlo.so |
2107 |
%{baseinstdir}/program/libscfiltlo.so |
2108 |
%{baseinstdir}/program/libscuilo.so |
2109 |
%{baseinstdir}/program/libsolverlo.so |
2110 |
%{baseinstdir}/program/libwpftcalclo.so |
2111 |
%{baseinstdir}/program/libvbaobjlo.so |
2112 |
%{baseinstdir}/share/calc/styles.xml |
2113 |
%{baseinstdir}/share/registry/calc.xcd |
2114 |
%{baseinstdir}/program/pagein-calc |
2115 |
%{baseinstdir}/program/scalc |
2116 |
%if 0%{?flatpak} |
2117 |
%{_datadir}/applications/org.libreoffice.LibreOffice.calc.desktop |
2118 |
%else |
2119 |
%{_datadir}/metainfo/libreoffice-calc.appdata.xml |
2120 |
%{_datadir}/applications/libreoffice-calc.desktop |
2121 |
%endif |
2122 |
%{_bindir}/oocalc |
2123 |
%{_mandir}/man1/oocalc.1* |
2124 |
|
2125 |
%files draw |
2126 |
%{baseinstdir}/program/pagein-draw |
2127 |
%{baseinstdir}/program/sdraw |
2128 |
%if 0%{?flatpak} |
2129 |
%{_datadir}/applications/org.libreoffice.LibreOffice.draw.desktop |
2130 |
%else |
2131 |
%{_datadir}/metainfo/libreoffice-draw.appdata.xml |
2132 |
%{_datadir}/applications/libreoffice-draw.desktop |
2133 |
%endif |
2134 |
%{_bindir}/oodraw |
2135 |
%{_mandir}/man1/oodraw.1* |
2136 |
|
2137 |
%files emailmerge |
2138 |
%{baseinstdir}/program/mailmerge.py* |
2139 |
%{baseinstdir}/program/msgbox.py* |
2140 |
|
2141 |
%files writer |
2142 |
%{baseinstdir}/program/writer.abignore |
2143 |
%{baseinstdir}/program/libhwplo.so |
2144 |
%{baseinstdir}/program/liblwpftlo.so |
2145 |
%{baseinstdir}/program/libmswordlo.so |
2146 |
%{baseinstdir}/program/libswuilo.so |
2147 |
%{baseinstdir}/program/libt602filterlo.so |
2148 |
%{baseinstdir}/program/libwpftwriterlo.so |
2149 |
%{baseinstdir}/program/libwriterfilterlo.so |
2150 |
%{baseinstdir}/program/libwriterlo.so |
2151 |
%{baseinstdir}/program/libvbaswobjlo.so |
2152 |
%{baseinstdir}/share/registry/writer.xcd |
2153 |
%{baseinstdir}/program/pagein-writer |
2154 |
%{baseinstdir}/program/swriter |
2155 |
%if 0%{?flatpak} |
2156 |
%{_datadir}/applications/org.libreoffice.LibreOffice.writer.desktop |
2157 |
%else |
2158 |
%{_datadir}/metainfo/libreoffice-writer.appdata.xml |
2159 |
%{_datadir}/applications/libreoffice-writer.desktop |
2160 |
%endif |
2161 |
%{_bindir}/oowriter |
2162 |
%{_mandir}/man1/oowriter.1* |
2163 |
|
2164 |
%files impress |
2165 |
%{baseinstdir}/program/impress.abignore |
2166 |
%{baseinstdir}/program/libPresentationMinimizerlo.so |
2167 |
%{baseinstdir}/program/libwpftimpresslo.so |
2168 |
%dir %{baseinstdir}/share/config/soffice.cfg/simpress |
2169 |
%{baseinstdir}/share/config/soffice.cfg/simpress/effects.xml |
2170 |
%{baseinstdir}/share/config/soffice.cfg/simpress/layoutlist.xml |
2171 |
%{baseinstdir}/share/config/soffice.cfg/simpress/objectlist.xml |
2172 |
%{baseinstdir}/share/config/soffice.cfg/simpress/styles.xml |
2173 |
%{baseinstdir}/share/config/soffice.cfg/simpress/transitions.xml |
2174 |
%{baseinstdir}/share/registry/impress.xcd |
2175 |
%{baseinstdir}/program/pagein-impress |
2176 |
%{baseinstdir}/program/simpress |
2177 |
%if 0%{?flatpak} |
2178 |
%{_datadir}/applications/org.libreoffice.LibreOffice.impress.desktop |
2179 |
%else |
2180 |
%{_datadir}/metainfo/libreoffice-impress.appdata.xml |
2181 |
%{_datadir}/applications/libreoffice-impress.desktop |
2182 |
%endif |
2183 |
%{_bindir}/ooimpress |
2184 |
%{_mandir}/man1/ooimpress.1* |
2185 |
|
2186 |
%files math |
2187 |
%{baseinstdir}/program/smath |
2188 |
%if 0%{?flatpak} |
2189 |
%{_datadir}/applications/org.libreoffice.LibreOffice.math.desktop |
2190 |
%else |
2191 |
%{_datadir}/applications/libreoffice-math.desktop |
2192 |
%endif |
2193 |
%{_bindir}/oomath |
2194 |
%{_mandir}/man1/oomath.1* |
2195 |
|
2196 |
%files graphicfilter |
2197 |
%{baseinstdir}/program/graphicfilter.abignore |
2198 |
%{baseinstdir}/program/libgraphicfilterlo.so |
2199 |
%{baseinstdir}/program/libsvgfilterlo.so |
2200 |
%{baseinstdir}/program/libwpftdrawlo.so |
2201 |
%{baseinstdir}/share/registry/graphicfilter.xcd |
2202 |
|
2203 |
%files xsltfilter |
2204 |
%{baseinstdir}/share/xslt |
2205 |
%{baseinstdir}/share/registry/xsltfilter.xcd |
2206 |
%if 0%{?flatpak} |
2207 |
%{_datadir}/applications/org.libreoffice.LibreOffice.xsltfilter.desktop |
2208 |
%else |
2209 |
%{_datadir}/applications/libreoffice-xsltfilter.desktop |
2210 |
%endif |
2211 |
|
2212 |
%files postgresql |
2213 |
%if 0%{?mageia} |
2214 |
%{baseinstdir}/program/postgresql.abignore |
2215 |
%endif |
2216 |
%{baseinstdir}/program/libpostgresql-sdbclo.so |
2217 |
%{baseinstdir}/program/libpostgresql-sdbc-impllo.so |
2218 |
%{baseinstdir}/program/services/postgresql-sdbc.rdb |
2219 |
%{baseinstdir}/share/registry/postgresql.xcd |
2220 |
|
2221 |
%files ure |
2222 |
#ifarch %{java_arches} |
2223 |
%{baseinstdir}/program/classes/java_uno.jar |
2224 |
%{baseinstdir}/program/classes/juh.jar |
2225 |
%{baseinstdir}/program/classes/jurt.jar |
2226 |
%{baseinstdir}/program/classes/libreoffice.jar |
2227 |
%{baseinstdir}/program/classes/ridl.jar |
2228 |
%{baseinstdir}/program/classes/unoloader.jar |
2229 |
%{baseinstdir}/program/classes/java_websocket.jar |
2230 |
%{baseinstdir}/program/javaldx |
2231 |
%{baseinstdir}/program/javavendors.xml |
2232 |
%{baseinstdir}/program/jvmfwk3rc |
2233 |
%{baseinstdir}/program/JREProperties.class |
2234 |
#endif |
2235 |
%{baseinstdir}/program/ure.abignore |
2236 |
%{baseinstdir}/program/libaffine_uno_uno.so |
2237 |
%{baseinstdir}/program/libbinaryurplo.so |
2238 |
%{baseinstdir}/program/libbootstraplo.so |
2239 |
%{baseinstdir}/program/libgcc3_uno.so |
2240 |
%{baseinstdir}/program/libi18nlangtag.so |
2241 |
%{baseinstdir}/program/libintrospectionlo.so |
2242 |
%{baseinstdir}/program/libinvocadaptlo.so |
2243 |
%{baseinstdir}/program/libinvocationlo.so |
2244 |
%{baseinstdir}/program/libiolo.so |
2245 |
#ifarch %{java_arches} |
2246 |
%{baseinstdir}/program/libjava_uno.so |
2247 |
%{baseinstdir}/program/libjavaloaderlo.so |
2248 |
%{baseinstdir}/program/libjavavmlo.so |
2249 |
%{baseinstdir}/program/libjpipe.so |
2250 |
%{baseinstdir}/program/libjuh.so |
2251 |
%{baseinstdir}/program/libjuhx.so |
2252 |
%{baseinstdir}/program/libjvmaccesslo.so |
2253 |
%{baseinstdir}/program/libjvmfwklo.so |
2254 |
#endif |
2255 |
%{baseinstdir}/program/liblog_uno_uno.so |
2256 |
%{baseinstdir}/program/libnamingservicelo.so |
2257 |
%{baseinstdir}/program/libproxyfaclo.so |
2258 |
%{baseinstdir}/program/libreflectionlo.so |
2259 |
%{baseinstdir}/program/libreglo.so |
2260 |
%{baseinstdir}/program/libsal_textenclo.so |
2261 |
%{baseinstdir}/program/libstocserviceslo.so |
2262 |
%{baseinstdir}/program/libstorelo.so |
2263 |
%{baseinstdir}/program/libuno_cppu.so.3 |
2264 |
%{baseinstdir}/program/libuno_cppuhelpergcc3.so.3 |
2265 |
%{baseinstdir}/program/libuno_purpenvhelpergcc3.so.3 |
2266 |
%{baseinstdir}/program/libuno_sal.so.3 |
2267 |
%{baseinstdir}/program/libuno_salhelpergcc3.so.3 |
2268 |
%{baseinstdir}/program/libunoidllo.so |
2269 |
%{baseinstdir}/program/libunsafe_uno_uno.so |
2270 |
%{baseinstdir}/program/libuuresolverlo.so |
2271 |
%{baseinstdir}/program/libxmlreaderlo.so |
2272 |
%{baseinstdir}/program/regview |
2273 |
%{baseinstdir}/program/services.rdb |
2274 |
%{baseinstdir}/program/types.rdb |
2275 |
%{baseinstdir}/program/uno |
2276 |
%{baseinstdir}/program/uno.bin |
2277 |
%{baseinstdir}/program/unorc |
2278 |
|
2279 |
%files ure-common |
2280 |
#ifarch %{java_arches} |
2281 |
%dir %{_javadir}/%{name} |
2282 |
%{_javadir}/%{name}/juh.jar |
2283 |
%{_javadir}/%{name}/jurt.jar |
2284 |
%{_javadir}/%{name}/libreoffice.jar |
2285 |
%{_javadir}/%{name}/ridl.jar |
2286 |
%{_javadir}/%{name}/unoloader.jar |
2287 |
#endif |
2288 |
%license instdir/LICENSE |
2289 |
|
2290 |
%files sdk |
2291 |
%{sdkinstdir}/ |
2292 |
%exclude %{sdkinstdir}/docs/ |
2293 |
%exclude %{sdkinstdir}/examples/ |
2294 |
|
2295 |
%files sdk-doc |
2296 |
%docdir %{sdkinstdir}/docs |
2297 |
%license instdir/LICENSE |
2298 |
%{sdkinstdir}/docs/ |
2299 |
%{sdkinstdir}/examples/ |
2300 |
|
2301 |
%files pyuno |
2302 |
%{baseinstdir}/program/pyuno.abignore |
2303 |
%{baseinstdir}/program/libpyuno.so |
2304 |
%{baseinstdir}/program/pythonloader.py* |
2305 |
%{baseinstdir}/program/libpythonloaderlo.so |
2306 |
%{baseinstdir}/program/pythonloader.unorc |
2307 |
%{baseinstdir}/program/pythonscript.py* |
2308 |
%{baseinstdir}/program/pyuno.so |
2309 |
%{baseinstdir}/program/scriptforge.py* |
2310 |
%{baseinstdir}/program/services/pyuno.rdb |
2311 |
%{baseinstdir}/program/services/scriptproviderforpython.rdb |
2312 |
%{baseinstdir}/program/wizards |
2313 |
%{baseinstdir}/share/Scripts/python |
2314 |
%exclude %{baseinstdir}/share/Scripts/python/LibreLogo |
2315 |
%{libo_python_sitearch}/uno.py* |
2316 |
%{libo_python_sitearch}/unohelper.py* |
2317 |
%{libo_python_sitearch}/officehelper.py* |
2318 |
%{libo_python_sitearch}/__pycache__/uno.cpython-* |
2319 |
%{libo_python_sitearch}/__pycache__/unohelper.cpython-* |
2320 |
%{libo_python_sitearch}/__pycache__/officehelper.cpython-* |
2321 |
|
2322 |
%files librelogo |
2323 |
%{baseinstdir}/share/registry/librelogo.xcd |
2324 |
%{baseinstdir}/share/Scripts/python/LibreLogo |
2325 |
|
2326 |
%files glade |
2327 |
%{_datadir}/glade |
2328 |
%{_datadir}/glade3 |
2329 |
|
2330 |
%files data |
2331 |
%{_datadir}/icons/hicolor/*/*/libreoffice* |
2332 |
%if 0%{?flatpak} |
2333 |
%{_datadir}/icons/hicolor/*/*/org.libreoffice.LibreOffice.* |
2334 |
%endif |
2335 |
%{_datadir}/mime/packages/libreoffice.xml |
2336 |
#ifarch %{java_arches} |
2337 |
%dir %{_javadir}/%{name} |
2338 |
%{_javadir}/%{name}/unoil.jar |
2339 |
#endif |
2340 |
%dir %{datadir} |
2341 |
%doc instdir/CREDITS.fodt |
2342 |
%doc instdir/LICENSE.html |
2343 |
%doc instdir/LICENSE |
2344 |
%doc instdir/NOTICE |
2345 |
%license instdir/LICENSE |
2346 |
|
2347 |
%files x11 |
2348 |
%if 0%{?mageia} |
2349 |
%{baseinstdir}/program/x11.abignore |
2350 |
%endif |
2351 |
%{baseinstdir}/program/libvclplug_genlo.so |
2352 |
|
2353 |
%files gtk3 |
2354 |
%if 0%{?mageia} |
2355 |
%{baseinstdir}/program/gtk3.abignore |
2356 |
%endif |
2357 |
%{baseinstdir}/program/libvclplug_gtk3lo.so |
2358 |
|
2359 |
%files gtk4 |
2360 |
%if 0%{?mageia} |
2361 |
%{baseinstdir}/program/gtk4.abignore |
2362 |
%endif |
2363 |
%{baseinstdir}/program/libvclplug_gtk4lo.so |
2364 |
|
2365 |
%if %{with kf5} |
2366 |
%files kf5 |
2367 |
%{baseinstdir}/program/kf5.abignore |
2368 |
%{baseinstdir}/program/libkf5be1lo.so |
2369 |
%{baseinstdir}/program/libvclplug_kf5lo.so |
2370 |
%{baseinstdir}/program/libvclplug_qt5lo.so |
2371 |
|
2372 |
%endif |
2373 |
|
2374 |
%if %{with kf6} |
2375 |
|
2376 |
%files kf6 |
2377 |
%{baseinstdir}/program/libvclplug_kf6lo.so |
2378 |
%{baseinstdir}/program/libvclplug_qt6lo.so |
2379 |
|
2380 |
%endif |
2381 |
|
2382 |
%files -n libreofficekit |
2383 |
%{baseinstdir}/share/libreofficekit |
2384 |
%{_libdir}/girepository-1.0/LOKDocView-%{girapiversion}.typelib |
2385 |
%if 0%{?mageia} |
2386 |
%{baseinstdir}/program/libreofficekit.abignore |
2387 |
%endif |
2388 |
%{_libdir}/liblibreofficekitgtk.so |
2389 |
|
2390 |
%files -n libreofficekit-devel |
2391 |
%{_libdir}/gir-1.0/LOKDocView-%{girapiversion}.gir |
2392 |
%{_includedir}/LibreOfficeKit |
2393 |
|