]> git.pld-linux.org Git - packages/libreoffice.git/blob - libreoffice.spec
51d03b7ef3bd69c154271555ed4d10f8e5ced5ae
[packages/libreoffice.git] / libreoffice.spec
1 # NOTE:
2 #       - normal build requires little less than 4GB of disk space
3 #       - full debug build requires about 9GB of disk space
4 # TODO:
5 #       - drop requirement on XFree86-static
6 #       - drop requirement on nas-devel
7 #       - fix locale names and other locale related things
8 #       - --with-system-myspell + myspell package as in Debian
9 #       - --with-system-neon - check compilation (works with 0.23 but not 0.24)
10
11 # Conditional build:
12 %bcond_with     java            # Java support
13 %bcond_with     icons_ximian    # Ximian icons instead of KDE one
14
15 %define         ver             1.1
16 %define         rel             2
17 %define         ooobver         1.1.61
18 %define         subver          645
19 %define         fullver         %{ver}.%{rel}
20 %define         dfullver        %(echo %{fullver} | tr . _)
21 %define         specflags       -fno-strict-aliasing
22
23 Summary:        OpenOffice - powerful office suite
24 Summary(pl):    OpenOffice - potê¿ny pakiet biurowy
25 Name:           openoffice
26 Version:        %{fullver}
27 Release:        0.1
28 Epoch:          1
29 License:        GPL/LGPL
30 Group:          X11/Applications
31 Source0:        http://ooo.ximian.com/packages/OOO_%{dfullver}/ooo-build-%{ooobver}.tar.gz
32 # Source0-md5:  6ab5f5c7adcc250c2cb2a5ec16d0dd06
33 Source1:        http://ooo.ximian.com/packages/OOO_%{dfullver}/OOO_%{dfullver}.tar.bz2
34 # Source1-md5:  627fbce603598a74f9be03f5a1da6d94
35 Source2:        http://ooo.ximian.com/packages/ooo-icons-OOO_1_1-9.tar.gz
36 # Source2-md5:  32a0e62f89ef36a91437fc705fbe6440
37 Source3:        http://kde.openoffice.org/files/documents/159/1785/ooo-KDE_icons-OOO_1_1-0.1.tar.gz
38 # Source3-md5:  5157d4453d17cae586ce24989d34357a
39 Source10:       http://ep09.pld-linux.org/~adgor/pld/%{name}-desktopfiles-0.2.tar.bz2
40 # Source10-md5: 78ae3bef3e98f711b1afe9fb5717b42e
41
42 # we keep these in ooo-build repository
43 # PLD splash screen
44 #Source20:      %{name}-about.bmp
45 #Source21:      %{name}-intro.bmp
46
47 %define         cftp    http://ftp.services.openoffice.org/pub/OpenOffice.org/contrib
48
49 # Help content
50 Source400:      %{cftp}/helpcontent/helpcontent_01_unix.tgz
51 # Source400-md5:        7da2aff674c2c84aba8b21ac2ab16bb6
52 Source401:      %{cftp}/helpcontent/helpcontent_31_unix.tgz
53 # Source401-md5:        c7e618e2d9b8bd25cae12954ef2548c9
54 Source402:      %{cftp}/helpcontent/helpcontent_33_unix.tgz
55 # Source402-md5:        68d58bc30b485a77c0a0fba08af3aee3
56 Source403:      %{cftp}/helpcontent/helpcontent_34_unix.tgz
57 # Source403-md5:        8696bbee3dc4d5b6fd60218123016e29
58 Source404:      %{cftp}/helpcontent/helpcontent_39_unix.tgz
59 # Source404-md5:        c2ae86d02f462d2b663d621190f5ef34
60 Source405:      %{cftp}/helpcontent/helpcontent_46_unix.tgz
61 # Source405-md5:        7b013981edce2fabe4a8751ff64a8d58
62 Source406:      %{cftp}/helpcontent/helpcontent_49_unix.tgz
63 # Source406-md5:        a39f44ec40f452c963a4a187f31d1acb
64 Source407:      %{cftp}/helpcontent/helpcontent_81_unix.tgz
65 # Source407-md5:        81b705057a0e14ebcbf02fac4762781a
66 Source408:      %{cftp}/helpcontent/helpcontent_82_unix.tgz
67 # Source408-md5:        3121fbd251176d7c7b6e33ecec744c65
68 Source409:      %{cftp}/helpcontent/helpcontent_86_unix.tgz
69 # Source409-md5:        aee37935139c5ccd4b6d8abdd2037c66
70 Source410:      %{cftp}/helpcontent/helpcontent_88_unix.tgz
71 # Source410-md5:        3b00571318e45965dee0545d86306d65
72
73 Patch0:         %{name}-rh-disable-spellcheck-all-langs.patch
74 Patch1:         %{name}-pld-config.patch
75 Patch2:         %{name}-apply.patch
76 Patch3:         %{name}-bashizm.patch
77
78 URL:            http://www.openoffice.org/
79 BuildRequires:  ImageMagick
80 BuildRequires:  STLport-devel >= 4.5.3-6
81 BuildRequires:  XFree86-devel
82 BuildRequires:  XFree86-static
83 BuildRequires:  autoconf
84 BuildRequires:  automake
85 BuildRequires:  bison >= 1.875-4
86 BuildRequires:  cups-devel
87 BuildRequires:  curl-devel
88 BuildRequires:  db-cxx-devel
89 BuildRequires:  db-devel
90 BuildRequires:  /usr/bin/getopt
91 %if %{with java}
92 BuildRequires:  db-java >= 4.2.52-4
93 BuildRequires:  jar
94 BuildRequires:  jdk
95 %else
96 BuildRequires:  libxslt-progs
97 %endif
98 BuildRequires:  flex
99 BuildRequires:  fontconfig-devel >= 1.0.1
100 BuildRequires:  freetype-devel >= 2.1
101 BuildRequires:  libart_lgpl-devel
102 BuildRequires:  libstdc++-devel >= 3.2.1
103 BuildRequires:  nas-devel
104 BuildRequires:  pam-devel
105 BuildRequires:  perl-base
106 BuildRequires:  pkgconfig
107 BuildRequires:  python-devel
108 BuildRequires:  sane-backends-devel
109 BuildRequires:  startup-notification-devel
110 BuildRequires:  tcsh
111 BuildRequires:  unixODBC-devel
112 BuildRequires:  unzip
113 BuildRequires:  zip
114 BuildRequires:  zlib-devel
115 BuildRequires:  qt-devel
116 BuildRequires:  kdelibs-devel
117 BuildRequires:  gtk+2-devel
118 BuildConflicts: java-sun = 1.4.2
119 Requires(post,postun):  fontpostinst
120 Requires:       %{name}-libs = %{epoch}:%{version}-%{release}
121 Requires:       %{name}-i18n-en = %{epoch}:%{version}-%{release}
122 Requires:       cups-lib
123 Requires:       db
124 Requires:       db-cxx
125 Requires:       libstdc++ >= 3.2.1
126 Requires:       startup-notification
127 ExclusiveArch:  %{ix86} sparc ppc
128 #Suggested:     chkfontpath
129 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
130
131 %description
132 OpenOffice.org is an open-source project sponsored by Sun Microsystems
133 and hosted by CollabNet. In October of 2000, Sun released the source
134 code of its popular StarOfficeTM productivity suite under open-source
135 licenses. The aim of the OpenOffice.org project is to create, using
136 open-source methods, the next generation of open-network productivity
137 services, including the establishment of open, XML-based standards for
138 office productivity file formats and language-independent bindings to
139 component APIs.
140
141 Features of OpenOffice.org include:
142  - Downloadable source code,
143  - CVS control, and
144  - Infrastructure for community involvement, including guidelines and
145    discussion groups.
146
147 %description -l pl
148 OpenOffice.org jest projektem open-source sponsorowanym przez Sun
149 Microsystems i przechowywanym przez CollabNet. W pa¼dzierniku 2000
150 roku Sun udostêpni³ kod ¼ród³owy popularnego pakietu biurowego
151 StarOfficeTM na zasadach licencji open-source. G³ównym celem
152 OpenOffice.org jest stworzenie sieciowego pakietu biurowego nastêpnej
153 generacji, wykorzystuj±c open-source'owe metody pracy.
154
155 Do zalet OpenOffice.org mo¿na zaliczyæ:
156  - dostêpny ca³y czas kod ¼ród³owy,
157  - kontrola CVS,
158  - infrastruktura s³u¿±ca do komunikowania siê w ramach projektu.
159
160 %package libs
161 Summary:        OpenOffice.org shared libraries
162 Summary(pl):    Biblioteki dzielone OpenOffice.org
163 Group:          X11/Libraries
164 Requires:       %{name}-libs-interface = %{epoch}:%{version}-%{release}
165
166 %description libs
167 OpenOffice.org productivity suite - shared libraries.
168
169 %description libs -l pl
170 Pakiet biurowy OpenOffice.org - biblioteki.
171
172 %package libs-kde
173 Summary:        OpenOffice.org KDE Interface
174 Summary(pl):    Interfejs KDE dla OpenOffice.org
175 Group:          X11/Libraries
176 Provides:       %{name}-libs-interface = %{epoch}:%{version}-%{release}
177 Provides:       libvcl%{subver}li.so
178 Obsoletes:      %{name}-libs-gtk
179 Requires:       %{name}-libs = %{epoch}:%{version}-%{release}
180 Requires(post,preun):   %{name}-libs = %{epoch}:%{version}-%{release}
181
182 %description libs-kde
183 OpenOffice.org productivity suite - KDE Interface.
184
185 %description libs-kde -l pl
186 Pakiet biurowy OpenOffice.org - Interfejs KDE.
187
188 %package libs-gtk
189 Summary:        OpenOffice.org GTK Interface
190 Summary(pl):    Interfejs GTK dla OpenOffice.org
191 Group:          X11/Libraries
192 Provides:       %{name}-libs-interface = %{epoch}:%{version}-%{release}
193 Provides:       libvcl%{subver}li.so
194 Obsoletes:      %{name}-libs-kde
195 Requires:       %{name}-libs = %{epoch}:%{version}-%{release}
196 Requires(post,preun):   %{name}-libs = %{epoch}:%{version}-%{release}
197
198 %description libs-gtk
199 OpenOffice.org productivity suite - GTK Interface.
200
201 %description libs-gtk -l pl
202 Pakiet biurowy OpenOffice.org - Interfejs GTK.
203
204 %package mimelinks
205 Summary:        OpenOffice.org mimelinks
206 Summary(pl):    Dowi±zania MIME dla OpenOffice.org
207 Group:          X11/Applications
208 Requires:       %{name} = %{epoch}:%{version}-%{release}
209 Requires:       kdelibs
210 Conflicts:      kdelibs >= 9:3.1.9
211
212 %description mimelinks
213 OpenOffice.org mimelinks for KDE versions <= 3.1.5.
214
215 %description mimelinks -l pl
216 Dowi±zania MIME OpenOffice.org dla wersji KDE <= 3.1.5.
217
218 %package i18n-af
219 Summary:        OpenOffice.org - interface in Afrikaans language
220 Summary(pl):    OpenOffice.org - interfejs w jêzyku afrykanerskim
221 Group:          Applications/Office
222 Requires:       %{name} = %{epoch}:%{version}-%{release}
223
224 %description i18n-af
225 This package provides resources containing menus and dialogs in
226 Afrikaans language.
227
228 %description i18n-af -l pl
229 Ten pakiet dostarcza zasoby zawieraj±ce menu i okna dialogowe w jêzyku
230 afrykanerskim.
231
232 #%files i18n-af -f af.lang
233
234 %package i18n-ar
235 Summary:        OpenOffice.org - interface in Arabic language
236 Summary(pl):    OpenOffice.org - interfejs w jêzyku arabskim
237 Group:          Applications/Office
238 Requires:       %{name} = %{epoch}:%{version}-%{release}
239
240 %description i18n-ar
241 This package provides resources containing menus and dialogs in
242 Arabic language.
243
244 %description i18n-ar -l pl
245 Ten pakiet dostarcza zasoby zawieraj±ce menu i okna dialogowe w jêzyku
246 arabskim.
247
248 %files i18n-ar -f ar.lang
249
250 %package i18n-bg
251 Summary:        OpenOffice.org - interface in Bulgarian language
252 Summary(pl):    OpenOffice.org - interfejs w jêzyku bu³garskim
253 Group:          Applications/Office
254 Requires:       %{name} = %{epoch}:%{version}-%{release}
255
256 %description i18n-bg
257 This package provides resources containing menus and dialogs in
258 Bulgarian language.
259
260 %description i18n-bg -l pl
261 Ten pakiet dostarcza zasoby zawieraj±ce menu i okna dialogowe w jêzyku
262 bu³garskim.
263
264 #%files i18n-bg -f bg.lang
265
266 %package i18n-ca
267 Summary:        OpenOffice.org - interface in Catalan language
268 Summary(pl):    OpenOffice.org - interfejs w jêzyku kataloñskim
269 Group:          Applications/Office
270 Requires:       %{name} = %{epoch}:%{version}-%{release}
271
272 %description i18n-ca
273 This package provides resources containing menus and dialogs in
274 Catalan language.
275
276 %description i18n-ca -l pl
277 Ten pakiet dostarcza zasoby zawieraj±ce menu i okna dialogowe w jêzyku
278 kataloñskim.
279
280 %files i18n-ca -f ca.lang
281
282 %package i18n-cs
283 Summary:        OpenOffice.org - interface in Czech language
284 Summary(pl):    OpenOffice.org - interfejs w jêzyku czeskim
285 Group:          Applications/Office
286 Requires:       %{name} = %{epoch}:%{version}-%{release}
287
288 %description i18n-cs
289 This package provides resources containing menus and dialogs in
290 Czech language.
291
292 %description i18n-cs -l pl
293 Ten pakiet dostarcza zasoby zawieraj±ce menu i okna dialogowe w jêzyku
294 czeskim.
295
296 %files i18n-cs -f cs.lang
297
298 %package i18n-cy
299 Summary:        OpenOffice.org - interface in Cymraeg language
300 Summary(pl):    OpenOffice.org - interfejs w jêzyku walijskim
301 Group:          Applications/Office
302 Requires:       %{name} = %{epoch}:%{version}-%{release}
303
304 %description i18n-cy
305 This package provides resources containing menus and dialogs in
306 Cymraeg language.
307
308 %description i18n-cy -l pl
309 Ten pakiet dostarcza zasoby zawieraj±ce menu i okna dialogowe w jêzyku
310 walijskim.
311
312 #%files i18n-cy -f cy.lang
313
314 %package i18n-da
315 Summary:        OpenOffice.org - interface in Danish language
316 Summary(pl):    OpenOffice.org - interfejs w jêzyku duñskim
317 Group:          Applications/Office
318 Requires:       %{name} = %{epoch}:%{version}-%{release}
319
320 %description i18n-da
321 This package provides resources containing menus and dialogs in
322 Danish language.
323
324 %description i18n-da -l pl
325 Ten pakiet dostarcza zasoby zawieraj±ce menu i okna dialogowe w jêzyku
326 duñskim.
327
328 %files i18n-da -f da.lang
329
330 %package i18n-de
331 Summary:        OpenOffice.org - interface in German language
332 Summary(pl):    OpenOffice.org - interfejs w jêzyku niemieckim
333 Group:          Applications/Office
334 Requires:       %{name} = %{epoch}:%{version}-%{release}
335
336 %description i18n-de
337 This package provides resources containing menus and dialogs in
338 German language.
339
340 %description i18n-de -l pl
341 Ten pakiet dostarcza zasoby zawieraj±ce menu i okna dialogowe w jêzyku
342 niemieckim.
343
344 %files i18n-de -f de.lang
345
346 %package i18n-el
347 Summary:        OpenOffice.org - interface in Greek language
348 Summary(pl):    OpenOffice.org - interfejs w jêzyku greckim
349 Group:          Applications/Office
350 Requires:       %{name} = %{epoch}:%{version}-%{release}
351
352 %description i18n-el
353 This package provides resources containing menus and dialogs in
354 Greek language.
355
356 %description i18n-el -l pl
357 Ten pakiet dostarcza zasoby zawieraj±ce menu i okna dialogowe w jêzyku
358 greckim.
359
360 %files i18n-el -f el.lang
361
362 %package i18n-en
363 Summary:        OpenOffice.org - interface in English language
364 Summary(pl):    OpenOffice.org - interfejs w jêzyku angielskim
365 Group:          Applications/Office
366 Requires:       %{name} = %{epoch}:%{version}-%{release}
367
368 %description i18n-en
369 This package provides resources containing menus and dialogs in
370 English language.
371
372 %description i18n-en -l pl
373 Ten pakiet dostarcza zasoby zawieraj±ce menu i okna dialogowe w jêzyku
374 angielskim.
375
376 %files i18n-en -f en.lang
377
378 %package i18n-es
379 Summary:        OpenOffice.org - interface in Spanish language
380 Summary(pl):    OpenOffice.org - interfejs w jêzyku hiszpañskim
381 Group:          Applications/Office
382 Requires:       %{name} = %{epoch}:%{version}-%{release}
383
384 %description i18n-es
385 This package provides resources containing menus and dialogs in
386 Spanish language.
387
388 %description i18n-es -l pl
389 Ten pakiet dostarcza zasoby zawieraj±ce menu i okna dialogowe w jêzyku
390 hiszpañskim.
391
392 %files i18n-es -f es.lang
393
394 %package i18n-et
395 Summary:        OpenOffice.org - interface in Estonian language
396 Summary(pl):    OpenOffice.org - interfejs w jêzyku estoñskim
397 Group:          Applications/Office
398 Requires:       %{name} = %{epoch}:%{version}-%{release}
399
400 %description i18n-et
401 This package provides resources containing menus and dialogs in
402 Estonian language.
403
404 %description i18n-et -l pl
405 Ten pakiet dostarcza zasoby zawieraj±ce menu i okna dialogowe w jêzyku
406 estoñskim.
407
408 %files i18n-et -f et.lang
409
410 %package i18n-fi
411 Summary:        OpenOffice.org - interface in Finnish language
412 Summary(pl):    OpenOffice.org - interfejs w jêzyku fiñskim
413 Group:          Applications/Office
414 Requires:       %{name} = %{epoch}:%{version}-%{release}
415
416 %description i18n-fi
417 This package provides resources containing menus and dialogs in
418 Finnish language.
419
420 %description i18n-fi -l pl
421 Ten pakiet dostarcza zasoby zawieraj±ce menu i okna dialogowe w jêzyku
422 fiñskim.
423
424 %files i18n-fi -f fi.lang
425
426 %package i18n-fo
427 Summary:        OpenOffice.org - interface in Faroese language
428 Summary(pl):    OpenOffice.org - interfejs w jêzyku farerskim
429 Group:          Applications/Office
430 Requires:       %{name} = %{epoch}:%{version}-%{release}
431
432 %description i18n-fo
433 This package provides resources containing menus and dialogs in
434 Faroese language.
435
436 %description i18n-fo -l pl
437 Ten pakiet dostarcza zasoby zawieraj±ce menu i okna dialogowe w jêzyku
438 farerskim.
439
440 #%files i18n-fo -f fo.lang
441
442 %package i18n-fr
443 Summary:        OpenOffice.org - interface in French language
444 Summary(pl):    OpenOffice.org - interfejs w jêzyku francuskim
445 Group:          Applications/Office
446 Requires:       %{name} = %{epoch}:%{version}-%{release}
447
448 %description i18n-fr
449 This package provides resources containing menus and dialogs in
450 French language.
451
452 %description i18n-fr -l pl
453 Ten pakiet dostarcza zasoby zawieraj±ce menu i okna dialogowe w jêzyku
454 francuskim.
455
456 %files i18n-fr -f fr.lang
457
458 %package i18n-ga
459 Summary:        OpenOffice.org - interface in Irish language
460 Summary(pl):    OpenOffice.org - interfejs w jêzyku irlandzkim
461 Group:          Applications/Office
462 Requires:       %{name} = %{epoch}:%{version}-%{release}
463
464 %description i18n-ga
465 This package provides resources containing menus and dialogs in
466 Irish language.
467
468 %description i18n-ga -l pl
469 Ten pakiet dostarcza zasoby zawieraj±ce menu i okna dialogowe w jêzyku
470 irlandzkim.
471
472 #%files i18n-ga -f ga.lang
473
474 %package i18n-gl
475 Summary:        OpenOffice.org - interface in Galician language
476 Summary(pl):    OpenOffice.org - interfejs w jêzyku galicyjskim
477 Group:          Applications/Office
478 Requires:       %{name} = %{epoch}:%{version}-%{release}
479
480 %description i18n-gl
481 This package provides resources containing menus and dialogs in
482 Galician language.
483
484 %description i18n-gl -l pl
485 Ten pakiet dostarcza zasoby zawieraj±ce menu i okna dialogowe w jêzyku
486 galicyjskim.
487
488 #%files i18n-gl -f gl.lang
489
490 %package i18n-hr
491 Summary:        OpenOffice.org - interface in Croatian language
492 Summary(pl):    OpenOffice.org - interfejs w jêzyku chorwackim
493 Group:          Applications/Office
494 Requires:       %{name} = %{epoch}:%{version}-%{release}
495
496 %description i18n-hr
497 This package provides resources containing menus and dialogs in
498 Croatian language.
499
500 %description i18n-hr -l pl
501 Ten pakiet dostarcza zasoby zawieraj±ce menu i okna dialogowe w jêzyku
502 chorwackim.
503
504 #%files i18n-hr -f hr.lang
505
506 %package i18n-hu
507 Summary:        OpenOffice.org - interface in Hungarian language
508 Summary(pl):    OpenOffice.org - interfejs w jêzyku wêgierskim
509 Group:          Applications/Office
510 Requires:       %{name} = %{epoch}:%{version}-%{release}
511
512 %description i18n-hu
513 This package provides resources containing menus and dialogs in
514 Hungarian language.
515
516 %description i18n-hu -l pl
517 Ten pakiet dostarcza zasoby zawieraj±ce menu i okna dialogowe w jêzyku
518 wêgierskim.
519
520 %files i18n-hu -f hu.lang
521
522 %package i18n-ia
523 Summary:        OpenOffice.org - interface in Interlingua language
524 Summary(pl):    OpenOffice.org - interfejs w jêzyku interlingua
525 Group:          Applications/Office
526 Requires:       %{name} = %{epoch}:%{version}-%{release}
527
528 %description i18n-ia
529 This package provides resources containing menus and dialogs in
530 Interlingua language.
531
532 %description i18n-ia -l pl
533 Ten pakiet dostarcza zasoby zawieraj±ce menu i okna dialogowe w jêzyku
534 interlingua.
535
536 #%files i18n-ia -f ia.lang
537
538 %package i18n-id
539 Summary:        OpenOffice.org - interface in Indonesian language
540 Summary(pl):    OpenOffice.org - interfejs w jêzyku indonezyjskim
541 Group:          Applications/Office
542 Requires:       %{name} = %{epoch}:%{version}-%{release}
543
544 %description i18n-id
545 This package provides resources containing menus and dialogs in
546 Indonesian language.
547
548 %description i18n-id -l pl
549 Ten pakiet dostarcza zasoby zawieraj±ce menu i okna dialogowe w jêzyku
550 indonezyjskim.
551
552 #%files i18n-id -f id.lang
553
554 %package i18n-it
555 Summary:        OpenOffice.org - interface in Italian language
556 Summary(pl):    OpenOffice.org - interfejs w jêzyku w³oskim
557 Group:          Applications/Office
558 Requires:       %{name} = %{epoch}:%{version}-%{release}
559
560 %description i18n-it
561 This package provides resources containing menus and dialogs in
562 Italian language.
563
564 %description i18n-it -l pl
565 Ten pakiet dostarcza zasoby zawieraj±ce menu i okna dialogowe w jêzyku
566 w³oskim.
567
568 %files i18n-it -f it.lang
569
570 %package i18n-ja
571 Summary:        OpenOffice.org - interface in Japan language
572 Summary(pl):    OpenOffice.org - interfejs w jêzyku japoñskim
573 Group:          Applications/Office
574 Requires:       %{name} = %{epoch}:%{version}-%{release}
575
576 %description i18n-ja
577 This package provides resources containing menus and dialogs in
578 Japan language.
579
580 %description i18n-ja -l pl
581 Ten pakiet dostarcza zasoby zawieraj±ce menu i okna dialogowe w jêzyku
582 japoñskim.
583
584 %files i18n-ja -f ja.lang
585
586 %package i18n-ko
587 Summary:        OpenOffice.org - interface in Korean language
588 Summary(pl):    OpenOffice.org - interfejs w jêzyku koreañskim
589 Group:          Applications/Office
590 Requires:       %{name} = %{epoch}:%{version}-%{release}
591
592 %description i18n-ko
593 This package provides resources containing menus and dialogs in
594 Korean language.
595
596 %description i18n-ko -l pl
597 Ten pakiet dostarcza zasoby zawieraj±ce menu i okna dialogowe w jêzyku
598 koreañskim.
599
600 %files i18n-ko -f ko.lang
601
602 %package i18n-la
603 Summary:        OpenOffice.org - interface in Latin language
604 Summary(pl):    OpenOffice.org - interfejs w jêzyku ³aciñskim
605 Group:          Applications/Office
606 Requires:       %{name} = %{epoch}:%{version}-%{release}
607
608 %description i18n-la
609 This package provides resources containing menus and dialogs in
610 Latin language.
611
612 %description i18n-la -l pl
613 Ten pakiet dostarcza zasoby zawieraj±ce menu i okna dialogowe w jêzyku
614 ³aciñskim.
615
616 #%files i18n-la -f la.lang
617
618 %package i18n-lt
619 Summary:        OpenOffice.org - interface in Lithuanian language
620 Summary(pl):    OpenOffice.org - interfejs w jêzyku litewskim
621 Group:          Applications/Office
622 Requires:       %{name} = %{epoch}:%{version}-%{release}
623
624 %description i18n-lt
625 This package provides resources containing menus and dialogs in
626 Lithuanian language.
627
628 %description i18n-lt -l pl
629 Ten pakiet dostarcza zasoby zawieraj±ce menu i okna dialogowe w jêzyku
630 litewskim.
631
632 #%files i18n-lt -f lt.lang
633
634 %package i18n-med
635 Summary:        OpenOffice.org - interface in Melpa language
636 Summary(pl):    OpenOffice.org - interfejs w jêzyku melpa
637 Group:          Applications/Office
638 Requires:       %{name} = %{epoch}:%{version}-%{release}
639
640 %description i18n-med
641 This package provides resources containing menus and dialogs in
642 Melpa language.
643
644 %description i18n-med -l pl
645 Ten pakiet dostarcza zasoby zawieraj±ce menu i okna dialogowe w jêzyku
646 melpa.
647
648 #%files i18n-med -f med.lang
649
650 %package i18n-mi
651 Summary:        OpenOffice.org - interface in Maori language
652 Summary(pl):    OpenOffice.org - interfejs w jêzyku maoryjskim
653 Group:          Applications/Office
654 Requires:       %{name} = %{epoch}:%{version}-%{release}
655
656 %description i18n-mi
657 This package provides resources containing menus and dialogs in
658 Maori language.
659
660 %description i18n-mi -l pl
661 Ten pakiet dostarcza zasoby zawieraj±ce menu i okna dialogowe w jêzyku
662 maoryjskim.
663
664 #%files i18n-mi -f mi.lang
665
666 %package i18n-ms
667 Summary:        OpenOffice.org - interface in Malay language
668 Summary(pl):    OpenOffice.org - interfejs w jêzyku malajskim
669 Group:          Applications/Office
670 Requires:       %{name} = %{epoch}:%{version}-%{release}
671
672 %description i18n-ms
673 This package provides resources containing menus and dialogs in
674 Malay language.
675
676 %description i18n-ms -l pl
677 Ten pakiet dostarcza zasoby zawieraj±ce menu i okna dialogowe w jêzyku
678 malajskim.
679
680 #%files i18n-ms -f ms.lang
681
682 %package i18n-nb
683 Summary:        OpenOffice.org - interface in Norwegian Bokmaal language
684 Summary(pl):    OpenOffice.org - interfejs w jêzyku norweskim (odmiana Bokmaal)
685 Group:          Applications/Office
686 Requires:       %{name} = %{epoch}:%{version}-%{release}
687
688 %description i18n-nb
689 This package provides resources containing menus and dialogs in
690 Norwegian Bokmaal language.
691
692 %description i18n-nb -l pl
693 Ten pakiet dostarcza zasoby zawieraj±ce menu i okna dialogowe w jêzyku
694 norweskim w odmianie Bokmaal.
695
696 #%files i18n-nb -f nb.lang
697
698 %package i18n-nl
699 Summary:        OpenOffice.org - interface in Dutch language
700 Summary(pl):    OpenOffice.org - interfejs w jêzyku holenderskim
701 Group:          Applications/Office
702 Requires:       %{name} = %{epoch}:%{version}-%{release}
703
704 %description i18n-nl
705 This package provides resources containing menus and dialogs in
706 Dutch language.
707
708 %description i18n-nl -l pl
709 Ten pakiet dostarcza zasoby zawieraj±ce menu i okna dialogowe w jêzyku
710 holenderskim.
711
712 %files i18n-nl -f nl.lang
713
714 %package i18n-pl
715 Summary:        OpenOffice.org - interface in Polish language
716 Summary(pl):    OpenOffice.org - interfejs w jêzyku polskim
717 Group:          Applications/Office
718 Requires:       %{name} = %{epoch}:%{version}-%{release}
719
720 %description i18n-pl
721 This package provides resources containing menus and dialogs in
722 Polish language.
723
724 %description i18n-pl -l pl
725 Ten pakiet dostarcza zasoby zawieraj±ce menu i okna dialogowe w jêzyku
726 polskim.
727
728 %files i18n-pl -f pl.lang
729
730 %package i18n-pt
731 Summary:        OpenOffice.org - interface in Portuguese language
732 Summary(pl):    OpenOffice.org - interfejs w jêzyku portugalskim
733 Group:          Applications/Office
734 Requires:       %{name} = %{epoch}:%{version}-%{release}
735
736 %description i18n-pt
737 This package provides resources containing menus and dialogs in
738 Portuguese language.
739
740 %description i18n-pt -l pl
741 Ten pakiet dostarcza zasoby zawieraj±ce menu i okna dialogowe w jêzyku
742 portugalskim.
743
744 %files i18n-pt -f pt.lang
745
746 %package i18n-ro
747 Summary:        OpenOffice.org - interface in Romanian language
748 Summary(pl):    OpenOffice.org - interfejs w jêzyku rumuñskim
749 Group:          Applications/Office
750 Requires:       %{name} = %{epoch}:%{version}-%{release}
751
752 %description i18n-ro
753 This package provides resources containing menus and dialogs in
754 Romanian language.
755
756 %description i18n-ro -l pl
757 Ten pakiet dostarcza zasoby zawieraj±ce menu i okna dialogowe w jêzyku
758 rumuñskim.
759
760 #%files i18n-ro -f ro.lang
761
762 %package i18n-ru
763 Summary:        OpenOffice.org - interface in Russian language
764 Summary(pl):    OpenOffice.org - interfejs w jêzyku rosyjskim
765 Group:          Applications/Office
766 Requires:       %{name} = %{epoch}:%{version}-%{release}
767
768 %description i18n-ru
769 This package provides resources containing menus and dialogs in
770 Russian language.
771
772 %description i18n-ru -l pl
773 Ten pakiet dostarcza zasoby zawieraj±ce menu i okna dialogowe w jêzyku
774 rosyjskim.
775
776 %files i18n-ru -f ru.lang
777
778 %package i18n-sk
779 Summary:        OpenOffice.org - interface in Slovak language
780 Summary(pl):    OpenOffice.org - interfejs w jêzyku s³owackim
781 Group:          Applications/Office
782 Requires:       %{name} = %{epoch}:%{version}-%{release}
783
784 %description i18n-sk
785 This package provides resources containing menus and dialogs in
786 Slovak language.
787
788 %description i18n-sk -l pl
789 Ten pakiet dostarcza zasoby zawieraj±ce menu i okna dialogowe w jêzyku
790 s³owackim.
791
792 %files i18n-sk -f sk.lang
793
794 %package i18n-sl
795 Summary:        OpenOffice.org - interface in Slovenian language
796 Summary(pl):    OpenOffice.org - interfejs w jêzyku s³oweñskim
797 Group:          Applications/Office
798 Requires:       %{name} = %{epoch}:%{version}-%{release}
799
800 %description i18n-sl
801 This package provides resources containing menus and dialogs in
802 Slovenian language.
803
804 %description i18n-sl -l pl
805 Ten pakiet dostarcza zasoby zawieraj±ce menu i okna dialogowe w jêzyku
806 s³oweñskim.
807
808 %files i18n-sl -f sl.lang
809
810 %package i18n-sv
811 Summary:        OpenOffice.org - interface in Swedish language
812 Summary(pl):    OpenOffice.org - interfejs w jêzyku szwedzkim
813 Group:          Applications/Office
814 Requires:       %{name} = %{epoch}:%{version}-%{release}
815
816 %description i18n-sv
817 This package provides resources containing menus and dialogs in
818 Swedish language.
819
820 %description i18n-sv -l pl
821 Ten pakiet dostarcza zasoby zawieraj±ce menu i okna dialogowe w jêzyku
822 szwedzkim.
823
824 %files i18n-sv -f sv.lang
825
826 %package i18n-tr
827 Summary:        OpenOffice.org - interface in Turkish language
828 Summary(pl):    OpenOffice.org - interfejs w jêzyku tureckim
829 Group:          Applications/Office
830 Requires:       %{name} = %{epoch}:%{version}-%{release}
831
832 %description i18n-tr
833 This package provides resources containing menus and dialogs in
834 Turkish language.
835
836 %description i18n-tr -l pl
837 Ten pakiet dostarcza zasoby zawieraj±ce menu i okna dialogowe w jêzyku
838 tureckim.
839
840 %files i18n-tr -f tr.lang
841
842 %package i18n-uk
843 Summary:        OpenOffice.org - interface in Ukrainian language
844 Summary(pl):    OpenOffice.org - interfejs w jêzyku ukraiñskim
845 Group:          Applications/Office
846 Requires:       %{name} = %{epoch}:%{version}-%{release}
847
848 %description i18n-uk
849 This package provides resources containing menus and dialogs in
850 Ukrainian language.
851
852 %description i18n-uk -l pl
853 Ten pakiet dostarcza zasoby zawieraj±ce menu i okna dialogowe w jêzyku
854 ukraiñskim.
855
856 #%files i18n-uk -f uk.lang
857
858 %package i18n-zh
859 Summary:        OpenOffice.org - interface in Chinese language
860 Summary(pl):    OpenOffice.org - interfejs w jêzyku chiñskim
861 Group:          Applications/Office
862 Requires:       %{name} = %{epoch}:%{version}-%{release}
863
864 %description i18n-zh
865 This package provides resources containing menus and dialogs in
866 Chinese language.
867
868 %description i18n-zh -l pl
869 Ten pakiet dostarcza zasoby zawieraj±ce menu i okna dialogowe w jêzyku
870 chiñskim.
871
872 %files i18n-zh -f zh.lang
873
874 %prep
875 %setup -q -n ooo-build-%{ooobver}
876 %patch0 -p1
877 %patch1 -p1
878 %patch2 -p1
879 %patch3 -p1
880
881 install -d src
882 ln -s %{SOURCE1} src/
883 ln -s %{SOURCE2} src/
884 ln -s %{SOURCE3} src/
885
886 # we keep these in ooo-build repository
887 #ln -s %{SOURCE20} src/openabout_pld.bmp
888 #ln -s %{SOURCE21} src/openintro_pld.bmp
889
890 %build
891 # Make sure we have /proc mounted - otherwise idlc will fail later.
892 if [ ! -r /proc/version ]; then
893         echo "You need to have /proc mounted in order to build this package!"
894         exit 1
895 fi
896
897 CC="%{__cc}"
898 CXX="%{__cxx}"
899 ENVCFLAGS="%{rpmcflags}"
900 ENVCFLAGSCXX="%{rpmcflags}"
901 DESTDIR=$RPM_BUILD_ROOT
902 IGNORE_MANIFEST_CHANGES=1
903 export CC CXX ENVCFLAGS ENVCFLAGSCXX DESTDIR IGNORE_MANIFEST_CHANGES
904
905 %if %{with java}
906 GCJ=gcj
907 JAVA_HOME="/usr/lib/java"
908 DB_JAR="%{_javadir}/db.jar"
909 export JAVA_HOME DB_JAR GCJ
910 %endif
911
912 # parallel build is broken above 4 NCPUS so use 4 as max
913 RPM_BUILD_NR_THREADS="%(echo "%{__make}" | sed -e 's#.*-j\([[:space:]]*[0-9]\+\)#\1#g' | xargs)"
914 [ "$RPM_BUILD_NR_THREADS" != "%{__make}" -a "$RPM_BUILD_NR_THREADS" -gt 4 ] && RPM_BUILD_NR_THREADS=4 || RPM_BUILD_NR_THREADS=1
915
916 CONFOPTS=" \
917         --with-tag=OOO_%{dfullver} \
918         --with-ccache-allowed \
919         --with-system-gcc \
920         --with-system-zlib \
921         --with-system-sane-headers \
922         --with-system-x11-extensions-headers \
923         --with-system-unixodbc-headers \
924         --with-system-db \
925         --with-system-curl \
926         --with-system-freetype \
927         --with-system-nas \
928         --with-vendor="PLD" \
929         --with-distro="PLD" \
930 %if %{with icons_ximian}
931         --with-icons="Ximian" \
932 %else
933         --with-icons="KDE" \
934 %endif
935         --with-widgetsets=original,kde,gtk \
936         --with-installed-ooo-dirname=%{name} \
937 %if %{with java}
938         --enable-java \
939         --with-jdk-home=$JAVA_HOME \
940 %else
941         --disable-java \
942 %endif
943         --with-python=%{_bindir}/python \
944         --with-stlport4-home=/usr \
945         --with-lang=ALL \
946         --with-x \
947         --without-fonts \
948         --disable-fontooo \
949         --enable-fontconfig \
950         --enable-libsn \
951         --enable-libart \
952         --disable-mozilla \
953         --disable-rpath \
954 %if 0%{?debug:1}
955         --enable-debug \
956         --enable-crashdump=yes \
957         --enable-symbols=FULL \
958 %else
959         --enable-crashdump=no \
960         --disable-symbols \
961 %endif
962         --with-num-cpus=$RPM_BUILD_NR_THREADS
963 "
964
965 # for cvs snaps
966 [ -x ./autogen.sh ] && ./autogen.sh $CONFOPTS
967
968 # build-ooo script will pickup these
969 CONFIGURE_OPTIONS="$CONFOPTS"; export CONFIGURE_OPTIONS
970
971 # main build
972 %configure $CONFOPTS
973
974 # this limits processing some files but doesn't limit parallel build
975 # processes of main OOo build (since OOo uses it's own build system)
976 %{__make} -j1
977
978 # hack for parallel build
979 if [ "$RPM_BUILD_NCPUS" -gt 1 ]; then
980         doit=1
981         while [ "$doit" -eq 1 ]; do
982                 echo "Waiting one more time..."
983                 FCH=$(nice -n 20 find . -type f ! -mmin +3 -print 2> /dev/null | wc -l)
984                 [ "$FCH" -eq 0 ] && doit=0 || sleep 30
985         done
986 fi
987
988 # gtk version
989 cd build/OOO_%{dfullver}
990 chmod -R u+rwX vcl
991 cp -af vcl vcl.kde
992 cp -a Linux*Env.Set* vcl.kde
993 sed -i -e "s#\(.*WITH_WIDGETSET.*\)\".*\"\(.*\)#\1\"gtk\"\2#g" Linux*Env.Set*
994 sed -i -e "s#\(.*WIDGETSET_CFLAGS.*\)\".*\"\(.*\)#\1\"`pkg-config --cflags gtk+-2.0 gdk-pixbuf-xlib-2.0` -DWIDGETSET_GTK\"\2#g" Linux*Env.Set*
995 sed -i -e "s#\(.*WIDGETSET_LIBS.*\)\".*\"\(.*\)#\1\"`pkg-config --libs gtk+-2.0 gdk-pixbuf-xlib-2.0`\"\2#g" Linux*Env.Set*
996 set +e
997 . ./Linux*Env.Set.sh
998 cd vcl
999 rm -rf unxlng*
1000 build
1001 cd ..
1002 mv vcl vcl.gtk
1003 mv vcl.kde vcl
1004
1005 %install
1006 rm -rf $RPM_BUILD_ROOT
1007
1008 DESTDIR=$RPM_BUILD_ROOT; export DESTDIR
1009 TMP="%{tmpdir}"; export TMP
1010 TEMP="%{tmpdir}"; export TEMP
1011
1012 %{__make} install \
1013         DESTDIR=$RPM_BUILD_ROOT
1014
1015 mv $RPM_BUILD_ROOT%{_libdir}/%{name}/program/libvcl%{subver}li.so \
1016         $RPM_BUILD_ROOT%{_libdir}/%{name}/program/libvcl%{subver}li-kde.so
1017
1018 install -m755 build/OOO_%{dfullver}/vcl.gtk/unxlngi4.pro/lib/libvcl%{subver}li.so \
1019         $RPM_BUILD_ROOT%{_libdir}/%{name}/program/libvcl%{subver}li-gtk.so
1020 install -m755 build/OOO_%{dfullver}/vcl.gtk/unxlngi4.pro/bin/*-gnome \
1021         $RPM_BUILD_ROOT%{_libdir}/%{name}/program/
1022
1023 install -d helptmp && cd helptmp || exit 1
1024 for file in \
1025         %{SOURCE400} %{SOURCE401} %{SOURCE402} %{SOURCE403} %{SOURCE404} %{SOURCE405} \
1026         %{SOURCE406} %{SOURCE407} %{SOURCE408} %{SOURCE409} %{SOURCE410}; do
1027                 rm -rf *.*
1028                 nr=$(echo "$file" | sed -e 's#.*_\(.*\)_.*#\1#g')
1029                 lang=$(../bin/openoffice-xlate-lang -i "$nr")
1030                 if [ -z "$lang" ]; then
1031                         echo "Languge not found for [$file]"
1032                         exit 1
1033                 fi
1034                 tar zxf "${file}"
1035                 for ifile in s*.zip; do
1036                         install -d $RPM_BUILD_ROOT%{_libdir}/%{name}/help/${lang}
1037                         unzip -q -d $RPM_BUILD_ROOT%{_libdir}/%{name}/help/${lang} -o "$ifile"
1038                 done
1039 done
1040 cd ..
1041
1042 sed -e 's#DESTINATIONPATH=.*#DESTINATIONPATH=<home>/.openoffice#g' etc/redhat-autoresponse.conf > $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/autoresponse.conf
1043
1044 install -d $RPM_BUILD_ROOT%{_desktopdir}
1045 bzip2 -dc %{SOURCE10} | tar xf - -C $RPM_BUILD_ROOT%{_desktopdir}
1046
1047 # Add in the regcomp tool since some people need it for 3rd party add-ons
1048 cp -f build/OOO_%{dfullver}/solver/%{subver}/unxlng*.pro/bin/regcomp $RPM_BUILD_ROOT%{_libdir}/%{name}/program
1049
1050 # mimelnk, icons
1051 install -d $RPM_BUILD_ROOT{%{_datadir}/mimelnk/application,%{_pixmapsdir}}
1052
1053 cp -a build/OOO_%{dfullver}/sysui/desktop/gnome/icons/*/*.png $RPM_BUILD_ROOT%{_pixmapsdir}
1054 cp -a build/OOO_%{dfullver}/sysui/desktop/gnome/icons/*.png $RPM_BUILD_ROOT%{_pixmapsdir}
1055 cp -a build/OOO_%{dfullver}/sysui/desktop/kde/vnd*.desktop $RPM_BUILD_ROOT%{_datadir}/mimelnk/application
1056
1057 rm -rf $RPM_BUILD_ROOT%{_libdir}/%{name}/share/kde
1058 rm -rf $RPM_BUILD_ROOT%{_libdir}/%{name}/share/cde
1059 rm -rf $RPM_BUILD_ROOT%{_libdir}/%{name}/share/gnome
1060 rm -rf $RPM_BUILD_ROOT%{_libdir}/%{name}/share/icons
1061 rm -rf $RPM_BUILD_ROOT%{_datadir}/applnk
1062 rm -rf $RPM_BUILD_ROOT%{_datadir}/gnome
1063
1064 # Remove dictionaries (in separate pkg)
1065 rm -rf $RPM_BUILD_ROOT%{_libdir}/%{name}/share/dict/ooo/*
1066 touch $RPM_BUILD_ROOT%{_libdir}/%{name}/share/dict/ooo/dictionary.lst
1067
1068 # OOo should not install the Vera fonts, they are Required: now
1069 rm -rf $RPM_BUILD_ROOT%{_libdir}/%{name}/share/fonts/truetype/*
1070
1071 # Copy fixed OpenSymbol to correct location
1072 install -d $RPM_BUILD_ROOT%{_datadir}/fonts/openoffice
1073 cp fonts/opens___.ttf $RPM_BUILD_ROOT%{_datadir}/fonts/openoffice
1074 # %%ghost the fonts.cache-1 file
1075 touch $RPM_BUILD_ROOT%{_datadir}/fonts/openoffice/fonts.cache-1
1076
1077 # We don't need spadmin (gtk) or the setup application
1078 rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/setup
1079 rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/program/crash_report.bin
1080 rm -f $RPM_BUILD_ROOT%{_datadir}/applications/openoffice-setup.desktop
1081 rm -f $RPM_BUILD_ROOT%{_datadir}/applications/openoffice-printeradmin.desktop
1082
1083 # Remove some python cruft
1084 rm -rf $RPM_BUILD_ROOT%{_libdir}/%{name}/program/python-core-*/lib/test
1085
1086 rm -rf $RPM_BUILD_ROOT%{_datadir}/applnk
1087 rm -rf $RPM_BUILD_ROOT%{_datadir}/gnome
1088
1089 #rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/program/gnomeint
1090
1091 # some libs creep in somehow
1092 rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/program/filter/libfreetype.so*
1093 rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/program/libstl*.so*
1094
1095 rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/program/sopatchlevel.sh
1096 perl -pi -e 's/^[       ]*LD_LIBRARY_PATH/# LD_LIBRARY_PATH/;s/export LD_LIBRARY_PATH/# export LD_LIBRARY_PATH/' \
1097         $RPM_BUILD_ROOT%{_libdir}/%{name}/program/setup
1098
1099 # Remove setup log
1100 rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/program/setup.log
1101
1102 # Remove copied system libraries
1103 rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/program/libgcc_s.so* \
1104         $RPM_BUILD_ROOT%{_libdir}/%{name}/program/libstdc++*so*
1105
1106 # Find out locales
1107 rm -f *.lang
1108 langlist=""
1109 for lang in $RPM_BUILD_ROOT%{_libdir}/%{name}/share/registry/res/*; do
1110         [ ! -d "$lang" ] && continue
1111         langlist="$langlist $(echo "$lang" | sed -e 's#.*/\(.*\)#\1#g')"
1112 done
1113 for lang in $RPM_BUILD_ROOT%{_libdir}/%{name}/help/*; do
1114         [ ! -d "$lang" ] && continue
1115         langlist="$langlist $(echo "$lang" | sed -e 's#.*/\(.*\)#\1#g')"
1116 done
1117 langlist=$(echo "$langlist" | tr ' ' '\n' | sort | uniq)
1118 slanglist=$(echo "$langlist" | awk -F_ ' { print $1 } ' | awk -F- ' { print $1 } ' | sort | uniq | xargs)
1119
1120 for lang in $slanglist; do
1121         echo "%%defattr(644,root,root,755)" >> ${lang}.lang
1122
1123         # help files
1124         if (ls $RPM_BUILD_ROOT%{_libdir}/%{name}/help/*${lang}* 2> /dev/null); then
1125                 echo "%{_libdir}/%{name}/help/*${lang}*" >> ${lang}.lang
1126                 perl -pi -e "s#.*%{_libdir}/%{name}/help/.*${lang}.*##g" build/lang_*_list.txt
1127         fi
1128
1129         # registry res
1130         if (ls $RPM_BUILD_ROOT%{_libdir}/%{name}/share/registry/res/*${lang}* 2> /dev/null); then
1131                 echo "%{_libdir}/%{name}/share/registry/res/*${lang}*" >> ${lang}.lang
1132                 perl -pi -e "s#.*%{_libdir}/%{name}/share/registry/res/.*${lang}.*##g" build/lang_*_list.txt
1133         fi
1134
1135         # files from lang_*_list.txt
1136         ls build/lang_${lang}*_list.txt 2> /dev/null && sed -e "s#$RPM_BUILD_ROOT##g" build/lang_${lang}*_list.txt >> ${lang}.lang || /bin/true
1137
1138 done
1139
1140 # things not catched by automation above
1141 echo "%{_libdir}/%{name}/program/resource/*%{subver}01.res" >> en.lang
1142 echo "%{_libdir}/%{name}/share/wordbook/english" >> en.lang
1143 echo "%{_libdir}/%{name}/share/autocorr/acor1033.dat" >> en.lang
1144 echo "%{_libdir}/%{name}/share/autocorr/acor2057.dat" >> en.lang
1145
1146 find $RPM_BUILD_ROOT -type f -name '*.so' -exec chmod 755 "{}" ";"
1147 chmod 755 $RPM_BUILD_ROOT%{_libdir}/%{name}/program/*
1148
1149 %clean
1150 rm -rf $RPM_BUILD_ROOT
1151
1152 %post
1153 fontpostinst TTF %{_fontsdir}/%{name}
1154
1155 %postun
1156 fontpostinst TTF %{_fontsdir}/%{name}
1157
1158 %post libs
1159 if [ -f %{_libdir}/%{name}/program/libvcl%{subver}li-kde.so ]; then
1160         ln -sf libvcl%{subver}li-kde.so %{_libdir}/%{name}/program/libvcl%{subver}li.so
1161 fi
1162 if [ -f %{_libdir}/%{name}/program/libvcl%{subver}li-gtk.so ]; then
1163         ln -sf libvcl%{subver}li-gtk.so %{_libdir}/%{name}/program/libvcl%{subver}li.so
1164 fi
1165
1166 %preun libs-kde
1167 rm -f %{_libdir}/%{name}/program/libvcl%{subver}li.so
1168
1169 %post libs-kde
1170 ln -sf libvcl%{subver}li-kde.so %{_libdir}/%{name}/program/libvcl%{subver}li.so
1171
1172 %preun libs-gtk
1173 rm -f %{_libdir}/%{name}/program/libvcl%{subver}li.so
1174
1175 %post libs-gtk
1176 ln -sf libvcl%{subver}li-gtk.so %{_libdir}/%{name}/program/libvcl%{subver}li.so
1177
1178 %files
1179 %defattr(644,root,root,755)
1180 %doc %{_libdir}/%{name}/LICENSE*
1181 %doc %{_libdir}/%{name}/*README*
1182
1183 %dir %{_sysconfdir}/openoffice
1184 %config %{_sysconfdir}/openoffice/autoresponse.conf
1185
1186 %{_desktopdir}/*.desktop
1187 %{_pixmapsdir}/*.png
1188
1189 %attr(755,root,root) %{_libdir}/%{name}/install-dict
1190
1191 %{_libdir}/%{name}/program/*.rdb
1192 %{_libdir}/%{name}/program/*.bmp
1193 %{_libdir}/%{name}/program/user_registry.xsl
1194 %{_libdir}/%{name}/program/sofficerc
1195 %{_libdir}/%{name}/program/unorc
1196 %{_libdir}/%{name}/program/bootstraprc
1197 %{_libdir}/%{name}/program/configmgrrc
1198 %{_libdir}/%{name}/program/instdb.ins
1199
1200 %dir %{_libdir}/%{name}/program/resource
1201
1202 %dir %{_libdir}/%{name}/help
1203 %{_libdir}/%{name}/help/en
1204 %{_libdir}/%{name}/help/main_transform.xsl
1205
1206 %dir %{_libdir}/%{name}/share
1207 %dir %{_libdir}/%{name}/share/autocorr
1208 %dir %{_libdir}/%{name}/share/autotext
1209 %{_libdir}/%{name}/share/basic
1210 %{_libdir}/%{name}/share/config
1211 %dir %{_libdir}/%{name}/share/dict
1212 %dir %{_libdir}/%{name}/share/dict/ooo
1213 %{_libdir}/%{name}/share/dtd
1214 %{_libdir}/%{name}/share/fonts
1215 %{_libdir}/%{name}/share/gallery
1216 %{_libdir}/%{name}/share/psprint
1217 %{_libdir}/%{name}/share/samples
1218 %dir %{_libdir}/%{name}/share/template
1219 %dir %{_libdir}/%{name}/share/wordbook
1220 %{_libdir}/%{name}/share/readme
1221
1222 %dir %{_libdir}/%{name}/share/registry
1223 %dir %{_libdir}/%{name}/share/registry/res
1224 %{_libdir}/%{name}/share/registry/data
1225 %{_libdir}/%{name}/share/registry/schema
1226
1227 %{_libdir}/%{name}/share/autotext/english
1228 %{_libdir}/%{name}/share/template/english
1229 %ghost %{_libdir}/%{name}/share/dict/ooo/dictionary.lst
1230
1231 %dir %{_libdir}/%{name}/user
1232 %dir %{_libdir}/%{name}/user/autotext
1233 %{_libdir}/%{name}/user/basic
1234 %{_libdir}/%{name}/user/config
1235 %{_libdir}/%{name}/user/database
1236 %{_libdir}/%{name}/user/gallery
1237 %{_libdir}/%{name}/user/psprint
1238
1239 %{_libdir}/%{name}/user/autotext/english
1240
1241 # Programs
1242 %attr(755,root,root) %{_bindir}/oo*
1243 %attr(755,root,root) %{_libdir}/%{name}/spadmin
1244 %attr(755,root,root) %{_libdir}/%{name}/program/*.bin
1245 %attr(755,root,root) %{_libdir}/%{name}/program/nswrapper
1246 %attr(755,root,root) %{_libdir}/%{name}/program/ooovirg
1247 %attr(755,root,root) %{_libdir}/%{name}/program/pagein*
1248 %attr(755,root,root) %{_libdir}/%{name}/program/python.sh
1249 %attr(755,root,root) %{_libdir}/%{name}/program/pythonloader.unorc
1250 %attr(755,root,root) %{_libdir}/%{name}/program/pyunorc
1251 %attr(755,root,root) %{_libdir}/%{name}/program/regcomp
1252 %attr(755,root,root) %{_libdir}/%{name}/program/sagenda
1253 %attr(755,root,root) %{_libdir}/%{name}/program/scalc
1254 %attr(755,root,root) %{_libdir}/%{name}/program/sdraw
1255 %attr(755,root,root) %{_libdir}/%{name}/program/setup
1256 %{_libdir}/%{name}/program/setuprc
1257 %attr(755,root,root) %{_libdir}/%{name}/program/sfax
1258 %attr(755,root,root) %{_libdir}/%{name}/program/simpress
1259 %attr(755,root,root) %{_libdir}/%{name}/program/slabel
1260 %attr(755,root,root) %{_libdir}/%{name}/program/sletter
1261 %attr(755,root,root) %{_libdir}/%{name}/program/smaster
1262 %attr(755,root,root) %{_libdir}/%{name}/program/smath
1263 %attr(755,root,root) %{_libdir}/%{name}/program/smemo
1264 %attr(755,root,root) %{_libdir}/%{name}/program/soffice
1265 %attr(755,root,root) %{_libdir}/%{name}/program/spadmin
1266 %attr(755,root,root) %{_libdir}/%{name}/program/svcard
1267 %attr(755,root,root) %{_libdir}/%{name}/program/sweb
1268 %attr(755,root,root) %{_libdir}/%{name}/program/swriter
1269 %attr(755,root,root) %{_libdir}/%{name}/program/*.py
1270
1271 %if %{with java}
1272 %attr(755,root,root) %{_libdir}/%{name}/program/javaldx
1273 %attr(755,root,root) %{_libdir}/%{name}/program/jvmsetup
1274 %{_libdir}/%{name}/program/classes
1275 %{_libdir}/%{name}/share/xslt
1276 %endif
1277
1278 %files libs
1279 %defattr(644,root,root,755)
1280 %dir %{_libdir}/%{name}
1281 %dir %{_libdir}/%{name}/program
1282 %dir %{_libdir}/%{name}/program/filter
1283
1284 %attr(755,root,root) %{_libdir}/%{name}/program/*.so
1285 %exclude %{_libdir}/%{name}/program/libvcl*.so
1286 %attr(755,root,root) %{_libdir}/%{name}/program/*.so.*
1287 %attr(755,root,root) %{_libdir}/%{name}/program/filter/*.so
1288
1289 %dir %{_datadir}/fonts/openoffice
1290 %{_datadir}/fonts/openoffice/*.ttf
1291 %ghost %{_datadir}/fonts/openoffice/fonts.cache-1
1292
1293 %files libs-kde
1294 %defattr(644,root,root,755)
1295 %attr(755,root,root) %{_libdir}/%{name}/program/libvcl*kde.so
1296
1297 %files libs-gtk
1298 %defattr(644,root,root,755)
1299 %attr(755,root,root) %{_libdir}/%{name}/program/libvcl*gtk.so
1300 %attr(755,root,root) %{_libdir}/%{name}/program/getstyle-gnome
1301 %attr(755,root,root) %{_libdir}/%{name}/program/msgbox-gnome
1302
1303 %files mimelinks
1304 %defattr(644,root,root,755)
1305 %{_datadir}/mimelnk/application/*
This page took 0.098875 seconds and 2 git commands to generate.