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