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