2 # - build requires about 8-9GB of disk space
4 # - drop requirement on XFree86-static
5 # - drop requirement on nas-devel
6 # - fix locale names and other locale related things
7 # - --with-system-myspell + myspell package as in Debian
8 # - --with-system-neon - check compilation (works with 0.23 but not 0.24)
11 %bcond_with java # Java support
12 %bcond_with icons_ximian # Ximian icons instead of KDE one
16 %define ooobver 1.1.55
18 %define fullver %{ver}.%{rel}
19 %define dfullver %(echo %{fullver} | tr . _)
20 %define specflags -fno-strict-aliasing
22 Summary: OpenOffice - powerful office suite
23 Summary(pl): OpenOffice - potê¿ny pakiet biurowy
29 Group: X11/Applications
30 Source0: http://ooo.ximian.com/packages/OOO_%{dfullver}/ooo-build-%{ooobver}.tar.gz
31 # Source0-md5: 79e885131d99a0a507eb3ffb7ecf19af
32 Source1: http://ooo.ximian.com/packages/OOO_%{dfullver}/OOO_%{dfullver}.tar.bz2
33 # Source1-md5: 550381bc429fbbda54cb84758f14e010
34 Source2: http://ooo.ximian.com/packages/ooo-icons-OOO_1_1-9.tar.gz
35 # Source2-md5: 32a0e62f89ef36a91437fc705fbe6440
36 Source3: http://kde.openoffice.org/files/documents/159/1785/ooo-KDE_icons-OOO_1_1-0.1.tar.gz
37 # Source3-md5: 5157d4453d17cae586ce24989d34357a
38 Source10: http://ep09.pld-linux.org/~adgor/pld/%{name}-desktopfiles-0.2.tar.bz2
39 # Source10-md5: 78ae3bef3e98f711b1afe9fb5717b42e
41 # we keep these in ooo-build repository
43 #Source20: %{name}-about.bmp
44 #Source21: %{name}-intro.bmp
46 %define cftp http://ftp.services.openoffice.org/pub/OpenOffice.org/contrib
49 Source400: %{cftp}/helpcontent/helpcontent_01_unix.tgz
50 # Source400-md5: 7da2aff674c2c84aba8b21ac2ab16bb6
51 Source401: %{cftp}/helpcontent/helpcontent_31_unix.tgz
52 # Source401-md5: c7e618e2d9b8bd25cae12954ef2548c9
53 Source402: %{cftp}/helpcontent/helpcontent_33_unix.tgz
54 # Source402-md5: 68d58bc30b485a77c0a0fba08af3aee3
55 Source403: %{cftp}/helpcontent/helpcontent_34_unix.tgz
56 # Source403-md5: 8696bbee3dc4d5b6fd60218123016e29
57 Source404: %{cftp}/helpcontent/helpcontent_39_unix.tgz
58 # Source404-md5: c2ae86d02f462d2b663d621190f5ef34
59 Source405: %{cftp}/helpcontent/helpcontent_46_unix.tgz
60 # Source405-md5: 7b013981edce2fabe4a8751ff64a8d58
61 Source406: %{cftp}/helpcontent/helpcontent_49_unix.tgz
62 # Source406-md5: a39f44ec40f452c963a4a187f31d1acb
63 Source407: %{cftp}/helpcontent/helpcontent_81_unix.tgz
64 # Source407-md5: 81b705057a0e14ebcbf02fac4762781a
65 Source408: %{cftp}/helpcontent/helpcontent_82_unix.tgz
66 # Source408-md5: 3121fbd251176d7c7b6e33ecec744c65
67 Source409: %{cftp}/helpcontent/helpcontent_86_unix.tgz
68 # Source409-md5: aee37935139c5ccd4b6d8abdd2037c66
69 Source410: %{cftp}/helpcontent/helpcontent_88_unix.tgz
70 # Source410-md5: 3b00571318e45965dee0545d86306d65
72 Patch0: %{name}-rh-disable-spellcheck-all-langs.patch
73 Patch1: %{name}-pld-config.patch
74 Patch2: %{name}-pld-package-lang.patch
75 Patch3: %{name}-pld-section.patch
76 Patch4: %{name}-pld-leave-home.patch
77 Patch5: %{name}-pld-parallel-build.patch
78 Patch6: %{name}-pld-kde-nwf-fonts.patch
80 URL: http://www.openoffice.org/
81 BuildRequires: ImageMagick
82 BuildRequires: STLport-devel >= 4.5.3-6
83 BuildRequires: XFree86-devel
84 BuildRequires: XFree86-static
85 BuildRequires: autoconf
86 BuildRequires: automake
87 BuildRequires: bison >= 1.875-4
88 BuildRequires: cups-devel
89 BuildRequires: curl-devel
90 BuildRequires: db-cxx-devel
91 BuildRequires: db-devel
92 BuildRequires: /usr/bin/getopt
94 BuildRequires: db-java >= 4.2.52-4
98 BuildRequires: libxslt-progs
101 BuildRequires: fontconfig-devel >= 1.0.1
102 BuildRequires: freetype-devel >= 2.1
103 BuildRequires: libart_lgpl-devel
104 BuildRequires: libstdc++-devel >= 3.2.1
105 BuildRequires: nas-devel
106 BuildRequires: pam-devel
107 BuildRequires: perl-base
108 BuildRequires: pkgconfig
109 BuildRequires: python-devel
110 BuildRequires: sane-backends-devel
111 BuildRequires: startup-notification-devel
113 BuildRequires: unixODBC-devel
116 BuildRequires: zlib-devel
117 BuildRequires: qt-devel
118 BuildRequires: kdelibs-devel
119 BuildRequires: gtk+2-devel
120 BuildConflicts: java-sun = 1.4.2
121 Requires(post,postun): fontpostinst
122 Requires: %{name}-libs = %{epoch}:%{version}-%{release}
123 Requires: %{name}-i18n-en = %{epoch}:%{version}-%{release}
127 Requires: libstdc++ >= 3.2.1
128 Requires: startup-notification
129 ExclusiveArch: %{ix86} sparc ppc
130 #Suggested: chkfontpath
131 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
134 OpenOffice.org is an open-source project sponsored by Sun Microsystems
135 and hosted by CollabNet. In October of 2000, Sun released the source
136 code of its popular StarOfficeTM productivity suite under open-source
137 licenses. The aim of the OpenOffice.org project is to create, using
138 open-source methods, the next generation of open-network productivity
139 services, including the establishment of open, XML-based standards for
140 office productivity file formats and language-independent bindings to
143 Features of OpenOffice.org include:
144 - Downloadable source code,
146 - Infrastructure for community involvement, including guidelines and
150 OpenOffice.org jest projektem open-source sponsorowanym przez Sun
151 Microsystems i przechowywanym przez CollabNet. W pa¼dzierniku 2000
152 roku Sun udostêpni³ kod ¼ród³owy popularnego pakietu biurowego
153 StarOfficeTM na zasadach licencji open-source. G³ównym celem
154 OpenOffice.org jest stworzenie sieciowego pakietu biurowego nastêpnej
155 generacji, wykorzystuj±c open-source'owe metody pracy.
157 Do zalet OpenOffice.org mo¿na zaliczyæ:
158 - dostêpny ca³y czas kod ¼ród³owy,
160 - infrastruktura s³u¿±ca do komunikowania siê w ramach projektu.
163 Summary: OpenOffice.org shared libraries
164 Summary(pl): Biblioteki dzielone OpenOffice.org
166 Requires: %{name}-libs-interface = %{version}-%{release}
169 OpenOffice.org productivity suite - shared libraries.
171 %description libs -l pl
172 Pakiet biurowy OpenOffice.org - biblioteki.
175 Summary: OpenOffice.org KDE Interface
176 Summary(pl): Interfejs KDE dla OpenOffice.org
178 Provides: %{name}-libs-interface = %{version}-%{release}
179 Provides: libvcl%{subver}li.so
180 Obsoletes: %{name}-libs-gtk
181 Requires: %{name}-libs = %{version}-%{release}
182 Requires(post): %{name}-libs = %{version}-%{release}
184 %description libs-kde
185 OpenOffice.org productivity suite - KDE Interface.
187 %description libs-kde -l pl
188 Pakiet biurowy OpenOffice.org - Interfejs KDE.
191 Summary: OpenOffice.org GTK Interface
192 Summary(pl): Interfejs GTK dla OpenOffice.org
194 Provides: %{name}-libs-interface = %{version}-%{release}
195 Provides: libvcl%{subver}li.so
196 Obsoletes: %{name}-libs-kde
197 Requires: %{name}-libs = %{version}-%{release}
198 Requires(post): %{name}-libs = %{version}-%{release}
200 %description libs-gtk
201 OpenOffice.org productivity suite - GTK Interface.
203 %description libs-gtk -l pl
204 Pakiet biurowy OpenOffice.org - Interfejs GTK.
207 Summary: OpenOffice.org mimelinks
208 Summary(pl): Dowi±zania MIME dla OpenOffice.org
209 Group: X11/Applications
210 Requires: %{name} = %{epoch}:%{version}-%{release}
212 Conflicts: kdelibs >= 9:3.1.9
214 %description mimelinks
215 OpenOffice.org mimelinks for KDE versions <= 3.1.5.
217 %description mimelinks -l pl
218 Dowi±zania MIME OpenOffice.org dla wersji KDE <= 3.1.5.
221 Summary: OpenOffice.org - interface in Afrikaans language
222 Summary(pl): OpenOffice.org - interfejs w jêzyku afrykanerskim
223 Group: Applications/Office
224 Requires: %{name} = %{epoch}:%{version}-%{release}
227 This package provides resources containing menus and dialogs in
230 %description i18n-af -l pl
231 Ten pakiet dostarcza zasoby zawieraj±ce menu i okna dialogowe w jêzyku
234 #%files i18n-af -f af.lang
237 Summary: OpenOffice.org - interface in Arabic language
238 Summary(pl): OpenOffice.org - interfejs w jêzyku arabskim
239 Group: Applications/Office
240 Requires: %{name} = %{epoch}:%{version}-%{release}
243 This package provides resources containing menus and dialogs in
246 %description i18n-ar -l pl
247 Ten pakiet dostarcza zasoby zawieraj±ce menu i okna dialogowe w jêzyku
250 %files i18n-ar -f ar.lang
253 Summary: OpenOffice.org - interface in Bulgarian language
254 Summary(pl): OpenOffice.org - interfejs w jêzyku bu³garskim
255 Group: Applications/Office
256 Requires: %{name} = %{epoch}:%{version}-%{release}
259 This package provides resources containing menus and dialogs in
262 %description i18n-bg -l pl
263 Ten pakiet dostarcza zasoby zawieraj±ce menu i okna dialogowe w jêzyku
266 #%files i18n-bg -f bg.lang
269 Summary: OpenOffice.org - interface in Catalan language
270 Summary(pl): OpenOffice.org - interfejs w jêzyku kataloñskim
271 Group: Applications/Office
272 Requires: %{name} = %{epoch}:%{version}-%{release}
275 This package provides resources containing menus and dialogs in
278 %description i18n-ca -l pl
279 Ten pakiet dostarcza zasoby zawieraj±ce menu i okna dialogowe w jêzyku
282 %files i18n-ca -f ca.lang
285 Summary: OpenOffice.org - interface in Czech language
286 Summary(pl): OpenOffice.org - interfejs w jêzyku czeskim
287 Group: Applications/Office
288 Requires: %{name} = %{epoch}:%{version}-%{release}
291 This package provides resources containing menus and dialogs in
294 %description i18n-cs -l pl
295 Ten pakiet dostarcza zasoby zawieraj±ce menu i okna dialogowe w jêzyku
298 %files i18n-cs -f cs.lang
301 Summary: OpenOffice.org - interface in Cymraeg language
302 Summary(pl): OpenOffice.org - interfejs w jêzyku walijskim
303 Group: Applications/Office
304 Requires: %{name} = %{epoch}:%{version}-%{release}
307 This package provides resources containing menus and dialogs in
310 %description i18n-cy -l pl
311 Ten pakiet dostarcza zasoby zawieraj±ce menu i okna dialogowe w jêzyku
314 #%files i18n-cy -f cy.lang
317 Summary: OpenOffice.org - interface in Danish language
318 Summary(pl): OpenOffice.org - interfejs w jêzyku duñskim
319 Group: Applications/Office
320 Requires: %{name} = %{epoch}:%{version}-%{release}
323 This package provides resources containing menus and dialogs in
326 %description i18n-da -l pl
327 Ten pakiet dostarcza zasoby zawieraj±ce menu i okna dialogowe w jêzyku
330 %files i18n-da -f da.lang
333 Summary: OpenOffice.org - interface in German language
334 Summary(pl): OpenOffice.org - interfejs w jêzyku niemieckim
335 Group: Applications/Office
336 Requires: %{name} = %{epoch}:%{version}-%{release}
339 This package provides resources containing menus and dialogs in
342 %description i18n-de -l pl
343 Ten pakiet dostarcza zasoby zawieraj±ce menu i okna dialogowe w jêzyku
346 %files i18n-de -f de.lang
349 Summary: OpenOffice.org - interface in Greek language
350 Summary(pl): OpenOffice.org - interfejs w jêzyku greckim
351 Group: Applications/Office
352 Requires: %{name} = %{epoch}:%{version}-%{release}
355 This package provides resources containing menus and dialogs in
358 %description i18n-el -l pl
359 Ten pakiet dostarcza zasoby zawieraj±ce menu i okna dialogowe w jêzyku
362 %files i18n-el -f el.lang
365 Summary: OpenOffice.org - interface in English language
366 Summary(pl): OpenOffice.org - interfejs w jêzyku angielskim
367 Group: Applications/Office
368 Requires: %{name} = %{epoch}:%{version}-%{release}
371 This package provides resources containing menus and dialogs in
374 %description i18n-en -l pl
375 Ten pakiet dostarcza zasoby zawieraj±ce menu i okna dialogowe w jêzyku
378 %files i18n-en -f en.lang
381 Summary: OpenOffice.org - interface in Spanish language
382 Summary(pl): OpenOffice.org - interfejs w jêzyku hiszpañskim
383 Group: Applications/Office
384 Requires: %{name} = %{epoch}:%{version}-%{release}
387 This package provides resources containing menus and dialogs in
390 %description i18n-es -l pl
391 Ten pakiet dostarcza zasoby zawieraj±ce menu i okna dialogowe w jêzyku
394 %files i18n-es -f es.lang
397 Summary: OpenOffice.org - interface in Estonian language
398 Summary(pl): OpenOffice.org - interfejs w jêzyku estoñskim
399 Group: Applications/Office
400 Requires: %{name} = %{epoch}:%{version}-%{release}
403 This package provides resources containing menus and dialogs in
406 %description i18n-et -l pl
407 Ten pakiet dostarcza zasoby zawieraj±ce menu i okna dialogowe w jêzyku
410 %files i18n-et -f et.lang
413 Summary: OpenOffice.org - interface in Finnish language
414 Summary(pl): OpenOffice.org - interfejs w jêzyku fiñskim
415 Group: Applications/Office
416 Requires: %{name} = %{epoch}:%{version}-%{release}
419 This package provides resources containing menus and dialogs in
422 %description i18n-fi -l pl
423 Ten pakiet dostarcza zasoby zawieraj±ce menu i okna dialogowe w jêzyku
426 %files i18n-fi -f fi.lang
429 Summary: OpenOffice.org - interface in Faroese language
430 Summary(pl): OpenOffice.org - interfejs w jêzyku farerskim
431 Group: Applications/Office
432 Requires: %{name} = %{epoch}:%{version}-%{release}
435 This package provides resources containing menus and dialogs in
438 %description i18n-fo -l pl
439 Ten pakiet dostarcza zasoby zawieraj±ce menu i okna dialogowe w jêzyku
442 #%files i18n-fo -f fo.lang
445 Summary: OpenOffice.org - interface in French language
446 Summary(pl): OpenOffice.org - interfejs w jêzyku francuskim
447 Group: Applications/Office
448 Requires: %{name} = %{epoch}:%{version}-%{release}
451 This package provides resources containing menus and dialogs in
454 %description i18n-fr -l pl
455 Ten pakiet dostarcza zasoby zawieraj±ce menu i okna dialogowe w jêzyku
458 %files i18n-fr -f fr.lang
461 Summary: OpenOffice.org - interface in Irish language
462 Summary(pl): OpenOffice.org - interfejs w jêzyku irlandzkim
463 Group: Applications/Office
464 Requires: %{name} = %{epoch}:%{version}-%{release}
467 This package provides resources containing menus and dialogs in
470 %description i18n-ga -l pl
471 Ten pakiet dostarcza zasoby zawieraj±ce menu i okna dialogowe w jêzyku
474 #%files i18n-ga -f ga.lang
477 Summary: OpenOffice.org - interface in Galician language
478 Summary(pl): OpenOffice.org - interfejs w jêzyku galicyjskim
479 Group: Applications/Office
480 Requires: %{name} = %{epoch}:%{version}-%{release}
483 This package provides resources containing menus and dialogs in
486 %description i18n-gl -l pl
487 Ten pakiet dostarcza zasoby zawieraj±ce menu i okna dialogowe w jêzyku
490 #%files i18n-gl -f gl.lang
493 Summary: OpenOffice.org - interface in Croatian language
494 Summary(pl): OpenOffice.org - interfejs w jêzyku chorwackim
495 Group: Applications/Office
496 Requires: %{name} = %{epoch}:%{version}-%{release}
499 This package provides resources containing menus and dialogs in
502 %description i18n-hr -l pl
503 Ten pakiet dostarcza zasoby zawieraj±ce menu i okna dialogowe w jêzyku
506 #%files i18n-hr -f hr.lang
509 Summary: OpenOffice.org - interface in Hungarian language
510 Summary(pl): OpenOffice.org - interfejs w jêzyku wêgierskim
511 Group: Applications/Office
512 Requires: %{name} = %{epoch}:%{version}-%{release}
515 This package provides resources containing menus and dialogs in
518 %description i18n-hu -l pl
519 Ten pakiet dostarcza zasoby zawieraj±ce menu i okna dialogowe w jêzyku
522 %files i18n-hu -f hu.lang
525 Summary: OpenOffice.org - interface in Interlingua language
526 Summary(pl): OpenOffice.org - interfejs w jêzyku interlingua
527 Group: Applications/Office
528 Requires: %{name} = %{epoch}:%{version}-%{release}
531 This package provides resources containing menus and dialogs in
532 Interlingua language.
534 %description i18n-ia -l pl
535 Ten pakiet dostarcza zasoby zawieraj±ce menu i okna dialogowe w jêzyku
538 #%files i18n-ia -f ia.lang
541 Summary: OpenOffice.org - interface in Indonesian language
542 Summary(pl): OpenOffice.org - interfejs w jêzyku indonezyjskim
543 Group: Applications/Office
544 Requires: %{name} = %{epoch}:%{version}-%{release}
547 This package provides resources containing menus and dialogs in
550 %description i18n-id -l pl
551 Ten pakiet dostarcza zasoby zawieraj±ce menu i okna dialogowe w jêzyku
554 #%files i18n-id -f id.lang
557 Summary: OpenOffice.org - interface in Italian language
558 Summary(pl): OpenOffice.org - interfejs w jêzyku w³oskim
559 Group: Applications/Office
560 Requires: %{name} = %{epoch}:%{version}-%{release}
563 This package provides resources containing menus and dialogs in
566 %description i18n-it -l pl
567 Ten pakiet dostarcza zasoby zawieraj±ce menu i okna dialogowe w jêzyku
570 %files i18n-it -f it.lang
573 Summary: OpenOffice.org - interface in Japan language
574 Summary(pl): OpenOffice.org - interfejs w jêzyku japoñskim
575 Group: Applications/Office
576 Requires: %{name} = %{epoch}:%{version}-%{release}
579 This package provides resources containing menus and dialogs in
582 %description i18n-ja -l pl
583 Ten pakiet dostarcza zasoby zawieraj±ce menu i okna dialogowe w jêzyku
586 %files i18n-ja -f ja.lang
589 Summary: OpenOffice.org - interface in Korean language
590 Summary(pl): OpenOffice.org - interfejs w jêzyku koreañskim
591 Group: Applications/Office
592 Requires: %{name} = %{epoch}:%{version}-%{release}
595 This package provides resources containing menus and dialogs in
598 %description i18n-ko -l pl
599 Ten pakiet dostarcza zasoby zawieraj±ce menu i okna dialogowe w jêzyku
602 %files i18n-ko -f ko.lang
605 Summary: OpenOffice.org - interface in Latin language
606 Summary(pl): OpenOffice.org - interfejs w jêzyku ³aciñskim
607 Group: Applications/Office
608 Requires: %{name} = %{epoch}:%{version}-%{release}
611 This package provides resources containing menus and dialogs in
614 %description i18n-la -l pl
615 Ten pakiet dostarcza zasoby zawieraj±ce menu i okna dialogowe w jêzyku
618 #%files i18n-la -f la.lang
621 Summary: OpenOffice.org - interface in Lithuanian language
622 Summary(pl): OpenOffice.org - interfejs w jêzyku litewskim
623 Group: Applications/Office
624 Requires: %{name} = %{epoch}:%{version}-%{release}
627 This package provides resources containing menus and dialogs in
630 %description i18n-lt -l pl
631 Ten pakiet dostarcza zasoby zawieraj±ce menu i okna dialogowe w jêzyku
634 #%files i18n-lt -f lt.lang
637 Summary: OpenOffice.org - interface in Melpa language
638 Summary(pl): OpenOffice.org - interfejs w jêzyku melpa
639 Group: Applications/Office
640 Requires: %{name} = %{epoch}:%{version}-%{release}
642 %description i18n-med
643 This package provides resources containing menus and dialogs in
646 %description i18n-med -l pl
647 Ten pakiet dostarcza zasoby zawieraj±ce menu i okna dialogowe w jêzyku
650 #%files i18n-med -f med.lang
653 Summary: OpenOffice.org - interface in Maori language
654 Summary(pl): OpenOffice.org - interfejs w jêzyku maoryjskim
655 Group: Applications/Office
656 Requires: %{name} = %{epoch}:%{version}-%{release}
659 This package provides resources containing menus and dialogs in
662 %description i18n-mi -l pl
663 Ten pakiet dostarcza zasoby zawieraj±ce menu i okna dialogowe w jêzyku
666 #%files i18n-mi -f mi.lang
669 Summary: OpenOffice.org - interface in Malay language
670 Summary(pl): OpenOffice.org - interfejs w jêzyku malajskim
671 Group: Applications/Office
672 Requires: %{name} = %{epoch}:%{version}-%{release}
675 This package provides resources containing menus and dialogs in
678 %description i18n-ms -l pl
679 Ten pakiet dostarcza zasoby zawieraj±ce menu i okna dialogowe w jêzyku
682 #%files i18n-ms -f ms.lang
685 Summary: OpenOffice.org - interface in Norwegian Bokmaal language
686 Summary(pl): OpenOffice.org - interfejs w jêzyku norweskim (odmiana Bokmaal)
687 Group: Applications/Office
688 Requires: %{name} = %{epoch}:%{version}-%{release}
691 This package provides resources containing menus and dialogs in
692 Norwegian Bokmaal language.
694 %description i18n-nb -l pl
695 Ten pakiet dostarcza zasoby zawieraj±ce menu i okna dialogowe w jêzyku
696 norweskim w odmianie Bokmaal.
698 #%files i18n-nb -f nb.lang
701 Summary: OpenOffice.org - interface in Dutch language
702 Summary(pl): OpenOffice.org - interfejs w jêzyku holenderskim
703 Group: Applications/Office
704 Requires: %{name} = %{epoch}:%{version}-%{release}
707 This package provides resources containing menus and dialogs in
710 %description i18n-nl -l pl
711 Ten pakiet dostarcza zasoby zawieraj±ce menu i okna dialogowe w jêzyku
714 %files i18n-nl -f nl.lang
717 Summary: OpenOffice.org - interface in Polish language
718 Summary(pl): OpenOffice.org - interfejs w jêzyku polskim
719 Group: Applications/Office
720 Requires: %{name} = %{epoch}:%{version}-%{release}
723 This package provides resources containing menus and dialogs in
726 %description i18n-pl -l pl
727 Ten pakiet dostarcza zasoby zawieraj±ce menu i okna dialogowe w jêzyku
730 %files i18n-pl -f pl.lang
733 Summary: OpenOffice.org - interface in Portuguese language
734 Summary(pl): OpenOffice.org - interfejs w jêzyku portugalskim
735 Group: Applications/Office
736 Requires: %{name} = %{epoch}:%{version}-%{release}
739 This package provides resources containing menus and dialogs in
742 %description i18n-pt -l pl
743 Ten pakiet dostarcza zasoby zawieraj±ce menu i okna dialogowe w jêzyku
746 %files i18n-pt -f pt.lang
749 Summary: OpenOffice.org - interface in Romanian language
750 Summary(pl): OpenOffice.org - interfejs w jêzyku rumuñskim
751 Group: Applications/Office
752 Requires: %{name} = %{epoch}:%{version}-%{release}
755 This package provides resources containing menus and dialogs in
758 %description i18n-ro -l pl
759 Ten pakiet dostarcza zasoby zawieraj±ce menu i okna dialogowe w jêzyku
762 #%files i18n-ro -f ro.lang
765 Summary: OpenOffice.org - interface in Russian language
766 Summary(pl): OpenOffice.org - interfejs w jêzyku rosyjskim
767 Group: Applications/Office
768 Requires: %{name} = %{epoch}:%{version}-%{release}
771 This package provides resources containing menus and dialogs in
774 %description i18n-ru -l pl
775 Ten pakiet dostarcza zasoby zawieraj±ce menu i okna dialogowe w jêzyku
778 %files i18n-ru -f ru.lang
781 Summary: OpenOffice.org - interface in Slovak language
782 Summary(pl): OpenOffice.org - interfejs w jêzyku s³owackim
783 Group: Applications/Office
784 Requires: %{name} = %{epoch}:%{version}-%{release}
787 This package provides resources containing menus and dialogs in
790 %description i18n-sk -l pl
791 Ten pakiet dostarcza zasoby zawieraj±ce menu i okna dialogowe w jêzyku
794 %files i18n-sk -f sk.lang
797 Summary: OpenOffice.org - interface in Slovenian language
798 Summary(pl): OpenOffice.org - interfejs w jêzyku s³oweñskim
799 Group: Applications/Office
800 Requires: %{name} = %{epoch}:%{version}-%{release}
803 This package provides resources containing menus and dialogs in
806 %description i18n-sl -l pl
807 Ten pakiet dostarcza zasoby zawieraj±ce menu i okna dialogowe w jêzyku
810 %files i18n-sl -f sl.lang
813 Summary: OpenOffice.org - interface in Swedish language
814 Summary(pl): OpenOffice.org - interfejs w jêzyku szwedzkim
815 Group: Applications/Office
816 Requires: %{name} = %{epoch}:%{version}-%{release}
819 This package provides resources containing menus and dialogs in
822 %description i18n-sv -l pl
823 Ten pakiet dostarcza zasoby zawieraj±ce menu i okna dialogowe w jêzyku
826 %files i18n-sv -f sv.lang
829 Summary: OpenOffice.org - interface in Turkish language
830 Summary(pl): OpenOffice.org - interfejs w jêzyku tureckim
831 Group: Applications/Office
832 Requires: %{name} = %{epoch}:%{version}-%{release}
835 This package provides resources containing menus and dialogs in
838 %description i18n-tr -l pl
839 Ten pakiet dostarcza zasoby zawieraj±ce menu i okna dialogowe w jêzyku
842 %files i18n-tr -f tr.lang
845 Summary: OpenOffice.org - interface in Ukrainian language
846 Summary(pl): OpenOffice.org - interfejs w jêzyku ukraiñskim
847 Group: Applications/Office
848 Requires: %{name} = %{epoch}:%{version}-%{release}
851 This package provides resources containing menus and dialogs in
854 %description i18n-uk -l pl
855 Ten pakiet dostarcza zasoby zawieraj±ce menu i okna dialogowe w jêzyku
858 #%files i18n-uk -f uk.lang
861 Summary: OpenOffice.org - interface in Chinese language
862 Summary(pl): OpenOffice.org - interfejs w jêzyku chiñskim
863 Group: Applications/Office
864 Requires: %{name} = %{epoch}:%{version}-%{release}
867 This package provides resources containing menus and dialogs in
870 %description i18n-zh -l pl
871 Ten pakiet dostarcza zasoby zawieraj±ce menu i okna dialogowe w jêzyku
874 %files i18n-zh -f zh.lang
877 %setup -q -n ooo-build-%{ooobver}
887 ln -s %{SOURCE1} src/
888 ln -s %{SOURCE2} src/
889 ln -s %{SOURCE3} src/
891 # we keep these in ooo-build repository
892 #ln -s %{SOURCE20} src/openabout_pld.bmp
893 #ln -s %{SOURCE21} src/openintro_pld.bmp
896 # Make sure we have /proc mounted - otherwise idlc will fail later.
897 if [ ! -r /proc/version ]; then
898 echo "You need to have /proc mounted in order to build this package!"
904 ENVCFLAGS="%{rpmcflags}"
905 ENVCFLAGSCXX="%{rpmcflags}"
906 DESTDIR=$RPM_BUILD_ROOT
907 IGNORE_MANIFEST_CHANGES=1
908 export CC CXX ENVCFLAGS ENVCFLAGSCXX DESTDIR IGNORE_MANIFEST_CHANGES
912 JAVA_HOME="/usr/lib/java"
913 DB_JAR="%{_javadir}/db.jar"
914 export JAVA_HOME DB_JAR GCJ
917 # parallel build is broken above 4 NCPUS so use 4 as max
918 RPM_BUILD_NR_THREADS="%(echo "%{__make}" | sed -e 's#.*-j\([[:space:]]*[0-9]\+\)#\1#g' | xargs)"
919 [ "$RPM_BUILD_NR_THREADS" != "%{__make}" -a "$RPM_BUILD_NR_THREADS" -gt 4 ] && RPM_BUILD_NR_THREADS=4 || RPM_BUILD_NR_THREADS=1
922 --with-ccache-allowed \
925 --with-system-sane-headers \
926 --with-system-x11-extensions-headers \
927 --with-system-unixodbc-headers \
930 --with-system-freetype \
932 --with-vendor="PLD" \
933 --with-distro="PLD" \
934 %if %{with icons_ximian}
935 --with-icons="Ximian" \
939 --with-widgetset=kde \
940 --with-installed-ooo-dirname=%{name} \
943 --with-jdk-home=$JAVA_HOME \
947 --with-python=%{_bindir}/python \
948 --with-stlport4-home=/usr \
952 --enable-crashdump=no \
953 --enable-fontconfig \
958 --with-num-cpus=$RPM_BUILD_NR_THREADS
962 [ -x ./autogen.sh ] && ./autogen.sh $CONFOPTS
964 # build-ooo script will pickup these
965 CONFIGURE_OPTIONS="$CONFOPTS"; export CONFIGURE_OPTIONS
972 # hack for parallel build
973 if [ "$RPM_BUILD_NCPUS" -gt 1 ]; then
975 while [ "$doit" -eq 1 ]; do
976 echo "Waiting one more time..."
977 FCH=$(nice -n 20 find . -type f ! -mmin +3 -print 2> /dev/null | wc -l)
978 [ "$FCH" -eq 0 ] && doit=0 || sleep 30
983 cd build/OOO_%{dfullver}
986 cp -a Linux*Env.Set* vcl.kde
987 sed -i -e "s#\(.*WITH_WIDGETSET.*\)\".*\"\(.*\)#\1\"gtk\"\2#g" Linux*Env.Set*
988 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*
989 sed -i -e "s#\(.*WIDGETSET_LIBS.*\)\".*\"\(.*\)#\1\"`pkg-config --libs gtk+-2.0 gdk-pixbuf-xlib-2.0`\"\2#g" LinuxIntelEnv.Set*
1000 rm -rf $RPM_BUILD_ROOT
1002 DESTDIR=$RPM_BUILD_ROOT; export DESTDIR
1003 TMP="%{tmpdir}"; export TMP
1004 TEMP="%{tmpdir}"; export TEMP
1007 DESTDIR=$RPM_BUILD_ROOT
1009 mv $RPM_BUILD_ROOT%{_libdir}/%{name}/program/libvcl%{subver}li.so \
1010 $RPM_BUILD_ROOT%{_libdir}/%{name}/program/libvcl%{subver}li-kde.so
1012 install -m755 build/OOO_%{dfullver}/vcl.gtk/unxlngi4.pro/lib/libvcl%{subver}li.so \
1013 $RPM_BUILD_ROOT%{_libdir}/%{name}/program/libvcl%{subver}li-gtk.so
1014 install -m755 build/OOO_%{dfullver}/vcl.gtk/unxlngi4.pro/bin/*-gnome \
1015 $RPM_BUILD_ROOT%{_libdir}/%{name}/program/
1017 install -d helptmp && cd helptmp || exit 1
1019 %{SOURCE400} %{SOURCE401} %{SOURCE402} %{SOURCE403} %{SOURCE404} %{SOURCE405} \
1020 %{SOURCE406} %{SOURCE407} %{SOURCE408} %{SOURCE409} %{SOURCE410}; do
1022 nr=$(echo "$file" | sed -e 's#.*_\(.*\)_.*#\1#g')
1023 lang=$(../bin/openoffice-xlate-lang -i "$nr")
1024 if [ -z "$lang" ]; then
1025 echo "Languge not found for [$file]"
1029 for ifile in s*.zip; do
1030 install -d $RPM_BUILD_ROOT%{_libdir}/%{name}/help/${lang}
1031 unzip -q -d $RPM_BUILD_ROOT%{_libdir}/%{name}/help/${lang} -o "$ifile"
1036 sed -e 's#DESTINATIONPATH=.*#DESTINATIONPATH=<home>/.openoffice#g' etc/redhat-autoresponse.conf > $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/autoresponse.conf
1038 install -d $RPM_BUILD_ROOT%{_desktopdir}
1039 bzip2 -dc %{SOURCE10} | tar xf - -C $RPM_BUILD_ROOT%{_desktopdir}
1041 # Add in the regcomp tool since some people need it for 3rd party add-ons
1042 cp -f build/OOO_%{dfullver}/solver/%{subver}/unxlng*.pro/bin/regcomp $RPM_BUILD_ROOT%{_libdir}/%{name}/program
1045 install -d $RPM_BUILD_ROOT{%{_datadir}/mimelnk/application,%{_pixmapsdir}}
1047 cp -a build/OOO_%{dfullver}/sysui/desktop/gnome/icons/*/*.png $RPM_BUILD_ROOT%{_pixmapsdir}
1048 cp -a build/OOO_%{dfullver}/sysui/desktop/gnome/icons/*.png $RPM_BUILD_ROOT%{_pixmapsdir}
1049 cp -a build/OOO_%{dfullver}/sysui/desktop/kde/vnd*.desktop $RPM_BUILD_ROOT%{_datadir}/mimelnk/application
1051 rm -rf $RPM_BUILD_ROOT%{_libdir}/%{name}/share/kde
1052 rm -rf $RPM_BUILD_ROOT%{_libdir}/%{name}/share/cde
1053 rm -rf $RPM_BUILD_ROOT%{_libdir}/%{name}/share/gnome
1054 rm -rf $RPM_BUILD_ROOT%{_libdir}/%{name}/share/icons
1055 rm -rf $RPM_BUILD_ROOT%{_datadir}/applnk
1056 rm -rf $RPM_BUILD_ROOT%{_datadir}/gnome
1058 # Remove dictionaries (in separate pkg)
1059 rm -rf $RPM_BUILD_ROOT%{_libdir}/%{name}/share/dict/ooo/*
1060 touch $RPM_BUILD_ROOT%{_libdir}/%{name}/share/dict/ooo/dictionary.lst
1062 # OOo should not install the Vera fonts, they are Required: now
1063 rm -rf $RPM_BUILD_ROOT%{_libdir}/%{name}/share/fonts/truetype/*
1065 # Copy fixed OpenSymbol to correct location
1066 install -d $RPM_BUILD_ROOT%{_datadir}/fonts/openoffice
1067 cp fonts/opens___.ttf $RPM_BUILD_ROOT%{_datadir}/fonts/openoffice
1068 # %%ghost the fonts.cache-1 file
1069 touch $RPM_BUILD_ROOT%{_datadir}/fonts/openoffice/fonts.cache-1
1071 # We don't need spadmin (gtk) or the setup application
1072 rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/setup
1073 rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/program/crash_report.bin
1074 rm -f $RPM_BUILD_ROOT%{_datadir}/applications/openoffice-setup.desktop
1075 rm -f $RPM_BUILD_ROOT%{_datadir}/applications/openoffice-printeradmin.desktop
1077 # Remove some python cruft
1078 rm -rf $RPM_BUILD_ROOT%{_libdir}/%{name}/program/python-core-*/lib/test
1080 rm -rf $RPM_BUILD_ROOT%{_datadir}/applnk
1081 rm -rf $RPM_BUILD_ROOT%{_datadir}/gnome
1083 #rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/program/gnomeint
1085 # some libs creep in somehow
1086 rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/program/filter/libfreetype.so*
1087 rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/program/libstl*.so*
1089 rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/program/sopatchlevel.sh
1090 perl -pi -e 's/^[ ]*LD_LIBRARY_PATH/# LD_LIBRARY_PATH/;s/export LD_LIBRARY_PATH/# export LD_LIBRARY_PATH/' \
1091 $RPM_BUILD_ROOT%{_libdir}/%{name}/program/setup
1094 rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/program/setup.log
1096 # Remove copied system libraries
1097 rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/program/libgcc_s.so* \
1098 $RPM_BUILD_ROOT%{_libdir}/%{name}/program/libstdc++*so*
1103 for lang in $RPM_BUILD_ROOT%{_libdir}/%{name}/share/registry/res/*; do
1104 [ ! -d "$lang" ] && continue
1105 langlist="$langlist $(echo "$lang" | sed -e 's#.*/\(.*\)#\1#g')"
1107 for lang in $RPM_BUILD_ROOT%{_libdir}/%{name}/help/*; do
1108 [ ! -d "$lang" ] && continue
1109 langlist="$langlist $(echo "$lang" | sed -e 's#.*/\(.*\)#\1#g')"
1111 langlist=$(echo "$langlist" | tr ' ' '\n' | sort | uniq)
1112 slanglist=$(echo "$langlist" | awk -F_ ' { print $1 } ' | awk -F- ' { print $1 } ' | sort | uniq | xargs)
1114 for lang in $slanglist; do
1115 echo "%%defattr(644,root,root,755)" >> ${lang}.lang
1118 if (ls $RPM_BUILD_ROOT%{_libdir}/%{name}/help/*${lang}* 2> /dev/null); then
1119 echo "%{_libdir}/%{name}/help/*${lang}*" >> ${lang}.lang
1120 perl -pi -e "s#.*%{_libdir}/%{name}/help/.*${lang}.*##g" build/lang_*_list.txt
1124 if (ls $RPM_BUILD_ROOT%{_libdir}/%{name}/share/registry/res/*${lang}* 2> /dev/null); then
1125 echo "%{_libdir}/%{name}/share/registry/res/*${lang}*" >> ${lang}.lang
1126 perl -pi -e "s#.*%{_libdir}/%{name}/share/registry/res/.*${lang}.*##g" build/lang_*_list.txt
1129 # files from lang_*_list.txt
1130 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
1134 # things not catched by automation above
1135 echo "%{_libdir}/%{name}/program/resource/*%{subver}01.res" >> en.lang
1136 echo "%{_libdir}/%{name}/share/wordbook/english" >> en.lang
1137 echo "%{_libdir}/%{name}/share/autocorr/acor1033.dat" >> en.lang
1138 echo "%{_libdir}/%{name}/share/autocorr/acor2057.dat" >> en.lang
1140 find $RPM_BUILD_ROOT -type f -name '*.so' -exec chmod 755 "{}" ";"
1141 chmod 755 $RPM_BUILD_ROOT%{_libdir}/%{name}/program/*
1144 rm -rf $RPM_BUILD_ROOT
1147 fontpostinst TTF %{_fontsdir}/%{name}
1150 fontpostinst TTF %{_fontsdir}/%{name}
1153 rm -f %{_libdir}/%{name}/program/libvcl%{subver}li.so
1156 ln -sf libvcl%{subver}li-kde.so %{_libdir}/%{name}/program/libvcl%{subver}li.so
1159 rm -f %{_libdir}/%{name}/program/libvcl%{subver}li.so
1162 ln -sf libvcl%{subver}li-gtk.so %{_libdir}/%{name}/program/libvcl%{subver}li.so
1165 %defattr(644,root,root,755)
1166 %doc %{_libdir}/%{name}/LICENSE*
1167 %doc %{_libdir}/%{name}/*README*
1169 %dir %{_sysconfdir}/openoffice
1170 %config %{_sysconfdir}/openoffice/autoresponse.conf
1172 %{_desktopdir}/*.desktop
1173 %{_pixmapsdir}/*.png
1175 %attr(755,root,root) %{_libdir}/%{name}/install-dict
1177 %{_libdir}/%{name}/program/*.rdb
1178 %{_libdir}/%{name}/program/*.bmp
1179 %{_libdir}/%{name}/program/user_registry.xsl
1180 %{_libdir}/%{name}/program/sofficerc
1181 %{_libdir}/%{name}/program/unorc
1182 %{_libdir}/%{name}/program/bootstraprc
1183 %{_libdir}/%{name}/program/configmgrrc
1184 %{_libdir}/%{name}/program/instdb.ins
1186 %dir %{_libdir}/%{name}/program/resource
1188 %dir %{_libdir}/%{name}/help
1189 %{_libdir}/%{name}/help/en
1190 %{_libdir}/%{name}/help/main_transform.xsl
1192 %dir %{_libdir}/%{name}/share
1193 %dir %{_libdir}/%{name}/share/autocorr
1194 %dir %{_libdir}/%{name}/share/autotext
1195 %{_libdir}/%{name}/share/basic
1196 %{_libdir}/%{name}/share/config
1197 %dir %{_libdir}/%{name}/share/dict
1198 %dir %{_libdir}/%{name}/share/dict/ooo
1199 %{_libdir}/%{name}/share/dtd
1200 %{_libdir}/%{name}/share/fonts
1201 %{_libdir}/%{name}/share/gallery
1202 %{_libdir}/%{name}/share/psprint
1203 %{_libdir}/%{name}/share/samples
1204 %dir %{_libdir}/%{name}/share/template
1205 %dir %{_libdir}/%{name}/share/wordbook
1206 %{_libdir}/%{name}/share/readme
1208 %dir %{_libdir}/%{name}/share/registry
1209 %dir %{_libdir}/%{name}/share/registry/res
1210 %{_libdir}/%{name}/share/registry/data
1211 %{_libdir}/%{name}/share/registry/schema
1213 %{_libdir}/%{name}/share/autotext/english
1214 %{_libdir}/%{name}/share/template/english
1215 %ghost %{_libdir}/%{name}/share/dict/ooo/dictionary.lst
1217 %dir %{_libdir}/%{name}/user
1218 %dir %{_libdir}/%{name}/user/autotext
1219 %{_libdir}/%{name}/user/basic
1220 %{_libdir}/%{name}/user/config
1221 %{_libdir}/%{name}/user/database
1222 %{_libdir}/%{name}/user/gallery
1223 %{_libdir}/%{name}/user/psprint
1225 %{_libdir}/%{name}/user/autotext/english
1228 %attr(755,root,root) %{_bindir}/oo*
1229 %attr(755,root,root) %{_libdir}/%{name}/spadmin
1230 %attr(755,root,root) %{_libdir}/%{name}/program/*.bin
1231 %attr(755,root,root) %{_libdir}/%{name}/program/nswrapper
1232 %attr(755,root,root) %{_libdir}/%{name}/program/ooovirg
1233 %attr(755,root,root) %{_libdir}/%{name}/program/pagein*
1234 %attr(755,root,root) %{_libdir}/%{name}/program/python.sh
1235 %attr(755,root,root) %{_libdir}/%{name}/program/pythonloader.unorc
1236 %attr(755,root,root) %{_libdir}/%{name}/program/pyunorc
1237 %attr(755,root,root) %{_libdir}/%{name}/program/regcomp
1238 %attr(755,root,root) %{_libdir}/%{name}/program/sagenda
1239 %attr(755,root,root) %{_libdir}/%{name}/program/scalc
1240 %attr(755,root,root) %{_libdir}/%{name}/program/sdraw
1241 %attr(755,root,root) %{_libdir}/%{name}/program/setup
1242 %{_libdir}/%{name}/program/setuprc
1243 %attr(755,root,root) %{_libdir}/%{name}/program/sfax
1244 %attr(755,root,root) %{_libdir}/%{name}/program/simpress
1245 %attr(755,root,root) %{_libdir}/%{name}/program/slabel
1246 %attr(755,root,root) %{_libdir}/%{name}/program/sletter
1247 %attr(755,root,root) %{_libdir}/%{name}/program/smaster
1248 %attr(755,root,root) %{_libdir}/%{name}/program/smath
1249 %attr(755,root,root) %{_libdir}/%{name}/program/smemo
1250 %attr(755,root,root) %{_libdir}/%{name}/program/soffice
1251 %attr(755,root,root) %{_libdir}/%{name}/program/spadmin
1252 %attr(755,root,root) %{_libdir}/%{name}/program/svcard
1253 %attr(755,root,root) %{_libdir}/%{name}/program/sweb
1254 %attr(755,root,root) %{_libdir}/%{name}/program/swriter
1255 %attr(755,root,root) %{_libdir}/%{name}/program/*.py
1258 %attr(755,root,root) %{_libdir}/%{name}/program/javaldx
1259 %attr(755,root,root) %{_libdir}/%{name}/program/jvmsetup
1260 %{_libdir}/%{name}/program/classes
1261 %{_libdir}/%{name}/share/xslt
1265 %defattr(644,root,root,755)
1266 %dir %{_libdir}/%{name}
1267 %dir %{_libdir}/%{name}/program
1268 %dir %{_libdir}/%{name}/program/filter
1270 %attr(755,root,root) %{_libdir}/%{name}/program/*.so
1271 %exclude %{_libdir}/%{name}/program/libvcl*.so
1272 %attr(755,root,root) %{_libdir}/%{name}/program/*.so.*
1273 %attr(755,root,root) %{_libdir}/%{name}/program/filter/*.so
1275 %dir %{_datadir}/fonts/openoffice
1276 %{_datadir}/fonts/openoffice/*.ttf
1277 %ghost %{_datadir}/fonts/openoffice/fonts.cache-1
1280 %defattr(644,root,root,755)
1281 %attr(755,root,root) %{_libdir}/%{name}/program/libvcl*kde.so
1284 %defattr(644,root,root,755)
1285 %attr(755,root,root) %{_libdir}/%{name}/program/libvcl*gtk.so
1286 %attr(755,root,root) %{_libdir}/%{name}/program/getstyle-gnome
1287 %attr(755,root,root) %{_libdir}/%{name}/program/msgbox-gnome
1290 %defattr(644,root,root,755)
1291 %{_datadir}/mimelnk/application/*