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