]> git.pld-linux.org Git - packages/libreoffice.git/blob - libreoffice.spec
- add --without-fonts and --enable-fontconfig
[packages/libreoffice.git] / libreoffice.spec
1 # TODO:
2 #       - everything
3 #       - PLD vendor list of patches to apply in patches/*/appply?
4 #       - drop requirement on XFree86-static
5 #       - --with-system-myspell + myspell package as in Debian
6 #       - --with-system-neon - check compilation
7
8 # Conditional build:
9 %bcond_with     java            # Java support
10 %bcond_without  kde             # do not use KDE framework, use GNOME
11
12 %define         ver             1.1
13 %define         rel             1
14 %define         ooobver         1.1.54
15 %define         subver          645
16 %define         fullver         %{ver}.%{rel}
17 %define         dfullver        %(echo %{fullver} | tr . _)
18 %define         specflags       -fno-strict-aliasing
19
20 Summary:        OpenOffice - powerful office suite
21 Summary(pl):    OpenOffice - potê¿ny pakiet biurowy
22 Name:           openoffice
23 Version:        %{fullver}
24 Release:        1.1
25 Epoch:          1
26 License:        GPL/LGPL
27 Group:          X11/Applications
28 Source0:        http://ooo.ximian.com/packages/OOO_%{dfullver}/ooo-build-%{ooobver}.tar.gz
29 # Source0-md5:  22a459b68c2534c2213805d1445d947d
30 Source1:        http://ooo.ximian.com/packages/OOO_%{dfullver}/OOO_%{dfullver}.tar.bz2
31 # Source1-md5:  550381bc429fbbda54cb84758f14e010
32 Source2:        http://ooo.ximian.com/packages/ooo-icons-OOO_1_1-9.tar.gz
33 # Source2-md5:  32a0e62f89ef36a91437fc705fbe6440
34 Source3:        http://kde.openoffice.org/files/documents/159/1785/ooo-KDE_icons-OOO_1_1-0.1.tar.gz
35 # Source3-md5:  5157d4453d17cae586ce24989d34357a
36 Source10:       http://ep09.pld-linux.org/~adgor/pld/%{name}-desktopfiles-0.2.tar.bz2
37
38 # PLD splash screen
39 Source20:       %{name}-about.bmp
40 Source21:       %{name}-intro.bmp
41
42 %define         cftp    http://ftp.services.openoffice.org/pub/OpenOffice.org/contrib
43
44 # Dictionaries
45 Source100:      %{cftp}/dictionaries/af_ZA.zip
46 # Source100-md5:        f05f0cf5ffcdb4ceab933bca1596ce34
47 Source101:      %{cftp}/dictionaries/bg_BG.zip
48 # Source101-md5:        0619620e36b1a9a45995f939d765fd3e
49 Source102:      %{cftp}/dictionaries/ca_ES.zip
50 # Source102-md5:        6cea81b3e1101fb277062e7eef4ff720
51 Source103:      %{cftp}/dictionaries/cs_CZ.zip
52 # Source103-md5:        b8d4a6943ec18300a9b0047d2540209e
53 Source104:      %{cftp}/dictionaries/cy_GB.zip
54 # Source104-md5:        accdb94f38555af45a54494e046a88f3
55 Source105:      %{cftp}/dictionaries/da_DK.zip
56 # Source105-md5:        c46cd29fb20190f944b5893825b30243
57 Source106:      %{cftp}/dictionaries/de_AT.zip
58 # Source106-md5:        fdee257cc4e9d49968048a6e3edec91a
59 Source107:      %{cftp}/dictionaries/de_CH.zip
60 # Source107-md5:        2da60dd02b5a62f1a5c8b9e4a3a7fe4d
61 Source108:      %{cftp}/dictionaries/de_DE_comb.zip
62 # Source108-md5:        7bc797d02c2a9f6a6af13bf2d1f813e8
63 Source109:      %{cftp}/dictionaries/de_DE_neu.zip
64 # Source109-md5:        53d898fcad816feb23777e426de58f5e
65 Source110:      %{cftp}/dictionaries/de_DE.zip
66 # Source110-md5:        9eb02aad372bcd12209e761762ffb10a
67 Source111:      %{cftp}/dictionaries/el_GR.zip
68 # Source111-md5:        86e612d5cc243bdd0f09c919c9487c64
69 Source112:      %{cftp}/dictionaries/en_AU.zip
70 # Source112-md5:        c39f529173d8bb0e15b1fade11dfe780
71 Source113:      %{cftp}/dictionaries/en_CA.zip
72 # Source113-md5:        c14942ea471a5182f376802c68933880
73 Source114:      %{cftp}/dictionaries/en_EN.zip
74 # Source114-md5:        500a057f13d2a4aa9a4f0d8e2de92fa0
75 Source115:      %{cftp}/dictionaries/en_GB.zip
76 # Source115-md5:        31736e7e88a2cc94e17ac7d9b1ad580f
77 Source116:      %{cftp}/dictionaries/en_NZ.zip
78 # Source116-md5:        8ac9e6640d132de29571f81d33012bb8
79 Source117:      %{cftp}/dictionaries/en_US.zip
80 # Source117-md5:        523914f52e4040f51d804df4fb449544
81 Source118:      %{cftp}/dictionaries/es_ES.zip
82 # Source118-md5:        09da802fdc3361ef46fdbf7da661e08f
83 Source119:      %{cftp}/dictionaries/es_MX.zip
84 # Source119-md5:        1a8b2d34033f3d4c8e51892084e9d6fa
85 Source120:      %{cftp}/dictionaries/fi_FI.zip
86 # Source120-md5:        7925825d1a344755858ae9b69366303b
87 Source121:      %{cftp}/dictionaries/fo_FO.zip
88 # Source121-md5:        647b7b31d02fbdb33f4f309a5da4b838
89 Source122:      %{cftp}/dictionaries/fr_BE.zip
90 # Source122-md5:        63a9d20757795b157136999075ff599a
91 Source123:      %{cftp}/dictionaries/fr_FR.zip
92 # Source123-md5:        904d799ab36df32cc598a8dc7990649f
93 Source124:      %{cftp}/dictionaries/ga_IE.zip
94 # Source124-md5:        f9bb3343d14fab214cffff654586d7d1
95 Source125:      %{cftp}/dictionaries/gl_ES.zip
96 # Source125-md5:        7270162479a5efc8e6acdc61d625fa26
97 Source126:      %{cftp}/dictionaries/hr_HR.zip
98 # Source126-md5:        5c5d0479b0fb7e7d2b5e0533cc2e370b
99 Source127:      %{cftp}/dictionaries/hu_HU.zip
100 # Source127-md5:        e697bbd1025a7f11716d7988fcfba778
101 Source128:      %{cftp}/dictionaries/ia.zip
102 # Source128-md5:        b7b91df66071a5761054a5e5337b5aa9
103 Source129:      %{cftp}/dictionaries/id_ID.zip
104 # Source129-md5:        4151dd63aa18c487fc58b4f6435afe69
105 Source130:      %{cftp}/dictionaries/is_IS.zip
106 # Source130-md5:        bef105aec65714d13517415bff58c0b9
107 Source131:      %{cftp}/dictionaries/it_IT.zip
108 # Source131-md5:        0d21eeea237108d70430cb5a7e1ce61a
109 Source132:      %{cftp}/dictionaries/la.zip
110 # Source132-md5:        52ab1f91dbf6ae75c509f0dc995e20de
111 Source133:      %{cftp}/dictionaries/lt_LT.zip
112 # Source133-md5:        3590ba02288c9092340101dca3ddc132
113 Source134:      %{cftp}/dictionaries/Math_es_ES.zip
114 # Source134-md5:        07a0341691647b312ba11b2ba34c18ce
115 Source135:      %{cftp}/dictionaries/mi_NZ.zip
116 # Source135-md5:        f691ca67df4570821f931574295715b5
117 Source136:      %{cftp}/dictionaries/ms_MY.zip
118 # Source136-md5:        f1db7ff9dd8be247e1bca30042dba115
119 Source137:      %{cftp}/dictionaries/nb_NO.zip
120 # Source137-md5:        8868ade2fae74e7c07f6f30479e654d1
121 Source138:      %{cftp}/dictionaries/nl_med.zip
122 # Source138-md5:        c5acbe50d9fcfc575295fa6f12b0bf00
123 Source139:      %{cftp}/dictionaries/nl_NL.zip
124 # Source139-md5:        caab73fe1aaf03a59860765e0b7637f8
125 Source140:      %{cftp}/dictionaries/nn_NO.zip
126 # Source140-md5:        9a2826b88207e25135caa8481bebf5ad
127 Source141:      %{cftp}/dictionaries/no_NO.zip
128 # Source141-md5:        4af191480fa97dba2b9e996436531f10
129 Source142:      %{cftp}/dictionaries/pl_PL.zip
130 # Source142-md5:        92639866d223e19b6469678e12dffe12
131 Source143:      %{cftp}/dictionaries/pt_BR.zip
132 # Source143-md5:        83aa4540283c0049c27271576890fd88
133 Source144:      %{cftp}/dictionaries/pt_PT.zip
134 # Source144-md5:        6f44ed7caf6846dca9d539bb390719c4
135 Source145:      %{cftp}/dictionaries/ro_RO.zip
136 # Source145-md5:        c8a56b8d79450dcb3ca68c6987da1930
137 Source146:      %{cftp}/dictionaries/ru_RU_0.zip
138 # Source146-md5:        a5d5be04dd6180072a27090ed586427f
139 Source147:      %{cftp}/dictionaries/ru_RU_ie.zip
140 # Source147-md5:        f1e43d1d398a08761ac9a995b408ae22
141 Source148:      %{cftp}/dictionaries/ru_RU_io.zip
142 # Source148-md5:        23b346fae3b118fcb93ba9acb83d906a
143 Source149:      %{cftp}/dictionaries/ru_RU_ye.zip
144 # Source149-md5:        f166fb2b195cc3c6581fc84a6591eb59
145 Source150:      %{cftp}/dictionaries/ru_RU_yo.zip
146 # Source150-md5:        0eed06136f9beffa21f2d5406c54b10e
147 Source151:      %{cftp}/dictionaries/ru_RU.zip
148 # Source151-md5:        67da1e4d594de554a9184568235ab301
149 Source152:      %{cftp}/dictionaries/sk_SK.zip
150 # Source152-md5:        572a5674c6f1777de2eacaae60110266
151 Source153:      %{cftp}/dictionaries/sl_SI.zip
152 # Source153-md5:        a79c19d16bc26349bbded16b410616a8
153 Source154:      %{cftp}/dictionaries/sv_SE.zip
154 # Source154-md5:        8d9c49a43bfbecec6962c1344914dc8d
155 Source155:      %{cftp}/dictionaries/uk_UA.zip
156 # Source155-md5:        a0ae3b331ae5566a330d1bccc4a95791
157
158 # Hypenation Dictionaries
159 Source200:      %{cftp}/dictionaries/hyph_bg_BG.zip
160 # Source200-md5:        c9a456317214bc336d764e9d94bdd3d2
161 Source201:      %{cftp}/dictionaries/hyph_cs_CZ.zip
162 # Source201-md5:        7dc7192fb3c141db6518c54781df6846
163 Source202:      %{cftp}/dictionaries/hyph_da_DK.zip
164 # Source202-md5:        c398f568793bc62982f1179f2db0c119
165 Source203:      %{cftp}/dictionaries/hyph_de_CH.zip
166 # Source203-md5:        d8c4f525869c46cc52185356271121ab
167 Source204:      %{cftp}/dictionaries/hyph_de_DE.zip
168 # Source204-md5:        b58540aed1323894242c9c2ff9c51913
169 Source205:      %{cftp}/dictionaries/hyph_el_GR.zip
170 # Source205-md5:        6fde4ac4ec263432b0cc45e6ad4fdec5
171 Source206:      %{cftp}/dictionaries/hyph_en_AU.zip
172 # Source206-md5:        54e447e19a8ed73331afee93415ffaab
173 Source207:      %{cftp}/dictionaries/hyph_en_CA.zip
174 # Source207-md5:        2f03411f2a8335a84b64a0d7255518de
175 Source208:      %{cftp}/dictionaries/hyph_en_GB.zip
176 # Source208-md5:        1c9bda9ce2b52246ecdb7107998cbeec
177 Source209:      %{cftp}/dictionaries/hyph_en_NZ.zip
178 # Source209-md5:        54e447e19a8ed73331afee93415ffaab
179 Source210:      %{cftp}/dictionaries/hyph_en_US.zip
180 # Source210-md5:        54e447e19a8ed73331afee93415ffaab
181 Source211:      %{cftp}/dictionaries/hyph_es_ES.zip
182 # Source211-md5:        7fc4be41cf7b6cdadd7dfbf56c701551
183 Source212:      %{cftp}/dictionaries/hyph_es_MX.zip
184 # Source212-md5:        f0e308d132801b593925b14bb5905bb8
185 Source213:      %{cftp}/dictionaries/hyph_fi_FI.zip
186 # Source213-md5:        1fc88b865f919a9323d72843e860e266
187 Source214:      %{cftp}/dictionaries/hyph_fr_BE.zip
188 # Source214-md5:        4548b4c184377148109538892b5e6dea
189 Source215:      %{cftp}/dictionaries/hyph_fr_FR.zip
190 # Source215-md5:        eb13ba5b369e72bc45f5762745ca4471
191 Source216:      %{cftp}/dictionaries/hyph_ga_IE.zip
192 # Source216-md5:        bd410dd925853de0dc7e5e117ac2555d
193 Source217:      %{cftp}/dictionaries/hyph_hu_HU.zip
194 # Source217-md5:        09fde61c70a7b1c53e22d08b763a5b80
195 Source218:      %{cftp}/dictionaries/hyph_id_ID.zip
196 # Source218-md5:        41b1f922c4d5b3d02987074e0d6bb6ee
197 Source219:      %{cftp}/dictionaries/hyph_is_IS.zip
198 # Source219-md5:        448230e966bdf68d5f8abffd18480402
199 Source220:      %{cftp}/dictionaries/hyph_it_IT.zip
200 # Source220-md5:        db546e7bb7cf72fc3c751e70f83ed659
201 Source221:      %{cftp}/dictionaries/hyph_lt_LT.zip
202 # Source221-md5:        6d90a1e831f639137077879dacb596cb
203 Source222:      %{cftp}/dictionaries/hyph_nl_NL.zip
204 # Source222-md5:        ba5c271337479a8f8ddc2a3d6a99b37b
205 Source223:      %{cftp}/dictionaries/hyph_pl_PL.zip
206 # Source223-md5:        2f81a155d8aa7479c912ae019eb5bae0
207 Source224:      %{cftp}/dictionaries/hyph_pt_BR.zip
208 # Source224-md5:        aec223b5efc1e231015ebd2ae9c359e6
209 Source225:      %{cftp}/dictionaries/hyph_pt_PT.zip
210 # Source225-md5:        327989bbbfc9f9d56eb772427a344eb3
211 Source226:      %{cftp}/dictionaries/hyph_ru_RU.zip
212 # Source226-md5:        f8a8b8a368bc7394b5a4060082c44bb4
213 Source227:      %{cftp}/dictionaries/hyph_sk_SK.zip
214 # Source227-md5:        89ad655afadb78f6ceb87d9e1e3a675f
215 Source228:      %{cftp}/dictionaries/hyph_sl_SI.zip
216 # Source228-md5:        1a9ae1d95f0f12a7909c1d4e2c5fd8e1
217 Source229:      %{cftp}/dictionaries/hyph_sv_SE.zip
218 # Source229-md5:        a1c31b48cbf570bb05f22e98dacb9e17
219 Source230:      %{cftp}/dictionaries/hyph_uk_UA.zip
220 # Source230-md5:        b87fc9d4668dac5b5bd7b943aee85efd
221
222 # Thesaurus Dictionaries
223 Source300:      %{cftp}/dictionaries/thes_bg_BG.zip
224 # Source300-md5:        630ec215fcf655b99429ca7c97667b8d
225 Source301:      %{cftp}/dictionaries/thes_de_DE.zip
226 # Source301-md5:        ffe02a241bbe6acfb9992f49b40360b9
227 Source302:      %{cftp}/dictionaries/thes_en_US.zip
228 # Source302-md5:        6262581a06eacc011ec4d87534721b0e
229 Source303:      %{cftp}/dictionaries/thes_fr_FR.zip
230 # Source303-md5:        061d832c6a6537a61770d3e065e0b1bb
231 Source304:      %{cftp}/dictionaries/thes_hu_HU.zip
232 # Source304-md5:        20e4bfe680999629270e1e8b7e2534e5
233
234 # Help content
235 Source400:      %{cftp}/helpcontent/helpcontent_01_unix.tgz
236 # Source400-md5:        7da2aff674c2c84aba8b21ac2ab16bb6
237 Source401:      %{cftp}/helpcontent/helpcontent_31_unix.tgz
238 # Source401-md5:        c7e618e2d9b8bd25cae12954ef2548c9
239 Source402:      %{cftp}/helpcontent/helpcontent_33_unix.tgz
240 # Source402-md5:        68d58bc30b485a77c0a0fba08af3aee3
241 Source403:      %{cftp}/helpcontent/helpcontent_34_unix.tgz
242 # Source403-md5:        8696bbee3dc4d5b6fd60218123016e29
243 Source404:      %{cftp}/helpcontent/helpcontent_39_unix.tgz
244 # Source404-md5:        c2ae86d02f462d2b663d621190f5ef34
245 Source405:      %{cftp}/helpcontent/helpcontent_46_unix.tgz
246 # Source405-md5:        7b013981edce2fabe4a8751ff64a8d58
247 Source406:      %{cftp}/helpcontent/helpcontent_49_unix.tgz
248 # Source406-md5:        a39f44ec40f452c963a4a187f31d1acb
249 Source407:      %{cftp}/helpcontent/helpcontent_81_unix.tgz
250 # Source407-md5:        81b705057a0e14ebcbf02fac4762781a
251 Source408:      %{cftp}/helpcontent/helpcontent_82_unix.tgz
252 # Source408-md5:        3121fbd251176d7c7b6e33ecec744c65
253 Source409:      %{cftp}/helpcontent/helpcontent_86_unix.tgz
254 # Source409-md5:        aee37935139c5ccd4b6d8abdd2037c66
255 Source410:      %{cftp}/helpcontent/helpcontent_88_unix.tgz
256 # Source410-md5:        3b00571318e45965dee0545d86306d65
257
258 Source499:      %{name}-additional-dictionaries.txt
259
260 Patch0:         %{name}-rh-disable-spellcheck-all-langs.patch
261 Patch1:         %{name}-pld-stlport.patch
262 Patch2:         %{name}-pld-ximian-is-pld.patch
263 Patch3:         %{name}-pld-copy-all-bmp.patch
264 Patch4:         %{name}-pld-ooo-build-ldver.patch
265 Patch5:         %{name}-pld-nptl.patch
266 Patch6:         %{name}-pld-do-not-overwrite-configopt.patch
267 Patch7:         %{name}-pld-package-lang.patch
268
269 URL:            http://www.openoffice.org/
270 BuildRequires:  ImageMagick
271 BuildRequires:  STLport-devel >= 4.5.3-6
272 BuildRequires:  XFree86-devel
273 BuildRequires:  autoconf
274 BuildRequires:  automake
275 BuildRequires:  bison >= 1.875-4
276 BuildRequires:  cups-devel
277 BuildRequires:  db-devel
278 BuildRequires:  db-cxx-devel
279 BuildRequires:  /usr/bin/getopt
280 %if %{with java}
281 BuildRequires:  db-java
282 BuildRequires:  jar
283 BuildRequires:  jdk
284 %else
285 BuildRequires:  libxslt-progs
286 %endif
287 BuildRequires:  flex
288 BuildRequires:  freetype-devel >= 2.1
289 BuildRequires:  libstdc++-devel >= 3.2.1
290 BuildRequires:  curl-devel
291 BuildRequires:  unixODBC-devel
292 BuildRequires:  sane-backends-devel
293 BuildRequires:  pam-devel
294 BuildRequires:  perl
295 BuildRequires:  tcsh
296 BuildRequires:  unzip
297 BuildRequires:  zip
298 BuildRequires:  zlib-devel
299 # more and more...
300 BuildRequires:  pkgconfig
301 BuildRequires:  startup-notification-devel
302 BuildRequires:  libart_lgpl-devel
303 %if %{with kde}
304 BuildRequires:  qt-devel
305 BuildRequires:  kdelibs-devel
306 %else
307 BuildRequires:  gtk+2-devel
308 BuildRequires:  gnome-vfs2-devel
309 BuildRequires:  libbonobo-devel
310 BuildRequires:  libgnomecups-devel
311 %endif
312 BuildConflicts: java-sun = 1.4.2
313 Requires:       %{name}-libs = %{epoch}:%{version}-%{release}
314 Requires:       %{name}-i18n-en = %{epoch}:%{version}-%{release}
315 Requires:       %{name}-dict-en
316 Requires:       libstdc++ >= 3.2.1
317 Requires:       cups-lib
318 Requires:       db
319 Requires:       db-cxx
320 Requires:       startup-notification
321 %if ! %{with kde}
322 Requires:       libgnomecups
323 Requires:       gnome-vfs2
324 %endif
325 ExclusiveArch:  %{ix86} sparc ppc
326 #Suggested:     chkfontpath
327 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
328
329
330 %description
331 OpenOffice.org is an open-source project sponsored by Sun Microsystems
332 and hosted by CollabNet. In October of 2000, Sun released the source
333 code of its popular StarOfficeTM productivity suite under open-source
334 licenses. The aim of the OpenOffice.org project is to create, using
335 open-source methods, the next generation of open-network productivity
336 services, including the establishment of open, XML-based standards for
337 office productivity file formats and language-independent bindings to
338 component APIs.
339
340 Features of OpenOffice.org include:
341  - Downloadable source code,
342  - CVS control, and
343  - Infrastructure for community involvement, including guidelines and
344    discussion groups.
345
346 %description -l pl
347 OpenOffice.org jest projektem open-source sponsorowanym przez Sun
348 Microsystems i przechowywanym przez CollabNet. W pa¼dzierniku 2000
349 roku Sun udostêpni³ kod ¼ród³owy popularnego pakietu biurowego
350 StarOfficeTM na zasadach licencji open-source. G³ównym celem
351 OpenOffice.org jest stworzenie sieciowego pakietu biurowego nastêpnej
352 generacji, wykorzystuj±c open-source'owe metody pracy.
353
354 Do zalet OpenOffice.org mo¿na zaliczyæ:
355  - dostêpny ca³y czas kod ¼ród³owy,
356  - kontrola CVS,
357  - infrastruktura s³u¿±ca do komunikowania siê w ramach projektu.
358
359 %package libs
360 Summary:        OpenOffice.org shared libraries
361 Summary(pl):    Biblioteki dzielone OpenOffice.org
362 Group:          X11/Libraries
363
364 %description libs
365 OpenOffice.org productivity suite - shared libraries.
366
367 %description libs -l pl
368 Pakiet biurowy OpenOffice.org - biblioteki.
369
370 %package mimelinks
371 Summary:        OpenOffice.org mimelinks
372 Summary(pl):    Dowi±zania MIME dla OpenOffice.org
373 Group:          X11/Applications
374 Requires:       %{name} = %{epoch}:%{version}-%{release}
375 Requires:       kdelibs
376 Conflicts:      kdelibs >= 9:3.1.9
377
378 %description mimelinks
379 OpenOffice.org mimelinks for KDE versions <= 3.1.5.
380
381 %description mimelinks -l pl
382 Dowi±zania MIME OpenOffice.org dla wersji KDE <= 3.1.5.
383
384 #
385 # Internationalization
386 #
387 %define         have_ARAB       yes
388 %define         have_CAT        yes
389 %define         have_CZECH      yes
390 %define         have_DAN        yes
391 %define         have_GERM       yes
392 %define         have_GREEK      yes
393 # ENUS should be always "yes"
394 %define         have_ENUS       yes
395 %define         have_SPAN       yes
396 %define         have_FINN       yes
397 %define         have_FREN       yes
398 %define         have_ITAL       yes
399 %define         have_JAPN       yes
400 %define         have_KOREAN     yes
401 %define         have_DTCH       yes
402 %define         have_POL        yes
403 %define         have_PORT       yes
404 %define         have_PORTBR     yes
405 %define         have_RUSS       yes
406 %define         have_SLOVAK     yes
407 %define         have_SWED       yes
408 %define         have_TURK       yes
409 %define         have_CHINSIM    yes
410 %define         have_CHINTRAD   yes
411
412 %define         ARAB            ""
413 %if %{have_ARAB} == yes
414 %define         ARAB            ARAB
415 %package i18n-ar
416 Summary:        OpenOffice.org - interface in Arabic language
417 Summary(pl):    OpenOffice.org - interfejs w jêzyku arabskim
418 Group:          Applications/Office
419 Requires:       %{name} = %{epoch}:%{version}-%{release}
420
421 %description i18n-ar
422 This package provides resources containing menus and dialogs in
423 Arabic language.
424
425 %description i18n-ar -l pl
426 Ten pakiet dostarcza zasoby zawieraj±ce menu i okna dialogowe w jêzyku
427 arabskim.
428
429 #%files i18n-ar -f i18n-ar
430 %endif
431
432 %define         CAT             ""
433 %if %{have_CAT} == yes
434 %define         CAT             CAT
435 %package i18n-ca
436 Summary:        OpenOffice.org - interface in Catalan language
437 Summary(pl):    OpenOffice.org - interfejs w jêzyku kataloñskim
438 Group:          Applications/Office
439 Requires:       %{name} = %{epoch}:%{version}-%{release}
440
441 %description i18n-ca
442 This package provides resources containing menus and dialogs in
443 Catalan language.
444
445 %description i18n-ca -l pl
446 Ten pakiet dostarcza zasoby zawieraj±ce menu i okna dialogowe w jêzyku
447 kataloñskim.
448
449 #%files i18n-ca -f i18n-ca
450 %endif
451
452 %define         CZECH           ""
453 %if %{have_CZECH} == yes
454 %define         CZECH           CZECH
455 %package i18n-cs
456 Summary:        OpenOffice.org - interface in Czech language
457 Summary(pl):    OpenOffice.org - interfejs w jêzyku czeskim
458 Group:          Applications/Office
459 Requires:       %{name} = %{epoch}:%{version}-%{release}
460
461 %description i18n-cs
462 This package provides resources containing menus and dialogs in
463 Czech language.
464
465 %description i18n-cs -l pl
466 Ten pakiet dostarcza zasoby zawieraj±ce menu i okna dialogowe w jêzyku
467 czeskim.
468
469 #%files i18n-cs -f i18n-cs
470 %endif
471
472 %define         DAN             ""
473 %if %{have_DAN} == yes
474 %define         DAN             DAN
475 %package i18n-da
476 Summary:        OpenOffice.org - interface in Danish language
477 Summary(pl):    OpenOffice.org - interfejs w jêzyku duñskim
478 Group:          Applications/Office
479 Requires:       %{name} = %{epoch}:%{version}-%{release}
480
481 %description i18n-da
482 This package provides resources containing menus and dialogs in
483 Danish language.
484
485 %description i18n-da -l pl
486 Ten pakiet dostarcza zasoby zawieraj±ce menu i okna dialogowe w jêzyku
487 duñskim.
488
489 #%files i18n-da -f i18n-da
490 %endif
491
492 %define         GERM            ""
493 %if %{have_GERM} == yes
494 %define         GERM            GERM
495 %package i18n-de
496 Summary:        OpenOffice.org - interface in German language
497 Summary(pl):    OpenOffice.org - interfejs w jêzyku niemieckim
498 Group:          Applications/Office
499 Requires:       %{name} = %{epoch}:%{version}-%{release}
500
501 %description i18n-de
502 This package provides resources containing menus and dialogs in
503 German language.
504
505 %description i18n-de -l pl
506 Ten pakiet dostarcza zasoby zawieraj±ce menu i okna dialogowe w jêzyku
507 niemieckim.
508
509 #%files i18n-de -f i18n-de
510 %endif
511
512 %define         GREEK           ""
513 %if %{have_GREEK} == yes
514 %define         GREEK           GREEK
515 %package i18n-el
516 Summary:        OpenOffice.org - interface in Greek language
517 Summary(pl):    OpenOffice.org - interfejs w jêzyku greckim
518 Group:          Applications/Office
519 Requires:       %{name} = %{epoch}:%{version}-%{release}
520
521 %description i18n-el
522 This package provides resources containing menus and dialogs in
523 Greek language.
524
525 %description i18n-el -l pl
526 Ten pakiet dostarcza zasoby zawieraj±ce menu i okna dialogowe w jêzyku
527 greckim.
528
529 #%files i18n-el -f i18n-el
530 %endif
531
532 %define         ENUS            ""
533 %if %{have_ENUS} == yes
534 %define         ENUS            ENUS
535 %package i18n-en
536 Summary:        OpenOffice.org - interface in English language
537 Summary(pl):    OpenOffice.org - interfejs w jêzyku angielskim
538 Group:          Applications/Office
539 Requires:       %{name} = %{epoch}:%{version}-%{release}
540
541 %description i18n-en
542 This package provides resources containing menus and dialogs in
543 English language.
544
545 %description i18n-en -l pl
546 Ten pakiet dostarcza zasoby zawieraj±ce menu i okna dialogowe w jêzyku
547 angielskim.
548
549 #%files i18n-en -f i18n-en
550 %endif
551
552 %define         SPAN            ""
553 %if %{have_SPAN} == yes
554 %define         SPAN            SPAN
555 %package i18n-es
556 Summary:        OpenOffice.org - interface in Spanish language
557 Summary(pl):    OpenOffice.org - interfejs w jêzyku hiszpañskim
558 Group:          Applications/Office
559 Requires:       %{name} = %{epoch}:%{version}-%{release}
560
561 %description i18n-es
562 This package provides resources containing menus and dialogs in
563 Spanish language.
564
565 %description i18n-es -l pl
566 Ten pakiet dostarcza zasoby zawieraj±ce menu i okna dialogowe w jêzyku
567 hiszpañskim.
568
569 #%files i18n-es -f i18n-es
570 %endif
571
572 %define         FINN            ""
573 %if %{have_FINN} == yes
574 %define         FINN            FINN
575 %package i18n-fi
576 Summary:        OpenOffice.org - interface in English language
577 Summary(pl):    OpenOffice.org - interfejs w jêzyku angielskim
578 Group:          Applications/Office
579 Requires:       %{name} = %{epoch}:%{version}-%{release}
580
581 %description i18n-fi
582 This package provides resources containing menus and dialogs in
583 Finnish language.
584
585 %description i18n-fi -l pl
586 Ten pakiet dostarcza zasoby zawieraj±ce menu i okna dialogowe w jêzyku
587 fiñskim.
588
589 #%files i18n-fi -f i18n-fi
590 %endif
591
592 %define         FREN            ""
593 %if %{have_FREN} == yes
594 %define         FREN            FREN
595 %package i18n-fr
596 Summary:        OpenOffice.org - interface in French language
597 Summary(pl):    OpenOffice.org - interfejs w jêzyku francuskim
598 Group:          Applications/Office
599 Requires:       %{name} = %{epoch}:%{version}-%{release}
600
601 %description i18n-fr
602 This package provides resources containing menus and dialogs in
603 French language.
604
605 %description i18n-fr -l pl
606 Ten pakiet dostarcza zasoby zawieraj±ce menu i okna dialogowe w jêzyku
607 francuskim.
608
609 #%files i18n-fr -f i18n-fr
610 %endif
611
612 %define         ITAL            ""
613 %if %{have_ITAL} == yes
614 %define         ITAL            ITAL
615 %package i18n-it
616 Summary:        OpenOffice.org - interface in Italian language
617 Summary(pl):    OpenOffice.org - interfejs w jêzyku w³oskim
618 Group:          Applications/Office
619 Requires:       %{name} = %{epoch}:%{version}-%{release}
620
621 %description i18n-it
622 This package provides resources containing menus and dialogs in
623 Italian language.
624
625 %description i18n-it -l pl
626 Ten pakiet dostarcza zasoby zawieraj±ce menu i okna dialogowe w jêzyku
627 w³oskim.
628
629 #%files i18n-it -f i18n-it
630 %endif
631
632 %define         JAPN            ""
633 %if %{have_JAPN} == yes
634 %define         JAPN            JAPN
635 %package i18n-ja
636 Summary:        OpenOffice.org - interface in Japan language
637 Summary(pl):    OpenOffice.org - interfejs w jêzyku japoñskim
638 Group:          Applications/Office
639 Requires:       %{name} = %{epoch}:%{version}-%{release}
640
641 %description i18n-ja
642 This package provides resources containing menus and dialogs in
643 Japan language.
644
645 %description i18n-ja -l pl
646 Ten pakiet dostarcza zasoby zawieraj±ce menu i okna dialogowe w jêzyku
647 japoñskim.
648
649 #%files i18n-ja -f i18n-ja
650 %endif
651
652 %define         KOREAN          ""
653 %if %{have_KOREAN} == yes
654 %define         KOREAN          KOREAN
655 %package i18n-ko
656 Summary:        OpenOffice.org - interface in Korean language
657 Summary(pl):    OpenOffice.org - interfejs w jêzyku koreañskim
658 Group:          Applications/Office
659 Requires:       %{name} = %{epoch}:%{version}-%{release}
660
661 %description i18n-ko
662 This package provides resources containing menus and dialogs in
663 Korean language.
664
665 %description i18n-ko -l pl
666 Ten pakiet dostarcza zasoby zawieraj±ce menu i okna dialogowe w jêzyku
667 koreañskim.
668
669 #%files i18n-ko -f i18n-ko
670 %endif
671
672 %define         DTCH            ""
673 %if %{have_DTCH}
674 %define         DTCH            DTCH
675 %package i18n-nl
676 Summary:        OpenOffice.org - interface in Dutch language
677 Summary(pl):    OpenOffice.org - interfejs w jêzyku holenderskim
678 Group:          Applications/Office
679 Requires:       %{name} = %{epoch}:%{version}-%{release}
680
681 %description i18n-nl
682 This package provides resources containing menus and dialogs in
683 Dutch language.
684
685 %description i18n-nl -l pl
686 Ten pakiet dostarcza zasoby zawieraj±ce menu i okna dialogowe w jêzyku
687 holenderskim.
688
689 #%files i18n-nl -f i18n-nl
690 %endif
691
692 %define         POL             ""
693 %if %{have_POL} == yes
694 %define         POL             POL
695 %package i18n-pl
696 Summary:        OpenOffice.org - interface in Polish language
697 Summary(pl):    OpenOffice.org - interfejs w jêzyku polskim
698 Group:          Applications/Office
699 Requires:       %{name} = %{epoch}:%{version}-%{release}
700
701 %description i18n-pl
702 This package provides resources containing menus and dialogs in
703 Polish language.
704
705 %description i18n-pl -l pl
706 Ten pakiet dostarcza zasoby zawieraj±ce menu i okna dialogowe w jêzyku
707 polskim.
708
709 #%files i18n-pl -f i18n-pl
710 %endif
711
712 %define         PORT            ""
713 %if %{have_PORT} == yes
714 %define         PORT            PORT
715 %package i18n-pt
716 Summary:        OpenOffice.org - interface in Portuguese language
717 Summary(pl):    OpenOffice.org - interfejs w jêzyku portugalskim
718 Group:          Applications/Office
719 Requires:       %{name} = %{epoch}:%{version}-%{release}
720
721 %description i18n-pt
722 This package provides resources containing menus and dialogs in
723 Portuguese language.
724
725 %description i18n-pt -l pl
726 Ten pakiet dostarcza zasoby zawieraj±ce menu i okna dialogowe w jêzyku
727 portugalskim.
728
729 #%files i18n-pt -f i18n-pt
730 %endif
731
732 %define         PORTBR          ""
733 %if %{have_PORTBR} == yes
734 %define         PORTBR          PORTBR
735 %package i18n-pt_BR
736 Summary:        OpenOffice.org - interface in Portuguese Brazylian language
737 Summary(pl):    OpenOffice.org - interfejs w jêzyku portugalskim (brazylia)
738 Group:          Applications/Office
739 Requires:       %{name} = %{epoch}:%{version}-%{release}
740
741 %description i18n-pt_BR
742 This package provides resources containing menus and dialogs in
743 Portuguese Brazylian language.
744
745 %description i18n-pt_BR -l pl
746 Ten pakiet dostarcza zasoby zawieraj±ce menu i okna dialogowe w jêzyku
747 portugalskim (odmiana brazylijska).
748
749 #%files i18n-pt_BR -f i18n-pt_BR
750 %endif
751
752 %define         RUSS            ""
753 %if %{have_RUSS} == yes
754 %define         RUSS            RUSS
755 %package i18n-ru
756 Summary:        OpenOffice.org - interface in Russian language
757 Summary(pl):    OpenOffice.org - interfejs w jêzyku rosyjskim
758 Group:          Applications/Office
759 Requires:       %{name} = %{epoch}:%{version}-%{release}
760
761 %description i18n-ru
762 This package provides resources containing menus and dialogs in
763 Russian language.
764
765 %description i18n-ru -l pl
766 Ten pakiet dostarcza zasoby zawieraj±ce menu i okna dialogowe w jêzyku
767 rosyjskim.
768
769 #%files i18n-ru -f i18n-ru
770 %endif
771
772 %define         SLOVAK          ""
773 %if %{have_SLOVAK} == yes
774 %define         SLOVAK          SLOVAK
775 %package i18n-sk
776 Summary:        OpenOffice.org - interface in Slovak language
777 Summary(pl):    OpenOffice.org - interfejs w jêzyku s³owackim
778 Group:          Applications/Office
779 Requires:       %{name} = %{epoch}:%{version}-%{release}
780
781 %description i18n-sk
782 This package provides resources containing menus and dialogs in
783 Slovak language.
784
785 %description i18n-sk -l pl
786 Ten pakiet dostarcza zasoby zawieraj±ce menu i okna dialogowe w jêzyku
787 s³owackim.
788
789 #%files i18n-sk -f i18n-sk
790 %endif
791
792 %define         SWED            ""
793 %if %{have_SWED} == yes
794 %define         SWED            SWED
795 %package i18n-sv
796 Summary:        OpenOffice.org - interface in Swedish language
797 Summary(pl):    OpenOffice.org - interfejs w jêzyku szwedzkim
798 Group:          Applications/Office
799 Requires:       %{name} = %{epoch}:%{version}-%{release}
800
801 %description i18n-sv
802 This package provides resources containing menus and dialogs in
803 Swedish language.
804
805 %description i18n-sv -l pl
806 Ten pakiet dostarcza zasoby zawieraj±ce menu i okna dialogowe w jêzyku
807 szwedzkim.
808
809 #%files i18n-sv -f i18n-sv
810 %endif
811
812 %define         TURK            ""
813 %if %{have_TURK} == yes
814 %define         TURK            TURK
815 %package i18n-tr
816 Summary:        OpenOffice.org - interface in Turkish language
817 Summary(pl):    OpenOffice.org - interfejs w jêzyku tureckim
818 Group:          Applications/Office
819 Requires:       %{name} = %{epoch}:%{version}-%{release}
820
821 %description i18n-tr
822 This package provides resources containing menus and dialogs in
823 Turkish language.
824
825 %description i18n-tr -l pl
826 Ten pakiet dostarcza zasoby zawieraj±ce menu i okna dialogowe w jêzyku
827 tureckim.
828
829 #%files i18n-tr -f i18n-tr
830 %endif
831
832 %define         CHINSIM         ""
833 %if %{have_CHINSIM} == yes
834 %define         CHINSIM         CHINSIM
835 %package i18n-zh_CN
836 Summary:        OpenOffice.org - interface in Chinese language for China
837 Summary(pl):    OpenOffice.org - interfejs w jêzyku chiñskim dla Chin
838 Group:          Applications/Office
839 Requires:       %{name} = %{epoch}:%{version}-%{release}
840
841 %description i18n-zh_CN
842 This package provides resources containing menus and dialogs in
843 Chinese language for China.
844
845 %description i18n-zh_CN -l pl
846 Ten pakiet dostarcza zasoby zawieraj±ce menu i okna dialogowe w jêzyku
847 chiñskim dla Chin.
848
849 #%files i18n-zh_CN -f i18n-zh_CN
850 %endif
851
852 %define         CHINTRAD                ""
853 %if %{have_CHINTRAD} == yes
854 %define         CHINTRAD                CHINTRAD
855 %package i18n-zh_TW
856 Summary:        OpenOffice.org - interface in Chinese language for Taiwan
857 Summary(pl):    OpenOffice.org - interfejs w jêzyku chiñskim dla Tajwanu
858 Group:          Applications/Office
859 Requires:       %{name} = %{epoch}:%{version}-%{release}
860
861 %description i18n-zh_TW
862 This package provides resources containing menus and dialogs in
863 Chinese language for Taiwan.
864
865 %description i18n-zh_TW -l pl
866 Ten pakiet dostarcza zasoby zawieraj±ce menu i okna dialogowe w jêzyku
867 chiñskim dla Tajwanu.
868
869 #%files i18n-zh_TW -f i18n-zh_TW
870 %endif
871
872 %prep
873 %setup -q -n ooo-build-%{ooobver}
874 %patch0 -p1
875 %patch1 -p1
876 %patch2 -p1
877 %patch3 -p1
878 %patch4 -p1
879 %patch5 -p1
880 %patch6 -p1
881 %patch7 -p1
882
883 install -d src
884 ln -s %{SOURCE1} src/
885 ln -s %{SOURCE2} src/
886 ln -s %{SOURCE3} src/
887
888 ln -s %{SOURCE20} src/openabout_pld.bmp
889 ln -s %{SOURCE21} src/openintro_pld.bmp
890
891 %build
892 # Make sure we have /proc mounted - otherwise idlc will fail later.
893 [ -r /proc/version ] || exit 1
894
895 CC=%{__cc}
896 CXX=%{__cxx}
897 GCJ=gcj
898 JAVA_HOME="/usr/lib/java"
899 ENVCFLAGS="%{rpmcflags}"
900 ENVCFLAGSCXX="%{rpmcflags}"
901 DESTDIR=$RPM_BUILD_ROOT
902 IGNORE_MANIFEST_CHANGES=1
903 export JAVA_HOME CC CXX GCJ ENVCFLAGS ENVCFLAGSCXX DESTDIR IGNORE_MANIFEST_CHANGES
904
905 if [ -z "$RPM_BUILD_NCPUS" ] ; then
906         if [ -x /usr/bin/getconf ] ; then
907                 RPM_BUILD_NCPUS=$(/usr/bin/getconf _NPROCESSORS_ONLN)
908                 if [ $RPM_BUILD_NCPUS -eq 0 ] ; then 
909                         RPM_BUILD_NCPUS=1
910                 fi
911         else 
912                 RPM_BUILD_NCPUS=1
913         fi
914 fi
915
916 # parallel build is broken
917 RPM_BUILD_NCPUS=1
918
919 CONFOPTS=" \
920         --with-system-gcc \
921         --with-system-zlib \
922         --with-system-sane-headers \
923         --with-system-x11-extensions-headers \
924         --with-system-unixodbc-headers \
925         --with-system-db \
926         --with-system-curl \
927         --with-system-freetype \
928         --with-vendor="PLD" \
929         --with-distro="Ximian" \
930 %if %{with kde}
931         --with-icons="KDE" \
932         --with-widgetset=kde \
933 %else
934         --with-icons="Ximian" \
935         --with-widgetset=gtk \
936 %endif
937         --with-installed-ooo-dirname=%{name} \
938 %if %{with java}
939         --enable-java \
940         --with-jdk-home=$JAVA_HOME \
941 %else
942         --disable-java \
943 %endif
944         --with-python=%{_bindir}/python \
945         --with-stlport4-home=/usr \
946         --with-lang=ALL \
947         --with-x \
948         --without-fonts \
949         --enable-crashdump \
950         --enable-fontconfig \
951         --enable-libsn \
952         --enable-libart \
953         --disable-rpath \
954         --disable-symbols \
955         --with-num-cpus=$RPM_BUILD_NCPUS
956 "
957
958 # for cvs snaps
959 [ -x ./autogen.sh ] && ./autogen.sh $CONFOPTS
960
961 # build-ooo script will pickup these
962 CONFIGURE_OPTIONS="$CONFOPTS"; export CONFIGURE_OPTIONS
963
964 # main build
965 %configure $CONFOPTS
966
967 %{__make}
968
969 %install
970 rm -rf $RPM_BUILD_ROOT
971
972 DESTDIR=$RPM_BUILD_ROOT; export DESTDIR
973
974 %{__make} install \
975         DESTDIR=$RPM_BUILD_ROOT
976
977 for file in \
978         %{SOURCE100} %{SOURCE101} %{SOURCE102} %{SOURCE103} %{SOURCE104} %{SOURCE105} \
979         %{SOURCE106} %{SOURCE107} %{SOURCE108} %{SOURCE109} %{SOURCE110} %{SOURCE111} \
980         %{SOURCE112} %{SOURCE113} %{SOURCE114} %{SOURCE115} %{SOURCE116} %{SOURCE117} \
981         %{SOURCE118} %{SOURCE119} %{SOURCE120} %{SOURCE121} %{SOURCE122} %{SOURCE123} \
982         %{SOURCE124} %{SOURCE125} %{SOURCE126} %{SOURCE127} %{SOURCE128} %{SOURCE129} \
983         %{SOURCE130} %{SOURCE131} %{SOURCE132} %{SOURCE133} %{SOURCE134} %{SOURCE135} \
984         %{SOURCE136} %{SOURCE137} %{SOURCE138} %{SOURCE139} %{SOURCE110} %{SOURCE141} \
985         %{SOURCE142} %{SOURCE143} %{SOURCE144} %{SOURCE145} %{SOURCE146} %{SOURCE147} \
986         %{SOURCE148} %{SOURCE149} %{SOURCE150} %{SOURCE151} %{SOURCE152} %{SOURCE153} \
987         %{SOURCE154} %{SOURCE155} \
988         %{SOURCE200} %{SOURCE201} %{SOURCE202} %{SOURCE203} %{SOURCE204} %{SOURCE205} \
989         %{SOURCE206} %{SOURCE207} %{SOURCE208} %{SOURCE209} %{SOURCE210} %{SOURCE211} \
990         %{SOURCE212} %{SOURCE213} %{SOURCE214} %{SOURCE215} %{SOURCE216} %{SOURCE217} \
991         %{SOURCE218} %{SOURCE219} %{SOURCE220} %{SOURCE221} %{SOURCE222} %{SOURCE223} \
992         %{SOURCE224} %{SOURCE225} %{SOURCE226} %{SOURCE227} %{SOURCE228} %{SOURCE229} \
993         %{SOURCE230} \
994         %{SOURCE300} %{SOURCE301} %{SOURCE302} %{SOURCE303} %{SOURCE304}; do
995                 unzip -o -d $RPM_BUILD_ROOT%{_libdir}/%{name}/share/dict/ooo $file
996 done
997 cat %{SOURCE499} >> $RPM_BUILD_ROOT%{_libdir}/%{name}/share/dict/ooo/dictionary.lst
998
999 install -d helptmp && cd helptmp || exit 1
1000 for file in \
1001         %{SOURCE400} %{SOURCE401} %{SOURCE402} %{SOURCE403} %{SOURCE404} %{SOURCE405} \
1002         %{SOURCE406} %{SOURCE407} %{SOURCE408} %{SOURCE409} %{SOURCE410}; do
1003                 rm -rf *.*
1004                 nr=$(echo "$file" | sed -e 's#.*_\(.*\)_.*#\1#g')
1005                 lang=$(../bin/openoffice-xlate-lang -i "$nr")
1006                 if [ -z "$lang" ]; then
1007                         echo "Languge not found for [$file]"
1008                         exit 1
1009                 fi
1010                 tar zxf "${file}"
1011                 for ifile in s*.zip; do
1012                         install -d $RPM_BUILD_ROOT%{_libdir}/%{name}/help/${lang}
1013                         unzip -q -d $RPM_BUILD_ROOT%{_libdir}/%{name}/help/${lang} -o "$ifile"
1014                 done
1015 done
1016 cd ..
1017
1018 install -d $RPM_BUILD_ROOT%{_desktopdir}
1019 bzip2 -dc %{SOURCE10} | tar xf - -C $RPM_BUILD_ROOT%{_desktopdir}
1020
1021 # Add in the regcomp tool since some people need it for 3rd party add-ons
1022 cp -f build/OOO_%{dfullver}/solver/%{subver}/unxlng*.pro/bin/regcomp $RPM_BUILD_ROOT%{_libdir}/%{name}/program
1023
1024 # OOo should not install the Vera fonts, they are Required: now
1025 rm -rf $RPM_BUILD_ROOT%{_libdir}/%{name}/share/fonts/truetype/*
1026
1027 # Copy fixed OpenSymbol to correct location
1028 install -d $RPM_BUILD_ROOT%{_datadir}/fonts/openoffice
1029 cp fonts/opens___.ttf $RPM_BUILD_ROOT%{_datadir}/fonts/openoffice
1030 # %%ghost the fonts.cache-1 file
1031 touch $RPM_BUILD_ROOT%{_datadir}/fonts/openoffice/fonts.cache-1
1032
1033 # We don't need spadmin or the setup application
1034 rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/setup
1035 rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/spadmin
1036 rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/program/spadmin
1037 rm -f $RPM_BUILD_ROOT%{_datadir}/applications/openoffice-setup.desktop
1038 rm -f $RPM_BUILD_ROOT%{_datadir}/applications/openoffice-printeradmin.desktop
1039
1040 # Remove some python cruft
1041 rm -rf $RPM_BUILD_ROOT%{_libdir}/%{name}/program/python-core-*/lib/test
1042
1043 rm -rf $RPM_BUILD_ROOT%{_datadir}/applnk
1044 rm -rf $RPM_BUILD_ROOT%{_datadir}/gnome
1045
1046 rm -rf $RPM_BUILD_ROOT%{_libdir}/%{name}/share/kde
1047 rm -rf $RPM_BUILD_ROOT%{_libdir}/%{name}/share/gnome
1048 rm -rf $RPM_BUILD_ROOT%{_libdir}/%{name}/share/cde
1049
1050 #rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/program/gnomeint
1051
1052 # Freetype creeps in somehow
1053 rm -f %{_libdir}/%{name}/program/filter/libfreetype.so*
1054
1055 rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/program/sopatchlevel.sh
1056 perl -pi -e 's/^[       ]*LD_LIBRARY_PATH/# LD_LIBRARY_PATH/;s/export LD_LIBRARY_PATH/# export LD_LIBRARY_PATH/' \
1057   $RPM_BUILD_ROOT%{_libdir}/%{name}/program/setup
1058
1059 # Remove setup log
1060 rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/program/setup.log
1061
1062 # Remove copied system libraries
1063 rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/program/libgcc_s.so* \
1064          $RPM_BUILD_ROOT%{_libdir}/%{name}/program/libstdc++*so*
1065
1066 # Find out locales
1067 rm -f *.lang
1068 # Take list from dictionaries
1069 for lang in $RPM_BUILD_ROOT%{_libdir}/%{name}/share/dict/ooo/*.aff; do
1070         eval `echo "$lang" | sed -e 's#.*/\(.*\)\.aff#\1#g' | awk -F_ ' { print "FLANG=\"" $1 "\"\nSLANG=\"" $2 "\"\nTLANG=\"" $3; "\""; } '`
1071         # we take only first code ie xx_YY -> we take xx
1072         nlang="$FLANG"
1073         # nlonglang=$(../bin/openoffice-xlate-lang -l "$nlang" 2> /dev/null)
1074         echo "%%defattr(644,root,root,755)" > ${nlang}.lang
1075         [ -f build/lang_${nlang}_list.txt ] && sed -e "s#$RPM_BUILD_ROOT#%%lang(${nlang}) #g" build/lang_${nlang}_list.txt >> ${nlang}.lang
1076         find $RPM_BUILD_ROOT -type d | sed -e "s#$RPM_BUILD_ROOT##g" -e "s#\(.*/${nlang}\)\$#%%lang(${nlang}) \1#g" | grep -E '^%%lang' >> ${nlang}.lang
1077         if [ -n "$nlonglang" ]; then
1078                 find $RPM_BUILD_ROOT -type d | sed -e "s#$RPM_BUILD_ROOT##g" -e "s#\(.*/${nlonglang}\)\$#%%lang(${nlang}) \1#g" | grep -E '^%%lang' >> ${nlang}.lang
1079         fi
1080 done
1081
1082
1083 %clean
1084 rm -rf $RPM_BUILD_ROOT
1085
1086 %files
1087 %defattr(644,root,root,755)
1088 #%%doc readlicense/source/license/unx/LICENSE
1089 %doc %{_libdir}/%{name}/LICENSE*
1090 %doc %{_libdir}/%{name}/*README*
1091
1092 %dir %{_sysconfdir}/openoffice
1093 #%config %{_sysconfdir}/openoffice/autoresponse.conf
1094
1095 %{_desktopdir}/*.desktop
1096 #%{_pixmapsdir}/*.png
1097 #%{_pixmapsdir}/document-icons/*.png
1098
1099 %{_libdir}/%{name}/program/*.rdb
1100 %{_libdir}/%{name}/program/*.bmp
1101 %{_libdir}/%{name}/program/user_registry.xsl
1102
1103 %{_libdir}/%{name}/program/sofficerc
1104 %{_libdir}/%{name}/program/unorc
1105 %{_libdir}/%{name}/program/bootstraprc
1106 %{_libdir}/%{name}/program/configmgrrc
1107 %{_libdir}/%{name}/program/instdb.ins
1108
1109 # dirs/trees
1110 #%{_libdir}/%{name}/program/classes
1111
1112 %dir %{_libdir}/%{name}/program/resource
1113 #%{_libdir}/%{name}/program/resource/bmp.res
1114 #%{_libdir}/%{name}/program/resource/crash_dump.res
1115
1116 # mozilla
1117 #%%{_libdir}/%{name}/program/defaults
1118 #%%{_libdir}/%{name}/program/component.reg
1119 #%%{_libdir}/%{name}/program/components/*.xpt
1120 #%%{_libdir}/%{name}/program/components/*.dat
1121
1122 %dir %{_libdir}/%{name}/help
1123 %{_libdir}/%{name}/help/en
1124 %{_libdir}/%{name}/help/main_transform.xsl
1125
1126 %dir %{_libdir}/%{name}/share
1127 %dir %{_libdir}/%{name}/share/autocorr
1128 %dir %{_libdir}/%{name}/share/autotext
1129 %{_libdir}/%{name}/share/basic
1130 %{_libdir}/%{name}/share/config
1131 %dir %{_libdir}/%{name}/share/dict
1132 %dir %{_libdir}/%{name}/share/dict/ooo
1133 %{_libdir}/%{name}/share/dtd
1134 %{_libdir}/%{name}/share/fonts
1135 %{_libdir}/%{name}/share/gallery
1136 %{_libdir}/%{name}/share/psprint
1137 %{_libdir}/%{name}/share/samples
1138 %dir %{_libdir}/%{name}/share/template
1139 %dir %{_libdir}/%{name}/share/wordbook
1140 %{_libdir}/%{name}/share/readme
1141 #%{_libdir}/%{name}/share/xslt
1142
1143 %dir %{_libdir}/%{name}/share/registry
1144 %dir %{_libdir}/%{name}/share/registry/res
1145 %{_libdir}/%{name}/share/registry/data
1146 %{_libdir}/%{name}/share/registry/schema
1147
1148 %{_libdir}/%{name}/share/autotext/english
1149 %{_libdir}/%{name}/share/template/english
1150 %ghost %{_libdir}/%{name}/share/dict/ooo/dictionary.lst
1151
1152 %dir %{_libdir}/%{name}/user
1153 %dir %{_libdir}/%{name}/user/autotext
1154 %{_libdir}/%{name}/user/basic
1155 %{_libdir}/%{name}/user/database
1156 %{_libdir}/%{name}/user/gallery
1157 %{_libdir}/%{name}/user/psprint
1158
1159 %{_libdir}/%{name}/user/autotext/english
1160
1161 # Programs
1162 %attr(755,root,root) %{_bindir}/oo*
1163
1164 #%attr(755,root,root) %{_libdir}/%{name}/setup
1165 #%attr(755,root,root) %{_libdir}/%{name}/spadmin
1166
1167 %attr(755,root,root) %{_libdir}/%{name}/program/*.bin
1168 #%attr(755,root,root) %{_libdir}/%{name}/program/crash_report
1169 #%attr(755,root,root) %{_libdir}/%{name}/program/fromtemplate
1170 #%attr(755,root,root) %{_libdir}/%{name}/program/gnomeint
1171 %if %{with java}
1172 %attr(755,root,root) %{_libdir}/%{name}/program/javaldx
1173 %attr(755,root,root) %{_libdir}/%{name}/program/jvmsetup
1174 %endif
1175 %attr(755,root,root) %{_libdir}/%{name}/program/nswrapper
1176 %attr(755,root,root) %{_libdir}/%{name}/program/pagein*
1177 %attr(755,root,root) %{_libdir}/%{name}/program/setup
1178 %attr(755,root,root) %{_libdir}/%{name}/program/soffice
1179 #%attr(755,root,root) %{_libdir}/%{name}/program/sopatchlevel.sh
1180 #%attr(755,root,root) %{_libdir}/%{name}/program/spadmin
1181 %attr(755,root,root) %{_libdir}/%{name}/program/getstyle-gnome
1182 %attr(755,root,root) %{_libdir}/%{name}/program/msgbox-gnome
1183
1184 # %files devel ?????????
1185 #%attr(755,root,root) %{_bindir}/autodoc
1186 #%attr(755,root,root) %{_bindir}/cppumaker
1187 #%attr(755,root,root) %{_bindir}/idlc
1188 #%attr(755,root,root) %{_bindir}/idlcpp
1189 #%attr(755,root,root) %{_bindir}/javamaker
1190 #%attr(755,root,root) %{_bindir}/rdbmaker
1191 #%attr(755,root,root) %{_bindir}/regcomp
1192 #%attr(755,root,root) %{_bindir}/regmerge
1193 #%attr(755,root,root) %{_bindir}/regview
1194 #%attr(755,root,root) %{_bindir}/uno
1195 #%attr(755,root,root) %{_bindir}/xml2cmp
1196
1197 %files libs
1198 %defattr(644,root,root,755)
1199 %dir %{_libdir}/%{name}
1200 %dir %{_libdir}/%{name}/program
1201 #%%dir %{_libdir}/%{name}/program/components -- mozilla
1202 %dir %{_libdir}/%{name}/program/filter
1203
1204 %attr(755,root,root) %{_libdir}/%{name}/program/*.so
1205 %attr(755,root,root) %{_libdir}/%{name}/program/*.so.*
1206 #%%attr(755,root,root) %{_libdir}/%{name}/program/components/*.so -- mozilla
1207 %attr(755,root,root) %{_libdir}/%{name}/program/filter/*.so
1208
1209 %files mimelinks
1210 %defattr(644,root,root,755)
1211 #%{_datadir}/mimelnk/application/*
This page took 0.120528 seconds and 3 git commands to generate.