/[packages]/cauldron/libreoffice/releases/3.3.2.2/1.mga1/SPECS/libreoffice.spec
ViewVC logotype

Contents of /cauldron/libreoffice/releases/3.3.2.2/1.mga1/SPECS/libreoffice.spec

Parent Directory Parent Directory | Revision Log Revision Log


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

  ViewVC Help
Powered by ViewVC 1.1.28