/[packages]/cauldron/libreoffice/branches/3.5/current/SPECS/libreoffice.spec
ViewVC logotype

Contents of /cauldron/libreoffice/branches/3.5/current/SPECS/libreoffice.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 184057 - (show annotations) (download)
Sun Dec 18 22:38:15 2011 UTC (8 years, 7 months ago) by dmorgan
File size: 84865 byte(s)
SILENT: Resolves: rhbz#761009 IFSD_Equal is asymmetrical

1 # rhbz#465664 jar-repacking breaks help by reordering META-INF/MANIFEST.MF
2 %define __jar_repack %{nil}
3 # don't worry about whitespace for now
4 %define _default_patch_flags -s -l
5 %define _default_patch_fuzz 2
6 %define Werror_cflags %nil
7 %define vendoroption --with-vendor="Mageia"
8 # undef to get english only and no-langpacks for a faster smoketest build
9 %define langpacks 1
10 # make it easier to download sources from pre-release site
11 # http://dev-builds.libreoffice.org/pre-releases/src
12 %define source_url http://download.documentfoundation.org/libreoffice/src/3.5.0/
13 # whether to use stlport or gcc's stl, we're basically locked to stlport for
14 # i386 to support third party uno components and add-ons designed to work with
15 # vanilla OOo.
16 %ifarch %{ix86}
17 %define stlport_abi_lockin 1
18 %else
19 %define stlport_abi_lockin 0
20 %endif
21
22 %if %{stlport_abi_lockin}
23 %define stlflags --with-stlport
24 %else
25 %define stlflags --without-stlport
26 %endif
27
28 %if %{langpacks}
29 %define langpack_langs en-US af ar as bg bn ca cs cy da de dz el es et eu fi fr ga gl gu he hi hr hu it ja ko kn lt mai ml mr nb nl nn nr nso or pa-IN pl pt pt-BR ro ru sh si sk sl sr ss st sv ta te th tn tr ts uk ve xh zh-CN zh-TW zu
30 %define with_lang --with-lang="%{langpack_langs}"
31 %else
32 %define langpack_langs en-US
33 %define with_lang ''
34 %endif
35
36 %define _requires_exceptions libjawt.so\\|libmyspell.so\\|libstlport_gcc.so\\|libmono.so\\|mono\\|devel(libstlport_gcc)\\|libxmlreader.so\\|libcomphelp4gcc3.so
37 %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
38
39 Summary: Free Software Productivity Suite
40 Name: libreoffice
41 Version: 3.4.99.1
42 Release: %mkrel 1
43 License: LGPLv3 and LGPLv2+ and BSD and (MPLv1.1 or GPLv2 or LGPLv2 or Netscape) and (CDDL or GPLv2) and Public Domain
44 Group: Office
45 URL: http://www.documentfoundation.org/develop
46
47 Source0: %{source_url}/libreoffice-core-%{version}.tar.xz
48 Source1: %{source_url}/libreoffice-binfilter-%{version}.tar.xz
49 Source2: %{source_url}/libreoffice-help-%{version}.tar.xz
50 Source3: %{source_url}/libreoffice-translations-%{version}.tar.xz
51 Source4: http://dev-www.libreoffice.org/extern/185d60944ea767075d27247c3162b3bc-unowinreg.dll
52 Source5: redhat-langpacks.tar.gz
53 Source6: libreoffice-multiliblauncher.sh
54 Source7: http://hg.services.openoffice.org/binaries/fdb27bfe2dbe2e7b57ae194d9bf36bab-SampleICC-1.3.2.tar.gz
55 Source8: http://hg.services.openoffice.org/binaries/a7983f859eafb2677d7ff386a023bc40-xsltml_2.1.2.zip
56 Source9: http://hg.services.openoffice.org/binaries/1f24ab1d39f4a51faf22244c94a6203f-xmlsec1-1.2.14.tar.gz
57 Source10: http://hg.services.openoffice.org/binaries/798b2ffdc8bcfe7bca2cf92b62caf685-rhino1_5R5.zip
58 Source11: http://hg.services.openoffice.org/binaries/35c94d2df8893241173de1d16b6034c0-swingExSrc.zip
59 Source12: http://hg.services.openoffice.org/binaries/ada24d37d8d638b3d8a9985e80bc2978-source-9.0.0.7-bj.zip
60 Source13: http://hg.services.openoffice.org/binaries/18f577b374d60b3c760a3a3350407632-STLport-4.5.tar.gz
61 #Unfortunately later versions of hsqldb changed the file format, so if we use a later version we loose
62 #backwards compatability.
63 Source14: http://hg.services.openoffice.org/binaries/17410483b5b5f267aa18b7e00b65e6e0-hsqldb_1_8_0.zip
64 Source15: http://dev-www.libreoffice.org/extern/b4cae0700aa1c2aef7eb7f345365e6f1-translate-toolkit-1.8.1.tar.bz2
65 Source18: http://dev-www.libreoffice.org/src/a8b25a0bf696fd126a08319d88998492-libvisio-0.0.11.tar.bz2
66 Source19: http://dev-www.libreoffice.org/src/e1c178b18f130b40494561f02bc1a948-libexttextcat-3.2.0.tar.bz2
67 Source20: http://dev-www.libreoffice.org/src/7c2549f6b0a8bb604e6c4c729ffdcfe6-libcmis-0.1.0.tar.gz
68 # TODO: IIRC mysql-connector-cpp is in Fedora. Is it usable?
69 Source21: http://dev-www.libreoffice.org/src/0981bda6548a8c8233ffce2b6e4b2a23-mysql-connector-c++-1.1.0.tar.gz
70 Source22: http://dev-www.libreoffice.org/src/cc8eb870d6a324d36575420efd856319-libcdr-0.0.0.tar.bz2
71 BuildRequires: zip
72 BuildRequires: findutils
73 BuildRequires: autoconf
74 BuildRequires: flex
75 BuildRequires: bison
76 BuildRequires: icu
77 BuildRequires: gperf
78 BuildRequires: gcc-c++
79 BuildRequires: binutils
80 BuildRequires: java-1.6.0-devel
81 BuildRequires: boost-devel
82 BuildRequires: zlib-devel
83 BuildRequires: python-devel
84 BuildRequires: expat-devel
85 BuildRequires: libxml2-devel
86 BuildRequires: libxslt-devel
87 BuildRequires: bc
88 BuildRequires: neon-devel
89 BuildRequires: libcurl-devel
90 BuildRequires: libidn-devel
91 BuildRequires: pam-devel
92 BuildRequires: cups-devel
93 BuildRequires: libxext-devel
94 BuildRequires: libxt-devel
95 BuildRequires: libice-devel
96 BuildRequires: libjpeg-devel
97 BuildRequires: make
98 BuildRequires: libwpd-devel >= 0.9.0
99 BuildRequires: hunspell-devel
100 BuildRequires: unixODBC-devel
101 BuildRequires: db-devel
102 BuildRequires: sane-devel
103 BuildRequires: libicu-devel
104 BuildRequires: perl(Archive::Zip)
105 BuildRequires: freetype-devel
106 BuildRequires: gtk2-devel
107 BuildRequires: pkgconfig(ORBit-2.0)
108 BuildRequires: pkgconfig(dbus-glib-1) >= 0.70
109 BuildRequires: desktop-file-utils
110 BuildRequires: hyphen-devel
111 BuildRequires: evolution-data-server-devel
112 BuildRequires: xulrunner-devel
113 BuildRequires: libtextcat-devel
114 BuildRequires: nss-devel
115 BuildRequires: gstreamer0.10-devel
116 BuildRequires: libgstreamer0.10-plugins-base-devel
117 BuildRequires: openssl-devel
118 BuildRequires: mdds-devel
119 BuildRequires: lpsolve-devel
120 BuildRequires: bsh
121 BuildRequires: lucene >= 0:2.4.1
122 BuildRequires: redland-devel
123 BuildRequires: ant
124 BuildRequires: ant-apache-regexp
125 BuildRequires: rsync
126 BuildRequires: jakarta-commons-codec
127 BuildRequires: jakarta-commons-httpclient
128 BuildRequires: cppunit-devel
129 BuildRequires: jakarta-commons-lang
130 BuildRequires: pkgconfig(poppler)
131 BuildRequires: pkgconfig(poppler-glib)
132 BuildRequires: junit4
133 BuildRequires: pentaho-reporting-flow-engine
134 BuildRequires: mythes-devel
135 BuildRequires: graphite2-devel
136 BuildRequires: lucene-contrib >= 0:2.4.1
137 BuildRequires: libwpg-devel >= 1:0.2.0
138 BuildRequires: libwps-devel >= 1:0.2.0
139 BuildRequires: vigra-devel
140 BuildRequires: fontpackages-devel
141 BuildRequires: librsvg2-devel
142 # for the KDE subpackage
143 BuildRequires: kdelibs4-devel
144 BuildRequires: font(:lang=en)
145 BuildRequires: perl(Archive::Zip)
146 BuildRequires: perl(Digest::MD5)
147
148 # Fedora patches
149 Patch1: openoffice.org-2.0.2.rh188467.printingdefaults.patch
150 Patch2: openoffice.org-2.4.0.ooo86080.unopkg.bodge.patch
151 Patch3: openoffice.org-3.0.0.ooo88341.sc.verticalboxes.patch
152 Patch4: openoffice.org-3.1.0.oooXXXXX.solenv.allowmissing.patch
153 Patch5: openoffice.org-3.1.0.ooo101274.opening-a-directory.patch
154 Patch6: openoffice.org-3.1.1.ooo105784.vcl.sniffscriptforsubs.patch
155 Patch7: libreoffice-installfix.patch
156 Patch13: 0001-Resolves-rhbz-761009-IFSD_Equal-is-asymmetrical.patch
157 Patch14: 0001-Resolves-rhbz-767708-avoid-SIGBUS-writing-to-overcom.patch
158 Patch15: 0001-force-gbuild-stage-for-CustomTargets.patch
159 Patch16: 0001-these-translations-do-already-exist-in-translations-.patch
160 Patch17: 0001-fix-syntactic-error.patch
161 Patch18: 0001-Fix-typo-and-clean-up.patch
162
163 # Mageia patches
164 Patch100: libreoffice-fix-string.patch
165
166 # libreoffice metapackage requires all of the programs
167 Requires: %{name}-base = %{version}
168 Requires: %{name}-calc = %{version}
169 Requires: %{name}-draw = %{version}
170 Requires: %{name}-impress = %{version}
171 Requires: %{name}-math = %{version}
172 Suggests: %{name}-pdfimport
173 Requires: %{name}-writer = %{version}
174 Obsoletes: openoffice.org < 1:3.3.1
175 Provides: openoffice.org = 1:%{version}-%{release}
176
177 %{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}
178 %define instdir %{_libdir}
179 %define baseinstdir %{instdir}/libreoffice
180 %define ureinstdir %{baseinstdir}/ure
181 %define sdkinstdir %{baseinstdir}/sdk
182 %define fontname opensymbol
183 %define SOPOST l*
184
185 %description
186 LibreOffice is an Open Source, community-developed, office productivity suite.
187 It includes the key desktop applications, such as a word processor,
188 spreadsheet, presentation manager, formula editor and drawing program, with a
189 user interface and feature set similar to other office suites. Sophisticated
190 and flexible, LibreOffice also works transparently with a variety of file
191 formats, including Microsoft Office File Formats.
192
193 %package core
194 Summary: Core modules for LibreOffice
195 Group: Office
196 Requires: %{name}-%{fontname}-fonts = %{version}-%{release}
197 Requires: %{name}-ure = %{version}-%{release}
198 Requires: fonts-ttf-liberation
199 Requires: fonts-ttf-dejavu
200 Requires: hunspell
201 Requires: hyphen >= 2.4
202 Suggests: hyphen-en
203 Suggests: autocorr-en
204 Suggests: hunspell-en
205 Requires: lucene >= 0:2.4.1
206 Requires(pre): gtk2 >= 2.9.4
207 Requires(post): gtk2 >= 2.9.4
208 Requires(preun): gtk2 >= 2.9.4
209 Requires(postun): gtk2 >= 2.9.4
210 Obsoletes: openoffice.org-core < 1:3.3.1
211 Provides: openoffice.org-core = 1:%version-%release
212 Obsoletes: openoffice.org-common < 1:3.3.1
213 Provides: openoffice.org-common = 1:%version-%release
214 Obsoletes: openoffice.org-brand < 1:3.3.1, broffice.org-brand < 1:3.3.1
215 Obsoletes: openoffice.org-filter-binfilter < 1:3.3.1
216 Provides: openoffice.org-filter-binfilter = 1:%version-%release
217 Obsoletes: openoffice.org-help-en_US < 1:3.3.1
218 Provides: openoffice.org-help-en_US = 1:%version-%release
219 Obsoletes: openoffice.org-help-en_GB < 1:3.3.1
220 Provides: openoffice.org-help-en_GB = 1:%version-%release
221 Obsoletes: openoffice.org-langpack-ms < 1:3.3.1
222 Obsoletes: libreoffice-langpack-ms < 1:3.3.99.1
223 Obsoletes: openoffice.org-langpack-ur < 1:3.3.1
224 Obsoletes: libreoffice-langpack-ur < 1:3.3.99.1
225 Provides: libreoffice-style-tango = %{version}-%{release}
226 Provides: libreoffice-style-oxygen = %{version}-%{release}
227 Conflicts: %name-ure < 3.3.2.2-7
228 Obsoletes: openoffice.org-testtools < 1:3.3.1
229 Obsoletes: libreoffice-testtools < 3.4.99.1
230
231 %description core
232 The shared core libraries and support files for LibreOffice.
233
234 %package pyuno
235 Summary: Python support for LibreOffice
236 Group: Development/Other
237 Requires: %{name}-core = %{version}-%{release}
238 Requires: %{name}-ure = %{version}-%{release}
239 Requires: python
240 Requires(pre): %{name}-core
241 Requires(post): %{name}-core
242 Requires(preun): %{name}-core
243 Requires(postun): %{name}-core
244 Obsoletes: openoffice.org-pyuno < 1:3.3.1
245 Provides: openoffice.org-pyuno = 1:%version-%release
246
247 %description pyuno
248 Python bindings for the LibreOffice UNO component model. Allows scripts both
249 external to LibreOffice and within the internal LibreOffice scripting framework
250 to be written in python.
251
252 %package base
253 Summary: Database front-end for LibreOffice
254 Group: Office
255 Requires: postgresql-jdbc
256 Requires: %{name}-ure = %{version}-%{release}
257 Requires: %{name}-core = %{version}-%{release}
258 Requires: %{name}-calc = %{version}-%{release}
259 Requires: hsqldb
260 Suggests: %{name}-java-common = %{version}-%release
261 Obsoletes: openoffice.org-base < 1:3.3.1, broffice.org-base < 1:3.3.1
262 Provides: openoffice.org-base = 1:%version-%release
263 Obsoletes: openoffice.org-style < 1:3.3.1
264 Provides: openoffice.org-style = 1:%version-%release
265 Obsoletes: openoffice.org-style-crystal < 1:3.3.1
266 Provides: openoffice.org-style-crystal = 1:%version-%release
267 Obsoletes: openoffice.org-style-oxygen < 1:3.3.1
268 Provides: openoffice.org-style-oxygen = 1:%version-%release
269
270 %description base
271 GUI database front-end for LibreOffice. Allows creation and management of
272 databases through a GUI.
273
274 %package report-builder
275 Summary: Create database reports from LibreOffice
276 Group: Office
277 Requires: pentaho-reporting-flow-engine
278 Requires: %{name}-base = %{version}-%{release}
279 Requires(pre): %{name}-core
280 Requires(post): %{name}-core
281 Requires(preun): %{name}-core
282 Requires(postun): %{name}-core
283 Obsoletes: openoffice.org-report-builder < 1:3.3.1
284
285 %description report-builder
286 Creates database reports from LibreOffice databases. The report builder can
287 define group and page headers as well as group, page footers and calculation
288 fields to accomplish complex database reports.
289
290 %package bsh
291 Summary: BeanShell support for LibreOffice
292 Group: Development/Other
293 Requires: bsh
294 Requires: %{name}-core = %{version}-%{release}
295 Requires(pre): %{name}-core
296 Requires(post): %{name}-core
297 Requires(preun): %{name}-core
298 Requires(postun): %{name}-core
299 Obsoletes: openoffice.org-bsh < 1:3.3.1
300 Provides: openoffice.org-bsh < 1:%version-%release
301
302 %description bsh
303 Support BeanShell scripts in LibreOffice.
304
305 %package rhino
306 Summary: JavaScript support for LibreOffice
307 Group: Development/Other
308 Requires: %{name}-core = %{version}-%{release}
309 Requires(pre): %{name}-core
310 Requires(post): %{name}-core
311 Requires(preun): %{name}-core
312 Requires(postun): %{name}-core
313 Obsoletes: openoffice.org-rhino < 1:3.3.1
314
315
316 %description rhino
317 Support JavaScript scripts in LibreOffice.
318
319 %package wiki-publisher
320 Summary: Create Wiki articles on MediaWiki servers with LibreOffice
321 Group: Office
322 Requires: jakarta-commons-codec, jakarta-commons-httpclient
323 Requires: jakarta-commons-lang, jakarta-commons-logging
324 Requires: %{name}-writer = %{version}-%{release}
325 Requires(pre): %{name}-core
326 Requires(post): %{name}-core
327 Requires(preun): %{name}-core
328 Requires(postun): %{name}-core
329 Obsoletes: openoffice.org-wiki-publisher < 1:3.3.1
330
331 %description wiki-publisher
332 The Wiki Publisher enables you to create Wiki articles on MediaWiki servers
333 without having to know the syntax of the MediaWiki markup language. Publish
334 your new and existing documents transparently with writer to a wiki page.
335
336 %package ogltrans
337 Summary: 3D OpenGL slide transitions for LibreOffice
338 Group: Office
339 Requires: %{name}-impress = %{version}-%{release}
340 Requires(pre): %{name}-core
341 Obsoletes: openoffice.org-ogltrans < 1:3.3.1
342
343 %description ogltrans
344 OpenGL Transitions enable 3D slide transitions to be used in LibreOffice.
345 Requires good quality 3D support for your graphics card for best experience.
346
347 %package presentation-minimizer
348 Summary: Shrink LibreOffice presentations
349 Group: Office
350 Requires: %{name}-impress = %{version}-%{release}
351 Requires(pre): %{name}-core
352 Requires(post): %{name}-core
353 Requires(preun): %{name}-core
354 Requires(postun): %{name}-core
355 Obsoletes: openoffice.org-presentation-minimizer < 1:3.3.1
356
357 %description presentation-minimizer
358 The Presentation Minimizer is used to reduce the file size of the current
359 presentation. Images will be compressed, and data that is no longer needed will
360 be removed.
361
362 %package presenter-screen
363 Summary: Presenter Screen for LibreOffice Presentations
364 Group: Office
365 Requires: %{name}-impress = %{version}-%{release}
366 Requires(pre): %{name}-core
367 Requires(post): %{name}-core
368 Requires(preun): %{name}-core
369 Requires(postun): %{name}-core
370 Obsoletes: openoffice.org-presenter-screen < 1:3.3.1
371
372 %description presenter-screen
373 The Presenter Screen is used to provides information on a second screen, that
374 typically is not visible to the audience when delivering a presentation. e.g.
375 slide notes.
376
377 %package pdfimport
378 Summary: PDF Importer for LibreOffice Draw
379 Group: Office
380 Requires: %{name}-draw = %{version}-%{release}
381 Requires(pre): %{name}-core
382 Requires(post): %{name}-core
383 Requires(preun): %{name}-core
384 Requires(postun): %{name}-core
385 Obsoletes: openoffice.org-pdfimport < 1:3.3.1
386
387 %description pdfimport
388 The PDF Importer imports PDF into drawing documents to preserve layout
389 and enable basic editing of PDF documents.
390
391 %package %{fontname}-fonts
392 Summary: LibreOffice dingbats font
393 Group: System/Fonts/True type
394 Requires: fontpackages-filesystem
395 Obsoletes: openoffice.org-fonts < 1:3.3.1
396 Obsoletes: openoffice.org-opensymbol-fonts < 1:3.3.1
397 BuildArch: noarch
398
399 %description %{fontname}-fonts
400 A dingbats font, OpenSymbol, suitable for use by LibreOffice for bullets and
401 mathematical symbols.
402
403 %package writer
404 Summary: LibreOffice Word Processor Application
405 Group: Office
406 Requires: %{name}-core = %{version}-%{release}
407 Requires: %{name}-ure = %{version}-%{release}
408 Obsoletes: openoffice.org-writer-core < 1:3.3.1
409 Obsoletes: openoffice.org-writer < 1:3.3.1, broffice.org-writer < 1:3.3.1
410 Provides: openoffice.org-writer = 1:%{version}-%{release}
411 Obsoletes: openoffice.org-writer2latex < 1:3.3.1
412 Provides: openoffice.org-writer2latex = 1:%{version}-%{release}
413 Obsoletes: openoffice.org-writer2xhtml < 1:3.3.1
414 Provides: openoffice.org-writer2xhtml = 1:%{version}-%{release}
415
416 %description writer
417 The LibreOffice Word Processor application.
418
419 %package emailmerge
420 Summary: Email mail-merge component for LibreOffice
421 Group: Office
422 Requires: %{name}-writer = %{version}-%{release}
423 Requires: %{name}-pyuno = %{version}-%{release}
424 Obsoletes: openoffice.org-emailmerge < 1:3.3.1
425
426 %description emailmerge
427 Enables the LibreOffice writer module to mail-merge to email.
428
429 %package calc
430 Summary: LibreOffice Spreadsheet Application
431 Group: Office
432 Requires: %{name}-core = %{version}-%{release}
433 Requires: %{name}-ure = %{version}-%{release}
434 Obsoletes: openoffice.org-calc-core < 1:3.3.1
435 Obsoletes: openoffice.org-calc < 1:3.3.1, broffice.org-calc < 1:3.3.1
436
437 %description calc
438 The LibreOffice Spreadsheet application.
439
440 %package draw
441 Summary: LibreOffice Drawing Application
442 Group: Office
443 Requires: %{name}-core = %{version}-%{release}
444 Requires: %{name}-ure = %{version}-%{release}
445 Requires: %{name}-pdfimport = %{version}-%{release}
446 Requires: %{name}-graphicfilter = %{version}-%{release}
447 Obsoletes: openoffice.org-draw-core < 1:3.3.1
448 Obsoletes: openoffice.org-draw < 1:3.3.1, broffice.org-draw < 1:3.3.1
449 provides: openoffice.org-draw = 1:%{version}-%{release}
450
451 %description draw
452 The LibreOffice Drawing Application.
453
454 %package impress
455 Summary: LibreOffice Presentation Application
456 Group: Office
457 Requires: %{name}-core = %{version}-%{release}
458 Requires: %{name}-ure = %{version}-%{release}
459 Requires: %{name}-presenter-screen = %{version}-%{release}
460 Obsoletes: openoffice.org-impress-core < 1:3.3.1
461 Obsoletes: openoffice.org-impress < 1:3.3.1, broffice.org-impress < 1:3.3.1
462 Provides: openoffice.org-impress= 1:%{version}-%{release}
463 %description impress
464 The LibreOffice Presentation Application.
465
466 %package math
467 Summary: LibreOffice Equation Editor Application
468 Group: Office
469 Requires: %{name}-core = %{version}-%{release}
470 Requires: %{name}-ure = %{version}-%{release}
471 Obsoletes: openoffice.org-math-core < 1:3.3.1
472 Obsoletes: openoffice.org-math < 1:3.3.1, broffice.org-math < 1:3.3.1
473
474 %description math
475 The LibreOffice Equation Editor Application.
476
477 %package graphicfilter
478 Summary: LibreOffice Extra Graphic filters
479 Group: Office
480 Requires: %{name}-ure = %{version}-%{release}
481 Requires: %{name}-core = %{version}-%{release}
482 Obsoletes: openoffice.org-graphicfilter < 1:3.3.1
483
484 %description graphicfilter
485 The graphicfilter module for LibreOffice provides graphic filters, e.g. svg and
486 flash filters.
487
488 %package xsltfilter
489 Summary: Optional xsltfilter module for LibreOffice
490 Group: Office
491 Requires: %{name}-core = %{version}-%{release}
492 Obsoletes: openoffice.org-xsltfilter < 1:3.3.1
493
494 %description xsltfilter
495 The xsltfilter module for LibreOffice, provides additional docbook and
496 xhtml export transforms. Install this to enable docbook export.
497
498 %package javafilter
499 Summary: Optional javafilter module for LibreOffice
500 Group: Office
501 Requires: %{name}-core = %{version}-%{release}
502 Obsoletes: openoffice.org-javafilter < 1:3.3.1
503
504 %description javafilter
505 The javafilter module for LibreOffice, provides additional AportisDoc,
506 Pocket Excel and Pocket Word import filters.
507
508 %package ure
509 Summary: UNO Runtime Environment
510 Group: Development/Other
511 Requires: unzip
512 Suggests: %name-java-common = %version-%release
513 Obsoletes: openoffice.org-ure < 1:3.3.1
514 Conflicts: libreoffice-core <= 3.3.2.2-5
515
516 %description ure
517 UNO is the component model of LibreOffice. UNO offers interoperability between
518 programming languages, other components models and hardware architectures,
519 either in process or over process boundaries, in the Intranet as well as in the
520 Internet. UNO components may be implemented in and accessed from any
521 programming language for which a UNO implementation (AKA language binding) and
522 an appropriate bridge or adapter exists
523
524 %package java-common
525 Group: Office
526 Summary: LibreOffice office suite Java support arch. independent files
527 Requires: %{name}-core = %{version}-%{release}
528 #Requires: %{name}-common = %{version}-%{release}
529 Requires: jre
530 Conflicts: %name-core < 3.3.2.2-8
531 Obsoletes: openoffice.org-java-common < 1:3.3.1
532 Provides: openoffice.org-java-common = 1:%version-%release
533
534 %description java-common
535 LibreOffice is a full-featured office productivity suite that provides a
536 near drop-in replacement for Microsoft(R) Office.
537
538 This package contains the architecture-independent files of the Java support
539 for Libreoffice (Java classes, scripts, config snippets).
540
541 Also contains the Libreoffice Office Bean for embedding Libreoffice in
542 custom Java applications.
543
544 %package sdk
545 Summary: Software Development Kit for LibreOffice
546 Group: Development/Other
547 Requires: %{name}-ure = %{version}-%{release}
548 Requires: %{name}-core = %{version}-%{release}
549 Requires: unzip, java-devel
550 Obsoletes: openoffice.org-sdk < 1:3.3.1, openoffice.org-devel < 1:3.3.1
551
552 %description sdk
553 The LibreOffice SDK is an add-on for the LibreOffice office suite. It provides
554 the necessary tools for programming using the LibreOffice APIs and for creating
555 extensions (UNO components) for LibreOffice. To set the build environment for
556 building against the sdk use %{sdkinstdir}/setsdkenv_unix.sh.
557
558 %package sdk-doc
559 Summary: Software Development Kit documentation for LibreOffice
560 Group: Development/Other
561 Requires: %{name}-sdk = %{version}-%{release}
562 Obsoletes: openoffice.org-sdk-doc < 1:3.3.1
563
564 %description sdk-doc
565 This provides documentation for programming using the LibreOffice APIs
566 and examples of creating extensions (UNO components) for LibreOffice.
567
568 %package headless
569 Summary: LibreOffice Headless plug-in
570 Group: Development/Other
571 Requires: %{name}-ure = %{version}-%{release}
572 Requires: %{name}-core = %{version}-%{release}
573 Obsoletes: openoffice.org-headless < 1:3.3.1
574
575 %description headless
576 A plug-in for LibreOffice that enables it to function without an X server.
577 It implements the -headless command line option and allows LibreOffice to be
578 used as a backend server for e.g. document conversion.
579
580 %package kde
581 Summary: LibreOffice KDE integration plug-in
582 Group: Office
583 Requires: %{name}-core = %{version}-%{release}
584 Obsoletes: openoffice.org-kde4 < 1:3.3.1
585 Provides: openoffice.org-kde4 = 1:%version-%release
586
587 %description kde
588 A plug-in for LibreOffice that enables integration into the KDE desktop environment.
589
590 %if 0%{?_enable_debug_packages}
591
592 %define debug_package %{nil}
593 %global __debug_package 1
594
595 %package debug
596 Summary: Debug information for package %{name}
597 Group: Development/Debug
598 AutoReqProv: 0
599 Requires: libreoffice-core = %{version}-%{release}
600 Requires: libreoffice-gdb-debug-support = %{version}-%{release}
601
602 %description debug
603 This package provides debug information for package %{name}.
604 Debug information is useful when developing applications that use this
605 package or when debugging this package.
606
607 %files debug -f debugfiles.list
608
609 %package gdb-debug-support
610 Summary: Additional support for debugging with gdb
611 Group: Development/Other
612 Requires: gdb
613 AutoReqProv: 0
614
615 %description gdb-debug-support
616 This package provides gdb pretty printers for package %{name}.
617
618 %files gdb-debug-support
619 # TODO does it make sense to install this?
620 %{baseinstdir}/program/gdbtrace
621 %{_datadir}/gdb/auto-load%{baseinstdir}
622 %{_datadir}/libreoffice/gdb
623
624 %endif
625
626 # Defines a language pack subpackage.
627 #
628 # It's necessary to define language code (-l) and language name (-n).
629 # Additionally, it's possible
630 # * to require autocorr, hunspell, hyphen or mythes package or font for
631 # given language,
632 # * to obsolete openoffice.org-langpack package,
633 # * to provide libreoffice-langpack-loc package, where loc is glibc
634 # locale--this is necessary for urpmi to pick it automatically,
635 # * to require other, unrelated, packages,
636 # * to specify file serving as file list.
637 # For these, lower case character argument takes an argument specifying
638 # language, upper case character argument uses language from -l.
639 #
640 # All remaining arguments are considered to be files and added to the file
641 # list.
642 #
643 # Aa: autocorr dependency
644 # Ff: font language dependency
645 # Hh: hunspell dependency
646 # l: language code, e.g., cs
647 # Mm: mythes dependency
648 # n: language name, e.g., Czech
649 # Oo: Obsoletes: of openoffice.org-langpack
650 # r: comma-separated list of additional requires
651 # Ss: filelist
652 # Yy: hyphen dependency
653 #
654 # Example:
655 # libreoffice-langpack-cs: langpack for Czech lang. requiring hyphen-cs,
656 # autocorr-cs, mythes-cs-CZ and suitable font, obsoleting
657 # openoffice.org-langpack-cs_CZ, and taking the files from cs.filelist:
658 # %langpack -l cs -n Czech -H -A -m cs-CZ -o cs_CZ -S
659 %define langpack(Aa:Ff:Hh:l:Mm:n:Oo:p:r:Ss:Yy:Uu:) \
660 %define project LibreOffice \
661 %define lang %{-l:%{-l*}}%{!-l:%{error:Language code not defined}} \
662 %define pkgname langpack-%{lang} \
663 %define langname %{-n:%{-n*}}%{!-n:%{error:Language name not defined}} \
664 \
665 %package %{pkgname} \
666 Summary: %{langname} language pack for %{project} \
667 Group: Office \
668 Requires: %{name}-core = %{version}-%{release} \
669 Obsoletes: openoffice.org-l10n-%{lang} < 1:3.3.1 \
670 Provides: openoffice.org-l10n-%{lang} = 1:%version-%release \
671 %{-a:Requires: autocorr-%{-a*}}%{!-a:%{-A:Requires: autocorr-%{lang}}} \
672 %{-f:Requires: font(:lang=%{-f*})}%{!-f:%{-F:Requires: font(:lang=%{lang})}} \
673 %{-h:Requires: hunspell-%{-h*}}%{!-h:%{-H:Requires: hunspell-%{lang}}} \
674 %{-m:Requires: mythes-%{-m*}}%{!-m:%{-M:Requires: mythes-%{lang}}} \
675 %{-u:Requires: locales-%{-u*}} \
676 %{-U:Requires: locales-%{lang}} \
677 %{-y:Requires: hyphen-%{-y*}}%{!-y:%{-Y:Requires: hyphen-%{lang}}} \
678 %{-r:Requires: %{-r*}} \
679 %define obs openoffice.org-langpack \
680 %define obsv 1:3.3.1 \
681 %{-o:Obsoletes: %{obs}-%{-o*} < %{obsv}}%{!-o:%{-O:Obsoletes: %{obs}-%{lang} < %{obsv}}} \
682 %{-p:Provides: %{name}-langpack-%{-p*}} \
683 \
684 %description %{pkgname} \
685 Provides additional %{langname} translations and resources for %{project}. \
686 \
687 %define filelist %{-s:-f %{-s*}.filelist}%{!-s:%{-S:-f %{lang}.filelist}} \
688 %files %{pkgname} %{filelist} \
689 %defattr(-,root,root,-) \
690 %*
691
692 %define helplangpack(Aa:Ff:Hh:l:Mm:n:Oo:r:Ss:Yy:Uu:) \
693 %define project LibreOffice \
694 %define lang %{-l:%{-l*}}%{!-l:%{error:Language code not defined}} \
695 %define hlppkgname help-%{lang} \
696 %define hlplangname %{-n:%{-n*}}%{!-n:%{error:Language name not defined}} \
697 \
698 %package %{hlppkgname} \
699 Summary: %{hlplangname} language pack for %{project} \
700 Group: Office \
701 Requires: %{name}-core = %{version}-%{release} \
702 Obsoletes: openoffice.org-help-%{lang} < 1:3.3.1 \
703 Provides: openoffice.org-help-%{lang} = 1:%version-%release \
704 \
705 %define hlpobs openoffice.org-help \
706 %define hlpobsv 1:3.3.1 \
707 %{-o:Obsoletes: %{hlpobs}-%{-o*} < %{hlpobsv}}%{!-o:%{-O:Obsoletes: %{hlpobs}-%{lang} < %{hlpobsv}}} \
708 \
709 %description %{hlppkgname} \
710 Provides additional %{hlplangname} help resources for %{project}. \
711 \
712 %define hlpfilelist %{-s:-f %{-s*}.help.filelist}%{!-s:%{-S:-f %{lang}.help.filelist}} \
713 %files %{hlppkgname} %{hlpfilelist} \
714 %defattr(-,root,root,-) \
715 %*
716
717 # Defines an auto-correction subpackage.
718 #
719 # l: language code
720 # n: language name
721 # X do not use default file match on %{_datadir}/autocorr/acor_%{lang}-*
722 # in file list
723 #
724 # All remaining arguments are considered to be files and added to the file
725 # list.
726 %define autocorr(l:n:X) \
727 %define lang %{-l:%{-l*}}%{!-l:%{error:Language code not defined}} \
728 %define pkgname autocorr-%{lang} \
729 %define langname %{-n:%{-n*}}%{!-n:%{error:Language name not defined}} \
730 \
731 %package -n %{pkgname} \
732 Summary: %{langname} auto-correction rules \
733 Group: Text tools \
734 BuildArch: noarch \
735 \
736 %description -n %{pkgname} \
737 Rules for auto-correcting common %{langname} typing errors. \
738 \
739 %files -n %{pkgname} \
740 %defattr(-,root,root,-) \
741 %doc solver/unxlng*/bin/ure/LICENSE \
742 %dir %{_datadir}/autocorr \
743 %{!-X:%{_datadir}/autocorr/acor_%{lang}-*} \
744 %*
745
746
747 %if %{langpacks}
748 %langpack -l af -n Afrikaans -F -H -Y -A -o af_ZA -S -U
749 %langpack -l ar -n Arabic -F -H -O -S -U
750 %langpack -l as -n Assamese -F -H -Y -o as_IN -S -U
751 %langpack -l bg -n Bulgarian -F -H -Y -M -A -o bg_BG -S -U
752 %langpack -l bn -n Bengali -F -H -Y -O -S -U
753 #langpack -l br -n Breton -F -O -S -U -u fr
754 %langpack -l ca -n Catalan -F -H -Y -M -o ca_ES -S -U
755 %langpack -l cs -n Czech -F -H -Y -M -A -o cs_CZ -S -U
756 %langpack -l cy -n Welsh -F -H -Y -o cy_GB -S -U
757 %langpack -l da -n Danish -F -H -Y -M -A -o da_DK -S -U
758 %langpack -l de -n German -F -H -Y -M -A -O -S -U
759 %langpack -l dz -n Dzongkha -F -O -S -U
760 %langpack -l el -n Greek -F -H -Y -M -o el_GR -S -U
761 %langpack -l en -n English -M -O -U -A -Y -H
762 %langpack -l es -n Spanish -F -H -Y -M -A -O -S -U
763 %langpack -l et -n Estonian -F -H -Y -o et_EE -S -U
764 %langpack -l eu -n Basque -F -H -Y -A -o eu_ES -S -U
765 #langpack -l fa -n Farsi -A -H -Y -S
766 %langpack -l fi -n Finnish -F -r libreoffice-voikko -A -o fi_FI -S -U
767 %langpack -l fr -n French -F -H -Y -M -A -O -S -U
768 %langpack -l ga -n Irish -F -H -Y -M -A -o ga_IE -S -U
769 %langpack -l gl -n Galician -F -H -Y -o gl_ES -S -U
770 %langpack -l gu -n Gujarati -F -H -Y -o gu_IN -S -U
771 %langpack -l he -n Hebrew -F -H -o he_IL -S -U
772 %langpack -l hi -n Hindi -F -H -Y -o hi_IN -S -U
773 %langpack -l hr -n Croatian -F -H -Y -A -o hr_HR -S -U
774 %langpack -l hu -n Hungarian -F -H -Y -M -A -o hu_HU -S -U
775 %langpack -l it -n Italian -F -H -Y -M -A -O -S -U
776 %langpack -l ja -n Japanese -F -A -o ja_JP -S -U
777 %langpack -l kn -n Kannada -F -H -Y -o kn_IN -S -U
778 %langpack -l ko -n Korean -F -H -A -o ko_KR -S -U
779 %{baseinstdir}/share/registry/korea.xcd
780
781 %langpack -l lt -n Lithuanian -F -H -Y -A -o lt_LT -S -U
782 #langpack -l lv -n Latvian -F -H -Y -M -S
783 %langpack -l mai -n Maithili -F -o mai_IN -S -U
784 %langpack -l ml -n Malayalam -F -H -Y -o ml_IN -S -U
785 %langpack -l mr -n Marathi -F -H -Y -o mr_IN -S -U
786 %langpack -l nb -n Bokmal -F -H -Y -M -o nb_NO -S -u no
787 %langpack -l nl -n Dutch -F -H -Y -M -A -O -S -U
788 %langpack -l nn -n Nynorsk -F -H -Y -M -o nn_NO -S -u no
789 %define langpack_lang Southern Ndebele
790 %langpack -l nr -n %{langpack_lang} -F -H -o nr_ZA -S -U
791 %define langpack_lang Northern Sotho
792 %langpack -l nso -n %{langpack_lang} -F -H -o nso_ZA -S
793 %langpack -l or -n Oriya -F -H -Y -o or_IN -S -U
794 %langpack -l pa -n Punjabi -F -H -Y -O -s pa-IN -U
795 %langpack -l pl -n Polish -F -H -Y -M -A -o pl_PL -S -U
796 %define langpack_lang Brazilian Portuguese
797 %langpack -l pt-BR -n %{langpack_lang} -f pt -h pt -y pt -m pt -a pt -o pt_BR -p pt_BR -S -u pt
798 %langpack -l pt-PT -n Portuguese -f pt -h pt -y pt -m pt -a pt -o pt_PT -p pt_PT -s pt -u pt
799 %langpack -l ro -n Romanian -F -H -Y -M -O -S -U
800 %langpack -l ru -n Russian -F -H -Y -M -A -O -S -U
801 %langpack -l si -n Sinhalese -F -H -O -S -U
802 %langpack -l sk -n Slovak -F -H -Y -M -A -o sk_SK -S -U
803 %langpack -l sl -n Slovenian -F -H -Y -M -A -o sl_SI -S -U
804 %langpack -l sr -n Serbian -F -H -Y -A -O -S -U
805 %langpack -l ss -n Swati -F -H -o ss_ZA -S -U
806 %define langpack_lang Southern Sotho
807 %langpack -l st -n %{langpack_lang} -F -H -o st_ZA -S -U
808 %langpack -l sv -n Swedish -F -H -Y -M -A -O -S -U
809 %langpack -l ta -n Tamil -F -H -Y -o ta_IN -S -U
810 %langpack -l te -n Telugu -F -H -Y -o te_IN -S -U
811 %langpack -l th -n Thai -F -H -o th_TH -S -U
812 %{baseinstdir}/share/registry/ctlseqcheck_th.xcd
813
814 %langpack -l tn -n Tswana -F -H -o tn_ZA -S -U
815 %langpack -l tr -n Turkish -F -A -o tr_TR -S -U
816 %langpack -l ts -n Tsonga -F -H -o ts_ZA -S -U
817 %langpack -l uk -n Ukrainian -F -H -Y -M -O -S -U
818 %langpack -l ve -n Venda -F -H -o ve_ZA -S -U
819 %langpack -l xh -n Xhosa -F -H -o xh_ZA -S -U
820 %define langpack_lang Simplified Chinese
821 %langpack -l zh_CN -n %{langpack_lang} -f zh-cn -a zh -o zh_CN -s zh-CN -u zh
822 %define langpack_lang Traditional Chinese
823 %langpack -l zh_TW -n %{langpack_lang} -f zh-tw -a zh -o zh_TW -s zh-TW -u zh
824 %langpack -l zu -n Zulu -F -H -Y -o zu_ZA -S -U
825 %undefine langpack_lang
826 %endif
827
828 %autocorr -l en -n English
829
830 %if %{langpacks}
831 %autocorr -l af -n Afrikaans
832 %autocorr -l bg -n Bulgarian
833 %autocorr -l cs -n Czech
834 %autocorr -l da -n Danish
835 %autocorr -l de -n German
836 %autocorr -l es -n Spanish
837 %autocorr -l eu -n Basque -X
838 %{_datadir}/autocorr/acor_eu.dat
839
840 %autocorr -l fa -n Farsi
841 %autocorr -l fi -n Finnish
842 %autocorr -l fr -n French
843 %autocorr -l ga -n Irish
844 %autocorr -l hr -n Croatian
845 %autocorr -l hu -n Hungarian
846 %autocorr -l it -n Italian
847 %autocorr -l ja -n Japanese
848 %autocorr -l ko -n Korean
849 %autocorr -l lb -n Luxembourgish
850 %autocorr -l lt -n Lithuanian
851 %autocorr -l mn -n Mongolian
852 %autocorr -l nl -n Dutch
853 %autocorr -l pl -n Polish
854 %autocorr -l pt -n Portuguese
855 %autocorr -l ru -n Russian
856 %autocorr -l sk -n Slovak
857 %autocorr -l sl -n Slovenian
858 %autocorr -l sr -n Serbian
859 %{_datadir}/autocorr/acor_sh-*
860
861 %autocorr -l sv -n Swedish
862 %autocorr -l tr -n Turkish
863 %autocorr -l vi -n Vietnamese
864 %autocorr -l zh -n Chinese
865 %endif
866
867 %helplangpack -l en -n English
868
869 %if %{langpacks}
870 #helplangpack -l ar -n Arabic -S
871 %helplangpack -l bg -n Bulgarian -S
872 %helplangpack -l bn -n Bengali -S
873 #helplangpack -l br -n Breton -S
874 %helplangpack -l ca -n Catala -S
875 %helplangpack -l cs -n Czech -S
876 %helplangpack -l da -n Danish -S
877 %helplangpack -l de -n German -S
878 %helplangpack -l dz -n Dzongkha -S
879 %helplangpack -l el -n Greek -S
880 %helplangpack -l es -n Spanish -S
881 %helplangpack -l et -n Estonian -S
882 %helplangpack -l eu -n Basque -S
883 %helplangpack -l fi -n Finnish -S
884 %helplangpack -l fr -n French -S
885 %helplangpack -l gl -n Galician -S
886 %helplangpack -l hi -n Hindi -S
887 %helplangpack -l hu -n Hungarian -S
888 %helplangpack -l it -n Italian -S
889 %helplangpack -l ja -n Japanese -S
890 %helplangpack -l ko -n Korean -S
891 #helplangpack -l mai -n Maithili -S
892 %helplangpack -l nb -n Bokmal -S
893 %helplangpack -l nl -n Dutch -S
894 %helplangpack -l nn -n Nynorsk -S
895 %define langpack_lang Southern Ndebele
896 #helplangpack -l nr -n %{langpack_lang} -S
897 %define langpack_lang Northern Sotho
898 #helplangpack -l nso -n %{langpack_lang} -S
899 #helplangpack -l pa -n Punjabi -s pa-IN
900 %helplangpack -l pl -n Polish -S
901 %define langpack_lang Brazilian Portuguese
902 %helplangpack -l pt_BR -n %{langpack_lang} -s pt-BR
903 %helplangpack -l pt -n Portuguese -s pt
904 %helplangpack -l ru -n Russian -S
905 #helplangpack -l sh -n Secwepemctsin -S
906 %helplangpack -l si -n Sinhalese -S
907 %helplangpack -l sk -n Slovak -S
908 %helplangpack -l sl -n Slovenian -S
909 #helplangpack -l sr -n Serbian -S
910 %define langpack_lang Southern Sotho
911 #helplangpack -l st -n %{langpack_lang} -S
912 #helplangpack -l ss -n Swati -S
913 %helplangpack -l sv -n Swedish -S
914 #helplangpack -l ta -n Tamil -S
915 #helplangpack -l tn -n Tswana -S
916 #helplangpack -l th -n Thai -S
917 %helplangpack -l tr -n Turkish -S
918 #helplangpack -l ts -n Tsonga -S
919 %helplangpack -l uk -n Ukrainian -S
920 #helplangpack -l ve -n Venda -S
921 #helplangpack -l xh -n Xhosa -S
922 %define langpack_lang Simplified Chinese
923 %helplangpack -l zh_CN -n %{langpack_lang} -s zh-CN
924 %define langpack_lang Traditional Chinese
925 %helplangpack -l zh_TW -n %{langpack_lang} -s zh-TW
926 #helplangpack -l zu -n Zulu -S
927 %endif
928
929 %prep
930 %setup -q -c -a 1 -a 2 -a 3
931 for a in */*; do mv `pwd`/$a .; done
932 #Customize Palette to remove Sun colours and add Red Hat colours
933 #TODO: have and add mageia colours
934 (head -n -1 extras/source/palettes/standard.soc && \
935 echo -e ' <draw:color draw:name="Mageia 1" draw:color="#cc0000"/>
936 <draw:color draw:name="Mageia 2" draw:color="#0093d9"/>
937 <draw:color draw:name="Mageia 3" draw:color="#ff8d00"/>
938 <draw:color draw:name="Mageia 4" draw:color="#abb400"/>
939 <draw:color draw:name="Mageia 5" draw:color="#4e376b"/>' && \
940 tail -n 1 extras/source/palettes/standard.soc) > mageia.soc
941 mv -f mageia.soc extras/source/palettes/standard.soc
942
943 %patch1 -p1
944 # TODO: fix patches
945 %patch2 -p1 -b .ooo86080.unopkg.bodge.patch
946 %patch3 -p1 -b .ooo88341.sc.verticalboxes.patch
947 %patch4 -p1 -b .oooXXXXX.solenv.allowmissing.patch
948 %patch5 -p1 -b .ooo101274.opening-a-directory.patch
949 %patch6 -p1 -b .ooo105784.vcl.sniffscriptforsubs.patch
950 %patch7 -p1 -b .libreoffice-installfix.patch
951 %patch13 -p1 -b .rhbz761009-IFSD_Equal-is-asymmetrical.patch
952 %patch14 -p1 -b .rhbz767708-avoid-SIGBUS-writing-to-overcom.patch
953 %patch15 -p1 -b .force-gbuild-stage-for-CustomTargets.patch
954 %patch16 -p1 -b .these-translations-do-already-exist-in-translations-.patch
955 %patch17 -p1 -b .fix-syntactic-error.patch
956 %patch18 -p1 -b .Fix-typo-and-clean-up.patch
957
958 # TODO: check this
959 # these are horribly incomplete--empty translations and copied english
960 # strings with spattering of translated strings
961 rm -rf translations/source/{gu,he,hr}/helpcontent2
962
963 touch scripting/source/pyprov/delzip
964 touch scripting/util/provider/beanshell/delzip
965 touch scripting/util/provider/javascript/delzip
966
967 %build
968 echo build start time is `date`, diskspace: `df -h . | tail -n 1`
969 #don't build localized helps which aren't translated
970 POORHELPS=`ls -d translations/source/*/helpcontent2 translations/source/*|cut -f 3 -d /|sort|uniq -u|xargs`
971 #don't build localized helps which are poorly translated
972 POORHELPS="$POORHELPS `grep 'msgstr .Working with Documents' translations/source/*/helpcontent2/source/text/swriter/guide.po| cut -f 3 -d / | xargs`"
973 #convert _smp_mflags to dmake equivalent
974 SMP_MFLAGS=%{?_smp_mflags}
975 SMP_MFLAGS=$[${SMP_MFLAGS/-j/}]
976 if [ $SMP_MFLAGS -lt 2 ]; then SMP_MFLAGS=2; fi
977 NDMAKES=`dc -e "$SMP_MFLAGS v p"`
978 NBUILDS=`dc -e "$SMP_MFLAGS $NDMAKES / p"`
979
980 # KDE bits
981 export QT4DIR=%{qt4dir}
982 export KDE4DIR=%{_kde_prefix}
983 export PATH=$QT4DIR/bin:$PATH
984
985 #use the RPM_OPT_FLAGS but remove the OOo overridden ones
986 for i in $RPM_OPT_FLAGS; do
987 case "$i" in
988 -O?|-pipe|-Wall|-g|-fexceptions) continue;;
989 esac
990 ARCH_FLAGS="$ARCH_FLAGS $i"
991 done
992 export ARCH_FLAGS
993 export CFLAGS=$ARCH_FLAGS
994 export CXXFLAGS=$ARCH_FLAGS
995
996 autoconf
997 # TODO: review the options
998 # TODO: --with-poor-help-localizations is gone, IIRC
999
1000 %configure \
1001 %vendoroption --with-num-cpus=$NBUILDS --with-max-jobs=$NDMAKES \
1002 --with-build-version="Ver: %{version}-%{release}" --with-unix-wrapper=%{name} \
1003 --disable-ldap --disable-epm --disable-mathmldtd \
1004 --disable-gnome-vfs --enable-gio --enable-symbols --enable-lockdown \
1005 --enable-evolution2 --enable-cairo --enable-dbus --enable-opengl --enable-vba \
1006 --enable-binfilter --enable-ext-presenter-minimizer \
1007 --enable-ext-presenter-console --enable-ext-pdfimport \
1008 --enable-ext-wiki-publisher --enable-ext-report-builder \
1009 --enable-ext-scripting-beanshell --enable-ext-scripting-javascript \
1010 --enable-kde4 --without-system-libexttextcat --without-system-servlet-api \
1011 --with-system-jars --with-vba-package-format="builtin" \
1012 --with-system-libs --with-system-headers --with-system-mozilla \
1013 --without-system-mozilla-headers --with-system-mythes --with-system-dicts \
1014 --without-system-saxon --with-external-dict-dir=/usr/share/myspell \
1015 --without-myspell-dicts --without-fonts --without-ppds --without-afms \
1016 %{with_lang} --with-poor-help-localizations="$POORHELPS" \
1017 --with-external-tar=`pwd`/ext_sources --with-java-target-version=1.5 \
1018 --without-system-hsqldb \
1019 --without-system-libcmis --without-system-libvisio \
1020 --without-system-mysql-cppconn --without-system-sampleicc
1021
1022 mkdir -p ext_sources
1023 cp %{SOURCE4} ext_sources
1024 cp %{SOURCE7} ext_sources
1025 cp %{SOURCE8} ext_sources
1026 cp %{SOURCE9} ext_sources
1027 cp %{SOURCE10} ext_sources
1028 cp %{SOURCE11} ext_sources
1029 cp %{SOURCE12} ext_sources
1030 cp %{SOURCE13} ext_sources
1031 cp %{SOURCE14} ext_sources
1032 cp %{SOURCE15} ext_sources
1033 cp %{SOURCE18} ext_sources
1034 cp %{SOURCE19} ext_sources
1035 cp %{SOURCE20} ext_sources
1036 cp %{SOURCE21} ext_sources
1037 cp %{SOURCE22} ext_sources
1038 touch src.downloaded
1039
1040 . ./Env.Host.sh
1041 ./bootstrap
1042
1043 #HANGING JAVA HACK
1044 cat << \EOF > solenv/bin/java
1045 #!/bin/sh
1046 status=1
1047 count=1
1048 while [ $status -ne 0 -a $count -lt 10 ]
1049 do
1050 timeout -k 5m 5m $REALJAVA $*
1051 status=$?
1052 if [ $status -ne 0 ]; then
1053 echo $REALJAVA hung, trying again, attempt $count
1054 fi
1055 count=$[count+1]
1056 done
1057 exit $status
1058 EOF
1059 chmod +x solenv/bin/java
1060 export REALJAVA=`which java`
1061 export PATH=solenv/bin:$PATH
1062 which java
1063 #HANGING JAVA HACK
1064
1065 cd instsetoo_native
1066 if ! VERBOSE=true build --dlv_switch -link -P$NBUILDS --all -- -P$NDMAKES -s; then
1067 build --dlv_switch -link --all
1068 fi
1069
1070 #generate the icons and mime type stuff
1071 export DESTDIR=../../../output
1072 export KDEMAINDIR=/usr
1073 export GNOMEDIR=/usr
1074 export GNOME_MIME_THEME=hicolor
1075 cd ../sysui
1076 cd unxlng*/misc/libreoffice
1077 ./create_tree.sh
1078
1079 echo build end time is `date`, diskspace: `df -h . | tail -n 1`
1080
1081 %install
1082 rm -rf $RPM_BUILD_ROOT
1083 source ./Env.Host.sh
1084 #figure out the icon version
1085 export `grep "^PRODUCTVERSIONSHORT =" solenv/inc/productversion.mk | sed -e "s/ //g"`
1086 export `grep "PRODUCTVERSION[ ]*=[ ]*" solenv/inc/productversion.mk | sed -e "s/ //g"`
1087 #install
1088 cd instsetoo_native/util
1089 #direct install
1090 mkdir -p $RPM_BUILD_ROOT/%{instdir}
1091 export PKGFORMAT=installed
1092 #don't duplicate english helpcontent about the place
1093 unset DEFAULT_TO_ENGLISH_FOR_PACKING
1094 if dmake openoffice_en-US; then
1095 ok=true
1096 break
1097 else
1098 echo - ---dump log start---
1099 cat ../unx*.pro/LibreOffice/installed/logging/en-US/log_*_en-US.log
1100 echo - ---dump log end---
1101 ok=false
1102 fi
1103 if [ $ok == "false" ]; then
1104 exit 1
1105 fi
1106 mkdir -p $RPM_BUILD_ROOT/%{baseinstdir}
1107 mv ../unxlng*.pro/LibreOffice/installed/install/en-US/* $RPM_BUILD_ROOT/%{baseinstdir}
1108 chmod -R +w $RPM_BUILD_ROOT/%{baseinstdir}
1109 %if %{langpacks}
1110 dmake ooolanguagepack
1111 rm -rf ../unxlng*.pro/LibreOffice_languagepack/installed/install/log
1112 for langpack in ../unxlng*.pro/LibreOffice_languagepack/installed/install/*; do
1113 cp -rp $langpack/* $RPM_BUILD_ROOT/%{baseinstdir}
1114 rm -rf $langpack
1115 done
1116 %endif
1117 rm -rf $RPM_BUILD_ROOT/%{baseinstdir}/share/prereg
1118 #give a consistent javasettingsunopkginstall.xml
1119 $RPM_BUILD_ROOT/%{baseinstdir}/program/unopkg list --bundled || :
1120 export WITH_LANG="en-US"
1121 dmake sdkoo
1122 mv ../unxlng*.pro/LibreOffice_SDK/installed/install/en-US/sdk $RPM_BUILD_ROOT/%{sdkinstdir}
1123 cd ../../
1124
1125 #configure sdk
1126 pushd $RPM_BUILD_ROOT/%{sdkinstdir}
1127 for file in setsdkenv_unix.csh setsdkenv_unix.sh ; do
1128 sed -e "s,@OO_SDK_NAME@,sdk," \
1129 -e "s,@OO_SDK_HOME@,%{sdkinstdir}," \
1130 -e "s,@OFFICE_HOME@,%{baseinstdir}," \
1131 -e "s,@OO_SDK_URE_HOME@,%{ureinstdir}," \
1132 -e "s,@OO_SDK_MAKE_HOME@,/usr/bin," \
1133 -e "s,@OO_SDK_ZIP_HOME@,/usr/bin," \
1134 -e "s,@OO_SDK_CPP_HOME@,/usr/bin," \
1135 -e "s,@OO_SDK_CC_55_OR_HIGHER@,," \
1136 -e "s,@OO_SDK_JAVA_HOME@,$JAVA_HOME," \
1137 -e "s,@OO_SDK_OUTPUT_DIR@,\$HOME," \
1138 -e "s,@SDK_AUTO_DEPLOYMENT@,NO," \
1139 $file.in > $file
1140 chmod 755 $file
1141 done
1142 #fix permissions
1143 find examples -type f -exec chmod -x {} \;
1144 popd
1145
1146 #ensure a template dir for each lang
1147 pushd $RPM_BUILD_ROOT/%{baseinstdir}/share/template
1148 for I in %{langpack_langs}; do
1149 mkdir -p $I
1150 done
1151 popd
1152
1153 #Set some aliases to canonical autocorrect language files for locales with matching languages
1154 pushd $RPM_BUILD_ROOT/%{baseinstdir}/share/autocorr
1155 en_GB_aliases="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"
1156 for lang in $en_GB_aliases; do
1157 ln -sf acor_en-GB.dat acor_$lang.dat
1158 done
1159 en_US_aliases="en-PH"
1160 for lang in $en_US_aliases; do
1161 ln -sf acor_en-US.dat acor_$lang.dat
1162 done
1163 #en-ZA exists and has a good autocorrect file with two or three extras that make sense for
1164 #neighbouring english speaking territories
1165 en_ZA_aliases="en-NA en-ZW"
1166 for lang in $en_ZA_aliases; do
1167 ln -sf acor_en-ZA.dat acor_$lang.dat
1168 done
1169 %if %{langpacks}
1170 af_ZA_aliases="af-NA"
1171 for lang in $af_ZA_aliases; do
1172 ln -sf acor_af-ZA.dat acor_$lang.dat
1173 done
1174 de_DE_aliases="de-AT de-BE de-CH de-LI de-LU"
1175 for lang in $de_DE_aliases; do
1176 ln -sf acor_de-DE.dat acor_$lang.dat
1177 done
1178 es_ES_aliases="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"
1179 for lang in $es_ES_aliases; do
1180 ln -sf acor_es-ES.dat acor_$lang.dat
1181 done
1182 fr_FR_aliases="fr-BE fr-CA fr-CH fr-LU fr-MC"
1183 for lang in $fr_FR_aliases; do
1184 ln -sf acor_fr-FR.dat acor_$lang.dat
1185 done
1186 it_IT_aliases="it-CH"
1187 for lang in $it_IT_aliases; do
1188 ln -sf acor_it-IT.dat acor_$lang.dat
1189 done
1190 nl_NL_aliases="nl-AW"
1191 for lang in $nl_NL_aliases; do
1192 ln -s acor_nl-NL.dat acor_$lang.dat
1193 done
1194 sv_SE_aliases="sv-FI"
1195 for lang in $sv_SE_aliases; do
1196 ln -s acor_sv-SE.dat acor_$lang.dat
1197 done
1198 %else
1199 rm -f acor_[a-df-z]*.dat acor_e[su]*.dat
1200 %endif
1201 popd
1202 #rhbz#484055 make these shared across multiple applications
1203 mkdir -p $RPM_BUILD_ROOT/%{_datadir}
1204 mv -f $RPM_BUILD_ROOT/%{baseinstdir}/share/autocorr $RPM_BUILD_ROOT/%{_datadir}/autocorr
1205 chmod 755 $RPM_BUILD_ROOT/%{_datadir}/autocorr
1206
1207 %if %{langpacks}
1208
1209 #auto generate the langpack file lists, format is...
1210 #langpack id, has help or not, autocorrection glob, script classification
1211 langpackdetails=\
1212 (\
1213 af nohelp western ar nohelp ctl \
1214 as nohelp western bg help western \
1215 bn help western ca help western \
1216 cs help western cy nohelp western \
1217 da help western de help western \
1218 dz help ctl el help western \
1219 es help western et help western \
1220 eu help western fi help western \
1221 fr help western ga nohelp western \
1222 gl help western gu nohelp ctl \
1223 he nohelp ctl hi help ctl \
1224 hr nohelp western hu help western \
1225 it help western ja help cjk \
1226 ko help cjk kn nohelp western \
1227 lt nohelp western mai nohelp western \
1228 ml nohelp western mr nohelp western \
1229 nb help western nl help western \
1230 nn help western nr nohelp western \
1231 nso nohelp western or nohelp ctl \
1232 pa-IN nohelp ctl pl help western \
1233 pt help western pt-BR help western \
1234 ro nohelp western ru help western \
1235 sh nohelp western si help ctl \
1236 sk help western sl help western \
1237 sr nohelp western ss nohelp western \
1238 st nohelp western sv help western \
1239 ta nohelp ctl te nohelp western \
1240 th nohelp ctlseqcheck tn nohelp western \
1241 tr help western ts nohelp western \
1242 uk help western ve nohelp western \
1243 xh nohelp western zh-CN help cjk \
1244 zh-TW help cjk zu i nohelp western \
1245 fa nohelp ctl br help western \
1246 lv nohelp western \
1247 )
1248
1249 tar xzf %{SOURCE5}
1250
1251 i=0
1252 while [ $i -lt ${#langpackdetails[@]} ]; do
1253 lang=${langpackdetails[$i]}
1254 sed -e "s/LANG/$lang/g" langpacks/libreoffice.langpack-common.template > $lang.filelist
1255 echo "$lang.filelist"
1256 i=$[i+1]
1257 help=${langpackdetails[$i]}
1258 if [ "$help" = "help" ]; then
1259 sed -e "s/LANG/$lang/g" langpacks/libreoffice.langpack-help.template >> $lang.help.filelist
1260 echo "$lang.help.filelist"
1261 cat $lang.help.filelist
1262 fi
1263 i=$[i+1]
1264 type=${langpackdetails[$i]}
1265 if [ "$type" = "cjk" ]; then
1266 sed -e "s/LANG/$lang/g" langpacks/libreoffice.langpack-cjk.template >> $lang.filelist
1267 fi
1268 #rh217269 upstream made a decision to sequence check all ctl languages
1269 #I think this is wrong, and only Thai should be sequence checked
1270 if [ "$type" = "ctlseqcheck" ]; then
1271 sed -e "s/LANG/$lang/g" langpacks/libreoffice.langpack-ctl.template >> $lang.filelist
1272 fi
1273 if [ "$type" = "ctl" ]; then
1274 rm -f $RPM_BUILD_ROOT/%{baseinstdir}/share/registry/ctl_$lang.xcd
1275 fi
1276 i=$[i+1]
1277 done
1278
1279 #rhbz#452379 clump serbian translations together
1280 cat sh.filelist >> sr.filelist
1281
1282 %endif
1283
1284 #remove it in case we didn't build with gcj
1285 rm -f $RPM_BUILD_ROOT/%{baseinstdir}/program/classes/sandbox.jar
1286
1287 #remove dummy .dat files
1288 rm -f $RPM_BUILD_ROOT/%{baseinstdir}/program/root?.dat
1289
1290 #set standard permissions for rpmlint
1291 find $RPM_BUILD_ROOT/%{baseinstdir} -exec chmod +w {} \;
1292 find $RPM_BUILD_ROOT/%{baseinstdir} -type d -exec chmod 0755 {} \;
1293
1294 # move python bits into site-packages
1295 mkdir -p $RPM_BUILD_ROOT/%{python_sitearch}
1296 pushd $RPM_BUILD_ROOT/%{python_sitearch}
1297 echo "import sys, os" > uno.py
1298 echo "sys.path.append('%{baseinstdir}/program')" >> uno.py
1299 echo "os.putenv('URE_BOOTSTRAP', 'vnd.sun.star.pathname:%{baseinstdir}/program/fundamentalrc')" >> uno.py
1300 cat $RPM_BUILD_ROOT/%{baseinstdir}/program/uno.py >> uno.py
1301 rm -f $RPM_BUILD_ROOT/%{baseinstdir}/program/uno.py*
1302 mv -f $RPM_BUILD_ROOT/%{baseinstdir}/program/unohelper.py* .
1303 popd
1304
1305 # rhbz#477435 package opensymbol separately
1306 pushd $RPM_BUILD_ROOT/%{baseinstdir}/share/fonts/truetype
1307 install -d -m 0755 %{buildroot}%{_fontdir}
1308 install -p -m 0644 *.ttf %{buildroot}%{_fontdir}
1309 popd
1310 rm -rf $RPM_BUILD_ROOT/%{baseinstdir}/share/fonts
1311
1312 #ensure that no sneaky un-prelinkable, un-fpic or non executable shared libs
1313 #have snuck through
1314 pic=0
1315 executable=0
1316 for foo in `find $RPM_BUILD_ROOT/%{instdir} -name "*" -exec file {} \;| grep ": ELF" | cut -d: -f 1` ; do
1317 chmod +wx $foo
1318 ls -asl $foo
1319 result=`readelf -d $foo | grep TEXTREL` || true
1320 if [ "$result" != "" ]; then
1321 echo "TEXTREL Warning: $foo is b0rked (-fpic missing)"
1322 pic=1
1323 fi
1324 result=`readelf -l $foo | grep GNU_STACK | grep RWE` || true
1325 if [ "$result" != "" ]; then
1326 echo "GNU_STACK Warning: $foo is b0rked (-noexecstack missing)"
1327 executable=1
1328 fi
1329 done
1330 if [ $pic == 1 ]; then false; fi
1331 if [ $executable == 1 ]; then false; fi
1332
1333 #make up some /usr/bin scripts
1334 mkdir -p $RPM_BUILD_ROOT/%{_bindir}
1335
1336 echo \#\!/bin/sh > $RPM_BUILD_ROOT/%{_bindir}/ooffice
1337 echo exec libreoffice \"\$@\" >> $RPM_BUILD_ROOT/%{_bindir}/ooffice
1338 chmod a+x $RPM_BUILD_ROOT/%{_bindir}/ooffice
1339
1340 echo \#\!/bin/sh > $RPM_BUILD_ROOT/%{_bindir}/ooviewdoc
1341 echo exec libreoffice --view \"\$@\" >> $RPM_BUILD_ROOT/%{_bindir}/ooviewdoc
1342 chmod a+x $RPM_BUILD_ROOT/%{_bindir}/ooviewdoc
1343
1344 echo \#\!/bin/sh > $RPM_BUILD_ROOT/%{_bindir}/oowriter
1345 echo exec libreoffice --writer \"\$@\" >> $RPM_BUILD_ROOT/%{_bindir}/oowriter
1346 chmod a+x $RPM_BUILD_ROOT/%{_bindir}/oowriter
1347
1348 echo \#\!/bin/sh > $RPM_BUILD_ROOT/%{_bindir}/oocalc
1349 echo exec libreoffice --calc \"\$@\" >> $RPM_BUILD_ROOT/%{_bindir}/oocalc
1350 chmod a+x $RPM_BUILD_ROOT/%{_bindir}/oocalc
1351
1352 echo \#\!/bin/sh > $RPM_BUILD_ROOT/%{_bindir}/ooimpress
1353 echo exec libreoffice --impress \"\$@\" >> $RPM_BUILD_ROOT/%{_bindir}/ooimpress
1354 chmod a+x $RPM_BUILD_ROOT/%{_bindir}/ooimpress
1355
1356 echo \#\!/bin/sh > $RPM_BUILD_ROOT/%{_bindir}/oodraw
1357 echo exec libreoffice --draw \"\$@\" >> $RPM_BUILD_ROOT/%{_bindir}/oodraw
1358 chmod a+x $RPM_BUILD_ROOT/%{_bindir}/oodraw
1359
1360 echo \#\!/bin/sh > $RPM_BUILD_ROOT/%{_bindir}/oomath
1361 echo exec libreoffice --math \"\$@\" >> $RPM_BUILD_ROOT/%{_bindir}/oomath
1362 chmod a+x $RPM_BUILD_ROOT/%{_bindir}/oomath
1363
1364 echo \#\!/bin/sh > $RPM_BUILD_ROOT/%{_bindir}/oobase
1365 echo exec libreoffice --base \"\$@\" >> $RPM_BUILD_ROOT/%{_bindir}/oobase
1366 chmod a+x $RPM_BUILD_ROOT/%{_bindir}/oobase
1367
1368 cp -f %{SOURCE6} $RPM_BUILD_ROOT/%{_bindir}/unopkg
1369 sed -i -e "s/LAUNCHER/unopkg/g" $RPM_BUILD_ROOT/%{_bindir}/unopkg
1370 sed -i -e "s/BRAND/libreoffice/g" $RPM_BUILD_ROOT/%{_bindir}/unopkg
1371 chmod a+x $RPM_BUILD_ROOT/%{_bindir}/unopkg
1372
1373 cp -f %{SOURCE6} $RPM_BUILD_ROOT/%{_bindir}/libreoffice
1374 sed -i -e "s/LAUNCHER/soffice/g" $RPM_BUILD_ROOT/%{_bindir}/libreoffice
1375 sed -i -e "s/BRAND/libreoffice/g" $RPM_BUILD_ROOT/%{_bindir}/libreoffice
1376 chmod a+x $RPM_BUILD_ROOT/%{_bindir}/libreoffice
1377
1378 pushd $RPM_BUILD_ROOT/%{_bindir}
1379 # rhbz#499474 provide a /usr/bin/soffice for .recently-used.xbel
1380 ln -s %{baseinstdir}/program/soffice soffice
1381 # rhbz#499474 provide a /usr/bin/openoffice.org for backwards compat
1382 ln -s libreoffice openoffice.org
1383 popd
1384
1385 pushd $RPM_BUILD_ROOT/%{baseinstdir}/share/xdg/
1386 chmod u+w *.desktop
1387 rm -rf printeradmin.desktop
1388 ICONVERSION=`echo $PRODUCTVERSION | sed -e 's/\.//'`
1389 for file in *.desktop; do
1390 # rhbz#156677 remove the version from Name=
1391 # rhbz#156067 don't version the icons
1392 sed -i -e "s/ *$PRODUCTVERSION//g" \
1393 -e "s/$ICONVERSION//g" \
1394 -e "s/$PRODUCTVERSIONSHORT//g" \
1395 $file
1396 # add X-GIO-NoFuse so we get url:// instead of file://~.gvfs/
1397 echo X-GIO-NoFuse=true >> $file
1398 done
1399 for app in base calc draw impress math writer; do
1400 echo "StartupNotify=true" >> $app.desktop
1401 echo "TryExec=oo$app" >> $app.desktop
1402 done
1403 # rhbz#156677# / rhbz#186515#
1404 echo "NoDisplay=true" >> startcenter.desktop
1405 # rhbz#491159 temporarily remove NoDisplay=true from qstart.desktop
1406 sed -i -e "/NoDisplay=true/d" qstart.desktop
1407 # relocate the .desktop and icon files
1408 mkdir -p $RPM_BUILD_ROOT/%{_datadir}/applications
1409 for app in base calc draw impress javafilter math startcenter writer; do
1410 desktop-file-validate $app.desktop
1411 cp -p $app.desktop $RPM_BUILD_ROOT/%{_datadir}/applications/libreoffice-$app.desktop
1412 done
1413 popd
1414
1415 # desktop files
1416 %if 0
1417 desktop-file-install --vendor="" \
1418 --remove-category="Application" \
1419 --add-category="Office" \
1420 --add-category="X-MandrivaLinux-CrossDesktop" \
1421 --add-mime-type="application/vnd.ms-works;application/x-msworks-wp;zz-application/zz-winassoc-wps" \
1422 --dir %{buildroot}%{_datadir}/applications %{buildroot}%{_datadir}/applications/writer*desktop
1423
1424 desktop-file-install --vendor="" \
1425 --remove-category="Application" \
1426 --add-category="Office" \
1427 --add-category="X-MandrivaLinux-CrossDesktop" \
1428 --dir %{buildroot}%{_datadir}/applications %{buildroot}%{_datadir}/applications/calc*desktop
1429
1430 desktop-file-install --vendor="" \
1431 --remove-category="Application" \
1432 --remove-category="Graphics" \
1433 --remove-category="VectorGraphics" \
1434 --add-category="Office" \
1435 --add-category="X-MandrivaLinux-CrossDesktop" \
1436 --dir %{buildroot}%{_datadir}/applications %{buildroot}%{_datadir}/applications/draw*desktop
1437
1438 desktop-file-install --vendor="" \
1439 --remove-category="Application" \
1440 --add-category="Office" \
1441 --add-category="X-MandrivaLinux-CrossDesktop" \
1442 --dir %{buildroot}%{_datadir}/applications %{buildroot}%{_datadir}/applications/impress*desktop
1443
1444 desktop-file-install --vendor="" \
1445 --remove-category="Application" \
1446 --add-category="Office" \
1447 --add-category="X-MandrivaLinux-CrossDesktop" \
1448 --dir %{buildroot}%{_datadir}/applications %{buildroot}%{_datadir}/applications/math*desktop
1449
1450 desktop-file-install --vendor="" \
1451 --remove-category="Application" \
1452 --remove-category="Network" \
1453 --remove-category="WebDevelopment" \
1454 --add-category="Office" \
1455 --add-category="X-MandrivaLinux-CrossDesktop" \
1456 --dir %{buildroot}%{_datadir}/applications %{buildroot}%{_datadir}/applications/web*desktop
1457
1458 desktop-file-install --vendor="" \
1459 --remove-category="Application" \
1460 --add-category="Office" \
1461 --add-category="X-MandrivaLinux-CrossDesktop" \
1462 --dir %{buildroot}%{_datadir}/applications %{buildroot}%{_datadir}/applications/template*desktop
1463 %endif
1464
1465 desktop-file-install --vendor="" \
1466 --remove-category="X-MandrivaLinux-MoreApplications-Databases" \
1467 --add-category="X-MandrivaLinux-CrossDesktop" \
1468 --dir %{buildroot}%{_datadir}/applications %{buildroot}%{_datadir}/applications/libreoffice-base.desktop
1469
1470 %if 0
1471 ## MS OOXML (#36465)
1472 desktop-file-install \
1473 --add-mime-type="application/vnd.openxmlformats-officedocument.wordprocessingml.document" \
1474 --add-mime-type="application/vnd.ms-word.document.macroEnabled.12" \
1475 --dir %{buildroot}%{_datadir}/applications %{buildroot}%{_datadir}/applications/writer*desktop
1476
1477 desktop-file-install \
1478 --add-mime-type="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" \
1479 --add-mime-type="application/vnd.ms-excel.sheet.macroEnabled.12" \
1480 --dir %{buildroot}%{_datadir}/applications %{buildroot}%{_datadir}/applications/calc*desktop
1481
1482 desktop-file-install \
1483 --add-mime-type="application/vnd.openxmlformats-officedocument.presentationml.presentation" \
1484 --add-mime-type="application/vnd.ms-powerpoint.presentation.macroEnabled.12" \
1485 --dir %{buildroot}%{_datadir}/applications %{buildroot}%{_datadir}/applications/impress*desktop
1486 %endif
1487
1488 pushd sysui/output/usr/share/
1489 #get rid of the gnome icons and other unneeded files
1490 rm -rf icons/gnome applications application-registry
1491
1492 #relocate the rest of them
1493 for icon in `find icons -type f`; do
1494 mkdir -p $RPM_BUILD_ROOT/%{_datadir}/`dirname $icon`
1495 cp -p $icon $RPM_BUILD_ROOT/%{_datadir}/`echo $icon | sed -e s@office$ICONVERSION@office@`
1496 done
1497
1498 mkdir -p $RPM_BUILD_ROOT/%{_datadir}/mime-info
1499 cp -p mime-info/libreoffice$PRODUCTVERSION.keys $RPM_BUILD_ROOT/%{_datadir}/mime-info/libreoffice.keys
1500 cp -p mime-info/libreoffice$PRODUCTVERSION.mime $RPM_BUILD_ROOT/%{_datadir}/mime-info/libreoffice.mime
1501 #add our mime-types, e.g. for .oxt extensions
1502 mkdir -p $RPM_BUILD_ROOT/%{_datadir}/mime/packages
1503 cp -p mime/packages/libreoffice$PRODUCTVERSION.xml $RPM_BUILD_ROOT/%{_datadir}/mime/packages/libreoffice.xml
1504 popd
1505
1506 rm -rf $RPM_BUILD_ROOT/%{baseinstdir}/readmes
1507 rm -rf $RPM_BUILD_ROOT/%{baseinstdir}/licenses
1508
1509 mkdir -p $RPM_BUILD_ROOT/%{baseinstdir}/share/psprint/driver
1510 cp -p psprint_config/configuration/ppds/SGENPRT.PS $RPM_BUILD_ROOT/%{baseinstdir}/share/psprint/driver/SGENPRT.PS
1511
1512 # rhbz#452385 to auto have postgres in classpath if subsequently installed
1513 # rhbz#465664 to get lucene working for functional help
1514 sed -i -e "s#URE_MORE_JAVA_CLASSPATH_URLS.*#& file:///usr/share/java/lucene.jar file:///usr/share/java/lucene-contrib/lucene-analyzers.jar file:///usr/share/java/postgresql-jdbc.jar#" $RPM_BUILD_ROOT/%{baseinstdir}/program/fundamentalbasisrc
1515
1516 # Br translation doesn't have any template so this lead to a crash.
1517 # Better use fr ones for now ( and check if this is still valid for next update )
1518 # FIXME: Re enable when we will add back br translations
1519 #pushd %buildroot%basisinstdir/share/template/
1520 #rm -fr br
1521 #ln -s fr br
1522 #popd
1523
1524 export DESTDIR=$RPM_BUILD_ROOT
1525 install-gdb-printers -a %{_datadir}/gdb/auto-load%{baseinstdir} -c -i %{baseinstdir} -p %{_datadir}/libreoffice/gdb
1526
1527 %check
1528 source ./Env.Host.sh
1529 cd smoketestoo_native
1530 unset WITH_LANG
1531 #JFW_PLUGIN_DO_NOT_CHECK_ACCESSIBILITY="1" works around flawed accessibility check
1532 #SAL_USE_VCLPLUGIN="svp" uses the headless plugin for these tests
1533 JFW_PLUGIN_DO_NOT_CHECK_ACCESSIBILITY="1" SAL_USE_VCLPLUGIN="svp" timeout -k 2m 2h build.pl
1534
1535 %files
1536
1537 %files core
1538 %dir %{baseinstdir}
1539 %dir %{baseinstdir}/help
1540 %docdir %{baseinstdir}/help/en
1541 %dir %{baseinstdir}/help/en
1542 %{baseinstdir}/help/en/default.css
1543 %{baseinstdir}/help/en/err.html
1544 %{baseinstdir}/help/en/highcontrast1.css
1545 %{baseinstdir}/help/en/highcontrast2.css
1546 %{baseinstdir}/help/en/highcontrastblack.css
1547 %{baseinstdir}/help/en/highcontrastwhite.css
1548 %{baseinstdir}/help/en/sbasic.*
1549 %{baseinstdir}/help/en/schart.*
1550 %{baseinstdir}/help/en/shared.*
1551 %{baseinstdir}/help/idxcaption.xsl
1552 %{baseinstdir}/help/idxcontent.xsl
1553 %{baseinstdir}/help/main_transform.xsl
1554 %{baseinstdir}/presets
1555 %dir %{baseinstdir}/program
1556 %{baseinstdir}/program/addin
1557 %{baseinstdir}/program/basprov.uno.so
1558 %{baseinstdir}/program/canvasfactory.uno.so
1559 %{baseinstdir}/program/cde-open-url
1560 %dir %{baseinstdir}/program/classes
1561 %{baseinstdir}/program/classes/agenda.jar
1562 %{baseinstdir}/program/classes/commonwizards.jar
1563 %{baseinstdir}/program/classes/fax.jar
1564 %{baseinstdir}/program/classes/form.jar
1565 %{baseinstdir}/program/classes/query.jar
1566 %{baseinstdir}/program/classes/letter.jar
1567 %{baseinstdir}/program/classes/LuceneHelpWrapper.jar
1568 %{baseinstdir}/program/classes/officebean.jar
1569 %{baseinstdir}/program/classes/report.jar
1570 %{baseinstdir}/program/classes/saxon9.jar
1571 %{baseinstdir}/program/classes/ScriptFramework.jar
1572 %{baseinstdir}/program/classes/ScriptProviderForJava.jar
1573 %{baseinstdir}/program/classes/table.jar
1574 %{baseinstdir}/program/classes/unoil.jar
1575 %{baseinstdir}/program/classes/web.jar
1576 %{baseinstdir}/program/classes/XMergeBridge.jar
1577 %{baseinstdir}/program/classes/xmerge.jar
1578 %{baseinstdir}/program/classes/XSLTFilter.jar
1579 %{baseinstdir}/program/classes/XSLTValidate.jar
1580 %{baseinstdir}/program/cmdmail.uno.so
1581 %{baseinstdir}/program/libdeployment.so
1582 %{baseinstdir}/program/libdeploymentgui.so
1583 %{baseinstdir}/program/dlgprov.uno.so
1584 %{baseinstdir}/program/expwrap.uno.so
1585 %{baseinstdir}/program/fastsax.uno.so
1586 %{baseinstdir}/program/fpicker.uno.so
1587 %{baseinstdir}/program/fps_office.uno.so
1588 %{baseinstdir}/program/gnome-open-url
1589 %{baseinstdir}/program/gnome-open-url.bin
1590 %{baseinstdir}/program/hatchwindowfactory.uno.so
1591 %{baseinstdir}/program/i18nsearch.uno.so
1592 %{baseinstdir}/program/legacy_binfilters.rdb
1593 %{baseinstdir}/program/libacc%{SOPOST}.so
1594 %{baseinstdir}/program/libavmedia*.so
1595 %{baseinstdir}/program/libbasctl%{SOPOST}.so
1596 %{baseinstdir}/program/libbf_sb%{SOPOST}.so
1597 %{baseinstdir}/program/libbf_frm%{SOPOST}.so
1598 %{baseinstdir}/program/libbf_go%{SOPOST}.so
1599 %{baseinstdir}/program/libbf_migratefilter%{SOPOST}.so
1600 %{baseinstdir}/program/libbf_ofa%{SOPOST}.so
1601 %{baseinstdir}/program/libbf_sch%{SOPOST}.so
1602 %{baseinstdir}/program/libbf_sd%{SOPOST}.so
1603 %{baseinstdir}/program/libbf_so%{SOPOST}.so
1604 %{baseinstdir}/program/libbf_svt%{SOPOST}.so
1605 %{baseinstdir}/program/libbf_svx%{SOPOST}.so
1606 %{baseinstdir}/program/libbf_wrapper%{SOPOST}.so
1607 %{baseinstdir}/program/libbf_xo%{SOPOST}.so
1608 %{baseinstdir}/program/libbib%{SOPOST}.so
1609 %{baseinstdir}/program/libbindet%{SOPOST}.so
1610 %{baseinstdir}/program/libcached1.so
1611 %{baseinstdir}/program/libcanvastools%{SOPOST}.so
1612 %{baseinstdir}/program/libchart*%{SOPOST}.so
1613 %{baseinstdir}/program/libcollator_data.so
1614 %{baseinstdir}/program/libcppcanvas%{SOPOST}.so
1615 %{baseinstdir}/program/libctl%{SOPOST}.so
1616 %{baseinstdir}/program/libcui%{SOPOST}.so
1617 %{baseinstdir}/program/libdba%{SOPOST}.so
1618 %{baseinstdir}/program/libdbase%{SOPOST}.so
1619 %{baseinstdir}/program/libdbaxml%{SOPOST}.so
1620 %{baseinstdir}/program/libdbmm%{SOPOST}.so
1621 %{baseinstdir}/program/libdbpool2.so
1622 %{baseinstdir}/program/libdbtools%{SOPOST}.so
1623 %{baseinstdir}/program/libdbu%{SOPOST}.so
1624 %{baseinstdir}/program/libdeploymentmisc%{SOPOST}.so
1625 %{baseinstdir}/program/libdesktop_detector%{SOPOST}.so
1626 %{baseinstdir}/program/libdict_ja.so
1627 %{baseinstdir}/program/libdict_zh.so
1628 %{baseinstdir}/program/libdrawinglayer%{SOPOST}.so
1629 %{baseinstdir}/program/libediteng%{SOPOST}.so
1630 %{baseinstdir}/program/libembobj.so
1631 %{baseinstdir}/program/libemboleobj.so
1632 %{baseinstdir}/program/libevoab*.so
1633 %{baseinstdir}/program/libevtatt%{SOPOST}.so
1634 %{baseinstdir}/program/libegi%{SOPOST}.so
1635 %{baseinstdir}/program/libeme%{SOPOST}.so
1636 %{baseinstdir}/program/libepb%{SOPOST}.so
1637 %{baseinstdir}/program/libepg%{SOPOST}.so
1638 %{baseinstdir}/program/libepp%{SOPOST}.so
1639 %{baseinstdir}/program/libeps%{SOPOST}.so
1640 %{baseinstdir}/program/libept%{SOPOST}.so
1641 %{baseinstdir}/program/libera%{SOPOST}.so
1642 %{baseinstdir}/program/libeti%{SOPOST}.so
1643 %{baseinstdir}/program/libexp%{SOPOST}.so
1644 %{baseinstdir}/program/libicd%{SOPOST}.so
1645 %{baseinstdir}/program/libicg%{SOPOST}.so
1646 %{baseinstdir}/program/libidx%{SOPOST}.so
1647 %{baseinstdir}/program/libime%{SOPOST}.so
1648 %{baseinstdir}/program/libindex_data.so
1649 %{baseinstdir}/program/libipb%{SOPOST}.so
1650 %{baseinstdir}/program/libipd%{SOPOST}.so
1651 %{baseinstdir}/program/libips%{SOPOST}.so
1652 %{baseinstdir}/program/libipt%{SOPOST}.so
1653 %{baseinstdir}/program/libipx%{SOPOST}.so
1654 %{baseinstdir}/program/libira%{SOPOST}.so
1655 %{baseinstdir}/program/libitg%{SOPOST}.so
1656 %{baseinstdir}/program/libiti%{SOPOST}.so
1657 %{baseinstdir}/program/libofficebean%{SOPOST}.so
1658 %{baseinstdir}/program/libfile%{SOPOST}.so
1659 %{baseinstdir}/program/libfilterconfig%{SOPOST}.so
1660 %{baseinstdir}/program/libflat%{SOPOST}.so
1661 %{baseinstdir}/program/libfrm%{SOPOST}.so
1662 %{baseinstdir}/program/libguesslang%{SOPOST}.so
1663 %{baseinstdir}/program/libhelplinker%{SOPOST}.so
1664 %{baseinstdir}/program/libhyphen%{SOPOST}.so
1665 %{baseinstdir}/program/libi18nregexp%{SOPOST}.so
1666 %{baseinstdir}/program/libjdbc%{SOPOST}.so
1667 %{baseinstdir}/program/liblegacy_binfilters%{SOPOST}.so
1668 %{baseinstdir}/program/liblng%{SOPOST}.so
1669 %{baseinstdir}/program/liblog%{SOPOST}.so
1670 %{baseinstdir}/program/liblocaledata_en.so
1671 %{baseinstdir}/program/liblocaledata_es.so
1672 %{baseinstdir}/program/liblocaledata_euro.so
1673 %{baseinstdir}/program/liblocaledata_others.so
1674 %{baseinstdir}/program/libmcnttype.so
1675 %{baseinstdir}/program/libmozbootstrap.so
1676 %{baseinstdir}/program/libmsfilter%{SOPOST}.so
1677 %{baseinstdir}/program/mtfrenderer.uno.so
1678 %{baseinstdir}/program/libmysql%{SOPOST}.so
1679 %{baseinstdir}/program/libodbc%{SOPOST}.so
1680 %{baseinstdir}/program/libodbcbase%{SOPOST}.so
1681 %{baseinstdir}/program/liboffacc%{SOPOST}.so
1682 %{baseinstdir}/program/liboox%{SOPOST}.so
1683 %{baseinstdir}/program/libpcr%{SOPOST}.so
1684 %{baseinstdir}/program/libpdffilter%{SOPOST}.so
1685 %{baseinstdir}/program/libpl%{SOPOST}.so
1686 %{baseinstdir}/program/libprotocolhandler%{SOPOST}.so
1687 %{baseinstdir}/program/libqstart_gtk%{SOPOST}.so
1688 %{baseinstdir}/program/librecentfile.so
1689 %{baseinstdir}/program/libres%{SOPOST}.so
1690 %{baseinstdir}/program/libsax%{SOPOST}.so
1691 %{baseinstdir}/program/libscn%{SOPOST}.so
1692 %{baseinstdir}/program/libscriptframe.so
1693 %{baseinstdir}/program/libsd%{SOPOST}.so
1694 %{baseinstdir}/program/libsdfilt%{SOPOST}.so
1695 %{baseinstdir}/program/libsdbc2.so
1696 %{baseinstdir}/program/libsdbt%{SOPOST}so
1697 %{baseinstdir}/program/libsdd%{SOPOST}.so
1698 %{baseinstdir}/program/libsdui%{SOPOST}.so
1699 %{baseinstdir}/program/libspa%{SOPOST}.so
1700 %{baseinstdir}/program/libspell%{SOPOST}.so
1701 %{baseinstdir}/program/libsrtrs1.so
1702 %{baseinstdir}/program/libsvx%{SOPOST}.so
1703 %{baseinstdir}/program/libsvxcore%{SOPOST}.so
1704 %{baseinstdir}/program/libsw%{SOPOST}.so
1705 %{baseinstdir}/program/libtextconv_dict.so
1706 %{baseinstdir}/program/libtextconversiondlgs%{SOPOST}.so
1707 %{baseinstdir}/program/libtvhlp1.so
1708 %{baseinstdir}/program/libodfflatxml%{SOPOST}.so
1709 %{baseinstdir}/program/libucbhelper4gcc3.so
1710 %{baseinstdir}/program/libucpchelp1.so
1711 %{baseinstdir}/program/libucpdav1.so
1712 %{baseinstdir}/program/libucpftp1.so
1713 %{baseinstdir}/program/libucphier1.so
1714 %{baseinstdir}/program/libucppkg1.so
1715 %{baseinstdir}/program/libunordf%{SOPOST}.so
1716 %{baseinstdir}/program/libunopkgapp.so
1717 %{baseinstdir}/program/libunoxml%{SOPOST}.so
1718 %{baseinstdir}/program/libupdchk%{SOPOST}.so
1719 %{baseinstdir}/program/libuui%{SOPOST}.so
1720 %{baseinstdir}/program/libvbahelper%{SOPOST}.so
1721 %{baseinstdir}/program/libvclplug_gen%{SOPOST}.so
1722 %{baseinstdir}/program/libvclplug_gtk%{SOPOST}.so
1723 %{baseinstdir}/program/libwpgimport%{SOPOST}.so
1724 %{baseinstdir}/program/libxmlfa%{SOPOST}.so
1725 %{baseinstdir}/program/libxmlfd%{SOPOST}.so
1726 %{baseinstdir}/program/libxmx%{SOPOST}.so
1727 %{baseinstdir}/program/libxof%{SOPOST}.so
1728 %{baseinstdir}/program/libxsec_fw.so
1729 %{baseinstdir}/program/libxsec_xmlsec.so
1730 %{baseinstdir}/program/libxsltdlg%{SOPOST}.so
1731 %{baseinstdir}/program/libxsltfilter%{SOPOST}.so
1732 %{baseinstdir}/program/libxstor.so
1733 %{baseinstdir}/program/migrationoo2.uno.so
1734 %{baseinstdir}/program/migrationoo3.uno.so
1735 %{baseinstdir}/program/msforms.uno.so
1736 %{baseinstdir}/program/nsplugin
1737 %{baseinstdir}/program/open-url
1738 %{baseinstdir}/program/types/offapi.rdb
1739 %{baseinstdir}/program/passwordcontainer.uno.so
1740 %{baseinstdir}/program/pagein-common
1741 %{baseinstdir}/program/plugin
1742 %{baseinstdir}/program/pluginapp.bin
1743 %dir %{baseinstdir}/program/resource
1744 %{baseinstdir}/program/resource/avmediaen-US.res
1745 %{baseinstdir}/program/resource/accen-US.res
1746 %{baseinstdir}/program/resource/basctlen-US.res
1747 %{baseinstdir}/program/resource/bf_frmen-US.res
1748 %{baseinstdir}/program/resource/bf_ofaen-US.res
1749 %{baseinstdir}/program/resource/bf_schen-US.res
1750 %{baseinstdir}/program/resource/bf_sden-US.res
1751 %{baseinstdir}/program/resource/bf_svten-US.res
1752 %{baseinstdir}/program/resource/bf_svxen-US.res
1753 %{baseinstdir}/program/resource/biben-US.res
1754 %{baseinstdir}/program/resource/calen-US.res
1755 %{baseinstdir}/program/resource/chartcontrolleren-US.res
1756 %{baseinstdir}/program/resource/cuien-US.res
1757 %{baseinstdir}/program/resource/dbaen-US.res
1758 %{baseinstdir}/program/resource/dbmmen-US.res
1759 %{baseinstdir}/program/resource/dbuen-US.res
1760 %{baseinstdir}/program/resource/dbwen-US.res
1761 %{baseinstdir}/program/resource/deploymenten-US.res
1762 %{baseinstdir}/program/resource/deploymentguien-US.res
1763 %{baseinstdir}/program/resource/dkten-US.res
1764 %{baseinstdir}/program/resource/editengen-US.res
1765 %{baseinstdir}/program/resource/epsen-US.res
1766 %{baseinstdir}/program/resource/euren-US.res
1767 %{baseinstdir}/program/resource/fps_officeen-US.res
1768 %{baseinstdir}/program/resource/frmen-US.res
1769 %{baseinstdir}/program/resource/fween-US.res
1770 %{baseinstdir}/program/resource/galen-US.res
1771 %{baseinstdir}/program/resource/impen-US.res
1772 %{baseinstdir}/program/resource/ofaen-US.res
1773 %{baseinstdir}/program/resource/pcren-US.res
1774 %{baseinstdir}/program/resource/pdffilteren-US.res
1775 %{baseinstdir}/program/resource/sanen-US.res
1776 %{baseinstdir}/program/resource/sben-US.res
1777 %{baseinstdir}/program/resource/sden-US.res
1778 %{baseinstdir}/program/resource/sfxen-US.res
1779 %{baseinstdir}/program/resource/spaen-US.res
1780 %{baseinstdir}/program/resource/sdbten-US.res
1781 %{baseinstdir}/program/resource/svlen-US.res
1782 %{baseinstdir}/program/resource/svten-US.res
1783 %{baseinstdir}/program/resource/svxen-US.res
1784 %{baseinstdir}/program/resource/swen-US.res
1785 %{baseinstdir}/program/resource/textconversiondlgsen-US.res
1786 %{baseinstdir}/program/resource/tken-US.res
1787 %{baseinstdir}/program/resource/tplen-US.res
1788 %{baseinstdir}/program/resource/uuien-US.res
1789 %{baseinstdir}/program/resource/updchken-US.res
1790 %{baseinstdir}/program/resource/upden-US.res
1791 %{baseinstdir}/program/resource/vclen-US.res
1792 %{baseinstdir}/program/resource/wzien-US.res
1793 %{baseinstdir}/program/resource/xmlsecen-US.res
1794 %{baseinstdir}/program/resource/xsltdlgen-US.res
1795 %{baseinstdir}/program/senddoc
1796 %{baseinstdir}/program/services/services.rdb
1797 %{baseinstdir}/program/simplecanvas.uno.so
1798 %{baseinstdir}/program/slideshow.uno.so
1799 %{baseinstdir}/program/libsofficeapp.so
1800 %{baseinstdir}/program/spadmin.bin
1801 %{baseinstdir}/program/stringresource.uno.so
1802 %{baseinstdir}/program/syssh.uno.so
1803 %{baseinstdir}/program/ucpcmis1.uno.so
1804 %{baseinstdir}/program/ucpexpand1.uno.so
1805 %{baseinstdir}/program/ucpext.uno.so
1806 %{baseinstdir}/program/ucptdoc1.uno.so
1807 %{baseinstdir}/program/unorc
1808 %{baseinstdir}/program/updatefeed.uno.so
1809 %{baseinstdir}/ure-link
1810 %{baseinstdir}/program/uri-encode
1811 %{baseinstdir}/program/vbaevents.uno.so
1812 %{baseinstdir}/program/vclcanvas.uno.so
1813 %{baseinstdir}/program/versionrc
1814 %{baseinstdir}/program/cairocanvas.uno.so
1815 %dir %{baseinstdir}/share
1816 %dir %{baseinstdir}/share/Scripts
1817 %{baseinstdir}/share/Scripts/java
1818 %{baseinstdir}/share/autotext
1819 %{baseinstdir}/share/basic
1820 %dir %{baseinstdir}/share/config
1821 %{baseinstdir}/share/config/images.zip
1822 %{baseinstdir}/share/config/images_crystal.zip
1823 %{baseinstdir}/share/config/images_hicontrast.zip
1824 %{baseinstdir}/share/config/images_oxygen.zip
1825 %{baseinstdir}/share/config/images_tango.zip
1826 %{baseinstdir}/share/config/javasettingsunopkginstall.xml
1827 %{baseinstdir}/share/config/psetup.xpm
1828 %{baseinstdir}/share/config/psetupl.xpm
1829 %dir %{baseinstdir}/share/config/soffice.cfg
1830 %{baseinstdir}/share/config/soffice.cfg/modules
1831 %{baseinstdir}/share/config/symbol
1832 %{baseinstdir}/share/config/webcast
1833 %{baseinstdir}/share/config/wizard
1834 %dir %{baseinstdir}/share/dtd
1835 %{baseinstdir}/share/dtd/officedocument
1836 %{baseinstdir}/share/fingerprint
1837 %{baseinstdir}/share/gallery
1838 %dir %{baseinstdir}/share/psprint
1839 %config %{baseinstdir}/share/psprint/psprint.conf
1840 %{baseinstdir}/share/psprint/driver
1841 %dir %{baseinstdir}/share/registry
1842 %{baseinstdir}/share/registry/binfilter.xcd
1843 %{baseinstdir}/share/registry/gnome.xcd
1844 %{baseinstdir}/share/registry/lingucomponent.xcd
1845 %{baseinstdir}/share/registry/main.xcd
1846 %{baseinstdir}/share/registry/oo-ad-ldap.xcd.sample
1847 %{baseinstdir}/share/registry/oo-ldap.xcd.sample
1848 %{baseinstdir}/share/registry/Langpack-en-US.xcd
1849 %dir %{baseinstdir}/share/registry/res
1850 %{baseinstdir}/share/registry/res/fcfg_langpack_en-US.xcd
1851 %dir %{baseinstdir}/share/samples
1852 %{baseinstdir}/share/samples/en-US
1853 %dir %{baseinstdir}/share/template
1854 %{baseinstdir}/share/template/en-US
1855 %dir %{baseinstdir}/share/template/common
1856 %{baseinstdir}/share/template/common/layout
1857 %{baseinstdir}/share/template/wizard
1858 %dir %{baseinstdir}/share/wordbook
1859 %{baseinstdir}/share/wordbook/en-GB.dic
1860 %{baseinstdir}/share/wordbook/en-US.dic
1861 %{baseinstdir}/share/wordbook/sl.dic
1862 %{baseinstdir}/share/wordbook/technical.dic
1863 %dir %{baseinstdir}/share/xslt
1864 %{baseinstdir}/share/xslt/common
1865 %dir %{baseinstdir}/share/xslt/export
1866 %{baseinstdir}/share/xslt/export/common
1867 %{baseinstdir}/share/xslt/export/spreadsheetml
1868 %{baseinstdir}/share/xslt/export/wordml
1869 %dir %{baseinstdir}/share/xslt/import
1870 %{baseinstdir}/share/xslt/import/common
1871 %{baseinstdir}/share/xslt/import/spreadsheetml
1872 %{baseinstdir}/share/xslt/import/wordml
1873 %{baseinstdir}/program/liblnth%{SOPOST}.so
1874 %{_bindir}/unopkg
1875 #icons and mime
1876 %{_datadir}/icons/*/*/*/libreoffice*
1877 %{_datadir}/mime-info/libreoffice.*
1878 %{baseinstdir}/program/libxmlsecurity.so
1879 %{_datadir}/mime/packages/libreoffice.xml
1880 %{baseinstdir}/program/configmgr.uno.so
1881 %{baseinstdir}/program/desktopbe1.uno.so
1882 %{baseinstdir}/program/fsstorage.uno.so
1883 %{baseinstdir}/program/gconfbe1.uno.so
1884 %{baseinstdir}/program/i18npool.uno.so
1885 %{baseinstdir}/program/libbasegfx%{SOPOST}.so
1886 %{baseinstdir}/program/libcomphelpgcc3.so
1887 %{baseinstdir}/program/libfileacc.so
1888 %{baseinstdir}/program/libfwe%{SOPOST}.so
1889 %{baseinstdir}/program/libfwi%{SOPOST}.so
1890 %{baseinstdir}/program/libfwk%{SOPOST}.so
1891 %{baseinstdir}/program/libfwl%{SOPOST}.so
1892 %{baseinstdir}/program/libfwm%{SOPOST}.so
1893 %{baseinstdir}/program/libi18nisolang*.so
1894 %{baseinstdir}/program/libi18npaper*.so
1895 %{baseinstdir}/program/libi18nutilgcc3.so
1896 %{baseinstdir}/program/libpackage2.so
1897 %{baseinstdir}/program/libsb%{SOPOST}.so
1898 %{baseinstdir}/program/libsfx%{SOPOST}.so
1899 %{baseinstdir}/program/libsot%{SOPOST}.so
1900 %{baseinstdir}/program/libspl%{SOPOST}.so
1901 %{baseinstdir}/program/libspl_unx%{SOPOST}.so
1902 %{baseinstdir}/program/libsvl%{SOPOST}.so
1903 %{baseinstdir}/program/libsvt%{SOPOST}.so
1904 %{baseinstdir}/program/libtk%{SOPOST}.so
1905 %{baseinstdir}/program/libtl%{SOPOST}.so
1906 %{baseinstdir}/program/libucb1.so
1907 %{baseinstdir}/program/libucpfile1.so
1908 %{baseinstdir}/program/libutl%{SOPOST}.so
1909 %{baseinstdir}/program/libvcl%{SOPOST}.so
1910 %{baseinstdir}/program/libxcr%{SOPOST}.so
1911 %{baseinstdir}/program/libxo%{SOPOST}.so
1912 %{baseinstdir}/program/localebe1.uno.so
1913 %{baseinstdir}/program/ucpgio1.uno.so
1914 %{baseinstdir}/program/types/oovbaapi.rdb
1915 #share unopkg
1916 %dir %{baseinstdir}/share/extensions
1917 %{baseinstdir}/share/extensions/package.txt
1918 %{baseinstdir}/program/unopkg
1919 %{baseinstdir}/program/unopkg.bin
1920 %{baseinstdir}/program/bootstraprc
1921 %{baseinstdir}/program/fundamentalrc
1922 %{baseinstdir}/program/setuprc
1923 %doc %{baseinstdir}/CREDITS.odt
1924 %doc %{baseinstdir}/LICENSE
1925 %doc %{baseinstdir}/LICENSE.odt
1926 %doc %{baseinstdir}/THIRDPARTYLICENSEREADME.html
1927 %{baseinstdir}/program/about.*
1928 %{baseinstdir}/program/intro.*
1929 %{baseinstdir}/program/soffice
1930 %{baseinstdir}/program/soffice.bin
1931 %{baseinstdir}/program/sofficerc
1932 %{baseinstdir}/program/spadmin
1933 %{baseinstdir}/program/unoinfo
1934 %{baseinstdir}/program/libnpsoplugin.so
1935 %{baseinstdir}/program/oosplash
1936 %{baseinstdir}/program/shell/
1937 %{baseinstdir}/share/config/images_brand.zip
1938 %{baseinstdir}/share/xdg/
1939 %{baseinstdir}/program/redirectrc
1940 %{_datadir}/applications/libreoffice-startcenter.desktop
1941 #launchers
1942 %{_bindir}/libreoffice
1943 %{_bindir}/openoffice.org
1944 %{_bindir}/soffice
1945 %{_bindir}/ooffice
1946 %{_bindir}/ooviewdoc
1947
1948 %files base
1949 %dir %{baseinstdir}
1950 %{baseinstdir}/help/en/sdatabase.*
1951 %dir %{baseinstdir}/program
1952 %dir %{baseinstdir}/program/classes
1953 %{baseinstdir}/program/classes/hsqldb.jar
1954 %{baseinstdir}/program/classes/sdbc_hsqldb.jar
1955 %{baseinstdir}/program/libabp%{SOPOST}.so
1956 %{baseinstdir}/program/libadabasui%{SOPOST}.so
1957 %{baseinstdir}/program/libdbp%{SOPOST}.so
1958 %{baseinstdir}/program/libhsqldb.so
1959 %{baseinstdir}/program/librpt*%{SOPOST}.so
1960 %dir %{baseinstdir}/program/resource
1961 %{baseinstdir}/program/resource/abpen-US.res
1962 %{baseinstdir}/program/resource/adabasuien-US.res
1963 %{baseinstdir}/program/resource/cnren-US.res
1964 %{baseinstdir}/program/resource/dbpen-US.res
1965 %{baseinstdir}/program/resource/rpten-US.res
1966 %{baseinstdir}/program/resource/rptuien-US.res
1967 %{baseinstdir}/program/resource/sdbclen-US.res
1968 %{baseinstdir}/program/resource/sdberren-US.res
1969 %{baseinstdir}/share/registry/base.xcd
1970 %{baseinstdir}/program/sbase
1971 %{_datadir}/applications/libreoffice-base.desktop
1972 %{_bindir}/oobase
1973
1974 %files report-builder
1975 %docdir %{baseinstdir}/share/extensions/report-builder/help
1976 %{baseinstdir}/share/extensions/report-builder
1977
1978 %files bsh
1979 %{baseinstdir}/program/classes/ScriptProviderForBeanShell.jar
1980 %{baseinstdir}/program/services/scriptproviderforbeanshell.rdb
1981 %{baseinstdir}/share/Scripts/beanshell
1982
1983 %files rhino
1984 %{baseinstdir}/program/classes/js.jar
1985 %{baseinstdir}/program/classes/ScriptProviderForJavaScript.jar
1986 %{baseinstdir}/program/services/scriptproviderforjavascript.rdb
1987 %{baseinstdir}/share/Scripts/javascript
1988
1989 %files wiki-publisher
1990 %docdir %{baseinstdir}/share/extensions/wiki-publisher/license
1991 %{baseinstdir}/share/extensions/wiki-publisher
1992
1993 %files ogltrans
1994 %dir %{baseinstdir}
1995 %dir %{baseinstdir}/program
1996 %{baseinstdir}/program/OGLTrans.uno.so
1997 %dir %{baseinstdir}/share/config
1998 %dir %{baseinstdir}/share/config/soffice.cfg
1999 %dir %{baseinstdir}/share/config/soffice.cfg/simpress
2000 %{baseinstdir}/share/config/soffice.cfg/simpress/transitions-ogl.xml
2001 %{baseinstdir}/share/registry/ogltrans.xcd
2002
2003 %files presentation-minimizer
2004 %docdir %{baseinstdir}/share/extensions/presentation-minimizer/help
2005 %{baseinstdir}/share/extensions/presentation-minimizer
2006
2007 %files presenter-screen
2008 %docdir %{baseinstdir}/share/extensions/presenter-screen/help
2009 %{baseinstdir}/share/extensions/presenter-screen
2010
2011 %files pdfimport
2012 %docdir %{baseinstdir}/share/extensions/pdfimport/help
2013 %{baseinstdir}/share/extensions/pdfimport
2014
2015 %_font_pkg -n %{fontname} opens___.ttf
2016 %doc solver/%{OFFICEUPD}/unxlng*/bin/ure/LICENSE
2017
2018 %files calc
2019 %dir %{baseinstdir}
2020 %{baseinstdir}/help/en/scalc.*
2021 %dir %{baseinstdir}/program
2022 %{baseinstdir}/program/libanalysis%{SOPOST}.so
2023 %{baseinstdir}/program/libbf_sc%{SOPOST}.so
2024 %{baseinstdir}/program/libcalc%{SOPOST}.so
2025 %{baseinstdir}/program/libdate%{SOPOST}.so
2026 %{baseinstdir}/program/libfor%{SOPOST}.so
2027 %{baseinstdir}/program/libforui%{SOPOST}.so
2028 %{baseinstdir}/program/libsc%{SOPOST}.so
2029 %{baseinstdir}/program/libscd%{SOPOST}.so
2030 %{baseinstdir}/program/libscfilt%{SOPOST}.so
2031 %{baseinstdir}/program/libscui%{SOPOST}.so
2032 %{baseinstdir}/program/libsolver%{SOPOST}.so
2033 %dir %{baseinstdir}/program/resource
2034 %{baseinstdir}/program/resource/analysisen-US.res
2035 %{baseinstdir}/program/resource/bf_scen-US.res
2036 %{baseinstdir}/program/resource/dateen-US.res
2037 %{baseinstdir}/program/resource/foren-US.res
2038 %{baseinstdir}/program/resource/foruien-US.res
2039 %{baseinstdir}/program/resource/scen-US.res
2040 %{baseinstdir}/program/resource/solveren-US.res
2041 %{baseinstdir}/program/vbaobj.uno.so
2042 %{baseinstdir}/share/registry/calc.xcd
2043 %{baseinstdir}/program/pagein-calc
2044 %{baseinstdir}/program/scalc
2045 %{_datadir}/applications/libreoffice-calc.desktop
2046 %{_bindir}/oocalc
2047
2048 %files draw
2049 %dir %{baseinstdir}
2050 %dir %{baseinstdir}/program
2051 %{baseinstdir}/help/en/sdraw.*
2052 %{baseinstdir}/share/registry/draw.xcd
2053 %{baseinstdir}/program/pagein-draw
2054 %{baseinstdir}/program/sdraw
2055 %{_datadir}/applications/libreoffice-draw.desktop
2056 %{_bindir}/oodraw
2057
2058 %files emailmerge
2059 %dir %{baseinstdir}
2060 %dir %{baseinstdir}/program
2061 %{baseinstdir}/program/mailmerge.py*
2062 %{baseinstdir}/program/msgbox.py*
2063 %{baseinstdir}/program/officehelper.py*
2064
2065 %files writer
2066 %dir %{baseinstdir}
2067 %{baseinstdir}/help/en/swriter.*
2068 %dir %{baseinstdir}/program
2069 %{baseinstdir}/program/libbf_sw%{SOPOST}.so
2070 %{baseinstdir}/program/libdoctok%{SOPOST}.so
2071 %{baseinstdir}/program/libhwp%{SOPOST}.so
2072 %{baseinstdir}/program/liblwpft%{SOPOST}.so
2073 %{baseinstdir}/program/libmsword%{SOPOST}.so
2074 %{baseinstdir}/program/libmsworks%{SOPOST}.so
2075 %{baseinstdir}/program/libooxml%{SOPOST}.so
2076 %{baseinstdir}/program/libresourcemodel%{SOPOST}.so
2077 %{baseinstdir}/program/librtftok%{SOPOST}.so
2078 %{baseinstdir}/program/libswd%{SOPOST}.so
2079 %{baseinstdir}/program/libswui%{SOPOST}.so
2080 %{baseinstdir}/program/libt602filter%{SOPOST}.so
2081 %{baseinstdir}/program/libwpft%{SOPOST}.so
2082 %{baseinstdir}/program/libwriterfilter%{SOPOST}.so
2083 %{baseinstdir}/program/vbaswobj.uno.so
2084 %dir %{baseinstdir}/program/resource
2085 %{baseinstdir}/program/resource/bf_swen-US.res
2086 %{baseinstdir}/program/resource/t602filteren-US.res
2087 %{baseinstdir}/share/registry/writer.xcd
2088 %{baseinstdir}/program/pagein-writer
2089 %{baseinstdir}/program/swriter
2090 %{_datadir}/applications/libreoffice-writer.desktop
2091 %{_bindir}/oowriter
2092
2093 %files impress
2094 %dir %{baseinstdir}
2095 %{baseinstdir}/help/en/simpress.*
2096 %dir %{baseinstdir}/program
2097 %{baseinstdir}/program/libanimcore%{SOPOST}.so
2098 %{baseinstdir}/program/libplaceware%{SOPOST}.so
2099 %dir %{baseinstdir}/share/config
2100 %dir %{baseinstdir}/share/config/soffice.cfg
2101 %dir %{baseinstdir}/share/config/soffice.cfg/simpress
2102 %{baseinstdir}/share/config/soffice.cfg/simpress/effects.xml
2103 %{baseinstdir}/share/config/soffice.cfg/simpress/transitions.xml
2104 %{baseinstdir}/share/registry/impress.xcd
2105 %{baseinstdir}/program/pagein-impress
2106 %{baseinstdir}/program/simpress
2107 %{_datadir}/applications/libreoffice-impress.desktop
2108 %{_bindir}/ooimpress
2109
2110 %files math
2111 %dir %{baseinstdir}
2112 %{baseinstdir}/help/en/smath.*
2113 %dir %{baseinstdir}/program
2114 %{baseinstdir}/program/libbf_sm%{SOPOST}.so
2115 %{baseinstdir}/program/libsm%{SOPOST}.so
2116 %{baseinstdir}/program/libsmd%{SOPOST}.so
2117 %dir %{baseinstdir}/program/resource
2118 %{baseinstdir}/program/resource/bf_smen-US.res
2119 %{baseinstdir}/program/resource/smen-US.res
2120 %{baseinstdir}/share/registry/math.xcd
2121 %{baseinstdir}/program/smath
2122 %{_datadir}/applications/libreoffice-math.desktop
2123 %{_bindir}/oomath
2124
2125 %files graphicfilter
2126 %dir %{baseinstdir}
2127 %dir %{baseinstdir}/program
2128 %{baseinstdir}/program/libcdrimport%{SOPOST}.so
2129 %{baseinstdir}/program/libflash%{SOPOST}.so
2130 %{baseinstdir}/program/libsvgfilter%{SOPOST}.so
2131 %{baseinstdir}/program/libvisioimport%{SOPOST}.so
2132 %{baseinstdir}/share/registry/graphicfilter.xcd
2133
2134 %files xsltfilter
2135 %dir %{baseinstdir}
2136 %dir %{baseinstdir}/share/xslt
2137 %{baseinstdir}/share/xslt/docbook
2138 %dir %{baseinstdir}/share/xslt/export
2139 %{baseinstdir}/share/xslt/export/uof
2140 %{baseinstdir}/share/xslt/export/xhtml
2141 %dir %{baseinstdir}/share/xslt/import
2142 %{baseinstdir}/share/xslt/import/uof
2143 %{baseinstdir}/share/registry/xsltfilter.xcd
2144
2145 %files javafilter
2146 %dir %{baseinstdir}
2147 %dir %{baseinstdir}/program
2148 %dir %{baseinstdir}/program/classes
2149 %{baseinstdir}/program/classes/aportisdoc.jar
2150 %{baseinstdir}/program/classes/pexcel.jar
2151 %{baseinstdir}/program/classes/pocketword.jar
2152 %{_datadir}/applications/libreoffice-javafilter.desktop
2153 %{baseinstdir}/share/registry/palm.xcd
2154 %{baseinstdir}/share/registry/pocketexcel.xcd
2155 %{baseinstdir}/share/registry/pocketword.xcd
2156
2157 %files ure
2158 %doc solver/unxlng*/bin/ure/LICENSE
2159 %dir %{baseinstdir}
2160 %{ureinstdir}
2161 %exclude %{ureinstdir}/lib/libjvm*.so*
2162
2163 %files sdk
2164 %{sdkinstdir}/
2165 %exclude %{sdkinstdir}/docs/
2166 %exclude %{sdkinstdir}/examples/
2167
2168 %files sdk-doc
2169 %docdir %{sdkinstdir}/docs
2170 %{sdkinstdir}/docs/
2171 %{sdkinstdir}/examples/
2172
2173 %files headless
2174 %dir %{baseinstdir}
2175 %dir %{baseinstdir}/program
2176 %{baseinstdir}/program/libbasebmp%{SOPOST}.so
2177 %{baseinstdir}/program/libvclplug_svp%{SOPOST}.so
2178
2179 %files pyuno
2180 %dir %{baseinstdir}
2181 %dir %{baseinstdir}/program
2182 %{baseinstdir}/program/libpyuno.so
2183 %{baseinstdir}/program/pythonloader.py*
2184 %{baseinstdir}/program/pythonloader.uno.so
2185 %{baseinstdir}/program/pythonloader.unorc
2186 %{baseinstdir}/program/pyuno.so
2187 %{baseinstdir}/program/wizards
2188 %dir %{baseinstdir}/share/Scripts
2189 %{baseinstdir}/share/Scripts/python
2190 %{python_sitearch}/uno.py*
2191 %{python_sitearch}/unohelper.py*
2192 %{baseinstdir}/share/extensions/script-provider-for-python
2193 %{baseinstdir}/share/registry/pyuno.xcd
2194
2195 %files kde
2196 %dir %{baseinstdir}
2197 %dir %{baseinstdir}/program
2198 %{baseinstdir}/program/kde-open-url
2199 %{baseinstdir}/program/kde4be1.uno.so
2200 %{baseinstdir}/program/fps_kde4.uno.so
2201 %{baseinstdir}/program/libvclplug_kde4%{SOPOST}.so
2202
2203 %files java-common
2204 %dir %{baseinstdir}/program/classes
2205 %{baseinstdir}/program/classes/agenda.jar
2206 %{baseinstdir}/program/classes/commonwizards.jar
2207 %{baseinstdir}/program/classes/fax.jar
2208 %{baseinstdir}/program/classes/form.jar
2209 %{baseinstdir}/program/classes/query.jar
2210 %{baseinstdir}/program/classes/letter.jar
2211 %{baseinstdir}/program/classes/LuceneHelpWrapper.jar
2212 %{baseinstdir}/program/classes/officebean.jar
2213 %{baseinstdir}/program/classes/report.jar
2214 %{baseinstdir}/program/classes/saxon9.jar
2215 %{baseinstdir}/program/classes/ScriptFramework.jar
2216 %{baseinstdir}/program/classes/ScriptProviderForJava.jar
2217 %{baseinstdir}/program/classes/table.jar
2218 %{baseinstdir}/program/classes/unoil.jar
2219 %{baseinstdir}/program/classes/web.jar
2220 %{baseinstdir}/program/classes/XMergeBridge.jar
2221 %{baseinstdir}/program/classes/xmerge.jar
2222 %{baseinstdir}/program/classes/XSLTFilter.jar
2223 %{baseinstdir}/program/classes/XSLTValidate.jar
2224 %{baseinstdir}/program/libofficebean.so
2225 %{baseinstdir}/share/Scripts/java
2226

  ViewVC Help
Powered by ViewVC 1.1.28