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