2 # - normal build requires little less than 4GB of disk space
3 # - full debug build requires about 9GB of disk space
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)
12 %bcond_with java # Java support
13 %bcond_with icons_ximian # Ximian icons instead of KDE one
17 %define ooobver 1.1.61
19 %define fullver %{ver}.%{rel}
20 %define dfullver %(echo %{fullver} | tr . _)
21 %define specflags -fno-strict-aliasing
23 Summary: OpenOffice - powerful office suite
24 Summary(pl): OpenOffice - potê¿ny pakiet biurowy
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
42 # we keep these in ooo-build repository
44 #Source20: %{name}-about.bmp
45 #Source21: %{name}-intro.bmp
47 %define cftp http://ftp.services.openoffice.org/pub/OpenOffice.org/contrib
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
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
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
93 BuildRequires: db-java >= 4.2.52-4
97 BuildRequires: libxslt-progs
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
112 BuildRequires: unixODBC-devel
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}
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)
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
142 Features of OpenOffice.org include:
143 - Downloadable source code,
145 - Infrastructure for community involvement, including guidelines and
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.
156 Do zalet OpenOffice.org mo¿na zaliczyæ:
157 - dostêpny ca³y czas kod ¼ród³owy,
159 - infrastruktura s³u¿±ca do komunikowania siê w ramach projektu.
162 Summary: OpenOffice.org shared libraries
163 Summary(pl): Biblioteki dzielone OpenOffice.org
165 Requires: %{name}-libs-interface = %{epoch}:%{version}-%{release}
168 OpenOffice.org productivity suite - shared libraries.
170 %description libs -l pl
171 Pakiet biurowy OpenOffice.org - biblioteki.
174 Summary: OpenOffice.org KDE Interface
175 Summary(pl): Interfejs KDE dla OpenOffice.org
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}
183 %description libs-kde
184 OpenOffice.org productivity suite - KDE Interface.
186 %description libs-kde -l pl
187 Pakiet biurowy OpenOffice.org - Interfejs KDE.
190 Summary: OpenOffice.org GTK Interface
191 Summary(pl): Interfejs GTK dla OpenOffice.org
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}
199 %description libs-gtk
200 OpenOffice.org productivity suite - GTK Interface.
202 %description libs-gtk -l pl
203 Pakiet biurowy OpenOffice.org - Interfejs GTK.
206 Summary: OpenOffice.org mimelinks
207 Summary(pl): Dowi±zania MIME dla OpenOffice.org
208 Group: X11/Applications
209 Requires: %{name} = %{epoch}:%{version}-%{release}
211 Conflicts: kdelibs >= 9:3.1.9
213 %description mimelinks
214 OpenOffice.org mimelinks for KDE versions <= 3.1.5.
216 %description mimelinks -l pl
217 Dowi±zania MIME OpenOffice.org dla wersji KDE <= 3.1.5.
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}
226 This package provides resources containing menus and dialogs in
229 %description i18n-af -l pl
230 Ten pakiet dostarcza zasoby zawieraj±ce menu i okna dialogowe w jêzyku
233 #%files i18n-af -f af.lang
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}
242 This package provides resources containing menus and dialogs in
245 %description i18n-ar -l pl
246 Ten pakiet dostarcza zasoby zawieraj±ce menu i okna dialogowe w jêzyku
249 %files i18n-ar -f ar.lang
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}
258 This package provides resources containing menus and dialogs in
261 %description i18n-bg -l pl
262 Ten pakiet dostarcza zasoby zawieraj±ce menu i okna dialogowe w jêzyku
265 #%files i18n-bg -f bg.lang
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}
274 This package provides resources containing menus and dialogs in
277 %description i18n-ca -l pl
278 Ten pakiet dostarcza zasoby zawieraj±ce menu i okna dialogowe w jêzyku
281 %files i18n-ca -f ca.lang
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}
290 This package provides resources containing menus and dialogs in
293 %description i18n-cs -l pl
294 Ten pakiet dostarcza zasoby zawieraj±ce menu i okna dialogowe w jêzyku
297 %files i18n-cs -f cs.lang
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}
306 This package provides resources containing menus and dialogs in
309 %description i18n-cy -l pl
310 Ten pakiet dostarcza zasoby zawieraj±ce menu i okna dialogowe w jêzyku
313 #%files i18n-cy -f cy.lang
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}
322 This package provides resources containing menus and dialogs in
325 %description i18n-da -l pl
326 Ten pakiet dostarcza zasoby zawieraj±ce menu i okna dialogowe w jêzyku
329 %files i18n-da -f da.lang
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}
338 This package provides resources containing menus and dialogs in
341 %description i18n-de -l pl
342 Ten pakiet dostarcza zasoby zawieraj±ce menu i okna dialogowe w jêzyku
345 %files i18n-de -f de.lang
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}
354 This package provides resources containing menus and dialogs in
357 %description i18n-el -l pl
358 Ten pakiet dostarcza zasoby zawieraj±ce menu i okna dialogowe w jêzyku
361 %files i18n-el -f el.lang
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}
370 This package provides resources containing menus and dialogs in
373 %description i18n-en -l pl
374 Ten pakiet dostarcza zasoby zawieraj±ce menu i okna dialogowe w jêzyku
377 %files i18n-en -f en.lang
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}
386 This package provides resources containing menus and dialogs in
389 %description i18n-es -l pl
390 Ten pakiet dostarcza zasoby zawieraj±ce menu i okna dialogowe w jêzyku
393 %files i18n-es -f es.lang
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}
402 This package provides resources containing menus and dialogs in
405 %description i18n-et -l pl
406 Ten pakiet dostarcza zasoby zawieraj±ce menu i okna dialogowe w jêzyku
409 %files i18n-et -f et.lang
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}
418 This package provides resources containing menus and dialogs in
421 %description i18n-fi -l pl
422 Ten pakiet dostarcza zasoby zawieraj±ce menu i okna dialogowe w jêzyku
425 %files i18n-fi -f fi.lang
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}
434 This package provides resources containing menus and dialogs in
437 %description i18n-fo -l pl
438 Ten pakiet dostarcza zasoby zawieraj±ce menu i okna dialogowe w jêzyku
441 #%files i18n-fo -f fo.lang
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}
450 This package provides resources containing menus and dialogs in
453 %description i18n-fr -l pl
454 Ten pakiet dostarcza zasoby zawieraj±ce menu i okna dialogowe w jêzyku
457 %files i18n-fr -f fr.lang
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}
466 This package provides resources containing menus and dialogs in
469 %description i18n-ga -l pl
470 Ten pakiet dostarcza zasoby zawieraj±ce menu i okna dialogowe w jêzyku
473 #%files i18n-ga -f ga.lang
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}
482 This package provides resources containing menus and dialogs in
485 %description i18n-gl -l pl
486 Ten pakiet dostarcza zasoby zawieraj±ce menu i okna dialogowe w jêzyku
489 #%files i18n-gl -f gl.lang
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}
498 This package provides resources containing menus and dialogs in
501 %description i18n-hr -l pl
502 Ten pakiet dostarcza zasoby zawieraj±ce menu i okna dialogowe w jêzyku
505 #%files i18n-hr -f hr.lang
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}
514 This package provides resources containing menus and dialogs in
517 %description i18n-hu -l pl
518 Ten pakiet dostarcza zasoby zawieraj±ce menu i okna dialogowe w jêzyku
521 %files i18n-hu -f hu.lang
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}
530 This package provides resources containing menus and dialogs in
531 Interlingua language.
533 %description i18n-ia -l pl
534 Ten pakiet dostarcza zasoby zawieraj±ce menu i okna dialogowe w jêzyku
537 #%files i18n-ia -f ia.lang
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}
546 This package provides resources containing menus and dialogs in
549 %description i18n-id -l pl
550 Ten pakiet dostarcza zasoby zawieraj±ce menu i okna dialogowe w jêzyku
553 #%files i18n-id -f id.lang
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}
562 This package provides resources containing menus and dialogs in
565 %description i18n-it -l pl
566 Ten pakiet dostarcza zasoby zawieraj±ce menu i okna dialogowe w jêzyku
569 %files i18n-it -f it.lang
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}
578 This package provides resources containing menus and dialogs in
581 %description i18n-ja -l pl
582 Ten pakiet dostarcza zasoby zawieraj±ce menu i okna dialogowe w jêzyku
585 %files i18n-ja -f ja.lang
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}
594 This package provides resources containing menus and dialogs in
597 %description i18n-ko -l pl
598 Ten pakiet dostarcza zasoby zawieraj±ce menu i okna dialogowe w jêzyku
601 %files i18n-ko -f ko.lang
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}
610 This package provides resources containing menus and dialogs in
613 %description i18n-la -l pl
614 Ten pakiet dostarcza zasoby zawieraj±ce menu i okna dialogowe w jêzyku
617 #%files i18n-la -f la.lang
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}
626 This package provides resources containing menus and dialogs in
629 %description i18n-lt -l pl
630 Ten pakiet dostarcza zasoby zawieraj±ce menu i okna dialogowe w jêzyku
633 #%files i18n-lt -f lt.lang
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}
641 %description i18n-med
642 This package provides resources containing menus and dialogs in
645 %description i18n-med -l pl
646 Ten pakiet dostarcza zasoby zawieraj±ce menu i okna dialogowe w jêzyku
649 #%files i18n-med -f med.lang
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}
658 This package provides resources containing menus and dialogs in
661 %description i18n-mi -l pl
662 Ten pakiet dostarcza zasoby zawieraj±ce menu i okna dialogowe w jêzyku
665 #%files i18n-mi -f mi.lang
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}
674 This package provides resources containing menus and dialogs in
677 %description i18n-ms -l pl
678 Ten pakiet dostarcza zasoby zawieraj±ce menu i okna dialogowe w jêzyku
681 #%files i18n-ms -f ms.lang
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}
690 This package provides resources containing menus and dialogs in
691 Norwegian Bokmaal language.
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.
697 #%files i18n-nb -f nb.lang
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}
706 This package provides resources containing menus and dialogs in
709 %description i18n-nl -l pl
710 Ten pakiet dostarcza zasoby zawieraj±ce menu i okna dialogowe w jêzyku
713 %files i18n-nl -f nl.lang
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}
722 This package provides resources containing menus and dialogs in
725 %description i18n-pl -l pl
726 Ten pakiet dostarcza zasoby zawieraj±ce menu i okna dialogowe w jêzyku
729 %files i18n-pl -f pl.lang
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}
738 This package provides resources containing menus and dialogs in
741 %description i18n-pt -l pl
742 Ten pakiet dostarcza zasoby zawieraj±ce menu i okna dialogowe w jêzyku
745 %files i18n-pt -f pt.lang
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}
754 This package provides resources containing menus and dialogs in
757 %description i18n-ro -l pl
758 Ten pakiet dostarcza zasoby zawieraj±ce menu i okna dialogowe w jêzyku
761 #%files i18n-ro -f ro.lang
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}
770 This package provides resources containing menus and dialogs in
773 %description i18n-ru -l pl
774 Ten pakiet dostarcza zasoby zawieraj±ce menu i okna dialogowe w jêzyku
777 %files i18n-ru -f ru.lang
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}
786 This package provides resources containing menus and dialogs in
789 %description i18n-sk -l pl
790 Ten pakiet dostarcza zasoby zawieraj±ce menu i okna dialogowe w jêzyku
793 %files i18n-sk -f sk.lang
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}
802 This package provides resources containing menus and dialogs in
805 %description i18n-sl -l pl
806 Ten pakiet dostarcza zasoby zawieraj±ce menu i okna dialogowe w jêzyku
809 %files i18n-sl -f sl.lang
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}
818 This package provides resources containing menus and dialogs in
821 %description i18n-sv -l pl
822 Ten pakiet dostarcza zasoby zawieraj±ce menu i okna dialogowe w jêzyku
825 %files i18n-sv -f sv.lang
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}
834 This package provides resources containing menus and dialogs in
837 %description i18n-tr -l pl
838 Ten pakiet dostarcza zasoby zawieraj±ce menu i okna dialogowe w jêzyku
841 %files i18n-tr -f tr.lang
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}
850 This package provides resources containing menus and dialogs in
853 %description i18n-uk -l pl
854 Ten pakiet dostarcza zasoby zawieraj±ce menu i okna dialogowe w jêzyku
857 #%files i18n-uk -f uk.lang
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}
866 This package provides resources containing menus and dialogs in
869 %description i18n-zh -l pl
870 Ten pakiet dostarcza zasoby zawieraj±ce menu i okna dialogowe w jêzyku
873 %files i18n-zh -f zh.lang
876 %setup -q -n ooo-build-%{ooobver}
884 ln -s %{SOURCE1} src/
885 ln -s %{SOURCE2} src/
886 ln -s %{SOURCE3} src/
888 # we keep these in ooo-build repository
889 #ln -s %{SOURCE20} src/openabout_pld.bmp
890 #ln -s %{SOURCE21} src/openintro_pld.bmp
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!"
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
909 JAVA_HOME="/usr/lib/java"
910 DB_JAR="%{_javadir}/db.jar"
911 export JAVA_HOME DB_JAR GCJ
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
919 --with-tag=OOO_%{dfullver} \
920 --with-ccache-allowed \
923 --with-system-sane-headers \
924 --with-system-x11-extensions-headers \
925 --with-system-unixodbc-headers \
928 --with-system-freetype \
930 --with-vendor="PLD" \
931 --with-distro="PLD" \
932 %if %{with icons_ximian}
933 --with-icons="Ximian" \
937 --with-widgetsets=original,kde,gtk \
938 --with-installed-ooo-dirname=%{name} \
941 --with-jdk-home=$JAVA_HOME \
945 --with-python=%{_bindir}/python \
946 --with-stlport4-home=/usr \
951 --enable-fontconfig \
958 --enable-crashdump=yes \
959 --enable-symbols=FULL \
961 --enable-crashdump=no \
964 --with-num-cpus=$RPM_BUILD_NR_THREADS
968 [ -x ./autogen.sh ] && ./autogen.sh $CONFOPTS
970 # build-ooo script will pickup these
971 CONFIGURE_OPTIONS="$CONFOPTS"; export CONFIGURE_OPTIONS
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)
980 # hack for parallel build
981 if [ "$RPM_BUILD_NCPUS" -gt 1 ]; then
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
991 cd build/OOO_%{dfullver}
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*
1008 rm -rf $RPM_BUILD_ROOT
1010 DESTDIR=$RPM_BUILD_ROOT; export DESTDIR
1011 TMP="%{tmpdir}"; export TMP
1012 TEMP="%{tmpdir}"; export TEMP
1015 DESTDIR=$RPM_BUILD_ROOT
1017 mv $RPM_BUILD_ROOT%{_libdir}/%{name}/program/libvcl%{subver}li.so \
1018 $RPM_BUILD_ROOT%{_libdir}/%{name}/program/libvcl%{subver}li-kde.so
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/
1025 install -d helptmp && cd helptmp || exit 1
1027 %{SOURCE400} %{SOURCE401} %{SOURCE402} %{SOURCE403} %{SOURCE404} %{SOURCE405} \
1028 %{SOURCE406} %{SOURCE407} %{SOURCE408} %{SOURCE409} %{SOURCE410}; do
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]"
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"
1044 sed -e 's#DESTINATIONPATH=.*#DESTINATIONPATH=<home>/.openoffice#g' etc/redhat-autoresponse.conf > $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/autoresponse.conf
1046 install -d $RPM_BUILD_ROOT%{_desktopdir}
1047 bzip2 -dc %{SOURCE10} | tar xf - -C $RPM_BUILD_ROOT%{_desktopdir}
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
1053 install -d $RPM_BUILD_ROOT{%{_datadir}/mimelnk/application,%{_pixmapsdir}}
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
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
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
1070 # OOo should not install the Vera fonts, they are Required: now
1071 rm -rf $RPM_BUILD_ROOT%{_libdir}/%{name}/share/fonts/truetype/*
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
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
1085 # Remove some python cruft
1086 rm -rf $RPM_BUILD_ROOT%{_libdir}/%{name}/program/python-core-*/lib/test
1088 rm -rf $RPM_BUILD_ROOT%{_datadir}/applnk
1089 rm -rf $RPM_BUILD_ROOT%{_datadir}/gnome
1091 #rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/program/gnomeint
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*
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
1102 rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/program/setup.log
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*
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')"
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')"
1119 langlist=$(echo "$langlist" | tr ' ' '\n' | sort | uniq)
1120 slanglist=$(echo "$langlist" | awk -F_ ' { print $1 } ' | awk -F- ' { print $1 } ' | sort | uniq | xargs)
1122 for lang in $slanglist; do
1123 echo "%%defattr(644,root,root,755)" >> ${lang}.lang
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
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
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
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
1148 find $RPM_BUILD_ROOT -type f -name '*.so' -exec chmod 755 "{}" ";"
1149 chmod 755 $RPM_BUILD_ROOT%{_libdir}/%{name}/program/*
1152 rm -rf $RPM_BUILD_ROOT
1155 fontpostinst TTF %{_fontsdir}/%{name}
1158 fontpostinst TTF %{_fontsdir}/%{name}
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
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
1169 rm -f %{_libdir}/%{name}/program/libvcl%{subver}li.so
1172 ln -sf libvcl%{subver}li-kde.so %{_libdir}/%{name}/program/libvcl%{subver}li.so
1175 rm -f %{_libdir}/%{name}/program/libvcl%{subver}li.so
1178 ln -sf libvcl%{subver}li-gtk.so %{_libdir}/%{name}/program/libvcl%{subver}li.so
1181 %defattr(644,root,root,755)
1182 %doc %{_libdir}/%{name}/LICENSE*
1183 %doc %{_libdir}/%{name}/*README*
1185 %dir %{_sysconfdir}/openoffice
1186 %config %{_sysconfdir}/openoffice/autoresponse.conf
1188 %{_desktopdir}/*.desktop
1189 %{_pixmapsdir}/*.png
1191 %attr(755,root,root) %{_libdir}/%{name}/install-dict
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
1202 %dir %{_libdir}/%{name}/program/resource
1204 %dir %{_libdir}/%{name}/help
1205 %{_libdir}/%{name}/help/en
1206 %{_libdir}/%{name}/help/main_transform.xsl
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
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
1229 %{_libdir}/%{name}/share/autotext/english
1230 %{_libdir}/%{name}/share/template/english
1231 %ghost %{_libdir}/%{name}/share/dict/ooo/dictionary.lst
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
1241 %{_libdir}/%{name}/user/autotext/english
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
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
1281 %defattr(644,root,root,755)
1282 %dir %{_libdir}/%{name}
1283 %dir %{_libdir}/%{name}/program
1284 %dir %{_libdir}/%{name}/program/filter
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
1291 %dir %{_datadir}/fonts/openoffice
1292 %{_datadir}/fonts/openoffice/*.ttf
1293 %ghost %{_datadir}/fonts/openoffice/fonts.cache-1
1296 %defattr(644,root,root,755)
1297 %attr(755,root,root) %{_libdir}/%{name}/program/libvcl*kde.so
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
1306 %defattr(644,root,root,755)
1307 %{_datadir}/mimelnk/application/*