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.55
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: 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
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}-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
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
95 BuildRequires: db-java >= 4.2.52-4
99 BuildRequires: libxslt-progs
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
114 BuildRequires: unixODBC-devel
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}
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)
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
144 Features of OpenOffice.org include:
145 - Downloadable source code,
147 - Infrastructure for community involvement, including guidelines and
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.
158 Do zalet OpenOffice.org mo¿na zaliczyæ:
159 - dostêpny ca³y czas kod ¼ród³owy,
161 - infrastruktura s³u¿±ca do komunikowania siê w ramach projektu.
164 Summary: OpenOffice.org shared libraries
165 Summary(pl): Biblioteki dzielone OpenOffice.org
167 Requires: %{name}-libs-interface = %{epoch}:%{version}-%{release}
170 OpenOffice.org productivity suite - shared libraries.
172 %description libs -l pl
173 Pakiet biurowy OpenOffice.org - biblioteki.
176 Summary: OpenOffice.org KDE Interface
177 Summary(pl): Interfejs KDE dla OpenOffice.org
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}
185 %description libs-kde
186 OpenOffice.org productivity suite - KDE Interface.
188 %description libs-kde -l pl
189 Pakiet biurowy OpenOffice.org - Interfejs KDE.
192 Summary: OpenOffice.org GTK Interface
193 Summary(pl): Interfejs GTK dla OpenOffice.org
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}
201 %description libs-gtk
202 OpenOffice.org productivity suite - GTK Interface.
204 %description libs-gtk -l pl
205 Pakiet biurowy OpenOffice.org - Interfejs GTK.
208 Summary: OpenOffice.org mimelinks
209 Summary(pl): Dowi±zania MIME dla OpenOffice.org
210 Group: X11/Applications
211 Requires: %{name} = %{epoch}:%{version}-%{release}
213 Conflicts: kdelibs >= 9:3.1.9
215 %description mimelinks
216 OpenOffice.org mimelinks for KDE versions <= 3.1.5.
218 %description mimelinks -l pl
219 Dowi±zania MIME OpenOffice.org dla wersji KDE <= 3.1.5.
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}
228 This package provides resources containing menus and dialogs in
231 %description i18n-af -l pl
232 Ten pakiet dostarcza zasoby zawieraj±ce menu i okna dialogowe w jêzyku
235 #%files i18n-af -f af.lang
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}
244 This package provides resources containing menus and dialogs in
247 %description i18n-ar -l pl
248 Ten pakiet dostarcza zasoby zawieraj±ce menu i okna dialogowe w jêzyku
251 %files i18n-ar -f ar.lang
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}
260 This package provides resources containing menus and dialogs in
263 %description i18n-bg -l pl
264 Ten pakiet dostarcza zasoby zawieraj±ce menu i okna dialogowe w jêzyku
267 #%files i18n-bg -f bg.lang
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}
276 This package provides resources containing menus and dialogs in
279 %description i18n-ca -l pl
280 Ten pakiet dostarcza zasoby zawieraj±ce menu i okna dialogowe w jêzyku
283 %files i18n-ca -f ca.lang
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}
292 This package provides resources containing menus and dialogs in
295 %description i18n-cs -l pl
296 Ten pakiet dostarcza zasoby zawieraj±ce menu i okna dialogowe w jêzyku
299 %files i18n-cs -f cs.lang
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}
308 This package provides resources containing menus and dialogs in
311 %description i18n-cy -l pl
312 Ten pakiet dostarcza zasoby zawieraj±ce menu i okna dialogowe w jêzyku
315 #%files i18n-cy -f cy.lang
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}
324 This package provides resources containing menus and dialogs in
327 %description i18n-da -l pl
328 Ten pakiet dostarcza zasoby zawieraj±ce menu i okna dialogowe w jêzyku
331 %files i18n-da -f da.lang
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}
340 This package provides resources containing menus and dialogs in
343 %description i18n-de -l pl
344 Ten pakiet dostarcza zasoby zawieraj±ce menu i okna dialogowe w jêzyku
347 %files i18n-de -f de.lang
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}
356 This package provides resources containing menus and dialogs in
359 %description i18n-el -l pl
360 Ten pakiet dostarcza zasoby zawieraj±ce menu i okna dialogowe w jêzyku
363 %files i18n-el -f el.lang
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}
372 This package provides resources containing menus and dialogs in
375 %description i18n-en -l pl
376 Ten pakiet dostarcza zasoby zawieraj±ce menu i okna dialogowe w jêzyku
379 %files i18n-en -f en.lang
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}
388 This package provides resources containing menus and dialogs in
391 %description i18n-es -l pl
392 Ten pakiet dostarcza zasoby zawieraj±ce menu i okna dialogowe w jêzyku
395 %files i18n-es -f es.lang
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}
404 This package provides resources containing menus and dialogs in
407 %description i18n-et -l pl
408 Ten pakiet dostarcza zasoby zawieraj±ce menu i okna dialogowe w jêzyku
411 %files i18n-et -f et.lang
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}
420 This package provides resources containing menus and dialogs in
423 %description i18n-fi -l pl
424 Ten pakiet dostarcza zasoby zawieraj±ce menu i okna dialogowe w jêzyku
427 %files i18n-fi -f fi.lang
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}
436 This package provides resources containing menus and dialogs in
439 %description i18n-fo -l pl
440 Ten pakiet dostarcza zasoby zawieraj±ce menu i okna dialogowe w jêzyku
443 #%files i18n-fo -f fo.lang
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}
452 This package provides resources containing menus and dialogs in
455 %description i18n-fr -l pl
456 Ten pakiet dostarcza zasoby zawieraj±ce menu i okna dialogowe w jêzyku
459 %files i18n-fr -f fr.lang
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}
468 This package provides resources containing menus and dialogs in
471 %description i18n-ga -l pl
472 Ten pakiet dostarcza zasoby zawieraj±ce menu i okna dialogowe w jêzyku
475 #%files i18n-ga -f ga.lang
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}
484 This package provides resources containing menus and dialogs in
487 %description i18n-gl -l pl
488 Ten pakiet dostarcza zasoby zawieraj±ce menu i okna dialogowe w jêzyku
491 #%files i18n-gl -f gl.lang
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}
500 This package provides resources containing menus and dialogs in
503 %description i18n-hr -l pl
504 Ten pakiet dostarcza zasoby zawieraj±ce menu i okna dialogowe w jêzyku
507 #%files i18n-hr -f hr.lang
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}
516 This package provides resources containing menus and dialogs in
519 %description i18n-hu -l pl
520 Ten pakiet dostarcza zasoby zawieraj±ce menu i okna dialogowe w jêzyku
523 %files i18n-hu -f hu.lang
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}
532 This package provides resources containing menus and dialogs in
533 Interlingua language.
535 %description i18n-ia -l pl
536 Ten pakiet dostarcza zasoby zawieraj±ce menu i okna dialogowe w jêzyku
539 #%files i18n-ia -f ia.lang
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}
548 This package provides resources containing menus and dialogs in
551 %description i18n-id -l pl
552 Ten pakiet dostarcza zasoby zawieraj±ce menu i okna dialogowe w jêzyku
555 #%files i18n-id -f id.lang
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}
564 This package provides resources containing menus and dialogs in
567 %description i18n-it -l pl
568 Ten pakiet dostarcza zasoby zawieraj±ce menu i okna dialogowe w jêzyku
571 %files i18n-it -f it.lang
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}
580 This package provides resources containing menus and dialogs in
583 %description i18n-ja -l pl
584 Ten pakiet dostarcza zasoby zawieraj±ce menu i okna dialogowe w jêzyku
587 %files i18n-ja -f ja.lang
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}
596 This package provides resources containing menus and dialogs in
599 %description i18n-ko -l pl
600 Ten pakiet dostarcza zasoby zawieraj±ce menu i okna dialogowe w jêzyku
603 %files i18n-ko -f ko.lang
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}
612 This package provides resources containing menus and dialogs in
615 %description i18n-la -l pl
616 Ten pakiet dostarcza zasoby zawieraj±ce menu i okna dialogowe w jêzyku
619 #%files i18n-la -f la.lang
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}
628 This package provides resources containing menus and dialogs in
631 %description i18n-lt -l pl
632 Ten pakiet dostarcza zasoby zawieraj±ce menu i okna dialogowe w jêzyku
635 #%files i18n-lt -f lt.lang
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}
643 %description i18n-med
644 This package provides resources containing menus and dialogs in
647 %description i18n-med -l pl
648 Ten pakiet dostarcza zasoby zawieraj±ce menu i okna dialogowe w jêzyku
651 #%files i18n-med -f med.lang
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}
660 This package provides resources containing menus and dialogs in
663 %description i18n-mi -l pl
664 Ten pakiet dostarcza zasoby zawieraj±ce menu i okna dialogowe w jêzyku
667 #%files i18n-mi -f mi.lang
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}
676 This package provides resources containing menus and dialogs in
679 %description i18n-ms -l pl
680 Ten pakiet dostarcza zasoby zawieraj±ce menu i okna dialogowe w jêzyku
683 #%files i18n-ms -f ms.lang
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}
692 This package provides resources containing menus and dialogs in
693 Norwegian Bokmaal language.
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.
699 #%files i18n-nb -f nb.lang
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}
708 This package provides resources containing menus and dialogs in
711 %description i18n-nl -l pl
712 Ten pakiet dostarcza zasoby zawieraj±ce menu i okna dialogowe w jêzyku
715 %files i18n-nl -f nl.lang
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}
724 This package provides resources containing menus and dialogs in
727 %description i18n-pl -l pl
728 Ten pakiet dostarcza zasoby zawieraj±ce menu i okna dialogowe w jêzyku
731 %files i18n-pl -f pl.lang
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}
740 This package provides resources containing menus and dialogs in
743 %description i18n-pt -l pl
744 Ten pakiet dostarcza zasoby zawieraj±ce menu i okna dialogowe w jêzyku
747 %files i18n-pt -f pt.lang
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}
756 This package provides resources containing menus and dialogs in
759 %description i18n-ro -l pl
760 Ten pakiet dostarcza zasoby zawieraj±ce menu i okna dialogowe w jêzyku
763 #%files i18n-ro -f ro.lang
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}
772 This package provides resources containing menus and dialogs in
775 %description i18n-ru -l pl
776 Ten pakiet dostarcza zasoby zawieraj±ce menu i okna dialogowe w jêzyku
779 %files i18n-ru -f ru.lang
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}
788 This package provides resources containing menus and dialogs in
791 %description i18n-sk -l pl
792 Ten pakiet dostarcza zasoby zawieraj±ce menu i okna dialogowe w jêzyku
795 %files i18n-sk -f sk.lang
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}
804 This package provides resources containing menus and dialogs in
807 %description i18n-sl -l pl
808 Ten pakiet dostarcza zasoby zawieraj±ce menu i okna dialogowe w jêzyku
811 %files i18n-sl -f sl.lang
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}
820 This package provides resources containing menus and dialogs in
823 %description i18n-sv -l pl
824 Ten pakiet dostarcza zasoby zawieraj±ce menu i okna dialogowe w jêzyku
827 %files i18n-sv -f sv.lang
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}
836 This package provides resources containing menus and dialogs in
839 %description i18n-tr -l pl
840 Ten pakiet dostarcza zasoby zawieraj±ce menu i okna dialogowe w jêzyku
843 %files i18n-tr -f tr.lang
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}
852 This package provides resources containing menus and dialogs in
855 %description i18n-uk -l pl
856 Ten pakiet dostarcza zasoby zawieraj±ce menu i okna dialogowe w jêzyku
859 #%files i18n-uk -f uk.lang
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}
868 This package provides resources containing menus and dialogs in
871 %description i18n-zh -l pl
872 Ten pakiet dostarcza zasoby zawieraj±ce menu i okna dialogowe w jêzyku
875 %files i18n-zh -f zh.lang
878 %setup -q -n ooo-build-%{ooobver}
888 ln -s %{SOURCE1} src/
889 ln -s %{SOURCE2} src/
890 ln -s %{SOURCE3} src/
892 # we keep these in ooo-build repository
893 #ln -s %{SOURCE20} src/openabout_pld.bmp
894 #ln -s %{SOURCE21} src/openintro_pld.bmp
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!"
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
913 JAVA_HOME="/usr/lib/java"
914 DB_JAR="%{_javadir}/db.jar"
915 export JAVA_HOME DB_JAR GCJ
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
923 --with-ccache-allowed \
926 --with-system-sane-headers \
927 --with-system-x11-extensions-headers \
928 --with-system-unixodbc-headers \
931 --with-system-freetype \
933 --with-vendor="PLD" \
934 --with-distro="PLD" \
935 %if %{with icons_ximian}
936 --with-icons="Ximian" \
940 --with-widgetset=kde \
941 --with-installed-ooo-dirname=%{name} \
944 --with-jdk-home=$JAVA_HOME \
948 --with-python=%{_bindir}/python \
949 --with-stlport4-home=/usr \
953 --enable-fontconfig \
959 --enable-crashdump=yes \
960 --enable-symbols=FULL \
962 --enable-crashdump=no \
965 --with-num-cpus=$RPM_BUILD_NR_THREADS
969 [ -x ./autogen.sh ] && ./autogen.sh $CONFOPTS
971 # build-ooo script will pickup these
972 CONFIGURE_OPTIONS="$CONFOPTS"; export CONFIGURE_OPTIONS
979 # hack for parallel build
980 if [ "$RPM_BUILD_NCPUS" -gt 1 ]; then
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
990 cd build/OOO_%{dfullver}
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*
1007 rm -rf $RPM_BUILD_ROOT
1009 DESTDIR=$RPM_BUILD_ROOT; export DESTDIR
1010 TMP="%{tmpdir}"; export TMP
1011 TEMP="%{tmpdir}"; export TEMP
1014 DESTDIR=$RPM_BUILD_ROOT
1016 mv $RPM_BUILD_ROOT%{_libdir}/%{name}/program/libvcl%{subver}li.so \
1017 $RPM_BUILD_ROOT%{_libdir}/%{name}/program/libvcl%{subver}li-kde.so
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/
1024 install -d helptmp && cd helptmp || exit 1
1026 %{SOURCE400} %{SOURCE401} %{SOURCE402} %{SOURCE403} %{SOURCE404} %{SOURCE405} \
1027 %{SOURCE406} %{SOURCE407} %{SOURCE408} %{SOURCE409} %{SOURCE410}; do
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]"
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"
1043 sed -e 's#DESTINATIONPATH=.*#DESTINATIONPATH=<home>/.openoffice#g' etc/redhat-autoresponse.conf > $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/autoresponse.conf
1045 install -d $RPM_BUILD_ROOT%{_desktopdir}
1046 bzip2 -dc %{SOURCE10} | tar xf - -C $RPM_BUILD_ROOT%{_desktopdir}
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
1052 install -d $RPM_BUILD_ROOT{%{_datadir}/mimelnk/application,%{_pixmapsdir}}
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
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
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
1069 # OOo should not install the Vera fonts, they are Required: now
1070 rm -rf $RPM_BUILD_ROOT%{_libdir}/%{name}/share/fonts/truetype/*
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
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
1084 # Remove some python cruft
1085 rm -rf $RPM_BUILD_ROOT%{_libdir}/%{name}/program/python-core-*/lib/test
1087 rm -rf $RPM_BUILD_ROOT%{_datadir}/applnk
1088 rm -rf $RPM_BUILD_ROOT%{_datadir}/gnome
1090 #rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/program/gnomeint
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*
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
1101 rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/program/setup.log
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*
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')"
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')"
1118 langlist=$(echo "$langlist" | tr ' ' '\n' | sort | uniq)
1119 slanglist=$(echo "$langlist" | awk -F_ ' { print $1 } ' | awk -F- ' { print $1 } ' | sort | uniq | xargs)
1121 for lang in $slanglist; do
1122 echo "%%defattr(644,root,root,755)" >> ${lang}.lang
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
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
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
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
1147 find $RPM_BUILD_ROOT -type f -name '*.so' -exec chmod 755 "{}" ";"
1148 chmod 755 $RPM_BUILD_ROOT%{_libdir}/%{name}/program/*
1151 rm -rf $RPM_BUILD_ROOT
1154 fontpostinst TTF %{_fontsdir}/%{name}
1157 fontpostinst TTF %{_fontsdir}/%{name}
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
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
1168 rm -f %{_libdir}/%{name}/program/libvcl%{subver}li.so
1171 ln -sf libvcl%{subver}li-kde.so %{_libdir}/%{name}/program/libvcl%{subver}li.so
1174 rm -f %{_libdir}/%{name}/program/libvcl%{subver}li.so
1177 ln -sf libvcl%{subver}li-gtk.so %{_libdir}/%{name}/program/libvcl%{subver}li.so
1180 %defattr(644,root,root,755)
1181 %doc %{_libdir}/%{name}/LICENSE*
1182 %doc %{_libdir}/%{name}/*README*
1184 %dir %{_sysconfdir}/openoffice
1185 %config %{_sysconfdir}/openoffice/autoresponse.conf
1187 %{_desktopdir}/*.desktop
1188 %{_pixmapsdir}/*.png
1190 %attr(755,root,root) %{_libdir}/%{name}/install-dict
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
1201 %dir %{_libdir}/%{name}/program/resource
1203 %dir %{_libdir}/%{name}/help
1204 %{_libdir}/%{name}/help/en
1205 %{_libdir}/%{name}/help/main_transform.xsl
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
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
1228 %{_libdir}/%{name}/share/autotext/english
1229 %{_libdir}/%{name}/share/template/english
1230 %ghost %{_libdir}/%{name}/share/dict/ooo/dictionary.lst
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
1240 %{_libdir}/%{name}/user/autotext/english
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
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
1280 %defattr(644,root,root,755)
1281 %dir %{_libdir}/%{name}
1282 %dir %{_libdir}/%{name}/program
1283 %dir %{_libdir}/%{name}/program/filter
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
1290 %dir %{_datadir}/fonts/openoffice
1291 %{_datadir}/fonts/openoffice/*.ttf
1292 %ghost %{_datadir}/fonts/openoffice/fonts.cache-1
1295 %defattr(644,root,root,755)
1296 %attr(755,root,root) %{_libdir}/%{name}/program/libvcl*kde.so
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
1305 %defattr(644,root,root,755)
1306 %{_datadir}/mimelnk/application/*