1 |
# download path contains version without the last (fourth) digit |
2 |
%define libo_version 4.3.0 |
3 |
# Should contain .alphaX / .betaX, if this is pre-release (actually |
4 |
# pre-RC) version. The pre-release string is part of tarball file names, |
5 |
# so we need a way to define it easily at one place. |
6 |
%define libo_prerelease %nil |
7 |
%define vendoroption --with-vendor="Mageia" |
8 |
# rhbz#465664 jar-repacking breaks help by reordering META-INF/MANIFEST.MF |
9 |
%define __jar_repack %{nil} |
10 |
%define Werror_cflags %nil |
11 |
# make it easier to download sources from pre-release site |
12 |
%define source_url http://dev-builds.libreoffice.org/pre-releases/src |
13 |
#define source_url http://download.documentfoundation.org/libreoffice/src/%libo_version |
14 |
# URL for external projects' tarballs |
15 |
%define external_url http://dev-www.libreoffice.org/src/ |
16 |
|
17 |
# get english only and no-langpacks for a faster smoketest build |
18 |
# fedpkg compile/install/local/mockbuild does not handle --without ATM, |
19 |
# so it is necessary to change this to bcond_with to achieve the same |
20 |
# effect |
21 |
%bcond_without langpacks |
22 |
|
23 |
# remove workdir at the end of %%build, to allow build on space-constrained machines |
24 |
%ifarch s390 s390x |
25 |
%bcond_without smallbuild |
26 |
%else |
27 |
%bcond_with smallbuild |
28 |
%endif |
29 |
|
30 |
# generated by %%langpack definitions |
31 |
%global langpack_langs %{nil} |
32 |
|
33 |
%global bundling_options %{nil} |
34 |
|
35 |
%global build_gtk3 1 |
36 |
%global build_kde 1 |
37 |
%define system_boost 1 |
38 |
|
39 |
%define with_mergedlibs 0 |
40 |
%define _requires_exceptions libjawt.so\\|libmyspell.so\\|libstlport_gcc.so\\|libmono.so\\|mono\\|devel(libstlport_gcc)\\|libxmlreader.so\\|libcomphelp4gcc3.so\\|devel(libreglo)\\|devel(libxmlreaderlo)\\|devel(libreglo(64bit))\\|devel(libxmlreaderlo(64bit))\\|devel(libunoidllo)\\|devel(libunoidllo(64bit)) |
41 |
|
42 |
%define _provides_exceptions libsndfile.so\\|libportaudio.so\\|libdb-4.2.so\\|libdb_java-4.2.so\\|libmyspell.so\\|libstlport_gcc.so\\|librdf.so.0\\|libraptor.so.1\\|libxmlsec1-nss.so.1\\|libxmlsec1.so.1 |
43 |
|
44 |
%define _enable_debug_packages 0 |
45 |
|
46 |
Summary: Free Software Productivity Suite |
47 |
Name: libreoffice |
48 |
Version: %{libo_version}.4 |
49 |
Release: %mkrel 1%{?libo_prerelease} |
50 |
License: (MPLv1.1 or LGPLv3+) and LGPLv3 and LGPLv2+ and BSD and (MPLv1.1 or GPLv2 or LGPLv2 or Netscape) and Public Domain and ASL 2.0 and Artistic and MPLv2.0 |
51 |
Group: Office/Suite |
52 |
URL: http://www.libreoffice.org/ |
53 |
|
54 |
Source0: %{source_url}/libreoffice-%{version}%{?libo_prerelease}.tar.xz |
55 |
Source1: %{source_url}/libreoffice-help-%{version}%{?libo_prerelease}.tar.xz |
56 |
Source2: %{source_url}/libreoffice-translations-%{version}%{?libo_prerelease}.tar.xz |
57 |
Source3: http://dev-www.libreoffice.org/extern/185d60944ea767075d27247c3162b3bc-unowinreg.dll |
58 |
Source4: libreoffice-multiliblauncher.sh |
59 |
Source5: %{external_url}/a7983f859eafb2677d7ff386a023bc40-xsltml_2.1.2.zip |
60 |
Source6: %{external_url}/1f24ab1d39f4a51faf22244c94a6203f-xmlsec1-1.2.14.tar.gz |
61 |
Source7: %{external_url}/798b2ffdc8bcfe7bca2cf92b62caf685-rhino1_5R5.zip |
62 |
Source8: %{external_url}/35c94d2df8893241173de1d16b6034c0-swingExSrc.zip |
63 |
|
64 |
#Unfortunately later versions of hsqldb changed the file format, so if we use a later version we loose |
65 |
#backwards compatability. |
66 |
Source9: %{external_url}/17410483b5b5f267aa18b7e00b65e6e0-hsqldb_1_8_0.zip |
67 |
|
68 |
# build tools |
69 |
BuildRequires: autoconf |
70 |
BuildRequires: automake |
71 |
BuildRequires: bc |
72 |
BuildRequires: binutils |
73 |
BuildRequires: bison |
74 |
BuildRequires: desktop-file-utils |
75 |
BuildRequires: doxygen |
76 |
BuildRequires: findutils |
77 |
BuildRequires: flex |
78 |
BuildRequires: gcc-c++ |
79 |
BuildRequires: git |
80 |
BuildRequires: gperf |
81 |
BuildRequires: icu |
82 |
BuildRequires: make |
83 |
BuildRequires: perl(Archive::Zip) |
84 |
BuildRequires: perl(Digest::MD5) |
85 |
BuildRequires: ucpp |
86 |
# (tv) for xmllint: |
87 |
BuildRequires: libxml2-utils |
88 |
BuildRequires: zip |
89 |
|
90 |
# libs / headers - common |
91 |
BuildRequires: cups-devel |
92 |
BuildRequires: pkgconfig(expat) |
93 |
BuildRequires: fontpackages-devel |
94 |
BuildRequires: hyphen-devel |
95 |
BuildRequires: libicu-devel |
96 |
BuildRequires: lpsolve-devel |
97 |
BuildRequires: openldap-devel |
98 |
BuildRequires: pam-devel |
99 |
BuildRequires: pkgconfig(cppunit) |
100 |
BuildRequires: pkgconfig(dbus-glib-1) |
101 |
BuildRequires: pkgconfig(evolution-data-server-1.2) |
102 |
BuildRequires: pkgconfig(freetype2) |
103 |
%if %{build_gtk3} |
104 |
BuildRequires: gtk+3-devel |
105 |
%endif |
106 |
BuildRequires: pkgconfig(gconf-2.0) |
107 |
BuildRequires: pkgconfig(glu) |
108 |
BuildRequires: pkgconfig(gtk+-2.0) |
109 |
BuildRequires: pkgconfig(hunspell) |
110 |
%if %{build_kde} |
111 |
BuildRequires: kdelibs4-devel |
112 |
%endif |
113 |
BuildRequires: pkgconfig(ice) |
114 |
BuildRequires: pkgconfig(libcurl) |
115 |
BuildRequires: pkgconfig(libidn) |
116 |
BuildRequires: pkgconfig(libxml-2.0) |
117 |
BuildRequires: pkgconfig(libxslt) |
118 |
BuildRequires: pkgconfig(neon) |
119 |
BuildRequires: pkgconfig(nss) |
120 |
BuildRequires: pkgconfig(poppler) |
121 |
BuildRequires: pkgconfig(redland) |
122 |
BuildRequires: pkgconfig(sane-backends) |
123 |
BuildRequires: pkgconfig(xext) |
124 |
BuildRequires: pkgconfig(xinerama) |
125 |
BuildRequires: pkgconfig(xt) |
126 |
BuildRequires: pkgconfig(zlib) |
127 |
BuildRequires: unixODBC-devel |
128 |
BuildRequires: vigra-devel |
129 |
|
130 |
BuildRequires: pkgconfig(libcdr-0.1) |
131 |
# libs / headers - conditional |
132 |
BuildRequires: firebird-devel |
133 |
BuildRequires: firebird-server-common |
134 |
BuildRequires: glm-devel |
135 |
BuildRequires: kdelibs4-devel |
136 |
BuildRequires: pkgconfig(glew) |
137 |
BuildRequires: pkgconfig(libabw-0.1) |
138 |
BuildRequires: pkgconfig(libcdr-0.1) |
139 |
BuildRequires: pkgconfig(libcmis-0.4) |
140 |
BuildRequires: pkgconfig(libe-book-0.1) |
141 |
BuildRequires: pkgconfig(libeot) |
142 |
BuildRequires: pkgconfig(libetonyek-0.1) |
143 |
BuildRequires: pkgconfig(libfreehand-0.1) |
144 |
BuildRequires: pkgconfig(libmspub-0.1) |
145 |
BuildRequires: pkgconfig(libmwaw-0.3) |
146 |
BuildRequires: pkgconfig(libodfgen-0.1) |
147 |
BuildRequires: pkgconfig(liborcus-0.8) |
148 |
BuildRequires: pkgconfig(librevenge-0.0) |
149 |
BuildRequires: pkgconfig(libvisio-0.1) |
150 |
BuildRequires: pkgconfig(libwpd-0.10) |
151 |
BuildRequires: pkgconfig(libwpg-0.3) |
152 |
BuildRequires: pkgconfig(libwps-0.3) |
153 |
BuildRequires: pkgconfig(mdds) |
154 |
|
155 |
%if 0%{?system_boost} |
156 |
BuildRequires: boost-devel |
157 |
%endif |
158 |
BuildRequires: pkgconfig(graphite2) |
159 |
BuildRequires: pkgconfig(harfbuzz) |
160 |
BuildRequires: pkgconfig(lcms2) |
161 |
BuildRequires: pkgconfig(libclucene-core) |
162 |
BuildRequires: pkgconfig(libexttextcat) |
163 |
BuildRequires: pkgconfig(liblangtag) |
164 |
BuildRequires: pkgconfig(mythes) |
165 |
BuildRequires: pkgconfig(poppler-cpp) |
166 |
BuildRequires: postgresql-devel |
167 |
|
168 |
# libs / headers - special cases |
169 |
BuildRequires: pkgconfig(gstreamer-1.0) |
170 |
BuildRequires: pkgconfig(gstreamer-plugins-base-1.0) |
171 |
|
172 |
BuildRequires: libjpeg-devel |
173 |
|
174 |
BuildRequires: pkgconfig(bluez) |
175 |
BuildRequires: pkgconfig(python3) |
176 |
BuildRequires: rsync |
177 |
|
178 |
# java stuff |
179 |
BuildRequires: ant |
180 |
BuildRequires: ant-apache-regexp |
181 |
BuildRequires: apache-commons-codec |
182 |
BuildRequires: apache-commons-lang |
183 |
BuildRequires: bsh |
184 |
BuildRequires: hsqldb |
185 |
BuildRequires: java-devel |
186 |
BuildRequires: jakarta-commons-httpclient |
187 |
BuildRequires: junit |
188 |
BuildRequires: pentaho-reporting-flow-engine |
189 |
|
190 |
# fonts needed for unit tests |
191 |
BuildRequires: fonts-ttf-liberation |
192 |
|
193 |
# libreoffice metapackage requires all of the programs |
194 |
Requires: %{name}-base = %{version} |
195 |
Requires: %{name}-calc = %{version} |
196 |
Requires: %{name}-draw = %{version} |
197 |
Requires: %{name}-impress = %{version} |
198 |
Requires: %{name}-math = %{version} |
199 |
Suggests: %{name}-pdfimport |
200 |
Requires: %{name}-writer = %{version} |
201 |
Provides: openoffice.org = 1:%{version}-%{release} |
202 |
|
203 |
# Fedora patches |
204 |
# not upstreamed |
205 |
Patch0: openoffice.org-2.4.0.ooo86080.unopkg.bodge.patch |
206 |
# not upstreamed |
207 |
Patch1: openoffice.org-3.1.0.oooXXXXX.solenv.allowmissing.patch |
208 |
# not upstreamed |
209 |
Patch2: libreoffice-installfix.patch |
210 |
# patches 2-9 are RHEL specific @RH/FC |
211 |
# not upstreamed |
212 |
Patch10: 0001-Resolves-rhbz-1035092-no-shortcut-key-for-Italian-To.patch |
213 |
# not upstreamed |
214 |
Patch11: 0001-disable-firebird-unit-test.patch |
215 |
# not upstreamed |
216 |
Patch12: 0001-never-run-autogen.sh.patch |
217 |
# not upstreamed |
218 |
Patch13: 0001-add-X-TryExec-entries-to-desktop-files.patch |
219 |
# not upstreamed |
220 |
Patch14: 0001-disable-PSD-import-test-which-deadlocks-on-ARM.patch |
221 |
Patch15: 0001-rhbz-1111216-allow-to-export-an-empty-sheet-to-PDF.patch |
222 |
Patch16: 0001-allow-build-with-icu-4.2.patch |
223 |
Patch17: 0001-avoid-problems-detecting-HTML-files-with-.xls-ext.patch |
224 |
Patch18: 0001-scrolling-very-slow-in-calc.patch |
225 |
Patch19: 0001-Related-rhbz-1117853-nStartPara-of-EE_PARA_NOT_FOUND.patch |
226 |
Patch20: 0001-Resolves-fdo-81487-pasting-into-outline-view-crashes.patch |
227 |
Patch21: 0001-fdo-81113-always-run-the-actual-detection.patch |
228 |
Patch22: 0001-Resolves-i125289-do-apply-possible-changed-GraphicSt.patch |
229 |
Patch23: 0001-rhbz-1121254-reload-font-list-from-shell-on-change.patch |
230 |
|
231 |
#Mageia Patch |
232 |
|
233 |
%define instdir %{_libdir} |
234 |
%define baseinstdir %{instdir}/libreoffice |
235 |
%define ureinstdir %{baseinstdir}/ure |
236 |
%define sdkinstdir %{baseinstdir}/sdk |
237 |
%define fontname opensymbol |
238 |
|
239 |
%description |
240 |
LibreOffice is an Open Source, community-developed, office productivity suite. |
241 |
It includes the key desktop applications, such as a word processor, |
242 |
spreadsheet, presentation manager, formula editor and drawing program, with a |
243 |
user interface and feature set similar to other office suites. Sophisticated |
244 |
and flexible, LibreOffice also works transparently with a variety of file |
245 |
formats, including Microsoft Office File Formats. |
246 |
|
247 |
|
248 |
%package filters |
249 |
Summary: All import / export filters |
250 |
Group: Office/Utilities |
251 |
Requires: %{name}-calc = %{version}-%{release} |
252 |
Requires: %{name}-core = %{version}-%{release} |
253 |
Requires: %{name}-draw = %{version}-%{release} |
254 |
Requires: %{name}-graphicfilter = %{version}-%{release} |
255 |
Requires: %{name}-impress = %{version}-%{release} |
256 |
Requires: %{name}-math = %{version}-%{release} |
257 |
Requires: %{name}-ure = %{version}-%{release} |
258 |
Requires: %{name}-writer = %{version}-%{release} |
259 |
Requires: %{name}-xsltfilter = %{version}-%{release} |
260 |
|
261 |
%description filters |
262 |
Metapackage to pull in all subpackages that contain import or export |
263 |
filters. |
264 |
|
265 |
%package core |
266 |
Summary: Core modules for LibreOffice |
267 |
Group: Office/Utilities |
268 |
Requires: %{name}-%{fontname}-fonts = %{version}-%{release} |
269 |
Requires: %{name}-ure = %{version}-%{release} |
270 |
Requires: fonts-ttf-liberation |
271 |
Requires: fonts-ttf-dejavu |
272 |
Requires: google-crosextra-caladea-fonts, google-crosextra-carlito-fonts |
273 |
Requires: hunspell |
274 |
Requires: hyphen >= 2.4 |
275 |
Suggests: hyphen-en |
276 |
Suggests: autocorr-en |
277 |
Suggests: hunspell-en |
278 |
Requires: libexttextcat |
279 |
Requires: %name-langpack = %version-%release |
280 |
Provides: openoffice.org-core = 1:%version-%release |
281 |
Provides: openoffice.org-common = 1:%version-%release |
282 |
Provides: openoffice.org-filter-binfilter = 1:%version-%release |
283 |
Provides: openoffice.org-help-en_US = 1:%version-%release |
284 |
Provides: openoffice.org-help-en_GB = 1:%version-%release |
285 |
Obsoletes: libreoffice-langpack-ms < 1:3.3.99.1 |
286 |
Obsoletes: libreoffice-langpack-ur < 1:3.3.99.1 |
287 |
Provides: libreoffice-style-tango = %{version}-%{release} |
288 |
Provides: libreoffice-style-oxygen = %{version}-%{release} |
289 |
Conflicts: %name-ure < 3.3.2.2-7 |
290 |
Obsoletes: libreoffice-binfilter < 4.0.0.0 |
291 |
Obsoletes: libreoffice-javafilter < 4.1.0.0 |
292 |
Obsoletes: autocorr-eu < 1:4.0.1.2 |
293 |
Obsoletes: libreoffice-testtools < 3.4.99.1 |
294 |
Conflicts: %name-gdb-debug-support < 3.6.0-0.beta2.1 |
295 |
|
296 |
%description core |
297 |
The shared core libraries and support files for LibreOffice. |
298 |
|
299 |
|
300 |
%package pyuno |
301 |
Summary: Python support for LibreOffice |
302 |
Group: Development/Python |
303 |
Requires: %{name}-core = %{version}-%{release} |
304 |
Requires: %{name}-ure = %{version}-%{release} |
305 |
Requires: python3 |
306 |
Requires(pre): %{name}-core |
307 |
Requires(post): %{name}-core |
308 |
Requires(preun): %{name}-core |
309 |
Requires(postun): %{name}-core |
310 |
Provides: openoffice.org-pyuno = 1:%version-%release |
311 |
Conflicts: libreoffice-core < %version |
312 |
|
313 |
%description pyuno |
314 |
Python bindings for the LibreOffice UNO component model. Allows scripts both |
315 |
external to LibreOffice and within the internal LibreOffice scripting framework |
316 |
to be written in python. |
317 |
|
318 |
|
319 |
%package base |
320 |
Summary: Database front-end for LibreOffice |
321 |
Group: Databases |
322 |
Requires: postgresql-jdbc |
323 |
Requires: %{name}-ure = %{version}-%{release} |
324 |
Requires: %{name}-core = %{version}-%{release} |
325 |
Requires: %{name}-calc = %{version}-%{release} |
326 |
Suggests: %{name}-java-common = %{version}-%release |
327 |
Obsoletes: %{name}-report-builder < 1:4.1.0.0 |
328 |
Provides: openoffice.org-base = 1:%version-%release |
329 |
Provides: openoffice.org-style = 1:%version-%release |
330 |
Provides: openoffice.org-style-crystal = 1:%version-%release |
331 |
Provides: openoffice.org-style-oxygen = 1:%version-%release |
332 |
|
333 |
%description base |
334 |
GUI database front-end for LibreOffice. Allows creation and management of |
335 |
databases through a GUI. |
336 |
|
337 |
|
338 |
%package bsh |
339 |
Summary: BeanShell support for LibreOffice |
340 |
Group: Development/Java |
341 |
Requires: bsh |
342 |
Requires: %{name}-core = %{version}-%{release} |
343 |
Requires(pre): %{name}-core |
344 |
Requires(post): %{name}-core |
345 |
Requires(preun): %{name}-core |
346 |
Requires(postun): %{name}-core |
347 |
Provides: openoffice.org-bsh < 1:%version-%release |
348 |
|
349 |
%description bsh |
350 |
Support BeanShell scripts in LibreOffice. |
351 |
|
352 |
|
353 |
%package rhino |
354 |
Summary: JavaScript support for LibreOffice |
355 |
Group: Development/Java |
356 |
Requires: %{name}-core = %{version}-%{release} |
357 |
Requires(pre): %{name}-core |
358 |
Requires(post): %{name}-core |
359 |
Requires(preun): %{name}-core |
360 |
Requires(postun): %{name}-core |
361 |
|
362 |
|
363 |
%description rhino |
364 |
Support JavaScript scripts in LibreOffice. |
365 |
|
366 |
|
367 |
%package wiki-publisher |
368 |
Summary: Create Wiki articles on MediaWiki servers with LibreOffice |
369 |
Group: Office/Utilities |
370 |
Requires: apache-commons-codec, jakarta-commons-httpclient |
371 |
Requires: apache-commons-lang, apache-commons-logging |
372 |
Requires: %{name}-writer = %{version}-%{release} |
373 |
Requires(pre): %{name}-core |
374 |
Requires(post): %{name}-core |
375 |
Requires(preun): %{name}-core |
376 |
Requires(postun): %{name}-core |
377 |
|
378 |
%description wiki-publisher |
379 |
The Wiki Publisher enables you to create Wiki articles on MediaWiki servers |
380 |
without having to know the syntax of the MediaWiki markup language. Publish |
381 |
your new and existing documents transparently with writer to a wiki page. |
382 |
|
383 |
%package nlpsolver |
384 |
Summary: Non-linear solver engine for LibreOffice Calc |
385 |
Group: Office/Utilities |
386 |
Requires: %{name}-calc = %{version}-%{release} |
387 |
Requires(pre): %{name}-core |
388 |
Requires(post): %{name}-core |
389 |
Requires(preun): %{name}-core |
390 |
Requires(postun): %{name}-core |
391 |
|
392 |
%description nlpsolver |
393 |
A non-linear solver engine for Calc as an alternative to the default linear |
394 |
programming model when more complex, nonlinear programming is required. |
395 |
|
396 |
%package ogltrans |
397 |
Summary: 3D OpenGL slide transitions for LibreOffice |
398 |
Group: Office/Utilities |
399 |
Requires: %{name}-impress = %{version}-%{release} |
400 |
Requires(pre): %{name}-core |
401 |
|
402 |
%description ogltrans |
403 |
OpenGL Transitions enable 3D slide transitions to be used in LibreOffice. |
404 |
Requires good quality 3D support for your graphics card for best experience. |
405 |
|
406 |
%package pdfimport |
407 |
Summary: PDF Importer for LibreOffice Draw |
408 |
Group: Office/Utilities |
409 |
Requires: %{name}-draw = %{version}-%{release} |
410 |
Requires(pre): %{name}-core |
411 |
Requires(post): %{name}-core |
412 |
Requires(preun): %{name}-core |
413 |
Requires(postun): %{name}-core |
414 |
|
415 |
%description pdfimport |
416 |
The PDF Importer imports PDF into drawing documents to preserve layout |
417 |
and enable basic editing of PDF documents. |
418 |
|
419 |
|
420 |
%package %{fontname}-fonts |
421 |
Summary: LibreOffice dingbats font |
422 |
Group: System/Fonts/True type |
423 |
Requires: fontpackages-filesystem |
424 |
BuildArch: noarch |
425 |
|
426 |
%description %{fontname}-fonts |
427 |
A dingbats font, OpenSymbol, suitable for use by LibreOffice for bullets and |
428 |
mathematical symbols. |
429 |
|
430 |
|
431 |
%package writer |
432 |
Summary: LibreOffice Word Processor Application |
433 |
Group: Office/Word processor |
434 |
Requires: %{name}-core = %{version}-%{release} |
435 |
Requires: %{name}-ure = %{version}-%{release} |
436 |
Provides: openoffice.org-writer = 1:%{version}-%{release} |
437 |
Provides: openoffice.org-writer2latex = 1:%{version}-%{release} |
438 |
Provides: openoffice.org-writer2xhtml = 1:%{version}-%{release} |
439 |
|
440 |
%description writer |
441 |
The LibreOffice Word Processor application. |
442 |
|
443 |
|
444 |
%package emailmerge |
445 |
Summary: Email mail-merge component for LibreOffice |
446 |
Group: Networking/Mail |
447 |
Requires: %{name}-writer = %{version}-%{release} |
448 |
Requires: %{name}-pyuno = %{version}-%{release} |
449 |
|
450 |
%description emailmerge |
451 |
Enables the LibreOffice writer module to mail-merge to email. |
452 |
|
453 |
|
454 |
%package calc |
455 |
Summary: LibreOffice Spreadsheet Application |
456 |
Group: Office/Spreadsheet |
457 |
Requires: %{name}-core = %{version}-%{release} |
458 |
Requires: %{name}-ure = %{version}-%{release} |
459 |
|
460 |
%description calc |
461 |
The LibreOffice Spreadsheet application. |
462 |
|
463 |
|
464 |
%package draw |
465 |
Summary: LibreOffice Drawing Application |
466 |
Group: Graphics/Editors and Converters |
467 |
Requires: %{name}-core = %{version}-%{release} |
468 |
Requires: %{name}-ure = %{version}-%{release} |
469 |
Requires: %{name}-pdfimport = %{version}-%{release} |
470 |
Requires: %{name}-graphicfilter = %{version}-%{release} |
471 |
provides: openoffice.org-draw = 1:%{version}-%{release} |
472 |
|
473 |
%description draw |
474 |
The LibreOffice Drawing Application. |
475 |
|
476 |
|
477 |
%package impress |
478 |
Summary: LibreOffice Presentation Application |
479 |
Group: Office/Utilities |
480 |
Requires: %{name}-core = %{version}-%{release} |
481 |
Requires: %{name}-ure = %{version}-%{release} |
482 |
Requires: %{name}-ogltrans = %{version}-%{release} |
483 |
%rename %{name}-presenter-minimizer = %{version}-%{release} |
484 |
%rename %{name}-presenter-screen = %{version}-%{release} |
485 |
Provides: openoffice.org-impress = 1:%{version}-%{release} |
486 |
|
487 |
%description impress |
488 |
The LibreOffice Presentation Application. |
489 |
|
490 |
|
491 |
%package math |
492 |
Summary: LibreOffice Equation Editor Application |
493 |
Group: Sciences/Mathematics |
494 |
Requires: %{name}-core = %{version}-%{release} |
495 |
Requires: %{name}-ure = %{version}-%{release} |
496 |
|
497 |
%description math |
498 |
The LibreOffice Equation Editor Application. |
499 |
|
500 |
|
501 |
%package graphicfilter |
502 |
Summary: LibreOffice Extra Graphic filters |
503 |
Group: Office/Utilities |
504 |
Requires: %{name}-ure = %{version}-%{release} |
505 |
Requires: %{name}-core = %{version}-%{release} |
506 |
|
507 |
%description graphicfilter |
508 |
The graphicfilter module for LibreOffice provides graphic filters, e.g. svg and |
509 |
flash filters. |
510 |
|
511 |
|
512 |
%package xsltfilter |
513 |
Summary: Optional xsltfilter module for LibreOffice |
514 |
Group: Office/Utilities |
515 |
Requires: %{name}-core = %{version}-%{release} |
516 |
|
517 |
%description xsltfilter |
518 |
The xsltfilter module for LibreOffice, provides additional docbook and |
519 |
xhtml export transforms. Install this to enable docbook export. |
520 |
|
521 |
|
522 |
%package postgresql |
523 |
Summary: PostgreSQL connector for LibreOffice |
524 |
Group: Office/Utilities |
525 |
Requires: %{name}-base = %{version}-%{release} |
526 |
Requires: postgresql-libs |
527 |
|
528 |
%description postgresql |
529 |
A PostgreSQL connector for the database front-end for LibreOffice. Allows |
530 |
creation and management of PostgreSQL databases through a GUI. |
531 |
|
532 |
|
533 |
%package ure |
534 |
Summary: UNO Runtime Environment |
535 |
Group: Development/Other |
536 |
Requires: unzip |
537 |
Suggests: %name-java-common = %version-%release |
538 |
Conflicts: libreoffice-core <= 3.3.2.2-5 |
539 |
|
540 |
%description ure |
541 |
UNO is the component model of LibreOffice. UNO offers interoperability between |
542 |
programming languages, other components models and hardware architectures, |
543 |
either in process or over process boundaries, in the Intranet as well as in the |
544 |
Internet. UNO components may be implemented in and accessed from any |
545 |
programming language for which a UNO implementation (AKA language binding) and |
546 |
an appropriate bridge or adapter exists |
547 |
|
548 |
|
549 |
%package java-common |
550 |
Group: Office/Utilities |
551 |
Summary: LibreOffice office suite Java support arch. independent files |
552 |
Requires: %{name}-core = %{version}-%{release} |
553 |
#Requires: %{name}-common = %{version}-%{release} |
554 |
Requires: jre |
555 |
Conflicts: %name-core < 3.3.2.2-8 |
556 |
Provides: openoffice.org-java-common = 1:%version-%release |
557 |
|
558 |
%description java-common |
559 |
LibreOffice is a full-featured office productivity suite that provides a |
560 |
near drop-in replacement for Microsoft(R) Office. |
561 |
|
562 |
This package contains the architecture-independent files of the Java support |
563 |
for Libreoffice (Java classes, scripts, config snippets). |
564 |
|
565 |
Also contains the Libreoffice Office Bean for embedding Libreoffice in |
566 |
custom Java applications. |
567 |
|
568 |
|
569 |
%package sdk |
570 |
Summary: Software Development Kit for LibreOffice |
571 |
Group: Development/Other |
572 |
Requires: %{name}-ure = %{version}-%{release} |
573 |
Requires: %{name}-core = %{version}-%{release} |
574 |
Requires: unzip, java-devel |
575 |
|
576 |
%description sdk |
577 |
The LibreOffice SDK is an add-on for the LibreOffice office suite. It provides |
578 |
the necessary tools for programming using the LibreOffice APIs and for creating |
579 |
extensions (UNO components) for LibreOffice. To set the build environment for |
580 |
building against the sdk use %{sdkinstdir}/setsdkenv_unix.sh. |
581 |
|
582 |
|
583 |
%package sdk-doc |
584 |
Summary: Software Development Kit documentation for LibreOffice |
585 |
Group: Development/Other |
586 |
Requires: %{name}-sdk = %{version}-%{release} |
587 |
|
588 |
%description sdk-doc |
589 |
This provides documentation for programming using the LibreOffice APIs |
590 |
and examples of creating extensions (UNO components) for LibreOffice. |
591 |
|
592 |
|
593 |
%package headless |
594 |
Summary: LibreOffice Headless plug-in |
595 |
Group: Development/Other |
596 |
Requires: %{name}-ure = %{version}-%{release} |
597 |
Requires: %{name}-core = %{version}-%{release} |
598 |
|
599 |
%description headless |
600 |
A plug-in for LibreOffice that enables it to function without an X server. |
601 |
It implements the -headless command line option and allows LibreOffice to be |
602 |
used as a backend server for e.g. document conversion. |
603 |
|
604 |
|
605 |
%package glade |
606 |
Summary: Support for creating LibreOffice dialogs in glade |
607 |
Group: Development/GNOME and GTK+ |
608 |
Requires: %{name}-ure = %{version}-%{release} |
609 |
Requires: %{name}-core = %{version}-%{release} |
610 |
Requires: %mklibname gladeui 1 11 |
611 |
|
612 |
%description glade |
613 |
%{name}-glade contains a catalog of LibreOffice-specific widgets for |
614 |
glade and ui-previewer tool to check the visual appearance of dialogs. |
615 |
|
616 |
%package librelogo |
617 |
Summary: LibreLogo scripting language |
618 |
Group: Office/Utilities |
619 |
Requires: %{name}-writer = %{version}-%{release} |
620 |
Requires: %{name}-pyuno = %{version}-%{release} |
621 |
|
622 |
%description librelogo |
623 |
Enables LibreLogo scripting in Writer. LibreLogo is a Logo-like |
624 |
programming language with interactive vectorgraphics for education and |
625 |
DTP. |
626 |
|
627 |
%if %{build_kde} |
628 |
%package kde |
629 |
Summary: LibreOffice KDE integration plug-in |
630 |
Group: Graphical desktop/KDE |
631 |
Requires: %{name}-core = %{version}-%{release} |
632 |
Provides: openoffice.org-kde4 = 1:%version-%release |
633 |
|
634 |
%description kde |
635 |
A plug-in for LibreOffice that enables integration into the KDE desktop environment. |
636 |
%endif |
637 |
|
638 |
%package appdata |
639 |
Summary: AppData support for LibreOffice |
640 |
Group: Office/Utilities |
641 |
License: CC0 |
642 |
BuildArch: noarch |
643 |
|
644 |
%description appdata |
645 |
%{name}-appdata contains the AppData definition file for LibreOffice. |
646 |
|
647 |
|
648 |
%if 0%{?_enable_debug_packages} |
649 |
|
650 |
%define debug_package %{nil} |
651 |
%global __debug_package 1 |
652 |
|
653 |
%package debuginfo |
654 |
Summary: Debug information for package %{name} |
655 |
Group: Development/Debug |
656 |
AutoReqProv: 0 |
657 |
Requires: libreoffice-core = %{version}-%{release} |
658 |
Requires: libreoffice-gdb-debug-support = %{version}-%{release} |
659 |
|
660 |
%description debuginfo |
661 |
This package provides debug information for package %{name}. |
662 |
Debug information is useful when developing applications that use this |
663 |
package or when debugging this package. |
664 |
|
665 |
|
666 |
%files debuginfo -f debugfiles.list |
667 |
|
668 |
%package gdb-debug-support |
669 |
Summary: Additional support for debugging with gdb |
670 |
Group: Development/Other |
671 |
Requires: gdb |
672 |
AutoReqProv: 0 |
673 |
|
674 |
%description gdb-debug-support |
675 |
This package provides gdb pretty printers for package %{name}. |
676 |
|
677 |
|
678 |
%files gdb-debug-support |
679 |
%{_datadir}/gdb/auto-load%{baseinstdir} |
680 |
%{_datadir}/libreoffice/gdb |
681 |
|
682 |
%endif |
683 |
|
684 |
%define _langpack_common() \ |
685 |
%{baseinstdir}/program/resource/*%{1}.res \ |
686 |
%{baseinstdir}/share/config/soffice.cfg/modules/*/ui/res/%{1}.zip \ |
687 |
%{baseinstdir}/share/config/soffice.cfg/*/ui/res/%{1}.zip \ |
688 |
%{baseinstdir}/share/template/%{1} \ |
689 |
%{baseinstdir}/share/registry/Langpack-%{1}.xcd \ |
690 |
%{baseinstdir}/share/registry/res/registry_%{1}.xcd \ |
691 |
%{baseinstdir}/share/registry/res/fcfg_langpack_%{1}.xcd \ |
692 |
%{nil} |
693 |
|
694 |
# Defines a language pack subpackage. |
695 |
# |
696 |
# It's necessary to define language code (-l) and language name (-n). |
697 |
# Additionally, it's possible |
698 |
# * to require autocorr, hunspell, hyphen or mythes package or font for |
699 |
# given language, |
700 |
# * to obsolete openoffice.org-langpack package, |
701 |
# * to provide libreoffice-langpack-loc package, where loc is glibc |
702 |
# locale--this is necessary for urpmi to pick it automatically, |
703 |
# * to require other, unrelated, packages, |
704 |
# * to specify file serving as file list. |
705 |
# For these, lower case character argument takes an argument specifying |
706 |
# language, upper case character argument uses language from -l. |
707 |
# |
708 |
# All remaining arguments are considered to be files and added to the file |
709 |
# list. |
710 |
# |
711 |
# Aa: autocorr dependency |
712 |
# c: additional config file (just the name stem) |
713 |
# E the package does not contain any files (i.e., has empty filelist) |
714 |
# Ff: font language dependency |
715 |
# Hh: hunspell dependency |
716 |
# i: additional language added to this package |
717 |
# L: internal (LibreOffice) language code, used in file names |
718 |
# l: language code, e.g., cs |
719 |
# Mm: mythes dependency |
720 |
# n: language name, e.g., Czech |
721 |
# Oo: Obsoletes: of openoffice.org-langpack |
722 |
# Vv: Very archaic Obsoletes: of openoffice.org-langpack |
723 |
# Ww: Archaic Obsoletes: of openoffice.org2-langpack |
724 |
# p: Provides: of libreoffice-langpack |
725 |
# r: comma-separated list of additional requires |
726 |
# S:s: script classification (cjk, ctl). -S is only a marker, as it does |
727 |
# not add any .xcd into the package (the file does not exist for at |
728 |
# least one CTL-using locale, si) |
729 |
# T has help files |
730 |
# u: requires locales-XX (w/o, we requires the proper locales-XX automatically) (MGA) |
731 |
# Xx: has autotext definitions |
732 |
# Yy: hyphen dependency |
733 |
# |
734 |
# Example: |
735 |
# libreoffice-langpack-cs: langpack for Czech lang. requiring hyphen-cs, |
736 |
# autocorr-cs, mythes-cs-CZ and suitable font, obsoleting |
737 |
# openoffice.org-langpack-cs_CZ: |
738 |
# %%langpack -l cs -n Czech -H -A -m cs-CZ |
739 |
# b de g jk q tu z BCD G IJK N PQR Z0123456789 |
740 |
%define langpack(Aa:c:EFf:Hh:i:L:l:Mm:n:p:Oo:r:S:s:TVv:u:Ww:Xx:Yy:) \ |
741 |
%define project LibreOffice \ |
742 |
%define lang %{-l:%{-l*}}%{!-l:%{error:Language code not defined}} \ |
743 |
%define _langpack_lang %{-L:%{-L*}}%{!-L:%{lang}} \ |
744 |
%define pkgname langpack-%{lang} \ |
745 |
%define langname %{-n:%{-n*}}%{!-n:%{error:Language name not defined}} \ |
746 |
\ |
747 |
%global langpack_langs %{langpack_langs} %{_langpack_lang} %{-i:%{-i*}} \ |
748 |
\ |
749 |
%package %{pkgname} \ |
750 |
Summary: %{langname} language pack for %{project} \ |
751 |
Group: System/Internationalization \ |
752 |
Requires: %{name}-core = %{version}-%{release} \ |
753 |
Provides: %name-langpack = %version-%release \ |
754 |
%{-a:Requires: autocorr-%{-a*}}%{!-a:%{-A:Requires: autocorr-%{lang}}} \ |
755 |
%{-f:Requires: font(:lang=%{-f*})}%{!-f:%{-F:Requires: font(:lang=%{lang})}} \ |
756 |
%{-h:Requires: hunspell-%{-h*}}%{!-h:%{-H:Requires: hunspell-%{lang}}} \ |
757 |
%{-m:Requires: mythes-%{-m*}}%{!-m:%{-M:Requires: mythes-%{lang}}} \ |
758 |
%{-u:Requires: locales-%{-u*}}%{!-u:Requires: locales-%{lang}} \ |
759 |
%{-y:Requires: hyphen-%{-y*}}%{!-y:%{-Y:Requires: hyphen-%{lang}}} \ |
760 |
%{-r:Requires: %{-r*}} \ |
761 |
%define obs openoffice.org-langpack \ |
762 |
%define obsv 1:3.3.1 \ |
763 |
%define aobs openoffice.org2-langpack \ |
764 |
%define aobsv 1:3.0.0 \ |
765 |
%define vaobs openoffice.org-langpack \ |
766 |
%define vaobsv 1:2.0.3 \ |
767 |
%{-o:Obsoletes: %{obs}-%{-o*} < %{obsv}}%{!-o:%{-O:Obsoletes: %{obs}-%{lang} < %{obsv}}} \ |
768 |
#%{-w:Obsoletes: %{aobs}-%{-x*} < %{aobsv}}%{!-x:%{-W:Obsoletes: %{aobs}-%{lang} < %{aobsv}}} \ |
769 |
%{-v:Obsoletes: %{vaobs}-%{-v*} < %{vaobsv}}%{!-v:%{-V:Obsoletes: %{vaobs}-%{lang} < %{vaobsv}}} \ |
770 |
%{-p:Provides: %{name}-langpack-%{-p*}} \ |
771 |
\ |
772 |
%description %{pkgname} \ |
773 |
Provides additional %{langname} translations and resources for %{project}. \ |
774 |
\ |
775 |
%files %{pkgname} \ |
776 |
%{!-E: \ |
777 |
%define autotextdir %{baseinstdir}/share/autotext \ |
778 |
%{expand:%%_langpack_common %{_langpack_lang}} \ |
779 |
%{-x:%{autotextdir}/%{-x*}}%{!-x:%{-X:%{autotextdir}/%{_langpack_lang}}} \ |
780 |
%{-c:%{baseinstdir}/share/registry/%{-c*}.xcd} \ |
781 |
%{-s:%{baseinstdir}/share/registry/%{-s*}_%{_langpack_lang}.xcd} \ |
782 |
%{-T: \ |
783 |
%docdir %{baseinstdir}/help/%{_langpack_lang} \ |
784 |
%{baseinstdir}/help/%{_langpack_lang} \ |
785 |
} \ |
786 |
%{-i:%{expand:%%_langpack_common %{-i*}}} \ |
787 |
} \ |
788 |
%{nil} |
789 |
|
790 |
# Defines an auto-correction subpackage. |
791 |
# |
792 |
# i: add autocorrections from additional language |
793 |
# l: language code |
794 |
# n: language name |
795 |
# L the filename does not contain country code |
796 |
# |
797 |
# All remaining arguments are considered to be files and added to the file |
798 |
# list. |
799 |
%define autocorr(i:Ll:n:) \ |
800 |
%define lang %{-l:%{-l*}}%{!-l:%{error:Language code not defined}} \ |
801 |
%define pkgname autocorr-%{lang} \ |
802 |
%define langname %{-n:%{-n*}}%{!-n:%{error:Language name not defined}} \ |
803 |
\ |
804 |
%package -n %{pkgname} \ |
805 |
Summary: %{langname} auto-correction rules \ |
806 |
Group: Text tools \ |
807 |
Requires: locales-%{lang} \ |
808 |
BuildArch: noarch \ |
809 |
\ |
810 |
%description -n %{pkgname} \ |
811 |
Rules for auto-correcting common %{langname} typing errors. \ |
812 |
\ |
813 |
%files -n %{pkgname} \ |
814 |
%doc instdir/LICENSE \ |
815 |
%dir %{_datadir}/autocorr \ |
816 |
%{-L:%{_datadir}/autocorr/acor_%{lang}.dat} \ |
817 |
%{!-L:%{_datadir}/autocorr/acor_%{lang}-*.dat} \ |
818 |
%{-i:%{_datadir}/autocorr/acor_%{-i*}-*.dat} \ |
819 |
%{nil} |
820 |
|
821 |
%langpack -l en -n English -F -H -Y -M -A -E -L en-US -O |
822 |
|
823 |
%if %{with langpacks} |
824 |
%langpack -l af -n Afrikaans -F -H -Y -A -o af_ZA -V -w af_ZA |
825 |
%langpack -l ar -n Arabic -F -H -s ctl -O -W |
826 |
%langpack -l as -n Assamese -F -H -Y -o as_IN -w as_IN |
827 |
%langpack -l bg -n Bulgarian -F -H -Y -M -A -T -X -o bg_BG -V -w bg_BG |
828 |
%langpack -l bn -n Bengali -F -H -Y -T -O -v bn_IN -W |
829 |
%langpack -l br -n Breton -F -H -T |
830 |
%langpack -l ca -n Catalan -F -H -Y -M -A -T -o ca_ES -V -w ca_ES -X |
831 |
%langpack -l cs -n Czech -F -H -Y -M -A -T -X -o cs_CZ -V -w cs_CZ |
832 |
%langpack -l cy -n Welsh -F -H -Y -o cy_GB -V -w cy_GB |
833 |
%langpack -l da -n Danish -F -H -Y -M -A -T -X -o da_DK -V -w da_DK |
834 |
%langpack -l de -n German -F -H -Y -M -A -T -X -O -W |
835 |
%langpack -l dz -n Dzongkha -F -s ctl -T -O |
836 |
%langpack -l el -n Greek -F -H -Y -M -T -o el_GR -V -w el_GR |
837 |
%langpack -l es -n Spanish -F -H -Y -M -A -T -X -O -W |
838 |
%langpack -l et -n Estonian -F -H -Y -T -o et_EE -V -w et_EE |
839 |
%langpack -l eu -n Basque -F -H -Y -T -o eu_ES -V -w eu_ES |
840 |
%langpack -l fa -n Farsi -A -H -Y -s ctl -X |
841 |
%langpack -l fi -n Finnish -F -r libreoffice-voikko -A -T -o fi_FI -V -w fi_FI -X |
842 |
%langpack -l fr -n French -F -H -Y -M -A -T -X -O -W |
843 |
%langpack -l ga -n Irish -F -H -Y -M -A -o ga_IE -w ga_IE |
844 |
%langpack -l gl -n Galician -F -H -Y -T -o gl_ES -V -w gl_ES |
845 |
%langpack -l gu -n Gujarati -F -H -Y -s ctl -o gu_IN -w gu_IN -T |
846 |
%langpack -l he -n Hebrew -F -H -s ctl -o he_IL -V -w he_IL -T |
847 |
%langpack -l hi -n Hindi -F -H -Y -s ctl -T -o hi_IN -v hi-IN -w hi_IN -X |
848 |
%langpack -l hr -n Croatian -F -H -Y -A -o hr_HR -V -w hr_HR -T -X |
849 |
%langpack -l hu -n Hungarian -F -H -Y -M -A -T -X -o hu_HU -V -w hu_HU |
850 |
%langpack -l it -n Italian -F -H -Y -M -A -T -X -O -W |
851 |
%langpack -l ja -n Japanese -F -A -s cjk -T -X -o ja_JP -V -w ja_JP |
852 |
%langpack -l kk -n Kazakh -F -H |
853 |
%langpack -l kn -n Kannada -F -H -Y -o kn_IN -w ka_IN |
854 |
%langpack -l ko -n Korean -F -H -A -s cjk -T -c korea -X -o ko_KR -V -w ko_KR |
855 |
%langpack -l lt -n Lithuanian -F -H -Y -A -o lt_LT -V -w lt_LT -X |
856 |
%langpack -l lv -n Latvian -F -H -Y -M |
857 |
%langpack -l mai -n Maithili -F -o mai_IN |
858 |
%langpack -l ml -n Malayalam -F -H -Y -o ml_IN -w ml_IN |
859 |
%langpack -l mr -n Marathi -F -H -Y -o mr_IN -w mr_IN |
860 |
%langpack -l nb -n Bokmal -F -H -Y -M -T -o nb_NO -V -w nb_NO -u no |
861 |
%langpack -l nl -n Dutch -F -H -Y -M -A -T -X -O -W |
862 |
%langpack -l nn -n Nynorsk -F -H -Y -M -T -o nn_NO -V -w nn_NO -u no |
863 |
%define langpack_lang Southern Ndebele |
864 |
%langpack -l nr -n %{langpack_lang} -F -H -o nr_ZA |
865 |
%define langpack_lang Northern Sotho |
866 |
%langpack -l nso -n %{langpack_lang} -F -H -o nso_ZA -w nso_ZA |
867 |
%langpack -l or -n Odia -F -H -Y -s ctl -o or_IN -w or_IN |
868 |
%langpack -l pa -n Punjabi -F -H -Y -s ctl -L pa-IN -O -v pa_IN -w pa_IN |
869 |
%langpack -l pl -n Polish -F -H -Y -M -A -T -X -o pl_PL -V -w pl_PL |
870 |
%define langpack_lang Brazilian Portuguese |
871 |
%langpack -l pt_BR -n %{langpack_lang} -f pt -h pt -y pt -m pt -a pt -p pt_BR -T -X -o pt_BR -V -w pt_BR -L pt-BR -u pt |
872 |
%langpack -l pt -n Portuguese -f pt -h pt -y pt -m pt -a pt -p pt_PT -T -L pt -X -u pt -o pt_PT -v pt -W |
873 |
%langpack -l ro -n Romanian -A -F -H -Y -M -O -X |
874 |
%langpack -l ru -n Russian -F -H -Y -M -A -T -X -O -W |
875 |
%langpack -l si -n Sinhalese -F -H -S ctl -T -O |
876 |
%langpack -l sk -n Slovak -F -H -Y -M -A -T -X -o sk_SK -V -w sk_SK |
877 |
%langpack -l sl -n Slovenian -F -H -Y -M -A -T -X -o sl_SI -V -w sl_SI |
878 |
%{baseinstdir}/share/wordbook/sl.dic |
879 |
|
880 |
%langpack -l sr -n Serbian -F -H -Y -A -i sr-Latn -O -v sr_CS -w sr_CS |
881 |
%langpack -l ss -n Swati -F -H -o ss_ZA |
882 |
%define langpack_lang Southern Sotho |
883 |
%langpack -l st -n %{langpack_lang} -F -H -o st_ZA |
884 |
%langpack -l sv -n Swedish -F -H -Y -M -A -T -X -O -W |
885 |
%langpack -l ta -n Tamil -F -H -Y -s ctl -o ta_IN -w ta_IN |
886 |
%langpack -l te -n Telugu -F -H -Y -o te_IN -w te_IN |
887 |
%langpack -l th -n Thai -F -H -s ctl -c ctlseqcheck_th -o th_TH -V -w th_TH |
888 |
%langpack -l tn -n Tswana -F -H -o tn_ZA -V -w tn_ZA |
889 |
%langpack -l tr -n Turkish -F -A -T -X -o tr_TR -V -W |
890 |
%langpack -l ts -n Tsonga -F -H -o ts_ZA -V -w ts_ZA |
891 |
%langpack -l uk -n Ukrainian -F -H -Y -M -T -O |
892 |
%langpack -l ve -n Venda -F -H -o ve_ZA |
893 |
%langpack -l xh -n Xhosa -F -H -o xh_ZA |
894 |
%define langpack_lang Simplified Chinese |
895 |
%langpack -l zh_CN -n %{langpack_lang} -f zh-cn -a zh -p zh_CN -s cjk -T -L zh-CN -X -o zh_CN -v zh-CN -w zh_CN -u zh |
896 |
%define langpack_lang Traditional Chinese |
897 |
%langpack -l zh_TW -n %{langpack_lang} -f zh-tw -a zh -p zh_TW -s cjk -T -L zh-TW -X -o zh_TW -v zh-TW -w zh_TW -u zh |
898 |
%langpack -l zu -n Zulu -F -H -Y -o zu_ZA -V -w zu_ZA |
899 |
%undefine langpack_lang |
900 |
%endif |
901 |
%autocorr -l en -n English |
902 |
|
903 |
%if %{with langpacks} |
904 |
%autocorr -l af -n Afrikaans |
905 |
%autocorr -l bg -n Bulgarian |
906 |
%autocorr -l ca -n Catalan |
907 |
%autocorr -l cs -n Czech |
908 |
%autocorr -l da -n Danish |
909 |
%autocorr -l de -n German |
910 |
%autocorr -l es -n Spanish |
911 |
%autocorr -l fa -n Farsi |
912 |
%autocorr -l fi -n Finnish |
913 |
%autocorr -l fr -n French |
914 |
%autocorr -l ga -n Irish |
915 |
%autocorr -l hr -n Croatian |
916 |
%autocorr -l hu -n Hungarian |
917 |
%autocorr -l is -n Icelandic |
918 |
%autocorr -l it -n Italian |
919 |
%autocorr -l ja -n Japanese |
920 |
%autocorr -l ko -n Korean |
921 |
%autocorr -l lb -n Luxembourgish |
922 |
%autocorr -l lt -n Lithuanian |
923 |
%autocorr -l mn -n Mongolian |
924 |
%autocorr -l nl -n Dutch |
925 |
%autocorr -l pl -n Polish |
926 |
%autocorr -l pt -n Portuguese |
927 |
%autocorr -l ro -n Romanian |
928 |
%autocorr -l ru -n Russian |
929 |
%autocorr -l sk -n Slovak |
930 |
%autocorr -l sl -n Slovenian |
931 |
#rhbz#452379 clump serbian autocorrections together |
932 |
%autocorr -l sr -n Serbian -i sr-Latn |
933 |
%autocorr -l sv -n Swedish |
934 |
%autocorr -l tr -n Turkish |
935 |
%autocorr -l vi -n Vietnamese |
936 |
%autocorr -l zh -n Chinese |
937 |
%endif |
938 |
|
939 |
%define make_autocorr_aliases(l:) \ |
940 |
%{?-l: \ |
941 |
for lang in %{*}; do \ |
942 |
ln -sf acor_%{-l*}.dat acor_$lang.dat \ |
943 |
done \ |
944 |
} \ |
945 |
%{!?-l:%{error:-l must be present}} |
946 |
|
947 |
%prep |
948 |
%setup -q -n %{name}-%{version}%{?libo_prerelease} -b 1 -b 2 |
949 |
rm -rf git-hooks */git-hooks |
950 |
|
951 |
# set up git repo |
952 |
git init |
953 |
git config user.name rpmbuild |
954 |
git config user.email rpmbuild@fedoraproject.org |
955 |
git config gc.auto 0 # disable auto packing |
956 |
git add -A |
957 |
git commit -q -a -m %{name}-%{version} |
958 |
|
959 |
#Customize Palette to remove Sun colours and add Red Hat colours |
960 |
#TODO: have and add mageia colours |
961 |
(head -n -1 extras/source/palettes/standard.soc && \ |
962 |
echo -e ' <draw:color draw:name="Mageia 1" draw:color="#cc0000"/> |
963 |
<draw:color draw:name="Mageia 2" draw:color="#0093d9"/> |
964 |
<draw:color draw:name="Mageia 3" draw:color="#ff8d00"/> |
965 |
<draw:color draw:name="Mageia 4" draw:color="#abb400"/> |
966 |
<draw:color draw:name="Mageia 5" draw:color="#4e376b"/>' && \ |
967 |
tail -n 1 extras/source/palettes/standard.soc) > mageia.soc |
968 |
mv -f mageia.soc extras/source/palettes/standard.soc |
969 |
|
970 |
git commit -q -a -m 'add Red Hat colors to palette' |
971 |
|
972 |
# apply patches |
973 |
git am %{patches} |
974 |
|
975 |
|
976 |
# Seeing .git dir makes some of the build tools change their behavior. |
977 |
# We do not want that. Note: it is still possible to use |
978 |
# git --git-dir=.git-rpm |
979 |
mv .git .git-rpm |
980 |
|
981 |
%build |
982 |
echo build start time is `date`, diskspace: `df -h . | tail -n 1` |
983 |
echo building localizations: %{langpack_langs} |
984 |
|
985 |
# path to external tarballs |
986 |
EXTSRCDIR=`dirname %{SOURCE0}` |
987 |
|
988 |
# KDE bits |
989 |
export QT4DIR=%{qt4dir} |
990 |
export KDE4DIR=%{_kde_prefix} |
991 |
export PATH=$QT4DIR/bin:$PATH |
992 |
|
993 |
#use the RPM_OPT_FLAGS but remove the OOo overridden ones |
994 |
for i in $RPM_OPT_FLAGS; do |
995 |
case "$i" in |
996 |
-pipe|-Wall|-Werror*|-g|-fexceptions) continue;; |
997 |
esac |
998 |
ARCH_FLAGS="$ARCH_FLAGS $i" |
999 |
done |
1000 |
export ARCH_FLAGS |
1001 |
# Do not compile LO with -fomit-frame-pointer flags, or it will crash at start. |
1002 |
export CFLAGS="$(echo $ARCH_FLAGS | sed -e 's/-fomit-frame-pointer//')" |
1003 |
export CXXFLAGS="$(echo $ARCH_FLAGS | sed -e 's/-fomit-frame-pointer//')" |
1004 |
export FFLAGS="$(echo $FFLAGS | sed -e 's/-fomit-frame-pointer//')" |
1005 |
|
1006 |
%if %{build_kde} |
1007 |
%define distrooptions --enable-kde4 --disable-gstreamer-0-10 --enable-gstreamer --with-system-mythes |
1008 |
%else |
1009 |
%define distrooptions --disable-kde4 --disable-gstreamer-0-10 --enable-gstreamer --with-system-mythes |
1010 |
%endif |
1011 |
|
1012 |
%if %{with langpacks} |
1013 |
%define with_lang --with-lang='%{langpack_langs}' |
1014 |
%endif |
1015 |
|
1016 |
aclocal -I m4 |
1017 |
autoconf |
1018 |
|
1019 |
# TODO: enable gltf? |
1020 |
# TODO: enable coinmp? |
1021 |
# avoid running autogen.sh on make |
1022 |
touch autogen.lastrun |
1023 |
|
1024 |
%configure2_5x \ |
1025 |
%vendoroption \ |
1026 |
%{?_smp_mflags:--with-parallelism="`getconf _NPROCESSORS_ONLN`"} \ |
1027 |
%{?with_lang} \ |
1028 |
--disable-coinmp \ |
1029 |
--disable-fetch-external \ |
1030 |
--disable-gltf \ |
1031 |
--disable-gnome-vfs \ |
1032 |
--disable-openssl \ |
1033 |
--enable-dbus \ |
1034 |
--enable-eot \ |
1035 |
--enable-evolution2 \ |
1036 |
--enable-ext-nlpsolver \ |
1037 |
--enable-ext-wiki-publisher \ |
1038 |
--enable-lockdown \ |
1039 |
--enable-release-build \ |
1040 |
--enable-scripting-beanshell \ |
1041 |
--enable-scripting-javascript \ |
1042 |
--enable-symbols \ |
1043 |
--enable-vba \ |
1044 |
--with-build-version="%{version}-%{release}" \ |
1045 |
--with-external-dict-dir=/usr/share/myspell \ |
1046 |
--with-external-tar="$EXTSRCDIR" \ |
1047 |
--with-help \ |
1048 |
--with-system-dicts \ |
1049 |
--with-system-libs \ |
1050 |
--with-system-ucpp \ |
1051 |
--without-fonts \ |
1052 |
--without-ppds \ |
1053 |
--without-system-npapi-headers \ |
1054 |
%if %{build_gtk3} |
1055 |
--enable-gtk3 \ |
1056 |
%endif |
1057 |
%if 0%{?system_boost} |
1058 |
%else |
1059 |
--without-system-boost \ |
1060 |
%endif |
1061 |
%if %with_mergedlibs |
1062 |
--enable-mergelibs \ |
1063 |
%endif |
1064 |
%{distrooptions} |
1065 |
|
1066 |
make VERBOSE=true |
1067 |
|
1068 |
#generate the icons and mime type stuff |
1069 |
export DESTDIR=../output |
1070 |
export KDEMAINDIR=/usr |
1071 |
export GNOMEDIR=/usr |
1072 |
export GNOME_MIME_THEME=hicolor |
1073 |
# TODO use empty variables? Should make the renaming hacks in %%install |
1074 |
# unnecessary. |
1075 |
. ./bin/get_config_variables PRODUCTVERSIONSHORT PRODUCTVERSION WORKDIR |
1076 |
pushd $WORKDIR/CustomTarget/sysui/share/libreoffice |
1077 |
./create_tree.sh |
1078 |
popd |
1079 |
mkdir $WORKDIR/os-integration |
1080 |
cp -pr $WORKDIR/CustomTarget/sysui/share/output/usr/share/* $WORKDIR/os-integration |
1081 |
|
1082 |
%if %{with smallbuild} |
1083 |
# remove the biggest offenders |
1084 |
# NOTE: not removing complete LinkTarget, as some libs are needed for smoketest |
1085 |
rm -rf $WORKDIR/CxxObject $WORKDIR/GenCxxObject $WORKDIR/HelpTarget $WORKDIR/LinkTarget/CppunitTest |
1086 |
%endif |
1087 |
|
1088 |
echo build end time is `date`, diskspace: `df -h . | tail -n 1` |
1089 |
|
1090 |
%install |
1091 |
# TODO investigate use of make distro-pack-install |
1092 |
#figure out the icon version |
1093 |
. ./bin/get_config_variables PRODUCTVERSIONSHORT PRODUCTVERSION SRCDIR WORKDIR |
1094 |
export PRODUCTVERSIONSHORT PRODUCTVERSION |
1095 |
|
1096 |
# installation |
1097 |
|
1098 |
mkdir -p %{buildroot}%{instdir} |
1099 |
if ! make instsetoo_native PKGFORMAT=installed EPM=not-used-but-must-be-set; then |
1100 |
echo - ---dump log start--- |
1101 |
cat $ WORKDIR/installation/LibreOffice/installed/logging/en-US/log_*_en-US.log |
1102 |
echo - ---dump log end--- |
1103 |
echo - ---dump log start -- SDK--- |
1104 |
cat $ WORKDIR/installation/LibreOffice_SDK/installed/logging/en-US/log_*_en-US.log |
1105 |
echo - ---dump log end -- SDK--- |
1106 |
echo - ---dump log start -- languagepacks--- |
1107 |
cat $ WORKDIR/installation/LibreOffice_languagepack/installed/logging/en-US/log_*_en-US.log |
1108 |
echo - ---dump log end -- languagepacks--- |
1109 |
exit 1 |
1110 |
fi |
1111 |
mkdir -p %{buildroot}%{baseinstdir} |
1112 |
mv $WORKDIR/installation/LibreOffice/installed/install/en-US/* %{buildroot}%{baseinstdir} |
1113 |
%if %{with langpacks} |
1114 |
for langpack in $WORKDIR/installation/LibreOffice_languagepack/installed/install/*; do |
1115 |
[ `basename $langpack` = log ] && continue |
1116 |
cp -rp $langpack/* %{buildroot}%{baseinstdir} |
1117 |
rm -rf $langpack |
1118 |
done |
1119 |
%endif |
1120 |
mv $WORKDIR/installation/LibreOffice_SDK/installed/install/en-US/sdk %{buildroot}%{sdkinstdir} |
1121 |
chmod -R +w %{buildroot}%{baseinstdir} |
1122 |
|
1123 |
# postprocessing and tweaks |
1124 |
|
1125 |
# The installer currently sets UserInstallation to |
1126 |
# $ORIGIN/../libreoffice/4, which is of course total nonsense. Because I |
1127 |
# have no inclination to crawl through mountains of perl code to figure out |
1128 |
# where it comes from, I am just going to replace it by a sensible |
1129 |
# value here. |
1130 |
sed -i -e '/UserInstallation/s@\$ORIGIN/..@$SYSUSERCONFIG@' %{buildroot}%{baseinstdir}/program/bootstraprc |
1131 |
|
1132 |
#configure sdk |
1133 |
pushd %{buildroot}%{sdkinstdir} |
1134 |
sed -e "s,@OO_SDK_NAME@,sdk," \ |
1135 |
-e "s,@OO_SDK_HOME@,%{sdkinstdir}," \ |
1136 |
-e "s,@OFFICE_HOME@,%{baseinstdir}," \ |
1137 |
-e "s,@OO_SDK_URE_HOME@,%{ureinstdir}," \ |
1138 |
-e "s,@OO_SDK_MAKE_HOME@,/usr/bin," \ |
1139 |
-e "s,@OO_SDK_ZIP_HOME@,/usr/bin," \ |
1140 |
-e "s,@OO_SDK_CPP_HOME@,/usr/bin," \ |
1141 |
-e "s,@OO_SDK_CC_55_OR_HIGHER@,," \ |
1142 |
-e "s,@OO_SDK_JAVA_HOME@,$JAVA_HOME," \ |
1143 |
-e "s,@OO_SDK_OUTPUT_DIR@,\$HOME," \ |
1144 |
-e "s,@SDK_AUTO_DEPLOYMENT@,NO," \ |
1145 |
setsdkenv_unix.sh.in > setsdkenv_unix.sh |
1146 |
chmod 755 setsdkenv_unix.sh |
1147 |
# we don't want to install the input file |
1148 |
rm -f setsdkenv_unix.sh.in |
1149 |
# TODO: is this still necessary? |
1150 |
#fix permissions |
1151 |
find examples -type f -exec chmod -x {} \; |
1152 |
popd |
1153 |
|
1154 |
#ensure a template dir for each lang |
1155 |
pushd %{buildroot}%{baseinstdir}/share/template |
1156 |
for I in %{langpack_langs}; do |
1157 |
mkdir -p $I |
1158 |
done |
1159 |
popd |
1160 |
|
1161 |
#Set some aliases to canonical autocorrect language files for locales with matching languages |
1162 |
pushd %{buildroot}%{baseinstdir}/share/autocorr |
1163 |
|
1164 |
%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 |
1165 |
%make_autocorr_aliases -l en-US en-PH |
1166 |
#en-ZA exists and has a good autocorrect file with two or three extras that make sense for |
1167 |
#neighbouring english speaking territories |
1168 |
%make_autocorr_aliases -l en-ZA en-NA en-ZW |
1169 |
%if %{with langpacks} |
1170 |
%make_autocorr_aliases -l af-ZA af-NA |
1171 |
%make_autocorr_aliases -l de-DE de-AT de-BE de-CH de-LI de-LU |
1172 |
%make_autocorr_aliases -l es-ES es-AR es-BO es-CL es-CO es-CR es-CU es-DO es-EC es-GT es-HN es-MX es-NI es-PA es-PE es-PR es-PY es-SV es-US es-UY es-VE |
1173 |
%make_autocorr_aliases -l fr-FR fr-BE fr-CA fr-CH fr-LU fr-MC |
1174 |
%make_autocorr_aliases -l it-IT it-CH |
1175 |
%make_autocorr_aliases -l nl-NL nl-AW |
1176 |
%make_autocorr_aliases -l sv-SE sv-FI |
1177 |
%else |
1178 |
rm -f acor_[a-df-z]*.dat acor_e[su]*.dat |
1179 |
%endif |
1180 |
popd |
1181 |
#rhbz#484055 make these shared across multiple applications |
1182 |
mkdir -p %{buildroot}%{_datadir} |
1183 |
mv -f %{buildroot}%{baseinstdir}/share/autocorr %{buildroot}%{_datadir}/autocorr |
1184 |
chmod 755 %{buildroot}%{_datadir}/autocorr |
1185 |
|
1186 |
#remove it in case we didn't build with gcj |
1187 |
rm -f %{buildroot}%{baseinstdir}/program/classes/sandbox.jar |
1188 |
|
1189 |
#remove dummy .dat files |
1190 |
rm -f %{buildroot}%{baseinstdir}/program/root?.dat |
1191 |
|
1192 |
#set standard permissions for rpmlint |
1193 |
find %{buildroot}%{baseinstdir} -exec chmod +w {} \; |
1194 |
find %{buildroot}%{baseinstdir} -type d -exec chmod 0755 {} \; |
1195 |
|
1196 |
# move python bits into site-packages |
1197 |
mkdir -p %{buildroot}%{python3_sitearch} |
1198 |
pushd %{buildroot}%{python3_sitearch} |
1199 |
echo "import sys, os" > uno.py |
1200 |
echo "sys.path.append('%{baseinstdir}/program')" >> uno.py |
1201 |
echo "os.putenv('URE_BOOTSTRAP', 'vnd.sun.star.pathname:%{baseinstdir}/program/fundamentalrc')" >> uno.py |
1202 |
cat %{buildroot}%{baseinstdir}/program/uno.py >> uno.py |
1203 |
rm -f %{buildroot}%{baseinstdir}/program/uno.py* |
1204 |
mv -f %{buildroot}%{baseinstdir}/program/unohelper.py* . |
1205 |
popd |
1206 |
|
1207 |
# rhbz#477435 package opensymbol separately |
1208 |
pushd %{buildroot}%{baseinstdir}/share/fonts/truetype |
1209 |
install -d -m 0755 %{buildroot}%{_fontdir} |
1210 |
install -p -m 0644 *.ttf %{buildroot}%{_fontdir} |
1211 |
popd |
1212 |
rm -rf %{buildroot}%{baseinstdir}/share/fonts |
1213 |
|
1214 |
#ensure that no sneaky un-prelinkable, un-fpic or non executable shared libs |
1215 |
#have snuck through |
1216 |
pic=0 |
1217 |
executable=0 |
1218 |
for foo in `find %{buildroot}%{instdir} -name "*" -exec file {} \;| grep ": ELF" | cut -d: -f 1` ; do |
1219 |
chmod +wx $foo |
1220 |
ls -asl $foo |
1221 |
result=`readelf -d $foo | grep TEXTREL` || true |
1222 |
if [ "$result" != "" ]; then |
1223 |
echo "TEXTREL Warning: $foo is b0rked (-fpic missing)" |
1224 |
pic=1 |
1225 |
fi |
1226 |
result=`readelf -l $foo | grep GNU_STACK | grep RWE` || true |
1227 |
if [ "$result" != "" ]; then |
1228 |
echo "GNU_STACK Warning: $foo is b0rked (-noexecstack missing)" |
1229 |
executable=1 |
1230 |
fi |
1231 |
done |
1232 |
if [ $pic == 1 ]; then false; fi |
1233 |
if [ $executable == 1 ]; then false; fi |
1234 |
|
1235 |
#make up some /usr/bin scripts |
1236 |
mkdir -p %{buildroot}%{_bindir} |
1237 |
|
1238 |
pushd %{buildroot}%{_bindir} |
1239 |
echo \#\!/bin/sh > ooffice |
1240 |
echo exec libreoffice \"\$@\" >> ooffice |
1241 |
chmod a+x ooffice |
1242 |
|
1243 |
echo \#\!/bin/sh > ooviewdoc |
1244 |
echo exec libreoffice --view \"\$@\" >> ooviewdoc |
1245 |
chmod a+x ooviewdoc |
1246 |
|
1247 |
for app in base calc draw impress math writer; do |
1248 |
echo \#\!/bin/sh > oo$app |
1249 |
echo exec libreoffice --$app \"\$@\" >> oo$app |
1250 |
chmod a+x oo$app |
1251 |
done |
1252 |
|
1253 |
sed -e s/LAUNCHER/unopkg/g -e s/BRAND/libreoffice/g %{SOURCE4} > unopkg |
1254 |
chmod a+x unopkg |
1255 |
|
1256 |
sed -e s/LAUNCHER/soffice/g -e s/BRAND/libreoffice/g %{SOURCE4} > libreoffice |
1257 |
chmod a+x libreoffice |
1258 |
|
1259 |
# rhbz#499474 provide a /usr/bin/soffice for .recently-used.xbel |
1260 |
ln -s %{baseinstdir}/program/soffice soffice |
1261 |
# rhbz#499474 provide a /usr/bin/openoffice.org for backwards compat |
1262 |
ln -s libreoffice openoffice.org |
1263 |
popd |
1264 |
|
1265 |
pushd %{buildroot}%{baseinstdir}/share/xdg/ |
1266 |
chmod u+w *.desktop |
1267 |
ICONVERSION=`echo $PRODUCTVERSION | sed -e 's/\.//'` |
1268 |
for file in *.desktop; do |
1269 |
# rhbz#156677 remove the version from Name= |
1270 |
# rhbz#156067 don't version the icons |
1271 |
sed -i -e "s/ *$PRODUCTVERSION//g" \ |
1272 |
-e "s/$ICONVERSION//g" \ |
1273 |
-e "s/$PRODUCTVERSIONSHORT//g" \ |
1274 |
$file |
1275 |
done |
1276 |
# rhbz#156677 / rhbz#186515 do not show math and startcenter |
1277 |
sed -i -e /NoDisplay/s/false/true/ math.desktop startcenter.desktop |
1278 |
# relocate the .desktop and icon files |
1279 |
mkdir -p %{buildroot}%{_datadir}/applications |
1280 |
for app in base calc draw impress math startcenter writer xsltfilter; do |
1281 |
sed -i -e 's/\${UNIXBASISROOTNAME}/%{name}/' $app.desktop |
1282 |
desktop-file-validate $app.desktop |
1283 |
cp -p $app.desktop %{buildroot}%{_datadir}/applications/libreoffice-$app.desktop |
1284 |
done |
1285 |
popd |
1286 |
|
1287 |
%if 0 |
1288 |
# desktop files |
1289 |
desktop-file-install --vendor="" \ |
1290 |
--add-mime-type="application/vnd.ms-works;application/x-msworks-wp;zz-application/zz-winassoc-wps" \ |
1291 |
--dir %{buildroot}%{_datadir}/applications %{buildroot}%{_datadir}/applications/*writer*desktop |
1292 |
%endif |
1293 |
|
1294 |
# disabled: web template |
1295 |
for i in calc draw impress math writer; do |
1296 |
desktop-file-install --vendor="" \ |
1297 |
--remove-category="Application" \ |
1298 |
--add-category="Office" \ |
1299 |
--add-category="X-MandrivaLinux-CrossDesktop" \ |
1300 |
--dir %{buildroot}%{_datadir}/applications %{buildroot}%{_datadir}/applications/*${i}*desktop |
1301 |
done |
1302 |
|
1303 |
%if 0 |
1304 |
## MS OOXML (#36465) |
1305 |
desktop-file-install \ |
1306 |
--add-mime-type="application/vnd.openxmlformats-officedocument.wordprocessingml.document" \ |
1307 |
--add-mime-type="application/vnd.ms-word.document.macroEnabled.12" \ |
1308 |
--dir %{buildroot}%{_datadir}/applications %{buildroot}%{_datadir}/applications/writer*desktop |
1309 |
|
1310 |
desktop-file-install \ |
1311 |
--add-mime-type="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" \ |
1312 |
--add-mime-type="application/vnd.ms-excel.sheet.macroEnabled.12" \ |
1313 |
--dir %{buildroot}%{_datadir}/applications %{buildroot}%{_datadir}/applications/calc*desktop |
1314 |
|
1315 |
desktop-file-install \ |
1316 |
--add-mime-type="application/vnd.openxmlformats-officedocument.presentationml.presentation" \ |
1317 |
--add-mime-type="application/vnd.ms-powerpoint.presentation.macroEnabled.12" \ |
1318 |
--dir %{buildroot}%{_datadir}/applications %{buildroot}%{_datadir}/applications/impress*desktop |
1319 |
%endif |
1320 |
|
1321 |
for app in base calc draw impress math writer startcenter ; do |
1322 |
sed -i -e "s/Icon=$app/Icon=libreoffice-$app/g" %{buildroot}%_datadir/applications/%name-${app}.desktop |
1323 |
done |
1324 |
|
1325 |
pushd $WORKDIR/os-integration |
1326 |
#get rid of the gnome icons and other unneeded files |
1327 |
rm -rf icons/gnome applications application-registry |
1328 |
|
1329 |
#relocate the rest of them |
1330 |
# rhbz#901346 512x512 icons are not used by anything |
1331 |
for icon in `find icons -path '*/512x512' -prune -o -type f -print`; do |
1332 |
mkdir -p %{buildroot}%{_datadir}/`dirname $icon` |
1333 |
cp -p $icon %{buildroot}%{_datadir}/`echo $icon | sed -e s@libreoffice$ICONVERSION-@libreoffice-@ | sed -e s@libreoffice$PRODUCTVERSION-@libreoffice-@` |
1334 |
done |
1335 |
mkdir -p %{buildroot}%{_datadir}/mime-info |
1336 |
cp -p mime-info/libreoffice$PRODUCTVERSION.keys %{buildroot}%{_datadir}/mime-info/libreoffice.keys |
1337 |
cp -p mime-info/libreoffice$PRODUCTVERSION.mime %{buildroot}%{_datadir}/mime-info/libreoffice.mime |
1338 |
#add our mime-types, e.g. for .oxt extensions |
1339 |
mkdir -p %{buildroot}%{_datadir}/mime/packages |
1340 |
cp -p mime/packages/libreoffice$PRODUCTVERSION.xml %{buildroot}%{_datadir}/mime/packages/libreoffice.xml |
1341 |
popd |
1342 |
|
1343 |
rm -rf %{buildroot}%{baseinstdir}/readmes |
1344 |
rm -rf %{buildroot}%{baseinstdir}/licenses |
1345 |
|
1346 |
mkdir -p %{buildroot}%{baseinstdir}/share/psprint/driver |
1347 |
cp -p vcl/unx/generic/printer/configuration/ppds/SGENPRT.PS %{buildroot}%{baseinstdir}/share/psprint/driver/SGENPRT.PS |
1348 |
|
1349 |
# rhbz#452385 to auto have postgres in classpath if subsequently installed |
1350 |
sed -i -e "s#URE_MORE_JAVA_CLASSPATH_URLS.*#& file:///usr/share/java/postgresql-jdbc.jar#" %{buildroot}%{baseinstdir}/program/fundamentalrc |
1351 |
# Br translation doesn't have any help |
1352 |
# Better use fr ones for now ( and check if this is still valid for next update ) |
1353 |
pushd %buildroot%_libdir/libreoffice/help |
1354 |
ln -s fr br |
1355 |
popd |
1356 |
|
1357 |
# move glade catalog to system glade dir |
1358 |
mkdir -p %{buildroot}%{_datadir}/glade3/catalogs |
1359 |
mv %{buildroot}%{baseinstdir}/share/glade/libreoffice-catalog.xml %{buildroot}%{_datadir}/glade3/catalogs |
1360 |
|
1361 |
# rhbz#1049543 install appdata |
1362 |
mkdir -p %{buildroot}%{_datadir}/appdata |
1363 |
cp -p sysui/desktop/appstream-appdata/*.appdata.xml %{buildroot}%{_datadir}/appdata |
1364 |
|
1365 |
# install man pages |
1366 |
install -m 0755 -d %{buildroot}%{_mandir}/man1 |
1367 |
install -m 0644 -p sysui/desktop/man/*.1 %{buildroot}%{_mandir}/man1 |
1368 |
for app in oobase oocalc oodraw ooffice ooimpress oomath ooviewdoc oowriter openoffice.org soffice; do |
1369 |
echo '.so man1/libreoffice.1' > $app.1 |
1370 |
install -m 0644 -p $app.1 %{buildroot}%{_mandir}/man1 |
1371 |
done |
1372 |
|
1373 |
%if 0%{?_enable_debug_packages} |
1374 |
export DESTDIR=%{buildroot} |
1375 |
make cmd cmd="install-gdb-printers -a %{_datadir}/gdb/auto-load%{baseinstdir} -c -i %{baseinstdir} -p %{_datadir}/libreoffice/gdb" |
1376 |
%endif |
1377 |
|
1378 |
cat> %{buildroot}%_bindir/libreoffice-gtk3 <<EOF |
1379 |
#!/bin/sh |
1380 |
SAL_USE_VCLPLUGIN=gtk3 exec oowriter |
1381 |
EOF |
1382 |
chmod +x %{buildroot}%_bindir/libreoffice-gtk3 |
1383 |
|
1384 |
%check |
1385 |
exit 0 |
1386 |
unset WITH_LANG |
1387 |
# work around flawed accessibility check |
1388 |
export JFW_PLUGIN_DO_NOT_CHECK_ACCESSIBILITY="1" |
1389 |
# TODO is the timeout still needed? |
1390 |
# FIXME find what is the problem |
1391 |
# timeout -k 2m 2h make smoketest.subsequentcheck VERBOSE=t |
1392 |
|
1393 |
%files |
1394 |
|
1395 |
%files filters |
1396 |
|
1397 |
%files core |
1398 |
%dir %{baseinstdir} |
1399 |
%dir %{baseinstdir}/help |
1400 |
%docdir %{baseinstdir}/help/en-US |
1401 |
%dir %{baseinstdir}/help/en-US |
1402 |
%{baseinstdir}/help/en-US/default.css |
1403 |
%{baseinstdir}/help/en-US/err.html |
1404 |
%{baseinstdir}/help/en-US/highcontrast1.css |
1405 |
%{baseinstdir}/help/en-US/highcontrast2.css |
1406 |
%{baseinstdir}/help/en-US/highcontrastblack.css |
1407 |
%{baseinstdir}/help/en-US/highcontrastwhite.css |
1408 |
%{baseinstdir}/help/en-US/sbasic.* |
1409 |
%{baseinstdir}/help/en-US/schart.* |
1410 |
%{baseinstdir}/help/en-US/shared.* |
1411 |
%{baseinstdir}/help/idxcaption.xsl |
1412 |
%{baseinstdir}/help/idxcontent.xsl |
1413 |
%{baseinstdir}/help/main_transform.xsl |
1414 |
%{baseinstdir}/presets |
1415 |
%dir %{baseinstdir}/program |
1416 |
%{baseinstdir}/program/libbasprovlo.so |
1417 |
%{baseinstdir}/program/libcairocanvaslo.so |
1418 |
%{baseinstdir}/program/libcanvasfactorylo.so |
1419 |
%dir %{baseinstdir}/program/classes |
1420 |
%{baseinstdir}/program/classes/commonwizards.jar |
1421 |
%{baseinstdir}/program/classes/form.jar |
1422 |
%{baseinstdir}/program/classes/query.jar |
1423 |
%{baseinstdir}/program/classes/officebean.jar |
1424 |
%{baseinstdir}/program/classes/report.jar |
1425 |
%{baseinstdir}/program/classes/ScriptFramework.jar |
1426 |
%{baseinstdir}/program/classes/ScriptProviderForJava.jar |
1427 |
%{baseinstdir}/program/classes/table.jar |
1428 |
%{baseinstdir}/program/classes/unoil.jar |
1429 |
%{baseinstdir}/program/classes/XMergeBridge.jar |
1430 |
%{baseinstdir}/program/classes/xmerge.jar |
1431 |
%{baseinstdir}/program/libcmdmaillo.so |
1432 |
%{baseinstdir}/program/libdeployment.so |
1433 |
%{baseinstdir}/program/libdeploymentgui.so |
1434 |
%{baseinstdir}/program/libdlgprovlo.so |
1435 |
%{baseinstdir}/program/libexpwraplo.so |
1436 |
%{baseinstdir}/program/flat_logo.svg |
1437 |
%{baseinstdir}/program/libfps_officelo.so |
1438 |
%{baseinstdir}/program/gdbtrace |
1439 |
%{baseinstdir}/program/gengal |
1440 |
%{baseinstdir}/program/gengal.bin |
1441 |
%{baseinstdir}/program/gnome-open-url |
1442 |
%{baseinstdir}/program/gnome-open-url.bin |
1443 |
%{baseinstdir}/program/libi18nsearchlo.so |
1444 |
%{baseinstdir}/program/libldapbe2lo.so |
1445 |
%{baseinstdir}/program/libacclo.so |
1446 |
%{baseinstdir}/program/libavmedia*.so |
1447 |
%{baseinstdir}/program/libbasctllo.so |
1448 |
%{baseinstdir}/program/libbiblo.so |
1449 |
%{baseinstdir}/program/libcached1.so |
1450 |
%{baseinstdir}/program/libcanvastoolslo.so |
1451 |
%{baseinstdir}/program/libchart*lo.so |
1452 |
%{baseinstdir}/program/libcollator_data.so |
1453 |
%{baseinstdir}/program/libcppcanvaslo.so |
1454 |
%{baseinstdir}/program/libctllo.so |
1455 |
%{baseinstdir}/program/libcuilo.so |
1456 |
%{baseinstdir}/program/libdbalo.so |
1457 |
%{baseinstdir}/program/libdbaselo.so |
1458 |
%{baseinstdir}/program/libdbaxmllo.so |
1459 |
%{baseinstdir}/program/libdbmmlo.so |
1460 |
%{baseinstdir}/program/libdbpool2.so |
1461 |
%{baseinstdir}/program/libdbtoolslo.so |
1462 |
%{baseinstdir}/program/libdbulo.so |
1463 |
%{baseinstdir}/program/libdeploymentmisclo.so |
1464 |
%{baseinstdir}/program/libdesktop_detectorlo.so |
1465 |
%{baseinstdir}/program/libdict_ja.so |
1466 |
%{baseinstdir}/program/libdict_zh.so |
1467 |
%{baseinstdir}/program/libdrawinglayerlo.so |
1468 |
%{baseinstdir}/program/libeditenglo.so |
1469 |
%{baseinstdir}/program/libembobj.so |
1470 |
%{baseinstdir}/program/libemboleobj.so |
1471 |
%{baseinstdir}/program/libevoab*.so |
1472 |
%{baseinstdir}/program/libevtattlo.so |
1473 |
%{baseinstdir}/program/libegilo.so |
1474 |
%{baseinstdir}/program/libemelo.so |
1475 |
%{baseinstdir}/program/libepblo.so |
1476 |
%{baseinstdir}/program/libepglo.so |
1477 |
%{baseinstdir}/program/libepplo.so |
1478 |
%{baseinstdir}/program/libepslo.so |
1479 |
%{baseinstdir}/program/libeptlo.so |
1480 |
%{baseinstdir}/program/liberalo.so |
1481 |
%{baseinstdir}/program/libetilo.so |
1482 |
%{baseinstdir}/program/libexplo.so |
1483 |
%{baseinstdir}/program/libfirebird_sdbclo.so |
1484 |
%{baseinstdir}/program/libicdlo.so |
1485 |
%{baseinstdir}/program/libicglo.so |
1486 |
%{baseinstdir}/program/libidxlo.so |
1487 |
%{baseinstdir}/program/libimelo.so |
1488 |
%{baseinstdir}/program/libindex_data.so |
1489 |
%{baseinstdir}/program/libipblo.so |
1490 |
%{baseinstdir}/program/libipdlo.so |
1491 |
%{baseinstdir}/program/libipslo.so |
1492 |
%{baseinstdir}/program/libiptlo.so |
1493 |
%{baseinstdir}/program/libipxlo.so |
1494 |
%{baseinstdir}/program/libiralo.so |
1495 |
%{baseinstdir}/program/libitglo.so |
1496 |
%{baseinstdir}/program/libitilo.so |
1497 |
%{baseinstdir}/program/libfilelo.so |
1498 |
%{baseinstdir}/program/libfilterconfiglo.so |
1499 |
%{baseinstdir}/program/libflatlo.so |
1500 |
%{baseinstdir}/program/libfrmlo.so |
1501 |
%{baseinstdir}/program/libguesslanglo.so |
1502 |
%{baseinstdir}/program/libhelplinkerlo.so |
1503 |
%{baseinstdir}/program/libhyphenlo.so |
1504 |
%{baseinstdir}/program/libjdbclo.so |
1505 |
%{baseinstdir}/program/liblnglo.so |
1506 |
%{baseinstdir}/program/libloglo.so |
1507 |
%{baseinstdir}/program/liblocaledata_en.so |
1508 |
%{baseinstdir}/program/liblocaledata_es.so |
1509 |
%{baseinstdir}/program/liblocaledata_euro.so |
1510 |
%{baseinstdir}/program/liblocaledata_others.so |
1511 |
%{baseinstdir}/program/libmcnttype.so |
1512 |
%{baseinstdir}/program/libmorklo.so |
1513 |
%{baseinstdir}/program/libmozbootstraplo.so |
1514 |
%{baseinstdir}/program/libmsfilterlo.so |
1515 |
%{baseinstdir}/program/libmtfrendererlo.so |
1516 |
%{baseinstdir}/program/libmysqllo.so |
1517 |
%{baseinstdir}/program/libodbclo.so |
1518 |
%{baseinstdir}/program/liboglcanvaslo.so |
1519 |
%{baseinstdir}/program/liboffacclo.so |
1520 |
%{baseinstdir}/program/libooxlo.so |
1521 |
%{baseinstdir}/program/libpcrlo.so |
1522 |
%{baseinstdir}/program/libpdffilterlo.so |
1523 |
%{baseinstdir}/program/libpllo.so |
1524 |
%{baseinstdir}/program/libprotocolhandlerlo.so |
1525 |
%{baseinstdir}/program/libqstart_gtklo.so |
1526 |
%{baseinstdir}/program/librecentfile.so |
1527 |
%{baseinstdir}/program/libreslo.so |
1528 |
%{baseinstdir}/program/libsaxlo.so |
1529 |
%{baseinstdir}/program/libscnlo.so |
1530 |
%{baseinstdir}/program/libscriptframe.so |
1531 |
%{baseinstdir}/program/libsdlo.so |
1532 |
%{baseinstdir}/program/libsdfiltlo.so |
1533 |
%{baseinstdir}/program/libsdbc2.so |
1534 |
%{baseinstdir}/program/libsdbtlo.so |
1535 |
%{baseinstdir}/program/libsddlo.so |
1536 |
%{baseinstdir}/program/libsduilo.so |
1537 |
%{baseinstdir}/program/libspelllo.so |
1538 |
%{baseinstdir}/program/libsrtrs1.so |
1539 |
%{baseinstdir}/program/libstoragefdlo.so |
1540 |
%{baseinstdir}/program/libsvgiolo.so |
1541 |
%{baseinstdir}/program/libsvxlo.so |
1542 |
%{baseinstdir}/program/libsvxcorelo.so |
1543 |
%{baseinstdir}/program/libswdlo.so |
1544 |
%{baseinstdir}/program/libswlo.so |
1545 |
%{baseinstdir}/program/libtextconv_dict.so |
1546 |
%{baseinstdir}/program/libtextconversiondlgslo.so |
1547 |
%{baseinstdir}/program/libtextfdlo.so |
1548 |
%{baseinstdir}/program/libodfflatxmllo.so |
1549 |
# TODO: shouldn't it have lo suffix? |
1550 |
%{baseinstdir}/program/libucbhelper.so |
1551 |
%{baseinstdir}/program/libucpchelp1.so |
1552 |
%{baseinstdir}/program/libucpdav1.so |
1553 |
%{baseinstdir}/program/libucpftp1.so |
1554 |
%{baseinstdir}/program/libucphier1.so |
1555 |
%{baseinstdir}/program/libucppkg1.so |
1556 |
%{baseinstdir}/program/libunordflo.so |
1557 |
%{baseinstdir}/program/libunopkgapp.so |
1558 |
%{baseinstdir}/program/libunoxmllo.so |
1559 |
%{baseinstdir}/program/libuuilo.so |
1560 |
%{baseinstdir}/program/libvbahelperlo.so |
1561 |
%{baseinstdir}/program/libvclplug_genlo.so |
1562 |
%{baseinstdir}/program/libvclplug_gtklo.so |
1563 |
%if %{build_gtk3} |
1564 |
%{baseinstdir}/program/libvclplug_gtk3lo.so |
1565 |
%endif |
1566 |
%{baseinstdir}/program/libxmlfalo.so |
1567 |
%{baseinstdir}/program/libxmlfdlo.so |
1568 |
%{baseinstdir}/program/libxoflo.so |
1569 |
%{baseinstdir}/program/libxsec_fw.so |
1570 |
%{baseinstdir}/program/libxsec_xmlsec.so |
1571 |
%{baseinstdir}/program/libxsltdlglo.so |
1572 |
%{baseinstdir}/program/libxsltfilterlo.so |
1573 |
%{baseinstdir}/program/libxstor.so |
1574 |
# TODO how useful this is ? |
1575 |
%{baseinstdir}/program/liblosessioninstalllo.so |
1576 |
%{baseinstdir}/program/libmigrationoo2lo.so |
1577 |
%{baseinstdir}/program/libmigrationoo3lo.so |
1578 |
%{baseinstdir}/program/libmsformslo.so |
1579 |
%{baseinstdir}/program/nsplugin |
1580 |
%{baseinstdir}/program/open-url |
1581 |
%{baseinstdir}/program/types/offapi.rdb |
1582 |
%{baseinstdir}/program/libpasswordcontainerlo.so |
1583 |
%{baseinstdir}/program/pagein-common |
1584 |
%{baseinstdir}/program/pluginapp.bin |
1585 |
%dir %{baseinstdir}/program/resource |
1586 |
%{baseinstdir}/program/resource/avmediaen-US.res |
1587 |
%{baseinstdir}/program/resource/accen-US.res |
1588 |
%{baseinstdir}/program/resource/basctlen-US.res |
1589 |
%{baseinstdir}/program/resource/biben-US.res |
1590 |
%{baseinstdir}/program/resource/chartcontrolleren-US.res |
1591 |
%{baseinstdir}/program/resource/cuien-US.res |
1592 |
%{baseinstdir}/program/resource/dbaen-US.res |
1593 |
%{baseinstdir}/program/resource/dbmmen-US.res |
1594 |
%{baseinstdir}/program/resource/dbuen-US.res |
1595 |
%{baseinstdir}/program/resource/dbwen-US.res |
1596 |
%{baseinstdir}/program/resource/deploymenten-US.res |
1597 |
%{baseinstdir}/program/resource/deploymentguien-US.res |
1598 |
%{baseinstdir}/program/resource/dkten-US.res |
1599 |
%{baseinstdir}/program/resource/editengen-US.res |
1600 |
%{baseinstdir}/program/resource/epsen-US.res |
1601 |
%{baseinstdir}/program/resource/euren-US.res |
1602 |
%{baseinstdir}/program/resource/fps_officeen-US.res |
1603 |
%{baseinstdir}/program/resource/frmen-US.res |
1604 |
%{baseinstdir}/program/resource/fween-US.res |
1605 |
%{baseinstdir}/program/resource/galen-US.res |
1606 |
%{baseinstdir}/program/resource/impen-US.res |
1607 |
%{baseinstdir}/program/resource/ofaen-US.res |
1608 |
%{baseinstdir}/program/resource/pcren-US.res |
1609 |
%{baseinstdir}/program/resource/pdffilteren-US.res |
1610 |
%{baseinstdir}/program/resource/sben-US.res |
1611 |
%{baseinstdir}/program/resource/scnen-US.res |
1612 |
%{baseinstdir}/program/resource/sden-US.res |
1613 |
%{baseinstdir}/program/resource/sfxen-US.res |
1614 |
%{baseinstdir}/program/resource/sdbten-US.res |
1615 |
%{baseinstdir}/program/resource/svlen-US.res |
1616 |
%{baseinstdir}/program/resource/svten-US.res |
1617 |
%{baseinstdir}/program/resource/svxen-US.res |
1618 |
%{baseinstdir}/program/resource/swen-US.res |
1619 |
%{baseinstdir}/program/resource/tplen-US.res |
1620 |
%{baseinstdir}/program/resource/uuien-US.res |
1621 |
%{baseinstdir}/program/resource/upden-US.res |
1622 |
%{baseinstdir}/program/resource/vclen-US.res |
1623 |
%{baseinstdir}/program/resource/wzien-US.res |
1624 |
%{baseinstdir}/program/resource/xmlsecen-US.res |
1625 |
%{baseinstdir}/program/resource/xsltdlgen-US.res |
1626 |
%{baseinstdir}/program/senddoc |
1627 |
%dir %{baseinstdir}/program/services |
1628 |
%{baseinstdir}/program/services/services.rdb |
1629 |
%{baseinstdir}/program/libsimplecanvaslo.so |
1630 |
%{baseinstdir}/program/libslideshowlo.so |
1631 |
%{baseinstdir}/program/libsofficeapp.so |
1632 |
%{baseinstdir}/program/libstringresourcelo.so |
1633 |
%{baseinstdir}/program/libsysshlo.so |
1634 |
%{baseinstdir}/program/libucpcmis1lo.so |
1635 |
%{baseinstdir}/program/libucpexpand1lo.so |
1636 |
%{baseinstdir}/program/libucpextlo.so |
1637 |
%{baseinstdir}/program/libucptdoc1lo.so |
1638 |
%{baseinstdir}/program/unorc |
1639 |
%{baseinstdir}/program/libupdatefeedlo.so |
1640 |
%{baseinstdir}/ure-link |
1641 |
%{baseinstdir}/program/uri-encode |
1642 |
%{baseinstdir}/program/libvbaeventslo.so |
1643 |
%{baseinstdir}/program/libvclcanvaslo.so |
1644 |
%{baseinstdir}/program/versionrc |
1645 |
%{baseinstdir}/program/xid-fullscreen-on-all-monitors |
1646 |
%dir %{baseinstdir}/share |
1647 |
%dir %{baseinstdir}/share/Scripts |
1648 |
%{baseinstdir}/share/Scripts/java |
1649 |
%dir %{baseinstdir}/share/autotext |
1650 |
%{baseinstdir}/share/autotext/en-US |
1651 |
%{baseinstdir}/share/basic |
1652 |
%dir %{baseinstdir}/share/config |
1653 |
%{baseinstdir}/share/config/images.zip |
1654 |
%{baseinstdir}/share/config/images_crystal.zip |
1655 |
%{baseinstdir}/share/config/images_galaxy.zip |
1656 |
%{baseinstdir}/share/config/images_hicontrast.zip |
1657 |
%{baseinstdir}/share/config/images_oxygen.zip |
1658 |
%{baseinstdir}/share/config/images_sifr.zip |
1659 |
%{baseinstdir}/share/config/images_tango.zip |
1660 |
%dir %{baseinstdir}/share/config/soffice.cfg |
1661 |
%{baseinstdir}/share/config/soffice.cfg/modules |
1662 |
%if %{with langpacks} |
1663 |
# UI translations go into langpacks |
1664 |
%exclude %{baseinstdir}/share/config/soffice.cfg/modules/*/ui/res |
1665 |
%endif |
1666 |
%{baseinstdir}/share/config/soffice.cfg/*/ui |
1667 |
%if %{with langpacks} |
1668 |
# UI translations go into langpacks |
1669 |
%exclude %{baseinstdir}/share/config/soffice.cfg/*/ui/res |
1670 |
%endif |
1671 |
%{baseinstdir}/share/config/webcast |
1672 |
%{baseinstdir}/share/config/wizard |
1673 |
%dir %{baseinstdir}/share/dtd |
1674 |
%{baseinstdir}/share/dtd/officedocument |
1675 |
%{baseinstdir}/share/gallery |
1676 |
%dir %{baseinstdir}/share/labels |
1677 |
%{baseinstdir}/share/labels/labels.xml |
1678 |
%dir %{baseinstdir}/share/psprint |
1679 |
%config %{baseinstdir}/share/psprint/psprint.conf |
1680 |
%{baseinstdir}/share/psprint/driver |
1681 |
%dir %{baseinstdir}/share/registry |
1682 |
%{baseinstdir}/share/registry/gnome.xcd |
1683 |
%{baseinstdir}/share/registry/lingucomponent.xcd |
1684 |
%{baseinstdir}/share/registry/main.xcd |
1685 |
%{baseinstdir}/share/registry/oo-ad-ldap.xcd.sample |
1686 |
%{baseinstdir}/share/registry/oo-ldap.xcd.sample |
1687 |
%{baseinstdir}/share/registry/Langpack-en-US.xcd |
1688 |
%dir %{baseinstdir}/share/registry/res |
1689 |
%{baseinstdir}/share/registry/res/fcfg_langpack_en-US.xcd |
1690 |
%dir %{baseinstdir}/share/template |
1691 |
%{baseinstdir}/share/template/en-US |
1692 |
%dir %{baseinstdir}/share/template/common |
1693 |
%{baseinstdir}/share/template/common/internal |
1694 |
%{baseinstdir}/share/template/common/layout |
1695 |
%{baseinstdir}/share/template/common/wizard |
1696 |
%{baseinstdir}/share/template/wizard |
1697 |
%dir %{baseinstdir}/share/wordbook |
1698 |
%{baseinstdir}/share/wordbook/en-GB.dic |
1699 |
%{baseinstdir}/share/wordbook/en-US.dic |
1700 |
%{baseinstdir}/share/wordbook/technical.dic |
1701 |
%{baseinstdir}/program/liblnthlo.so |
1702 |
%{_bindir}/unopkg |
1703 |
%{_mandir}/man1/unopkg.1* |
1704 |
#icons and mime |
1705 |
%{_datadir}/icons/*/*/*/libreoffice* |
1706 |
%{_datadir}/mime-info/libreoffice.* |
1707 |
%{baseinstdir}/program/libxmlsecurity.so |
1708 |
%{_datadir}/mime/packages/libreoffice.xml |
1709 |
%{baseinstdir}/program/libconfigmgrlo.so |
1710 |
%{baseinstdir}/program/libdesktopbe1lo.so |
1711 |
%{baseinstdir}/program/libfsstoragelo.so |
1712 |
%{baseinstdir}/program/libgconfbe1lo.so |
1713 |
%{baseinstdir}/program/libi18npoollo.so |
1714 |
%{baseinstdir}/program/libbasegfxlo.so |
1715 |
# TODO: shouldn't it have lo suffix? |
1716 |
%{baseinstdir}/program/libcomphelper.so |
1717 |
%{baseinstdir}/program/libfwelo.so |
1718 |
%{baseinstdir}/program/libfwilo.so |
1719 |
%{baseinstdir}/program/libfwklo.so |
1720 |
%{baseinstdir}/program/libfwllo.so |
1721 |
%{baseinstdir}/program/libfwmlo.so |
1722 |
%{baseinstdir}/program/libi18nlangtag.so |
1723 |
# TODO: shouldn't it have lo suffix? |
1724 |
%{baseinstdir}/program/libi18nutil.so |
1725 |
%{baseinstdir}/program/libpackage2.so |
1726 |
%{baseinstdir}/program/libsblo.so |
1727 |
%{baseinstdir}/program/libsfxlo.so |
1728 |
%{baseinstdir}/program/libsotlo.so |
1729 |
%{baseinstdir}/program/libspllo.so |
1730 |
%{baseinstdir}/program/libsvllo.so |
1731 |
%{baseinstdir}/program/libsvtlo.so |
1732 |
%{baseinstdir}/program/libtklo.so |
1733 |
%{baseinstdir}/program/libtllo.so |
1734 |
%{baseinstdir}/program/libucb1.so |
1735 |
%{baseinstdir}/program/libucpfile1.so |
1736 |
%{baseinstdir}/program/libutllo.so |
1737 |
%{baseinstdir}/program/libvcllo.so |
1738 |
%{baseinstdir}/program/libvclopengllo.so |
1739 |
%{baseinstdir}/program/libwriterperfectlo.so |
1740 |
%{baseinstdir}/program/libxmlscriptlo.so |
1741 |
%{baseinstdir}/program/libxolo.so |
1742 |
%{baseinstdir}/program/liblocalebe1lo.so |
1743 |
%{baseinstdir}/program/libucpgio1lo.so |
1744 |
%{baseinstdir}/program/types/oovbaapi.rdb |
1745 |
%if %with_mergedlibs |
1746 |
%{baseinstdir}/program/libmergedlo.so |
1747 |
%endif |
1748 |
#share unopkg |
1749 |
%dir %{baseinstdir}/share/extensions |
1750 |
%{baseinstdir}/share/extensions/package.txt |
1751 |
%{baseinstdir}/program/unopkg |
1752 |
%{baseinstdir}/program/unopkg.bin |
1753 |
%{baseinstdir}/program/bootstraprc |
1754 |
%{baseinstdir}/program/fundamentalrc |
1755 |
%{baseinstdir}/program/setuprc |
1756 |
%doc %{baseinstdir}/CREDITS.fodt |
1757 |
%doc %{baseinstdir}/LICENSE |
1758 |
%doc %{baseinstdir}/LICENSE.html |
1759 |
%doc %{baseinstdir}/LICENSE.fodt |
1760 |
%doc %{baseinstdir}/NOTICE |
1761 |
%{baseinstdir}/program/intro.* |
1762 |
%{baseinstdir}/program/soffice |
1763 |
%{baseinstdir}/program/soffice.bin |
1764 |
%{baseinstdir}/program/sofficerc |
1765 |
%{baseinstdir}/program/unoinfo |
1766 |
%{baseinstdir}/program/libnpsoplugin.so |
1767 |
%{baseinstdir}/program/oosplash |
1768 |
%{baseinstdir}/program/shell/ |
1769 |
%dir %{baseinstdir}/share/filter |
1770 |
%{baseinstdir}/share/filter/oox-drawingml-adj-names |
1771 |
%{baseinstdir}/share/filter/oox-drawingml-cs-presets |
1772 |
%{baseinstdir}/share/filter/vml-shape-types |
1773 |
%{baseinstdir}/share/xdg/ |
1774 |
%{baseinstdir}/program/redirectrc |
1775 |
%{_datadir}/applications/libreoffice-startcenter.desktop |
1776 |
#launchers |
1777 |
%{_bindir}/libreoffice |
1778 |
%if %{build_gtk3} |
1779 |
%{_bindir}/libreoffice-gtk3 |
1780 |
%endif |
1781 |
%{_bindir}/openoffice.org |
1782 |
%{_bindir}/soffice |
1783 |
%{_bindir}/ooffice |
1784 |
%{_bindir}/ooviewdoc |
1785 |
|
1786 |
# Exclude files that are already in libreoffice-java-common |
1787 |
%exclude %{baseinstdir}/program/classes/commonwizards.jar |
1788 |
%exclude %{baseinstdir}/program/classes/form.jar |
1789 |
%exclude %{baseinstdir}/program/classes/query.jar |
1790 |
%exclude %{baseinstdir}/program/classes/officebean.jar |
1791 |
%exclude %{baseinstdir}/program/classes/report.jar |
1792 |
%{_mandir}/man1/libreoffice.1* |
1793 |
%{_mandir}/man1/openoffice.org.1* |
1794 |
%{_mandir}/man1/soffice.1* |
1795 |
%{_mandir}/man1/ooffice.1* |
1796 |
%{_mandir}/man1/ooviewdoc.1* |
1797 |
%exclude %{baseinstdir}/program/classes/ScriptFramework.jar |
1798 |
%exclude %{baseinstdir}/program/classes/ScriptProviderForJava.jar |
1799 |
%exclude %{baseinstdir}/program/classes/table.jar |
1800 |
%exclude %{baseinstdir}/program/classes/unoil.jar |
1801 |
%exclude %{baseinstdir}/program/classes/XMergeBridge.jar |
1802 |
%exclude %{baseinstdir}/program/classes/xmerge.jar |
1803 |
%exclude %{baseinstdir}/program/libofficebean.so |
1804 |
%exclude %{baseinstdir}/share/Scripts/java |
1805 |
|
1806 |
%files base |
1807 |
%{baseinstdir}/help/en-US/sdatabase.* |
1808 |
%{baseinstdir}/program/classes/hsqldb.jar |
1809 |
%{baseinstdir}/program/classes/reportbuilder.jar |
1810 |
%{baseinstdir}/program/classes/sdbc_hsqldb.jar |
1811 |
%{baseinstdir}/program/libabplo.so |
1812 |
%if 0%{?rhel} |
1813 |
%{baseinstdir}/program/libfbembed.so.* |
1814 |
%endif |
1815 |
%{baseinstdir}/program/libdbplo.so |
1816 |
%{baseinstdir}/program/libhsqldb.so |
1817 |
%{baseinstdir}/program/librptlo.so |
1818 |
%{baseinstdir}/program/librptuilo.so |
1819 |
%{baseinstdir}/program/librptxmllo.so |
1820 |
%{baseinstdir}/program/resource/abpen-US.res |
1821 |
%{baseinstdir}/program/resource/cnren-US.res |
1822 |
%{baseinstdir}/program/resource/dbpen-US.res |
1823 |
%{baseinstdir}/program/resource/rpten-US.res |
1824 |
%{baseinstdir}/program/resource/rptuien-US.res |
1825 |
%{baseinstdir}/program/resource/sdbclen-US.res |
1826 |
%{baseinstdir}/program/resource/sdberren-US.res |
1827 |
%{baseinstdir}/share/registry/base.xcd |
1828 |
%{baseinstdir}/share/registry/reportbuilder.xcd |
1829 |
%{baseinstdir}/program/sbase |
1830 |
%{_datadir}/applications/libreoffice-base.desktop |
1831 |
%{_bindir}/oobase |
1832 |
%{_mandir}/man1/oobase.1* |
1833 |
|
1834 |
%files bsh |
1835 |
%{baseinstdir}/program/classes/ScriptProviderForBeanShell.jar |
1836 |
%{baseinstdir}/program/services/scriptproviderforbeanshell.rdb |
1837 |
%{baseinstdir}/share/Scripts/beanshell |
1838 |
|
1839 |
%files rhino |
1840 |
%{baseinstdir}/program/classes/js.jar |
1841 |
%{baseinstdir}/program/classes/ScriptProviderForJavaScript.jar |
1842 |
%{baseinstdir}/program/services/scriptproviderforjavascript.rdb |
1843 |
%{baseinstdir}/share/Scripts/javascript |
1844 |
|
1845 |
%files wiki-publisher |
1846 |
%docdir %{baseinstdir}/share/extensions/wiki-publisher/license |
1847 |
%{baseinstdir}/share/extensions/wiki-publisher |
1848 |
|
1849 |
%files nlpsolver |
1850 |
%docdir %{baseinstdir}/share/extensions/nlpsolver/help |
1851 |
%{baseinstdir}/share/extensions/nlpsolver |
1852 |
|
1853 |
%files ogltrans |
1854 |
%{baseinstdir}/program/libOGLTranslo.so |
1855 |
%dir %{baseinstdir}/share/config/soffice.cfg/simpress |
1856 |
%{baseinstdir}/share/config/soffice.cfg/simpress/transitions-ogl.xml |
1857 |
%{baseinstdir}/share/registry/ogltrans.xcd |
1858 |
|
1859 |
%files pdfimport |
1860 |
%{baseinstdir}/program/libpdfimportlo.so |
1861 |
%{baseinstdir}/program/xpdfimport |
1862 |
%{baseinstdir}/share/registry/pdfimport.xcd |
1863 |
%dir %{baseinstdir}/share/xpdfimport |
1864 |
%{baseinstdir}/share/xpdfimport/xpdfimport_err.pdf |
1865 |
|
1866 |
%_font_pkg -n %{fontname} opens___.ttf |
1867 |
%doc instdir/LICENSE |
1868 |
|
1869 |
%files calc |
1870 |
%{baseinstdir}/help/en-US/scalc.* |
1871 |
%{baseinstdir}/program/libanalysislo.so |
1872 |
%{baseinstdir}/program/libcalclo.so |
1873 |
%{baseinstdir}/program/libdatelo.so |
1874 |
%{baseinstdir}/program/libforlo.so |
1875 |
%{baseinstdir}/program/libforuilo.so |
1876 |
%{baseinstdir}/program/libpricinglo.so |
1877 |
%{baseinstdir}/program/libsclo.so |
1878 |
%{baseinstdir}/program/libscdlo.so |
1879 |
%{baseinstdir}/program/libscfiltlo.so |
1880 |
%{baseinstdir}/program/libscopencllo.so |
1881 |
%{baseinstdir}/program/libscuilo.so |
1882 |
%{baseinstdir}/program/libsolverlo.so |
1883 |
%{baseinstdir}/program/libwpftcalclo.so |
1884 |
%{baseinstdir}/program/resource/analysisen-US.res |
1885 |
%{baseinstdir}/program/resource/dateen-US.res |
1886 |
%{baseinstdir}/program/resource/foren-US.res |
1887 |
%{baseinstdir}/program/resource/foruien-US.res |
1888 |
%{baseinstdir}/program/resource/pricingen-US.res |
1889 |
%{baseinstdir}/program/resource/scen-US.res |
1890 |
%{baseinstdir}/program/resource/solveren-US.res |
1891 |
%{baseinstdir}/program/libvbaobjlo.so |
1892 |
%{baseinstdir}/share/registry/calc.xcd |
1893 |
%{baseinstdir}/program/pagein-calc |
1894 |
%{baseinstdir}/program/scalc |
1895 |
%{_datadir}/applications/libreoffice-calc.desktop |
1896 |
%{_bindir}/oocalc |
1897 |
%{_mandir}/man1/oocalc.1* |
1898 |
|
1899 |
%files draw |
1900 |
%{baseinstdir}/help/en-US/sdraw.* |
1901 |
%{baseinstdir}/share/registry/draw.xcd |
1902 |
%{baseinstdir}/program/pagein-draw |
1903 |
%{baseinstdir}/program/sdraw |
1904 |
%{_datadir}/applications/libreoffice-draw.desktop |
1905 |
%{_bindir}/oodraw |
1906 |
%{_mandir}/man1/oodraw.1* |
1907 |
|
1908 |
%files emailmerge |
1909 |
%{baseinstdir}/program/mailmerge.py* |
1910 |
%{baseinstdir}/program/msgbox.py* |
1911 |
%{baseinstdir}/program/officehelper.py* |
1912 |
|
1913 |
%files writer |
1914 |
%{baseinstdir}/help/en-US/swriter.* |
1915 |
%{baseinstdir}/program/libhwplo.so |
1916 |
%{baseinstdir}/program/liblwpftlo.so |
1917 |
%{baseinstdir}/program/libmswordlo.so |
1918 |
%{baseinstdir}/program/libswuilo.so |
1919 |
%{baseinstdir}/program/libt602filterlo.so |
1920 |
%{baseinstdir}/program/libwpftwriterlo.so |
1921 |
%{baseinstdir}/program/libwriterfilterlo.so |
1922 |
%{baseinstdir}/program/libvbaswobjlo.so |
1923 |
%{baseinstdir}/program/resource/t602filteren-US.res |
1924 |
%{baseinstdir}/share/registry/writer.xcd |
1925 |
%{baseinstdir}/program/pagein-writer |
1926 |
%{baseinstdir}/program/swriter |
1927 |
%{_datadir}/applications/libreoffice-writer.desktop |
1928 |
%{_bindir}/oowriter |
1929 |
%{_mandir}/man1/oowriter.1* |
1930 |
|
1931 |
%files impress |
1932 |
%{baseinstdir}/help/en-US/simpress.* |
1933 |
%{baseinstdir}/program/libanimcorelo.so |
1934 |
%{baseinstdir}/program/libplacewarelo.so |
1935 |
%{baseinstdir}/program/libPresentationMinimizerlo.so |
1936 |
%{baseinstdir}/program/libPresenterScreenlo.so |
1937 |
%{baseinstdir}/program/libwpftimpresslo.so |
1938 |
%dir %{baseinstdir}/share/config/soffice.cfg/simpress |
1939 |
%{baseinstdir}/share/config/soffice.cfg/simpress/effects.xml |
1940 |
%{baseinstdir}/share/config/soffice.cfg/simpress/layoutlist.xml |
1941 |
%{baseinstdir}/share/config/soffice.cfg/simpress/objectlist.xml |
1942 |
%{baseinstdir}/share/config/soffice.cfg/simpress/transitions.xml |
1943 |
%{baseinstdir}/share/registry/impress.xcd |
1944 |
%{baseinstdir}/program/pagein-impress |
1945 |
%{baseinstdir}/program/simpress |
1946 |
%{_datadir}/applications/libreoffice-impress.desktop |
1947 |
%{_bindir}/ooimpress |
1948 |
%{_mandir}/man1/ooimpress.1* |
1949 |
|
1950 |
%files math |
1951 |
%{baseinstdir}/help/en-US/smath.* |
1952 |
%{baseinstdir}/program/libsmlo.so |
1953 |
%{baseinstdir}/program/libsmdlo.so |
1954 |
%{baseinstdir}/program/resource/smen-US.res |
1955 |
%{baseinstdir}/share/registry/math.xcd |
1956 |
%{baseinstdir}/program/smath |
1957 |
%{_datadir}/applications/libreoffice-math.desktop |
1958 |
%{_bindir}/oomath |
1959 |
%{_mandir}/man1/oomath.1* |
1960 |
|
1961 |
%files graphicfilter |
1962 |
%{baseinstdir}/program/libflashlo.so |
1963 |
%{baseinstdir}/program/libgraphicfilterlo.so |
1964 |
%{baseinstdir}/program/libsvgfilterlo.so |
1965 |
%{baseinstdir}/program/libwpftdrawlo.so |
1966 |
%{baseinstdir}/share/registry/graphicfilter.xcd |
1967 |
|
1968 |
%files xsltfilter |
1969 |
%{baseinstdir}/share/xslt |
1970 |
%{baseinstdir}/share/registry/xsltfilter.xcd |
1971 |
%{_datadir}/applications/libreoffice-xsltfilter.desktop |
1972 |
|
1973 |
%files postgresql |
1974 |
%{baseinstdir}/program/libpostgresql-sdbclo.so |
1975 |
%{baseinstdir}/program/libpostgresql-sdbc-impllo.so |
1976 |
%{baseinstdir}/program/postgresql-sdbc.ini |
1977 |
%{baseinstdir}/program/services/postgresql-sdbc.rdb |
1978 |
%{baseinstdir}/share/registry/postgresql.xcd |
1979 |
|
1980 |
%files ure |
1981 |
%doc instdir/LICENSE |
1982 |
%{ureinstdir} |
1983 |
|
1984 |
%files sdk |
1985 |
%{sdkinstdir}/ |
1986 |
%exclude %{sdkinstdir}/docs/ |
1987 |
%exclude %{sdkinstdir}/examples/ |
1988 |
|
1989 |
%files sdk-doc |
1990 |
%docdir %{sdkinstdir}/docs |
1991 |
%{sdkinstdir}/docs/ |
1992 |
%{sdkinstdir}/examples/ |
1993 |
|
1994 |
%files headless |
1995 |
%{baseinstdir}/program/libbasebmplo.so |
1996 |
%{baseinstdir}/program/libvclplug_svplo.so |
1997 |
|
1998 |
%files pyuno |
1999 |
%{baseinstdir}/program/libpyuno.so |
2000 |
%{baseinstdir}/program/pythonloader.py* |
2001 |
%{baseinstdir}/program/libpythonloaderlo.so |
2002 |
%{baseinstdir}/program/pythonloader.unorc |
2003 |
%{baseinstdir}/program/pythonscript.py* |
2004 |
%{baseinstdir}/program/pyuno.so |
2005 |
%{baseinstdir}/program/services/pyuno.rdb |
2006 |
%{baseinstdir}/program/services/scriptproviderforpython.rdb |
2007 |
%{baseinstdir}/program/wizards |
2008 |
%dir %{baseinstdir}/share/Scripts |
2009 |
%{baseinstdir}/share/Scripts/python |
2010 |
%exclude %{baseinstdir}/share/Scripts/python/LibreLogo |
2011 |
%{python3_sitearch}/uno.py* |
2012 |
%{python3_sitearch}/unohelper.py* |
2013 |
%{python3_sitearch}/__pycache__/uno.cpython-* |
2014 |
%{python3_sitearch}/__pycache__/unohelper.cpython-* |
2015 |
%{baseinstdir}/share/registry/pyuno.xcd |
2016 |
|
2017 |
%files librelogo |
2018 |
%{baseinstdir}/share/registry/librelogo.xcd |
2019 |
%{baseinstdir}/share/Scripts/python/LibreLogo |
2020 |
|
2021 |
%files glade |
2022 |
%{baseinstdir}/program/ui-previewer |
2023 |
%{_datadir}/glade3/catalogs/libreoffice-catalog.xml |
2024 |
|
2025 |
%if %{build_kde} |
2026 |
%files kde |
2027 |
%{baseinstdir}/program/kde-open-url |
2028 |
%{baseinstdir}/program/libkde4be1lo.so |
2029 |
%{baseinstdir}/program/libvclplug_kde4lo.so |
2030 |
%else |
2031 |
%{baseinstdir}/program/kde-open-url |
2032 |
%endif |
2033 |
|
2034 |
%files appdata |
2035 |
%doc instdir/LICENSE |
2036 |
%dir %{_datadir}/appdata |
2037 |
%{_datadir}/appdata/*.appdata.xml |
2038 |
|
2039 |
|
2040 |
%files java-common |
2041 |
%dir %{baseinstdir}/program/classes |
2042 |
%{baseinstdir}/program/classes/commonwizards.jar |
2043 |
%{baseinstdir}/program/classes/form.jar |
2044 |
%{baseinstdir}/program/classes/query.jar |
2045 |
%{baseinstdir}/program/classes/officebean.jar |
2046 |
%{baseinstdir}/program/classes/report.jar |
2047 |
%{baseinstdir}/program/classes/reportbuilderwizard.jar |
2048 |
%{baseinstdir}/program/classes/ScriptFramework.jar |
2049 |
%{baseinstdir}/program/classes/ScriptProviderForJava.jar |
2050 |
%{baseinstdir}/program/classes/table.jar |
2051 |
%{baseinstdir}/program/classes/unoil.jar |
2052 |
%{baseinstdir}/program/classes/XMergeBridge.jar |
2053 |
%{baseinstdir}/program/classes/xmerge.jar |
2054 |
%{baseinstdir}/program/libofficebean.so |
2055 |
%{baseinstdir}/share/Scripts/java |
2056 |
%exclude %{baseinstdir}/program/classes/smoketest.jar |
2057 |
|