]> git.pld-linux.org Git - packages/libreoffice.git/blob - libreoffice.spec
aa1f2294034348d836bd12ad947b53f128776243
[packages/libreoffice.git] / libreoffice.spec
1 # TODO:
2 #       - everything
3 #       - drop requirement on XFree86-static
4 #       - drop requirement on nas-devel
5 #       - fix locale names and other locale related things
6 #       - --with-system-myspell + myspell package as in Debian
7 #       - --with-system-neon - check compilation (works with 0.23 but not 0.24)
8
9 # Conditional build:
10 %bcond_with     java            # Java support
11 %bcond_with     icons_ximian    # Ximian icons instead of KDE one
12
13 %define         ver             1.1
14 %define         rel             1
15 %define         ooobver         1.1.55
16 %define         subver          645
17 %define         fullver         %{ver}.%{rel}
18 %define         dfullver        %(echo %{fullver} | tr . _)
19 %define         specflags       -fno-strict-aliasing
20
21 Summary:        OpenOffice - powerful office suite
22 Summary(pl):    OpenOffice - potê¿ny pakiet biurowy
23 Name:           openoffice
24 Version:        %{fullver}
25 Release:        1.5
26 Epoch:          1
27 License:        GPL/LGPL
28 Group:          X11/Applications
29 Source0:        http://ooo.ximian.com/packages/OOO_%{dfullver}/ooo-build-%{ooobver}.tar.gz
30 # Source0-md5:  79e885131d99a0a507eb3ffb7ecf19af
31 Source1:        http://ooo.ximian.com/packages/OOO_%{dfullver}/OOO_%{dfullver}.tar.bz2
32 # Source1-md5:  550381bc429fbbda54cb84758f14e010
33 Source2:        http://ooo.ximian.com/packages/ooo-icons-OOO_1_1-9.tar.gz
34 # Source2-md5:  32a0e62f89ef36a91437fc705fbe6440
35 Source3:        http://kde.openoffice.org/files/documents/159/1785/ooo-KDE_icons-OOO_1_1-0.1.tar.gz
36 # Source3-md5:  5157d4453d17cae586ce24989d34357a
37 Source10:       http://ep09.pld-linux.org/~adgor/pld/%{name}-desktopfiles-0.2.tar.bz2
38 # Source10-md5: 78ae3bef3e98f711b1afe9fb5717b42e
39
40 # we keep these in ooo-build repository
41 # PLD splash screen
42 #Source20:      %{name}-about.bmp
43 #Source21:      %{name}-intro.bmp
44
45 %define         cftp    http://ftp.services.openoffice.org/pub/OpenOffice.org/contrib
46
47 # Help content
48 Source400:      %{cftp}/helpcontent/helpcontent_01_unix.tgz
49 # Source400-md5:        7da2aff674c2c84aba8b21ac2ab16bb6
50 Source401:      %{cftp}/helpcontent/helpcontent_31_unix.tgz
51 # Source401-md5:        c7e618e2d9b8bd25cae12954ef2548c9
52 Source402:      %{cftp}/helpcontent/helpcontent_33_unix.tgz
53 # Source402-md5:        68d58bc30b485a77c0a0fba08af3aee3
54 Source403:      %{cftp}/helpcontent/helpcontent_34_unix.tgz
55 # Source403-md5:        8696bbee3dc4d5b6fd60218123016e29
56 Source404:      %{cftp}/helpcontent/helpcontent_39_unix.tgz
57 # Source404-md5:        c2ae86d02f462d2b663d621190f5ef34
58 Source405:      %{cftp}/helpcontent/helpcontent_46_unix.tgz
59 # Source405-md5:        7b013981edce2fabe4a8751ff64a8d58
60 Source406:      %{cftp}/helpcontent/helpcontent_49_unix.tgz
61 # Source406-md5:        a39f44ec40f452c963a4a187f31d1acb
62 Source407:      %{cftp}/helpcontent/helpcontent_81_unix.tgz
63 # Source407-md5:        81b705057a0e14ebcbf02fac4762781a
64 Source408:      %{cftp}/helpcontent/helpcontent_82_unix.tgz
65 # Source408-md5:        3121fbd251176d7c7b6e33ecec744c65
66 Source409:      %{cftp}/helpcontent/helpcontent_86_unix.tgz
67 # Source409-md5:        aee37935139c5ccd4b6d8abdd2037c66
68 Source410:      %{cftp}/helpcontent/helpcontent_88_unix.tgz
69 # Source410-md5:        3b00571318e45965dee0545d86306d65
70
71 Patch0:         %{name}-rh-disable-spellcheck-all-langs.patch
72 Patch1:         %{name}-pld-config.patch
73 Patch2:         %{name}-pld-package-lang.patch
74 Patch3:         %{name}-pld-section.patch
75 Patch4:         %{name}-pld-leave-home.patch
76 Patch5:         %{name}-pld-parallel-build.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
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 = %{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 = %{version}-%{release}
177 Provides:       libvcl%{subver}li.so
178 Obsoletes:      %{name}-libs-gtk
179 Conflicts:      %{name}-libs < %{version}-%{release}
180
181 %description libs-kde
182 OpenOffice.org productivity suite - KDE Interface.
183
184 %description libs-kde -l pl
185 Pakiet biurowy OpenOffice.org - Interfejs KDE.
186
187 %package libs-gtk
188 Summary:        OpenOffice.org GTK Interface
189 Summary(pl):    Interfejs GTK dla OpenOffice.org
190 Group:          X11/Libraries
191 Provides:       %{name}-libs-interface = %{version}-%{release}
192 Provides:       libvcl%{subver}li.so
193 Obsoletes:      %{name}-libs-kde
194 Conflicts:      %{name}-libs < %{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 %patch1 -p1
876 %patch2 -p1
877 %patch3 -p1
878 %patch4 -p1
879 %patch5 -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 GCJ=gcj
900 JAVA_HOME="/usr/lib/java"
901 ENVCFLAGS="%{rpmcflags}"
902 ENVCFLAGSCXX="%{rpmcflags}"
903 DESTDIR=$RPM_BUILD_ROOT
904 IGNORE_MANIFEST_CHANGES=1
905 export JAVA_HOME CC CXX GCJ ENVCFLAGS ENVCFLAGSCXX DESTDIR IGNORE_MANIFEST_CHANGES
906
907 if [ -z "$RPM_BUILD_NCPUS" ] ; then
908         if [ -x /usr/bin/getconf ] ; then
909                 RPM_BUILD_NCPUS=$(/usr/bin/getconf _NPROCESSORS_ONLN)
910                 if [ $RPM_BUILD_NCPUS -eq 0 ] ; then 
911                         RPM_BUILD_NCPUS=1
912                 fi
913         else 
914                 RPM_BUILD_NCPUS=1
915         fi
916 fi
917
918 # parallel build is broken
919 RPM_BUILD_NCPUS=1
920
921 CONFOPTS=" \
922         --with-ccache-allowed \
923         --with-system-gcc \
924         --with-system-zlib \
925         --with-system-sane-headers \
926         --with-system-x11-extensions-headers \
927         --with-system-unixodbc-headers \
928         --with-system-db \
929         --with-system-curl \
930         --with-system-freetype \
931         --with-system-nas \
932         --with-vendor="PLD" \
933         --with-distro="PLD" \
934 %if %{with icons_ximian}
935         --with-icons="Ximian" \
936 %else
937         --with-icons="KDE" \
938 %endif
939         --with-widgetset=kde \
940         --with-installed-ooo-dirname=%{name} \
941 %if %{with java}
942         --enable-java \
943         --with-jdk-home=$JAVA_HOME \
944 %else
945         --disable-java \
946 %endif
947         --with-python=%{_bindir}/python \
948         --with-stlport4-home=/usr \
949         --with-lang=ALL \
950         --with-x \
951         --without-fonts \
952         --enable-crashdump=no \
953         --enable-fontconfig \
954         --enable-libsn \
955         --enable-libart \
956         --disable-rpath \
957         --disable-symbols \
958         --with-num-cpus=$RPM_BUILD_NCPUS
959 "
960
961 # for cvs snaps
962 [ -x ./autogen.sh ] && ./autogen.sh $CONFOPTS
963
964 # build-ooo script will pickup these
965 CONFIGURE_OPTIONS="$CONFOPTS"; export CONFIGURE_OPTIONS
966
967 # main build
968 %configure $CONFOPTS
969
970 %{__make}
971
972 # hack for parallel build
973 if [ "$RPM_BUILD_NCPUS" -gt 1 ]; then
974         doit=1
975         while [ "$doit" -eq 1 ]; do
976                 echo "Waiting one more time..."
977                 FCH=$(nice -n 20 find . -type f ! -mmin +3 -print 2> /dev/null | wc -l)
978                 [ "$FCH" -eq 0 ] && doit=0 || :
979         done
980 fi
981
982 # gtk version
983 cd build/OOO_%{dfullver}/
984 chmod -R u+rwX vcl
985 cp -af vcl vcl.kde
986 sed -i -e "s#\(.*WITH_WIDGETSET.*\)\".*\"\(.*\)#\1\"gtk\"\2#g" LinuxIntelEnv.Set*
987 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*
988 sed -i -e "s#\(.*WIDGETSET_LIBS.*\)\".*\"\(.*\)#\1\"`pkg-config --libs gtk+-2.0 gdk-pixbuf-xlib-2.0`\"\2#g" LinuxIntelEnv.Set*
989 . ./Linux*Env.Set.sh || :
990 cd vcl
991 rm -rf unxlng*
992 build
993 cd ..
994 mv vcl vcl.gtk
995 mv vcl.kde vcl
996
997 %install
998 rm -rf $RPM_BUILD_ROOT
999
1000 DESTDIR=$RPM_BUILD_ROOT; export DESTDIR
1001 TMP="%{tmpdir}"; export TMP
1002 TEMP="%{tmpdir}"; export TEMP
1003
1004 %{__make} install \
1005         DESTDIR=$RPM_BUILD_ROOT
1006
1007 mv $RPM_BUILD_ROOT%{_libdir}/%{name}/program/libvcl%{subver}li.so \
1008         $RPM_BUILD_ROOT%{_libdir}/%{name}/program/libvcl%{subver}li-kde.so
1009
1010 install -m755 build/OOO_%{dfullver}/vcl.gtk/unxlngi4.pro/lib/libvcl%{subver}li.so \
1011         $RPM_BUILD_ROOT%{_libdir}/%{name}/program/libvcl%{subver}li-gtk.so
1012 install -m755 build/OOO_%{dfullver}/vcl.gtk/unxlngi4.pro/bin/*-gnome \
1013         $RPM_BUILD_ROOT%{_libdir}/%{name}/program/
1014
1015 install -d helptmp && cd helptmp || exit 1
1016 for file in \
1017         %{SOURCE400} %{SOURCE401} %{SOURCE402} %{SOURCE403} %{SOURCE404} %{SOURCE405} \
1018         %{SOURCE406} %{SOURCE407} %{SOURCE408} %{SOURCE409} %{SOURCE410}; do
1019                 rm -rf *.*
1020                 nr=$(echo "$file" | sed -e 's#.*_\(.*\)_.*#\1#g')
1021                 lang=$(../bin/openoffice-xlate-lang -i "$nr")
1022                 if [ -z "$lang" ]; then
1023                         echo "Languge not found for [$file]"
1024                         exit 1
1025                 fi
1026                 tar zxf "${file}"
1027                 for ifile in s*.zip; do
1028                         install -d $RPM_BUILD_ROOT%{_libdir}/%{name}/help/${lang}
1029                         unzip -q -d $RPM_BUILD_ROOT%{_libdir}/%{name}/help/${lang} -o "$ifile"
1030                 done
1031 done
1032 cd ..
1033
1034 sed -e 's#DESTINATIONPATH=.*#DESTINATIONPATH=<home>/.openoffice#g' etc/redhat-autoresponse.conf > $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/autoresponse.conf
1035
1036 install -d $RPM_BUILD_ROOT%{_desktopdir}
1037 bzip2 -dc %{SOURCE10} | tar xf - -C $RPM_BUILD_ROOT%{_desktopdir}
1038
1039 # Add in the regcomp tool since some people need it for 3rd party add-ons
1040 cp -f build/OOO_%{dfullver}/solver/%{subver}/unxlng*.pro/bin/regcomp $RPM_BUILD_ROOT%{_libdir}/%{name}/program
1041
1042 # mimelnk, icons
1043 install -d $RPM_BUILD_ROOT{%{_datadir}/mimelnk/application,%{_pixmapsdir}}
1044
1045 cp -a build/OOO_%{dfullver}/sysui/desktop/gnome/icons/*/*.png $RPM_BUILD_ROOT%{_pixmapsdir}
1046 cp -a build/OOO_%{dfullver}/sysui/desktop/gnome/icons/*.png $RPM_BUILD_ROOT%{_pixmapsdir}
1047 cp -a build/OOO_%{dfullver}/sysui/desktop/kde/vnd*.desktop $RPM_BUILD_ROOT%{_datadir}/mimelnk/application
1048
1049 rm -rf $RPM_BUILD_ROOT%{_libdir}/%{name}/share/kde
1050 rm -rf $RPM_BUILD_ROOT%{_libdir}/%{name}/share/cde
1051 rm -rf $RPM_BUILD_ROOT%{_libdir}/%{name}/share/gnome
1052 rm -rf $RPM_BUILD_ROOT%{_libdir}/%{name}/share/icons
1053 rm -rf $RPM_BUILD_ROOT%{_datadir}/applnk
1054 rm -rf $RPM_BUILD_ROOT%{_datadir}/gnome
1055
1056 # Remove dictionaries (in separate pkg)
1057 rm -rf $RPM_BUILD_ROOT%{_libdir}/%{name}/share/dict/ooo/*
1058 touch $RPM_BUILD_ROOT%{_libdir}/%{name}/share/dict/ooo/dictionary.lst
1059
1060 # OOo should not install the Vera fonts, they are Required: now
1061 rm -rf $RPM_BUILD_ROOT%{_libdir}/%{name}/share/fonts/truetype/*
1062
1063 # Copy fixed OpenSymbol to correct location
1064 install -d $RPM_BUILD_ROOT%{_datadir}/fonts/openoffice
1065 cp fonts/opens___.ttf $RPM_BUILD_ROOT%{_datadir}/fonts/openoffice
1066 # %%ghost the fonts.cache-1 file
1067 touch $RPM_BUILD_ROOT%{_datadir}/fonts/openoffice/fonts.cache-1
1068
1069 # We don't need spadmin (gtk) or the setup application
1070 rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/setup
1071 rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/program/crash_report.bin
1072 rm -f $RPM_BUILD_ROOT%{_datadir}/applications/openoffice-setup.desktop
1073 rm -f $RPM_BUILD_ROOT%{_datadir}/applications/openoffice-printeradmin.desktop
1074
1075 # Remove some python cruft
1076 rm -rf $RPM_BUILD_ROOT%{_libdir}/%{name}/program/python-core-*/lib/test
1077
1078 rm -rf $RPM_BUILD_ROOT%{_datadir}/applnk
1079 rm -rf $RPM_BUILD_ROOT%{_datadir}/gnome
1080
1081 #rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/program/gnomeint
1082
1083 # some libs creep in somehow
1084 rm -f %{_libdir}/%{name}/program/filter/libfreetype.so*
1085 rm -f %{_libdir}/%{name}/program/libstl*.so*
1086
1087 rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/program/sopatchlevel.sh
1088 perl -pi -e 's/^[       ]*LD_LIBRARY_PATH/# LD_LIBRARY_PATH/;s/export LD_LIBRARY_PATH/# export LD_LIBRARY_PATH/' \
1089         $RPM_BUILD_ROOT%{_libdir}/%{name}/program/setup
1090
1091 # Remove setup log
1092 rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/program/setup.log
1093
1094 # Remove copied system libraries
1095 rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/program/libgcc_s.so* \
1096         $RPM_BUILD_ROOT%{_libdir}/%{name}/program/libstdc++*so*
1097
1098 # Find out locales
1099 rm -f *.lang
1100 langlist=""
1101 for lang in $RPM_BUILD_ROOT%{_libdir}/%{name}/share/registry/res/*; do
1102         [ ! -d "$lang" ] && continue
1103         langlist="$langlist $(echo "$lang" | sed -e 's#.*/\(.*\)#\1#g')"
1104 done
1105 for lang in $RPM_BUILD_ROOT%{_libdir}/%{name}/help/*; do
1106         [ ! -d "$lang" ] && continue
1107         langlist="$langlist $(echo "$lang" | sed -e 's#.*/\(.*\)#\1#g')"
1108 done
1109 langlist=$(echo "$langlist" | tr ' ' '\n' | sort | uniq)
1110 slanglist=$(echo "$langlist" | awk -F_ ' { print $1 } ' | awk -F- ' { print $1 } ' | sort | uniq | xargs)
1111
1112 for lang in $slanglist; do
1113         echo "%%defattr(644,root,root,755)" >> ${lang}.lang
1114
1115         # help files
1116         if (ls $RPM_BUILD_ROOT%{_libdir}/%{name}/help/*${lang}* 2> /dev/null); then
1117                 echo "%{_libdir}/%{name}/help/*${lang}*" >> ${lang}.lang
1118                 perl -pi -e "s#.*%{_libdir}/%{name}/help/.*${lang}.*##g" build/lang_*_list.txt
1119         fi
1120
1121         # registry res
1122         if (ls $RPM_BUILD_ROOT%{_libdir}/%{name}/share/registry/res/*${lang}* 2> /dev/null); then
1123                 echo "%{_libdir}/%{name}/share/registry/res/*${lang}*" >> ${lang}.lang
1124                 perl -pi -e "s#.*%{_libdir}/%{name}/share/registry/res/.*${lang}.*##g" build/lang_*_list.txt
1125         fi
1126
1127         # files from lang_*_list.txt
1128         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
1129
1130 done
1131
1132 # things not catched by automation above
1133 echo "%{_libdir}/%{name}/program/resource/*%{subver}01.res" >> en.lang
1134 echo "%{_libdir}/%{name}/share/wordbook/english" >> en.lang
1135 echo "%{_libdir}/%{name}/share/autocorr/acor1033.dat" >> en.lang
1136 echo "%{_libdir}/%{name}/share/autocorr/acor2057.dat" >> en.lang
1137
1138 find $RPM_BUILD_ROOT -type f -name '*.so' -exec chmod 755 "{}" ";"
1139 chmod 755 $RPM_BUILD_ROOT%{_libdir}/%{name}/program/*
1140
1141 %clean
1142 rm -rf $RPM_BUILD_ROOT
1143
1144 %post
1145 fontpostinst TTF %{_fontsdir}/%{name}
1146
1147 %postun
1148 fontpostinst TTF %{_fontsdir}/%{name}
1149
1150 %preun libs-kde
1151 rm -f %{_libdir}/%{name}/program/libvcl%{subver}li.so
1152
1153 %post libs-kde
1154 ln -s 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 -s 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 %if %{with java}
1230 %attr(755,root,root) %{_libdir}/%{name}/program/javaldx
1231 %attr(755,root,root) %{_libdir}/%{name}/program/jvmsetup
1232 %endif
1233 %attr(755,root,root) %{_libdir}/%{name}/program/nswrapper
1234 %attr(755,root,root) %{_libdir}/%{name}/program/ooovirg
1235 %attr(755,root,root) %{_libdir}/%{name}/program/pagein*
1236 %attr(755,root,root) %{_libdir}/%{name}/program/python.sh
1237 %attr(755,root,root) %{_libdir}/%{name}/program/pythonloader.unorc
1238 %attr(755,root,root) %{_libdir}/%{name}/program/pyunorc
1239 %attr(755,root,root) %{_libdir}/%{name}/program/regcomp
1240 %attr(755,root,root) %{_libdir}/%{name}/program/sagenda
1241 %attr(755,root,root) %{_libdir}/%{name}/program/scalc
1242 %attr(755,root,root) %{_libdir}/%{name}/program/sdraw
1243 %attr(755,root,root) %{_libdir}/%{name}/program/setup
1244 %{_libdir}/%{name}/program/setuprc
1245 %attr(755,root,root) %{_libdir}/%{name}/program/sfax
1246 %attr(755,root,root) %{_libdir}/%{name}/program/simpress
1247 %attr(755,root,root) %{_libdir}/%{name}/program/slabel
1248 %attr(755,root,root) %{_libdir}/%{name}/program/sletter
1249 %attr(755,root,root) %{_libdir}/%{name}/program/smaster
1250 %attr(755,root,root) %{_libdir}/%{name}/program/smath
1251 %attr(755,root,root) %{_libdir}/%{name}/program/smemo
1252 %attr(755,root,root) %{_libdir}/%{name}/program/soffice
1253 %attr(755,root,root) %{_libdir}/%{name}/program/spadmin
1254 %attr(755,root,root) %{_libdir}/%{name}/program/svcard
1255 %attr(755,root,root) %{_libdir}/%{name}/program/sweb
1256 %attr(755,root,root) %{_libdir}/%{name}/program/swriter
1257 %attr(755,root,root) %{_libdir}/%{name}/program/*.py
1258
1259 %files libs
1260 %defattr(644,root,root,755)
1261 %dir %{_libdir}/%{name}
1262 %dir %{_libdir}/%{name}/program
1263 %dir %{_libdir}/%{name}/program/filter
1264
1265 %attr(755,root,root) %{_libdir}/%{name}/program/*.so
1266 %exclude %{_libdir}/%{name}/program/libvcl*.so
1267 %attr(755,root,root) %{_libdir}/%{name}/program/*.so.*
1268 %attr(755,root,root) %{_libdir}/%{name}/program/filter/*.so
1269
1270 %dir %{_datadir}/fonts/openoffice
1271 %{_datadir}/fonts/openoffice/*.ttf
1272 %ghost %{_datadir}/fonts/openoffice/fonts.cache-1
1273
1274 %files libs-kde
1275 %defattr(644,root,root,755)
1276 %attr(755,root,root) %{_libdir}/%{name}/program/libvcl*kde.so
1277
1278 %files libs-gtk
1279 %defattr(644,root,root,755)
1280 %attr(755,root,root) %{_libdir}/%{name}/program/libvcl*gtk.so
1281 %attr(755,root,root) %{_libdir}/%{name}/program/getstyle-gnome
1282 %attr(755,root,root) %{_libdir}/%{name}/program/msgbox-gnome
1283
1284 %files mimelinks
1285 %defattr(644,root,root,755)
1286 %{_datadir}/mimelnk/application/*
This page took 0.110086 seconds and 2 git commands to generate.