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
78 URL: http://www.openoffice.org/
79 BuildRequires: ImageMagick
80 BuildRequires: STLport-devel >= 4.5.3-6
81 BuildRequires: XFree86-devel
82 BuildRequires: XFree86-static
83 BuildRequires: autoconf
84 BuildRequires: automake
85 BuildRequires: bison >= 1.875-4
86 BuildRequires: cups-devel
87 BuildRequires: curl-devel
88 BuildRequires: db-cxx-devel
89 BuildRequires: db-devel
90 BuildRequires: /usr/bin/getopt
92 BuildRequires: db-java >= 4.2.52-4
96 BuildRequires: libxslt-progs
99 BuildRequires: fontconfig-devel >= 1.0.1
100 BuildRequires: freetype-devel >= 2.1
101 BuildRequires: libart_lgpl-devel
102 BuildRequires: libstdc++-devel >= 3.2.1
103 BuildRequires: nas-devel
104 BuildRequires: pam-devel
105 BuildRequires: perl-base
106 BuildRequires: pkgconfig
107 BuildRequires: python-devel
108 BuildRequires: sane-backends-devel
109 BuildRequires: startup-notification-devel
111 BuildRequires: unixODBC-devel
114 BuildRequires: zlib-devel
115 BuildRequires: qt-devel
116 BuildRequires: kdelibs-devel
117 BuildRequires: gtk+2-devel
118 BuildConflicts: java-sun = 1.4.2
119 Requires(post,postun): fontpostinst
120 Requires: %{name}-libs = %{epoch}:%{version}-%{release}
121 Requires: %{name}-i18n-en = %{epoch}:%{version}-%{release}
125 Requires: libstdc++ >= 3.2.1
126 Requires: startup-notification
127 ExclusiveArch: %{ix86} sparc ppc
128 #Suggested: chkfontpath
129 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
132 OpenOffice.org is an open-source project sponsored by Sun Microsystems
133 and hosted by CollabNet. In October of 2000, Sun released the source
134 code of its popular StarOfficeTM productivity suite under open-source
135 licenses. The aim of the OpenOffice.org project is to create, using
136 open-source methods, the next generation of open-network productivity
137 services, including the establishment of open, XML-based standards for
138 office productivity file formats and language-independent bindings to
141 Features of OpenOffice.org include:
142 - Downloadable source code,
144 - Infrastructure for community involvement, including guidelines and
148 OpenOffice.org jest projektem open-source sponsorowanym przez Sun
149 Microsystems i przechowywanym przez CollabNet. W pa¼dzierniku 2000
150 roku Sun udostêpni³ kod ¼ród³owy popularnego pakietu biurowego
151 StarOfficeTM na zasadach licencji open-source. G³ównym celem
152 OpenOffice.org jest stworzenie sieciowego pakietu biurowego nastêpnej
153 generacji, wykorzystuj±c open-source'owe metody pracy.
155 Do zalet OpenOffice.org mo¿na zaliczyæ:
156 - dostêpny ca³y czas kod ¼ród³owy,
158 - infrastruktura s³u¿±ca do komunikowania siê w ramach projektu.
161 Summary: OpenOffice.org shared libraries
162 Summary(pl): Biblioteki dzielone OpenOffice.org
164 Requires: %{name}-libs-interface = %{epoch}:%{version}-%{release}
167 OpenOffice.org productivity suite - shared libraries.
169 %description libs -l pl
170 Pakiet biurowy OpenOffice.org - biblioteki.
173 Summary: OpenOffice.org KDE Interface
174 Summary(pl): Interfejs KDE dla OpenOffice.org
176 Provides: %{name}-libs-interface = %{epoch}:%{version}-%{release}
177 Provides: libvcl%{subver}li.so
178 Obsoletes: %{name}-libs-gtk
179 Requires: %{name}-libs = %{epoch}:%{version}-%{release}
180 Requires(post,preun): %{name}-libs = %{epoch}:%{version}-%{release}
182 %description libs-kde
183 OpenOffice.org productivity suite - KDE Interface.
185 %description libs-kde -l pl
186 Pakiet biurowy OpenOffice.org - Interfejs KDE.
189 Summary: OpenOffice.org GTK Interface
190 Summary(pl): Interfejs GTK dla OpenOffice.org
192 Provides: %{name}-libs-interface = %{epoch}:%{version}-%{release}
193 Provides: libvcl%{subver}li.so
194 Obsoletes: %{name}-libs-kde
195 Requires: %{name}-libs = %{epoch}:%{version}-%{release}
196 Requires(post,preun): %{name}-libs = %{epoch}:%{version}-%{release}
198 %description libs-gtk
199 OpenOffice.org productivity suite - GTK Interface.
201 %description libs-gtk -l pl
202 Pakiet biurowy OpenOffice.org - Interfejs GTK.
205 Summary: OpenOffice.org mimelinks
206 Summary(pl): Dowi±zania MIME dla OpenOffice.org
207 Group: X11/Applications
208 Requires: %{name} = %{epoch}:%{version}-%{release}
210 Conflicts: kdelibs >= 9:3.1.9
212 %description mimelinks
213 OpenOffice.org mimelinks for KDE versions <= 3.1.5.
215 %description mimelinks -l pl
216 Dowi±zania MIME OpenOffice.org dla wersji KDE <= 3.1.5.
219 Summary: OpenOffice.org - interface in Afrikaans language
220 Summary(pl): OpenOffice.org - interfejs w jêzyku afrykanerskim
221 Group: Applications/Office
222 Requires: %{name} = %{epoch}:%{version}-%{release}
225 This package provides resources containing menus and dialogs in
228 %description i18n-af -l pl
229 Ten pakiet dostarcza zasoby zawieraj±ce menu i okna dialogowe w jêzyku
232 #%files i18n-af -f af.lang
235 Summary: OpenOffice.org - interface in Arabic language
236 Summary(pl): OpenOffice.org - interfejs w jêzyku arabskim
237 Group: Applications/Office
238 Requires: %{name} = %{epoch}:%{version}-%{release}
241 This package provides resources containing menus and dialogs in
244 %description i18n-ar -l pl
245 Ten pakiet dostarcza zasoby zawieraj±ce menu i okna dialogowe w jêzyku
248 %files i18n-ar -f ar.lang
251 Summary: OpenOffice.org - interface in Bulgarian language
252 Summary(pl): OpenOffice.org - interfejs w jêzyku bu³garskim
253 Group: Applications/Office
254 Requires: %{name} = %{epoch}:%{version}-%{release}
257 This package provides resources containing menus and dialogs in
260 %description i18n-bg -l pl
261 Ten pakiet dostarcza zasoby zawieraj±ce menu i okna dialogowe w jêzyku
264 #%files i18n-bg -f bg.lang
267 Summary: OpenOffice.org - interface in Catalan language
268 Summary(pl): OpenOffice.org - interfejs w jêzyku kataloñskim
269 Group: Applications/Office
270 Requires: %{name} = %{epoch}:%{version}-%{release}
273 This package provides resources containing menus and dialogs in
276 %description i18n-ca -l pl
277 Ten pakiet dostarcza zasoby zawieraj±ce menu i okna dialogowe w jêzyku
280 %files i18n-ca -f ca.lang
283 Summary: OpenOffice.org - interface in Czech language
284 Summary(pl): OpenOffice.org - interfejs w jêzyku czeskim
285 Group: Applications/Office
286 Requires: %{name} = %{epoch}:%{version}-%{release}
289 This package provides resources containing menus and dialogs in
292 %description i18n-cs -l pl
293 Ten pakiet dostarcza zasoby zawieraj±ce menu i okna dialogowe w jêzyku
296 %files i18n-cs -f cs.lang
299 Summary: OpenOffice.org - interface in Cymraeg language
300 Summary(pl): OpenOffice.org - interfejs w jêzyku walijskim
301 Group: Applications/Office
302 Requires: %{name} = %{epoch}:%{version}-%{release}
305 This package provides resources containing menus and dialogs in
308 %description i18n-cy -l pl
309 Ten pakiet dostarcza zasoby zawieraj±ce menu i okna dialogowe w jêzyku
312 #%files i18n-cy -f cy.lang
315 Summary: OpenOffice.org - interface in Danish language
316 Summary(pl): OpenOffice.org - interfejs w jêzyku duñskim
317 Group: Applications/Office
318 Requires: %{name} = %{epoch}:%{version}-%{release}
321 This package provides resources containing menus and dialogs in
324 %description i18n-da -l pl
325 Ten pakiet dostarcza zasoby zawieraj±ce menu i okna dialogowe w jêzyku
328 %files i18n-da -f da.lang
331 Summary: OpenOffice.org - interface in German language
332 Summary(pl): OpenOffice.org - interfejs w jêzyku niemieckim
333 Group: Applications/Office
334 Requires: %{name} = %{epoch}:%{version}-%{release}
337 This package provides resources containing menus and dialogs in
340 %description i18n-de -l pl
341 Ten pakiet dostarcza zasoby zawieraj±ce menu i okna dialogowe w jêzyku
344 %files i18n-de -f de.lang
347 Summary: OpenOffice.org - interface in Greek language
348 Summary(pl): OpenOffice.org - interfejs w jêzyku greckim
349 Group: Applications/Office
350 Requires: %{name} = %{epoch}:%{version}-%{release}
353 This package provides resources containing menus and dialogs in
356 %description i18n-el -l pl
357 Ten pakiet dostarcza zasoby zawieraj±ce menu i okna dialogowe w jêzyku
360 %files i18n-el -f el.lang
363 Summary: OpenOffice.org - interface in English language
364 Summary(pl): OpenOffice.org - interfejs w jêzyku angielskim
365 Group: Applications/Office
366 Requires: %{name} = %{epoch}:%{version}-%{release}
369 This package provides resources containing menus and dialogs in
372 %description i18n-en -l pl
373 Ten pakiet dostarcza zasoby zawieraj±ce menu i okna dialogowe w jêzyku
376 %files i18n-en -f en.lang
379 Summary: OpenOffice.org - interface in Spanish language
380 Summary(pl): OpenOffice.org - interfejs w jêzyku hiszpañskim
381 Group: Applications/Office
382 Requires: %{name} = %{epoch}:%{version}-%{release}
385 This package provides resources containing menus and dialogs in
388 %description i18n-es -l pl
389 Ten pakiet dostarcza zasoby zawieraj±ce menu i okna dialogowe w jêzyku
392 %files i18n-es -f es.lang
395 Summary: OpenOffice.org - interface in Estonian language
396 Summary(pl): OpenOffice.org - interfejs w jêzyku estoñskim
397 Group: Applications/Office
398 Requires: %{name} = %{epoch}:%{version}-%{release}
401 This package provides resources containing menus and dialogs in
404 %description i18n-et -l pl
405 Ten pakiet dostarcza zasoby zawieraj±ce menu i okna dialogowe w jêzyku
408 %files i18n-et -f et.lang
411 Summary: OpenOffice.org - interface in Finnish language
412 Summary(pl): OpenOffice.org - interfejs w jêzyku fiñskim
413 Group: Applications/Office
414 Requires: %{name} = %{epoch}:%{version}-%{release}
417 This package provides resources containing menus and dialogs in
420 %description i18n-fi -l pl
421 Ten pakiet dostarcza zasoby zawieraj±ce menu i okna dialogowe w jêzyku
424 %files i18n-fi -f fi.lang
427 Summary: OpenOffice.org - interface in Faroese language
428 Summary(pl): OpenOffice.org - interfejs w jêzyku farerskim
429 Group: Applications/Office
430 Requires: %{name} = %{epoch}:%{version}-%{release}
433 This package provides resources containing menus and dialogs in
436 %description i18n-fo -l pl
437 Ten pakiet dostarcza zasoby zawieraj±ce menu i okna dialogowe w jêzyku
440 #%files i18n-fo -f fo.lang
443 Summary: OpenOffice.org - interface in French language
444 Summary(pl): OpenOffice.org - interfejs w jêzyku francuskim
445 Group: Applications/Office
446 Requires: %{name} = %{epoch}:%{version}-%{release}
449 This package provides resources containing menus and dialogs in
452 %description i18n-fr -l pl
453 Ten pakiet dostarcza zasoby zawieraj±ce menu i okna dialogowe w jêzyku
456 %files i18n-fr -f fr.lang
459 Summary: OpenOffice.org - interface in Irish language
460 Summary(pl): OpenOffice.org - interfejs w jêzyku irlandzkim
461 Group: Applications/Office
462 Requires: %{name} = %{epoch}:%{version}-%{release}
465 This package provides resources containing menus and dialogs in
468 %description i18n-ga -l pl
469 Ten pakiet dostarcza zasoby zawieraj±ce menu i okna dialogowe w jêzyku
472 #%files i18n-ga -f ga.lang
475 Summary: OpenOffice.org - interface in Galician language
476 Summary(pl): OpenOffice.org - interfejs w jêzyku galicyjskim
477 Group: Applications/Office
478 Requires: %{name} = %{epoch}:%{version}-%{release}
481 This package provides resources containing menus and dialogs in
484 %description i18n-gl -l pl
485 Ten pakiet dostarcza zasoby zawieraj±ce menu i okna dialogowe w jêzyku
488 #%files i18n-gl -f gl.lang
491 Summary: OpenOffice.org - interface in Croatian language
492 Summary(pl): OpenOffice.org - interfejs w jêzyku chorwackim
493 Group: Applications/Office
494 Requires: %{name} = %{epoch}:%{version}-%{release}
497 This package provides resources containing menus and dialogs in
500 %description i18n-hr -l pl
501 Ten pakiet dostarcza zasoby zawieraj±ce menu i okna dialogowe w jêzyku
504 #%files i18n-hr -f hr.lang
507 Summary: OpenOffice.org - interface in Hungarian language
508 Summary(pl): OpenOffice.org - interfejs w jêzyku wêgierskim
509 Group: Applications/Office
510 Requires: %{name} = %{epoch}:%{version}-%{release}
513 This package provides resources containing menus and dialogs in
516 %description i18n-hu -l pl
517 Ten pakiet dostarcza zasoby zawieraj±ce menu i okna dialogowe w jêzyku
520 %files i18n-hu -f hu.lang
523 Summary: OpenOffice.org - interface in Interlingua language
524 Summary(pl): OpenOffice.org - interfejs w jêzyku interlingua
525 Group: Applications/Office
526 Requires: %{name} = %{epoch}:%{version}-%{release}
529 This package provides resources containing menus and dialogs in
530 Interlingua language.
532 %description i18n-ia -l pl
533 Ten pakiet dostarcza zasoby zawieraj±ce menu i okna dialogowe w jêzyku
536 #%files i18n-ia -f ia.lang
539 Summary: OpenOffice.org - interface in Indonesian language
540 Summary(pl): OpenOffice.org - interfejs w jêzyku indonezyjskim
541 Group: Applications/Office
542 Requires: %{name} = %{epoch}:%{version}-%{release}
545 This package provides resources containing menus and dialogs in
548 %description i18n-id -l pl
549 Ten pakiet dostarcza zasoby zawieraj±ce menu i okna dialogowe w jêzyku
552 #%files i18n-id -f id.lang
555 Summary: OpenOffice.org - interface in Italian language
556 Summary(pl): OpenOffice.org - interfejs w jêzyku w³oskim
557 Group: Applications/Office
558 Requires: %{name} = %{epoch}:%{version}-%{release}
561 This package provides resources containing menus and dialogs in
564 %description i18n-it -l pl
565 Ten pakiet dostarcza zasoby zawieraj±ce menu i okna dialogowe w jêzyku
568 %files i18n-it -f it.lang
571 Summary: OpenOffice.org - interface in Japan language
572 Summary(pl): OpenOffice.org - interfejs w jêzyku japoñskim
573 Group: Applications/Office
574 Requires: %{name} = %{epoch}:%{version}-%{release}
577 This package provides resources containing menus and dialogs in
580 %description i18n-ja -l pl
581 Ten pakiet dostarcza zasoby zawieraj±ce menu i okna dialogowe w jêzyku
584 %files i18n-ja -f ja.lang
587 Summary: OpenOffice.org - interface in Korean language
588 Summary(pl): OpenOffice.org - interfejs w jêzyku koreañskim
589 Group: Applications/Office
590 Requires: %{name} = %{epoch}:%{version}-%{release}
593 This package provides resources containing menus and dialogs in
596 %description i18n-ko -l pl
597 Ten pakiet dostarcza zasoby zawieraj±ce menu i okna dialogowe w jêzyku
600 %files i18n-ko -f ko.lang
603 Summary: OpenOffice.org - interface in Latin language
604 Summary(pl): OpenOffice.org - interfejs w jêzyku ³aciñskim
605 Group: Applications/Office
606 Requires: %{name} = %{epoch}:%{version}-%{release}
609 This package provides resources containing menus and dialogs in
612 %description i18n-la -l pl
613 Ten pakiet dostarcza zasoby zawieraj±ce menu i okna dialogowe w jêzyku
616 #%files i18n-la -f la.lang
619 Summary: OpenOffice.org - interface in Lithuanian language
620 Summary(pl): OpenOffice.org - interfejs w jêzyku litewskim
621 Group: Applications/Office
622 Requires: %{name} = %{epoch}:%{version}-%{release}
625 This package provides resources containing menus and dialogs in
628 %description i18n-lt -l pl
629 Ten pakiet dostarcza zasoby zawieraj±ce menu i okna dialogowe w jêzyku
632 #%files i18n-lt -f lt.lang
635 Summary: OpenOffice.org - interface in Melpa language
636 Summary(pl): OpenOffice.org - interfejs w jêzyku melpa
637 Group: Applications/Office
638 Requires: %{name} = %{epoch}:%{version}-%{release}
640 %description i18n-med
641 This package provides resources containing menus and dialogs in
644 %description i18n-med -l pl
645 Ten pakiet dostarcza zasoby zawieraj±ce menu i okna dialogowe w jêzyku
648 #%files i18n-med -f med.lang
651 Summary: OpenOffice.org - interface in Maori language
652 Summary(pl): OpenOffice.org - interfejs w jêzyku maoryjskim
653 Group: Applications/Office
654 Requires: %{name} = %{epoch}:%{version}-%{release}
657 This package provides resources containing menus and dialogs in
660 %description i18n-mi -l pl
661 Ten pakiet dostarcza zasoby zawieraj±ce menu i okna dialogowe w jêzyku
664 #%files i18n-mi -f mi.lang
667 Summary: OpenOffice.org - interface in Malay language
668 Summary(pl): OpenOffice.org - interfejs w jêzyku malajskim
669 Group: Applications/Office
670 Requires: %{name} = %{epoch}:%{version}-%{release}
673 This package provides resources containing menus and dialogs in
676 %description i18n-ms -l pl
677 Ten pakiet dostarcza zasoby zawieraj±ce menu i okna dialogowe w jêzyku
680 #%files i18n-ms -f ms.lang
683 Summary: OpenOffice.org - interface in Norwegian Bokmaal language
684 Summary(pl): OpenOffice.org - interfejs w jêzyku norweskim (odmiana Bokmaal)
685 Group: Applications/Office
686 Requires: %{name} = %{epoch}:%{version}-%{release}
689 This package provides resources containing menus and dialogs in
690 Norwegian Bokmaal language.
692 %description i18n-nb -l pl
693 Ten pakiet dostarcza zasoby zawieraj±ce menu i okna dialogowe w jêzyku
694 norweskim w odmianie Bokmaal.
696 #%files i18n-nb -f nb.lang
699 Summary: OpenOffice.org - interface in Dutch language
700 Summary(pl): OpenOffice.org - interfejs w jêzyku holenderskim
701 Group: Applications/Office
702 Requires: %{name} = %{epoch}:%{version}-%{release}
705 This package provides resources containing menus and dialogs in
708 %description i18n-nl -l pl
709 Ten pakiet dostarcza zasoby zawieraj±ce menu i okna dialogowe w jêzyku
712 %files i18n-nl -f nl.lang
715 Summary: OpenOffice.org - interface in Polish language
716 Summary(pl): OpenOffice.org - interfejs w jêzyku polskim
717 Group: Applications/Office
718 Requires: %{name} = %{epoch}:%{version}-%{release}
721 This package provides resources containing menus and dialogs in
724 %description i18n-pl -l pl
725 Ten pakiet dostarcza zasoby zawieraj±ce menu i okna dialogowe w jêzyku
728 %files i18n-pl -f pl.lang
731 Summary: OpenOffice.org - interface in Portuguese language
732 Summary(pl): OpenOffice.org - interfejs w jêzyku portugalskim
733 Group: Applications/Office
734 Requires: %{name} = %{epoch}:%{version}-%{release}
737 This package provides resources containing menus and dialogs in
740 %description i18n-pt -l pl
741 Ten pakiet dostarcza zasoby zawieraj±ce menu i okna dialogowe w jêzyku
744 %files i18n-pt -f pt.lang
747 Summary: OpenOffice.org - interface in Romanian language
748 Summary(pl): OpenOffice.org - interfejs w jêzyku rumuñskim
749 Group: Applications/Office
750 Requires: %{name} = %{epoch}:%{version}-%{release}
753 This package provides resources containing menus and dialogs in
756 %description i18n-ro -l pl
757 Ten pakiet dostarcza zasoby zawieraj±ce menu i okna dialogowe w jêzyku
760 #%files i18n-ro -f ro.lang
763 Summary: OpenOffice.org - interface in Russian language
764 Summary(pl): OpenOffice.org - interfejs w jêzyku rosyjskim
765 Group: Applications/Office
766 Requires: %{name} = %{epoch}:%{version}-%{release}
769 This package provides resources containing menus and dialogs in
772 %description i18n-ru -l pl
773 Ten pakiet dostarcza zasoby zawieraj±ce menu i okna dialogowe w jêzyku
776 %files i18n-ru -f ru.lang
779 Summary: OpenOffice.org - interface in Slovak language
780 Summary(pl): OpenOffice.org - interfejs w jêzyku s³owackim
781 Group: Applications/Office
782 Requires: %{name} = %{epoch}:%{version}-%{release}
785 This package provides resources containing menus and dialogs in
788 %description i18n-sk -l pl
789 Ten pakiet dostarcza zasoby zawieraj±ce menu i okna dialogowe w jêzyku
792 %files i18n-sk -f sk.lang
795 Summary: OpenOffice.org - interface in Slovenian language
796 Summary(pl): OpenOffice.org - interfejs w jêzyku s³oweñskim
797 Group: Applications/Office
798 Requires: %{name} = %{epoch}:%{version}-%{release}
801 This package provides resources containing menus and dialogs in
804 %description i18n-sl -l pl
805 Ten pakiet dostarcza zasoby zawieraj±ce menu i okna dialogowe w jêzyku
808 %files i18n-sl -f sl.lang
811 Summary: OpenOffice.org - interface in Swedish language
812 Summary(pl): OpenOffice.org - interfejs w jêzyku szwedzkim
813 Group: Applications/Office
814 Requires: %{name} = %{epoch}:%{version}-%{release}
817 This package provides resources containing menus and dialogs in
820 %description i18n-sv -l pl
821 Ten pakiet dostarcza zasoby zawieraj±ce menu i okna dialogowe w jêzyku
824 %files i18n-sv -f sv.lang
827 Summary: OpenOffice.org - interface in Turkish language
828 Summary(pl): OpenOffice.org - interfejs w jêzyku tureckim
829 Group: Applications/Office
830 Requires: %{name} = %{epoch}:%{version}-%{release}
833 This package provides resources containing menus and dialogs in
836 %description i18n-tr -l pl
837 Ten pakiet dostarcza zasoby zawieraj±ce menu i okna dialogowe w jêzyku
840 %files i18n-tr -f tr.lang
843 Summary: OpenOffice.org - interface in Ukrainian language
844 Summary(pl): OpenOffice.org - interfejs w jêzyku ukraiñskim
845 Group: Applications/Office
846 Requires: %{name} = %{epoch}:%{version}-%{release}
849 This package provides resources containing menus and dialogs in
852 %description i18n-uk -l pl
853 Ten pakiet dostarcza zasoby zawieraj±ce menu i okna dialogowe w jêzyku
856 #%files i18n-uk -f uk.lang
859 Summary: OpenOffice.org - interface in Chinese language
860 Summary(pl): OpenOffice.org - interfejs w jêzyku chiñskim
861 Group: Applications/Office
862 Requires: %{name} = %{epoch}:%{version}-%{release}
865 This package provides resources containing menus and dialogs in
868 %description i18n-zh -l pl
869 Ten pakiet dostarcza zasoby zawieraj±ce menu i okna dialogowe w jêzyku
872 %files i18n-zh -f zh.lang
875 %setup -q -n ooo-build-%{ooobver}
882 ln -s %{SOURCE1} src/
883 ln -s %{SOURCE2} src/
884 ln -s %{SOURCE3} src/
886 # we keep these in ooo-build repository
887 #ln -s %{SOURCE20} src/openabout_pld.bmp
888 #ln -s %{SOURCE21} src/openintro_pld.bmp
891 # Make sure we have /proc mounted - otherwise idlc will fail later.
892 if [ ! -r /proc/version ]; then
893 echo "You need to have /proc mounted in order to build this package!"
899 ENVCFLAGS="%{rpmcflags}"
900 ENVCFLAGSCXX="%{rpmcflags}"
901 DESTDIR=$RPM_BUILD_ROOT
902 IGNORE_MANIFEST_CHANGES=1
903 export CC CXX ENVCFLAGS ENVCFLAGSCXX DESTDIR IGNORE_MANIFEST_CHANGES
907 JAVA_HOME="/usr/lib/java"
908 DB_JAR="%{_javadir}/db.jar"
909 export JAVA_HOME DB_JAR GCJ
912 # parallel build is broken above 4 NCPUS so use 4 as max
913 RPM_BUILD_NR_THREADS="%(echo "%{__make}" | sed -e 's#.*-j\([[:space:]]*[0-9]\+\)#\1#g' | xargs)"
914 [ "$RPM_BUILD_NR_THREADS" != "%{__make}" -a "$RPM_BUILD_NR_THREADS" -gt 4 ] && RPM_BUILD_NR_THREADS=4 || RPM_BUILD_NR_THREADS=1
917 --with-tag=OOO_%{dfullver} \
918 --with-ccache-allowed \
921 --with-system-sane-headers \
922 --with-system-x11-extensions-headers \
923 --with-system-unixodbc-headers \
926 --with-system-freetype \
928 --with-vendor="PLD" \
929 --with-distro="PLD" \
930 %if %{with icons_ximian}
931 --with-icons="Ximian" \
935 --with-widgetsets=original,kde,gtk \
936 --with-installed-ooo-dirname=%{name} \
939 --with-jdk-home=$JAVA_HOME \
943 --with-python=%{_bindir}/python \
944 --with-stlport4-home=/usr \
949 --enable-fontconfig \
956 --enable-crashdump=yes \
957 --enable-symbols=FULL \
959 --enable-crashdump=no \
962 --with-num-cpus=$RPM_BUILD_NR_THREADS
966 [ -x ./autogen.sh ] && ./autogen.sh $CONFOPTS
968 # build-ooo script will pickup these
969 CONFIGURE_OPTIONS="$CONFOPTS"; export CONFIGURE_OPTIONS
974 # this limits processing some files but doesn't limit parallel build
975 # processes of main OOo build (since OOo uses it's own build system)
978 # hack for parallel build
979 if [ "$RPM_BUILD_NCPUS" -gt 1 ]; then
981 while [ "$doit" -eq 1 ]; do
982 echo "Waiting one more time..."
983 FCH=$(nice -n 20 find . -type f ! -mmin +3 -print 2> /dev/null | wc -l)
984 [ "$FCH" -eq 0 ] && doit=0 || sleep 30
989 cd build/OOO_%{dfullver}
992 cp -a Linux*Env.Set* vcl.kde
993 sed -i -e "s#\(.*WITH_WIDGETSET.*\)\".*\"\(.*\)#\1\"gtk\"\2#g" Linux*Env.Set*
994 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*
995 sed -i -e "s#\(.*WIDGETSET_LIBS.*\)\".*\"\(.*\)#\1\"`pkg-config --libs gtk+-2.0 gdk-pixbuf-xlib-2.0`\"\2#g" Linux*Env.Set*
1006 rm -rf $RPM_BUILD_ROOT
1008 DESTDIR=$RPM_BUILD_ROOT; export DESTDIR
1009 TMP="%{tmpdir}"; export TMP
1010 TEMP="%{tmpdir}"; export TEMP
1013 DESTDIR=$RPM_BUILD_ROOT
1015 mv $RPM_BUILD_ROOT%{_libdir}/%{name}/program/libvcl%{subver}li.so \
1016 $RPM_BUILD_ROOT%{_libdir}/%{name}/program/libvcl%{subver}li-kde.so
1018 install -m755 build/OOO_%{dfullver}/vcl.gtk/unxlngi4.pro/lib/libvcl%{subver}li.so \
1019 $RPM_BUILD_ROOT%{_libdir}/%{name}/program/libvcl%{subver}li-gtk.so
1020 install -m755 build/OOO_%{dfullver}/vcl.gtk/unxlngi4.pro/bin/*-gnome \
1021 $RPM_BUILD_ROOT%{_libdir}/%{name}/program/
1023 install -d helptmp && cd helptmp || exit 1
1025 %{SOURCE400} %{SOURCE401} %{SOURCE402} %{SOURCE403} %{SOURCE404} %{SOURCE405} \
1026 %{SOURCE406} %{SOURCE407} %{SOURCE408} %{SOURCE409} %{SOURCE410}; do
1028 nr=$(echo "$file" | sed -e 's#.*_\(.*\)_.*#\1#g')
1029 lang=$(../bin/openoffice-xlate-lang -i "$nr")
1030 if [ -z "$lang" ]; then
1031 echo "Languge not found for [$file]"
1035 for ifile in s*.zip; do
1036 install -d $RPM_BUILD_ROOT%{_libdir}/%{name}/help/${lang}
1037 unzip -q -d $RPM_BUILD_ROOT%{_libdir}/%{name}/help/${lang} -o "$ifile"
1042 sed -e 's#DESTINATIONPATH=.*#DESTINATIONPATH=<home>/.openoffice#g' etc/redhat-autoresponse.conf > $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/autoresponse.conf
1044 install -d $RPM_BUILD_ROOT%{_desktopdir}
1045 bzip2 -dc %{SOURCE10} | tar xf - -C $RPM_BUILD_ROOT%{_desktopdir}
1047 # Add in the regcomp tool since some people need it for 3rd party add-ons
1048 cp -f build/OOO_%{dfullver}/solver/%{subver}/unxlng*.pro/bin/regcomp $RPM_BUILD_ROOT%{_libdir}/%{name}/program
1051 install -d $RPM_BUILD_ROOT{%{_datadir}/mimelnk/application,%{_pixmapsdir}}
1053 cp -a build/OOO_%{dfullver}/sysui/desktop/gnome/icons/*/*.png $RPM_BUILD_ROOT%{_pixmapsdir}
1054 cp -a build/OOO_%{dfullver}/sysui/desktop/gnome/icons/*.png $RPM_BUILD_ROOT%{_pixmapsdir}
1055 cp -a build/OOO_%{dfullver}/sysui/desktop/kde/vnd*.desktop $RPM_BUILD_ROOT%{_datadir}/mimelnk/application
1057 rm -rf $RPM_BUILD_ROOT%{_libdir}/%{name}/share/kde
1058 rm -rf $RPM_BUILD_ROOT%{_libdir}/%{name}/share/cde
1059 rm -rf $RPM_BUILD_ROOT%{_libdir}/%{name}/share/gnome
1060 rm -rf $RPM_BUILD_ROOT%{_libdir}/%{name}/share/icons
1061 rm -rf $RPM_BUILD_ROOT%{_datadir}/applnk
1062 rm -rf $RPM_BUILD_ROOT%{_datadir}/gnome
1064 # Remove dictionaries (in separate pkg)
1065 rm -rf $RPM_BUILD_ROOT%{_libdir}/%{name}/share/dict/ooo/*
1066 touch $RPM_BUILD_ROOT%{_libdir}/%{name}/share/dict/ooo/dictionary.lst
1068 # OOo should not install the Vera fonts, they are Required: now
1069 rm -rf $RPM_BUILD_ROOT%{_libdir}/%{name}/share/fonts/truetype/*
1071 # Copy fixed OpenSymbol to correct location
1072 install -d $RPM_BUILD_ROOT%{_datadir}/fonts/openoffice
1073 cp fonts/opens___.ttf $RPM_BUILD_ROOT%{_datadir}/fonts/openoffice
1074 # %%ghost the fonts.cache-1 file
1075 touch $RPM_BUILD_ROOT%{_datadir}/fonts/openoffice/fonts.cache-1
1077 # We don't need spadmin (gtk) or the setup application
1078 rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/setup
1079 rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/program/crash_report.bin
1080 rm -f $RPM_BUILD_ROOT%{_datadir}/applications/openoffice-setup.desktop
1081 rm -f $RPM_BUILD_ROOT%{_datadir}/applications/openoffice-printeradmin.desktop
1083 # Remove some python cruft
1084 rm -rf $RPM_BUILD_ROOT%{_libdir}/%{name}/program/python-core-*/lib/test
1086 rm -rf $RPM_BUILD_ROOT%{_datadir}/applnk
1087 rm -rf $RPM_BUILD_ROOT%{_datadir}/gnome
1089 #rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/program/gnomeint
1091 # some libs creep in somehow
1092 rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/program/filter/libfreetype.so*
1093 rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/program/libstl*.so*
1095 rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/program/sopatchlevel.sh
1096 perl -pi -e 's/^[ ]*LD_LIBRARY_PATH/# LD_LIBRARY_PATH/;s/export LD_LIBRARY_PATH/# export LD_LIBRARY_PATH/' \
1097 $RPM_BUILD_ROOT%{_libdir}/%{name}/program/setup
1100 rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/program/setup.log
1102 # Remove copied system libraries
1103 rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/program/libgcc_s.so* \
1104 $RPM_BUILD_ROOT%{_libdir}/%{name}/program/libstdc++*so*
1109 for lang in $RPM_BUILD_ROOT%{_libdir}/%{name}/share/registry/res/*; do
1110 [ ! -d "$lang" ] && continue
1111 langlist="$langlist $(echo "$lang" | sed -e 's#.*/\(.*\)#\1#g')"
1113 for lang in $RPM_BUILD_ROOT%{_libdir}/%{name}/help/*; do
1114 [ ! -d "$lang" ] && continue
1115 langlist="$langlist $(echo "$lang" | sed -e 's#.*/\(.*\)#\1#g')"
1117 langlist=$(echo "$langlist" | tr ' ' '\n' | sort | uniq)
1118 slanglist=$(echo "$langlist" | awk -F_ ' { print $1 } ' | awk -F- ' { print $1 } ' | sort | uniq | xargs)
1120 for lang in $slanglist; do
1121 echo "%%defattr(644,root,root,755)" >> ${lang}.lang
1124 if (ls $RPM_BUILD_ROOT%{_libdir}/%{name}/help/*${lang}* 2> /dev/null); then
1125 echo "%{_libdir}/%{name}/help/*${lang}*" >> ${lang}.lang
1126 perl -pi -e "s#.*%{_libdir}/%{name}/help/.*${lang}.*##g" build/lang_*_list.txt
1130 if (ls $RPM_BUILD_ROOT%{_libdir}/%{name}/share/registry/res/*${lang}* 2> /dev/null); then
1131 echo "%{_libdir}/%{name}/share/registry/res/*${lang}*" >> ${lang}.lang
1132 perl -pi -e "s#.*%{_libdir}/%{name}/share/registry/res/.*${lang}.*##g" build/lang_*_list.txt
1135 # files from lang_*_list.txt
1136 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
1140 # things not catched by automation above
1141 echo "%{_libdir}/%{name}/program/resource/*%{subver}01.res" >> en.lang
1142 echo "%{_libdir}/%{name}/share/wordbook/english" >> en.lang
1143 echo "%{_libdir}/%{name}/share/autocorr/acor1033.dat" >> en.lang
1144 echo "%{_libdir}/%{name}/share/autocorr/acor2057.dat" >> en.lang
1146 find $RPM_BUILD_ROOT -type f -name '*.so' -exec chmod 755 "{}" ";"
1147 chmod 755 $RPM_BUILD_ROOT%{_libdir}/%{name}/program/*
1150 rm -rf $RPM_BUILD_ROOT
1153 fontpostinst TTF %{_fontsdir}/%{name}
1156 fontpostinst TTF %{_fontsdir}/%{name}
1159 if [ -f %{_libdir}/%{name}/program/libvcl%{subver}li-kde.so ]; then
1160 ln -sf libvcl%{subver}li-kde.so %{_libdir}/%{name}/program/libvcl%{subver}li.so
1162 if [ -f %{_libdir}/%{name}/program/libvcl%{subver}li-gtk.so ]; then
1163 ln -sf libvcl%{subver}li-gtk.so %{_libdir}/%{name}/program/libvcl%{subver}li.so
1167 rm -f %{_libdir}/%{name}/program/libvcl%{subver}li.so
1170 ln -sf libvcl%{subver}li-kde.so %{_libdir}/%{name}/program/libvcl%{subver}li.so
1173 rm -f %{_libdir}/%{name}/program/libvcl%{subver}li.so
1176 ln -sf libvcl%{subver}li-gtk.so %{_libdir}/%{name}/program/libvcl%{subver}li.so
1179 %defattr(644,root,root,755)
1180 %doc %{_libdir}/%{name}/LICENSE*
1181 %doc %{_libdir}/%{name}/*README*
1183 %dir %{_sysconfdir}/openoffice
1184 %config %{_sysconfdir}/openoffice/autoresponse.conf
1186 %{_desktopdir}/*.desktop
1187 %{_pixmapsdir}/*.png
1189 %attr(755,root,root) %{_libdir}/%{name}/install-dict
1191 %{_libdir}/%{name}/program/*.rdb
1192 %{_libdir}/%{name}/program/*.bmp
1193 %{_libdir}/%{name}/program/user_registry.xsl
1194 %{_libdir}/%{name}/program/sofficerc
1195 %{_libdir}/%{name}/program/unorc
1196 %{_libdir}/%{name}/program/bootstraprc
1197 %{_libdir}/%{name}/program/configmgrrc
1198 %{_libdir}/%{name}/program/instdb.ins
1200 %dir %{_libdir}/%{name}/program/resource
1202 %dir %{_libdir}/%{name}/help
1203 %{_libdir}/%{name}/help/en
1204 %{_libdir}/%{name}/help/main_transform.xsl
1206 %dir %{_libdir}/%{name}/share
1207 %dir %{_libdir}/%{name}/share/autocorr
1208 %dir %{_libdir}/%{name}/share/autotext
1209 %{_libdir}/%{name}/share/basic
1210 %{_libdir}/%{name}/share/config
1211 %dir %{_libdir}/%{name}/share/dict
1212 %dir %{_libdir}/%{name}/share/dict/ooo
1213 %{_libdir}/%{name}/share/dtd
1214 %{_libdir}/%{name}/share/fonts
1215 %{_libdir}/%{name}/share/gallery
1216 %{_libdir}/%{name}/share/psprint
1217 %{_libdir}/%{name}/share/samples
1218 %dir %{_libdir}/%{name}/share/template
1219 %dir %{_libdir}/%{name}/share/wordbook
1220 %{_libdir}/%{name}/share/readme
1222 %dir %{_libdir}/%{name}/share/registry
1223 %dir %{_libdir}/%{name}/share/registry/res
1224 %{_libdir}/%{name}/share/registry/data
1225 %{_libdir}/%{name}/share/registry/schema
1227 %{_libdir}/%{name}/share/autotext/english
1228 %{_libdir}/%{name}/share/template/english
1229 %ghost %{_libdir}/%{name}/share/dict/ooo/dictionary.lst
1231 %dir %{_libdir}/%{name}/user
1232 %dir %{_libdir}/%{name}/user/autotext
1233 %{_libdir}/%{name}/user/basic
1234 %{_libdir}/%{name}/user/config
1235 %{_libdir}/%{name}/user/database
1236 %{_libdir}/%{name}/user/gallery
1237 %{_libdir}/%{name}/user/psprint
1239 %{_libdir}/%{name}/user/autotext/english
1242 %attr(755,root,root) %{_bindir}/oo*
1243 %attr(755,root,root) %{_libdir}/%{name}/spadmin
1244 %attr(755,root,root) %{_libdir}/%{name}/program/*.bin
1245 %attr(755,root,root) %{_libdir}/%{name}/program/nswrapper
1246 %attr(755,root,root) %{_libdir}/%{name}/program/ooovirg
1247 %attr(755,root,root) %{_libdir}/%{name}/program/pagein*
1248 %attr(755,root,root) %{_libdir}/%{name}/program/python.sh
1249 %attr(755,root,root) %{_libdir}/%{name}/program/pythonloader.unorc
1250 %attr(755,root,root) %{_libdir}/%{name}/program/pyunorc
1251 %attr(755,root,root) %{_libdir}/%{name}/program/regcomp
1252 %attr(755,root,root) %{_libdir}/%{name}/program/sagenda
1253 %attr(755,root,root) %{_libdir}/%{name}/program/scalc
1254 %attr(755,root,root) %{_libdir}/%{name}/program/sdraw
1255 %attr(755,root,root) %{_libdir}/%{name}/program/setup
1256 %{_libdir}/%{name}/program/setuprc
1257 %attr(755,root,root) %{_libdir}/%{name}/program/sfax
1258 %attr(755,root,root) %{_libdir}/%{name}/program/simpress
1259 %attr(755,root,root) %{_libdir}/%{name}/program/slabel
1260 %attr(755,root,root) %{_libdir}/%{name}/program/sletter
1261 %attr(755,root,root) %{_libdir}/%{name}/program/smaster
1262 %attr(755,root,root) %{_libdir}/%{name}/program/smath
1263 %attr(755,root,root) %{_libdir}/%{name}/program/smemo
1264 %attr(755,root,root) %{_libdir}/%{name}/program/soffice
1265 %attr(755,root,root) %{_libdir}/%{name}/program/spadmin
1266 %attr(755,root,root) %{_libdir}/%{name}/program/svcard
1267 %attr(755,root,root) %{_libdir}/%{name}/program/sweb
1268 %attr(755,root,root) %{_libdir}/%{name}/program/swriter
1269 %attr(755,root,root) %{_libdir}/%{name}/program/*.py
1272 %attr(755,root,root) %{_libdir}/%{name}/program/javaldx
1273 %attr(755,root,root) %{_libdir}/%{name}/program/jvmsetup
1274 %{_libdir}/%{name}/program/classes
1275 %{_libdir}/%{name}/share/xslt
1279 %defattr(644,root,root,755)
1280 %dir %{_libdir}/%{name}
1281 %dir %{_libdir}/%{name}/program
1282 %dir %{_libdir}/%{name}/program/filter
1284 %attr(755,root,root) %{_libdir}/%{name}/program/*.so
1285 %exclude %{_libdir}/%{name}/program/libvcl*.so
1286 %attr(755,root,root) %{_libdir}/%{name}/program/*.so.*
1287 %attr(755,root,root) %{_libdir}/%{name}/program/filter/*.so
1289 %dir %{_datadir}/fonts/openoffice
1290 %{_datadir}/fonts/openoffice/*.ttf
1291 %ghost %{_datadir}/fonts/openoffice/fonts.cache-1
1294 %defattr(644,root,root,755)
1295 %attr(755,root,root) %{_libdir}/%{name}/program/libvcl*kde.so
1298 %defattr(644,root,root,755)
1299 %attr(755,root,root) %{_libdir}/%{name}/program/libvcl*gtk.so
1300 %attr(755,root,root) %{_libdir}/%{name}/program/getstyle-gnome
1301 %attr(755,root,root) %{_libdir}/%{name}/program/msgbox-gnome
1304 %defattr(644,root,root,755)
1305 %{_datadir}/mimelnk/application/*