]>
Commit | Line | Data |
---|---|---|
3fc009a8 | 1 | # |
0336986d | 2 | # TODO: unpackaged files |
3 | # | |
2993c773 | 4 | # Conditional build: |
7548bd64 | 5 | %bcond_with gda # build without gda |
3fc009a8 | 6 | %bcond_without gnome # build without gnome |
3fc009a8 | 7 | %bcond_without python # build without python support |
773d8485 | 8 | %bcond_with mono # build without mono scripting engine |
3fc009a8 | 9 | # |
07fc4f74 | 10 | %ifnarch %{ix86} %{x8664} alpha arm hppa ppc s390 sparc sparcv9 sparc64 |
1ab44806 JB |
11 | %undefine with_mono |
12 | %endif | |
d64a8ab5 | 13 | %include /usr/lib/rpm/macros.perl |
dda2cd30 | 14 | Summary: The GNOME spreadsheet |
f96dcb22 ER |
15 | Summary(es.UTF-8): La hoja de cálculo del GNOME |
16 | Summary(pl.UTF-8): Arkusz kalkulacyjny GNOME | |
17 | Summary(pt_BR.UTF-8): A planilha do GNOME | |
18 | Summary(ru.UTF-8): Электронные таблицы для GNOME | |
19 | Summary(uk.UTF-8): Електронні таблиці для GNOME | |
20 | Summary(zh_CN.UTF-8): Linux下的Excel -- GNOME电子表格 | |
dda2cd30 | 21 | Name: gnumeric |
bc2e1ab6 | 22 | Version: 1.10.17 |
a2e70254 | 23 | Release: 1 |
e4865eaa | 24 | Epoch: 1 |
912eae70 | 25 | License: GPL v2+ |
27b9e6a7 | 26 | Group: X11/Applications |
abd85199 | 27 | Source0: http://ftp.gnome.org/pub/GNOME/sources/gnumeric/1.10/%{name}-%{version}.tar.bz2 |
bc2e1ab6 | 28 | # Source0-md5: aacc0899222c98fa9cdd85c49a6840be |
5542a590 | 29 | URL: http://projects.gnome.org/gnumeric/ |
ffdeafe6 | 30 | BuildRequires: GConf2-devel >= 2.14.0 |
171e05ad | 31 | BuildRequires: ORBit2-devel >= 1:2.14.0 |
3fc009a8 | 32 | BuildRequires: autoconf >= 2.52 |
9a6c860b | 33 | BuildRequires: automake |
d67015db | 34 | BuildRequires: bison |
d67015db | 35 | BuildRequires: flex |
e4865eaa | 36 | BuildRequires: gettext-devel |
bb9c8c1d | 37 | BuildRequires: glib2-devel >= 1:2.12.0 |
171e05ad | 38 | BuildRequires: gnome-common >= 2.12.0 |
e5139634 | 39 | BuildRequires: gtk+2-devel >= 2:2.12.0 |
ffdeafe6 | 40 | BuildRequires: intltool >= 0.35 |
25812cac | 41 | BuildRequires: libart_lgpl-devel >= 2.3.12 |
ffdeafe6 | 42 | %if %{with gnome} |
171e05ad | 43 | BuildRequires: libbonoboui-devel >= 2.14.0 |
bc2e1ab6 | 44 | BuildRequires: libgoffice-devel >= 0.8.17 |
a2e70254 | 45 | BuildRequires: libgsf-gnome-devel >= 1.14.18 |
2a31e225 | 46 | %endif |
b85a3f2e | 47 | %if %{with gda} |
7548bd64 | 48 | BuildRequires: libgda4-devel >= 4.1.1 |
49 | BuildRequires: libgnomedb4-devel >= 3.99.6 | |
2a31e225 | 50 | %endif |
bb9c8c1d | 51 | BuildRequires: libglade2-devel >= 1:2.6.0 |
98e55b80 | 52 | %{?with_gnome:BuildRequires: libgnomeui-devel >= 2.15.90} |
a2e70254 | 53 | BuildRequires: libgsf-devel >= 1.14.18 |
f42e3000 | 54 | BuildRequires: libtool |
ffdeafe6 | 55 | BuildRequires: libxml2-devel >= 1:2.6.26 |
773d8485 | 56 | # disabled by default - still experimental |
3fc009a8 | 57 | %{?with_mono:BuildRequires: mono-devel >= 1.0.0} |
98e55b80 | 58 | BuildRequires: pango-devel >= 1:1.13.4 |
045144c2 | 59 | BuildRequires: perl-base |
7548bd64 | 60 | BuildRequires: perl-devel |
2085f8d8 | 61 | BuildRequires: pkgconfig |
62 | BuildRequires: popt-devel | |
3fc009a8 | 63 | BuildRequires: psiconv-devel >= 0.9.3 |
98f8bc30 | 64 | BuildRequires: pxlib-devel |
7548bd64 | 65 | BuildRequires: rpm-perlprov |
b85a3f2e | 66 | %if %{with python} |
cf0433ba | 67 | BuildRequires: python-devel >= 2.2 |
bb9c8c1d | 68 | BuildRequires: python-pygtk-devel >= 2:2.9.3 |
cf0433ba | 69 | %endif |
07fc4f74 | 70 | BuildRequires: rpmbuild(macros) >= 1.213 |
2085f8d8 | 71 | BuildRequires: scrollkeeper |
b7c112fc | 72 | Requires(post,postun): desktop-file-utils |
73 | Requires(post,postun): scrollkeeper | |
7548bd64 | 74 | Requires(post,preun): GConf2 >= 2.14.0 |
ffdeafe6 | 75 | %{?with_gnome:Requires: libgnomeui >= 2.15.1} |
7548bd64 | 76 | Requires: libspreadsheet = %{epoch}:%{version}-%{release} |
6a82de0c PG |
77 | %if %{without gda} |
78 | Obsoletes: gnumeric-plugin-gdaif | |
79 | Obsoletes: gnumeric-plugin-gnomedb | |
80 | %endif | |
dab5e7ff | 81 | # sr@Latn vs. sr@latin |
82 | Conflicts: glibc-misc < 6:2.7 | |
99820d32 | 83 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
03a201fb | 84 | |
85 | %description | |
27b9e6a7 | 86 | GNOME based spreadsheet. Gnumeric is a spreadsheet program for GNOME. |
87 | This program is intended to be a replacement for a commercial | |
88 | spreadsheet, so quite a bit of work has gone into the program. If you | |
89 | are familiar with Excel, you should be ready to use Gnumeric. We have | |
90 | tried to clone all of the good features and stay as compatible as | |
91 | possible with Excel in terms of usability. | |
03a201fb | 92 | |
2d80c63a JR |
93 | %description -l es.UTF-8 |
94 | Gnumeric es un programa de hoja de cálculo para GNOME. Este programa | |
95 | procura ser reemplazar los programas comerciales, así que ha gozado | |
96 | bastante esfuerzo. Si conoce Excel, debería estar preparado para usar | |
b85a3f2e | 97 | Gnumeric. Intentamos clonar todas las buenas cualidades y seguir lo |
2d80c63a | 98 | más compatible que fuera posible, en cuanto a la usabilidad. |
ca3cfba7 | 99 | |
2d80c63a JR |
100 | %description -l pl.UTF-8 |
101 | Bazujący na GNOME arkusz kalkulacyjny. Jeśli znasz arkusz Excel to | |
102 | jesteś gotów na używanie Gnumerica. Staraliśmy się sklonować wszystkie | |
103 | dobre cechy i być kompatybilnym z Excelem w sensie użyteczności. | |
cde30a00 | 104 | |
2d80c63a | 105 | %description -l pt_BR.UTF-8 |
ca3cfba7 | 106 | Este pacote instala a planilha do GNOME, que foi feita para substituir |
2d80c63a JR |
107 | qualquer planilha comercial, pois uma quantidade razoável de trabalho |
108 | foi (e está sendo) colocada para torná-la a melhor possível. | |
ca3cfba7 | 109 | |
2d80c63a JR |
110 | %description -l ru.UTF-8 |
111 | Gnumeric - это программа электронных таблиц для GNOME. | |
95c351bf | 112 | |
2d80c63a JR |
113 | %description -l uk.UTF-8 |
114 | Gnumeric - це програма електронних таблиць для GNOME. | |
95c351bf | 115 | |
ffdeafe6 | 116 | %package -n libspreadsheet |
117 | Summary: libspreadsheet library | |
f96dcb22 | 118 | Summary(pl.UTF-8): Biblioteka libspreadsheet |
ffdeafe6 | 119 | Group: Libraries |
bc2e1ab6 | 120 | %{?with_gnome:Requires: libgoffice >= 0.8.17} |
ffdeafe6 | 121 | |
122 | %description -n libspreadsheet | |
123 | libspreadsheet library. | |
124 | ||
2d80c63a | 125 | %description -n libspreadsheet -l pl.UTF-8 |
ffdeafe6 | 126 | Biblioteka libspreadsheet. |
127 | ||
128 | %package -n libspreadsheet-devel | |
129 | Summary: Header files for libspreadsheet library | |
f96dcb22 | 130 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libspreadsheet |
ffdeafe6 | 131 | Group: Development/Libraries |
132 | Requires: libspreadsheet = %{epoch}:%{version}-%{release} | |
133 | ||
134 | %description -n libspreadsheet-devel | |
7548bd64 | 135 | This is the package containing the header files for libspreadsheet |
136 | library. | |
ffdeafe6 | 137 | |
2d80c63a JR |
138 | %description -n libspreadsheet-devel -l pl.UTF-8 |
139 | Ten pakiet zawiera pliki nagłówkowe biblioteki libspreadsheet. | |
ffdeafe6 | 140 | |
773d8485 | 141 | # plugins - import/export |
142 | # applix | |
143 | %package plugin-applix | |
144 | Summary: Applix plugin | |
f96dcb22 | 145 | Summary(pl.UTF-8): Wtyczka Applix |
7548bd64 | 146 | Group: X11/Applications |
773d8485 | 147 | Requires: %{name} = %{epoch}:%{version}-%{release} |
148 | ||
149 | %description plugin-applix | |
150 | Imports Applix 4.[234] spreadsheets. | |
151 | ||
2d80c63a | 152 | %description plugin-applix -l pl.UTF-8 |
773d8485 | 153 | Importuje arkusze Applix w wersjach 4.[234]. |
154 | ||
7548bd64 | 155 | # data interchange format (DIF) |
773d8485 | 156 | %package plugin-dif |
157 | Summary: Data Interchange Format plugin | |
f96dcb22 | 158 | Summary(pl.UTF-8): Wtyczka Data Interchange Format |
7548bd64 | 159 | Group: X11/Applications |
773d8485 | 160 | Requires: %{name} = %{epoch}:%{version}-%{release} |
161 | ||
162 | %description plugin-dif | |
163 | Reads and writes information stored in the Data Interchange Format | |
164 | (*.dif). | |
165 | ||
2d80c63a | 166 | %description plugin-dif -l pl.UTF-8 |
7548bd64 | 167 | Odczytuje i zapisuje informacje w uniwersalnym formacie wymiany danych |
168 | (*.dif). | |
773d8485 | 169 | |
170 | # ms excel | |
171 | %package plugin-excel | |
172 | Summary: MS Excel (tm) plugin | |
f96dcb22 | 173 | Summary(pl.UTF-8): Wtyczka MS Excel (tm) |
7548bd64 | 174 | Group: X11/Applications |
773d8485 | 175 | Requires: %{name} = %{epoch}:%{version}-%{release} |
176 | ||
177 | %description plugin-excel | |
178 | Imports/exports MS Excel (tm) files. | |
179 | ||
2d80c63a | 180 | %description plugin-excel -l pl.UTF-8 |
773d8485 | 181 | Importuje/eksporuje pliki MS Excel (tm). |
182 | ||
5b3b7958 | 183 | # glpk |
184 | %package plugin-glpk | |
185 | Summary: GLPK plugin | |
186 | Summary(pl.UTF-8): Wtyczka GLPK | |
7548bd64 | 187 | Group: X11/Applications |
5b3b7958 | 188 | Requires: %{name} = %{epoch}:%{version}-%{release} |
189 | ||
190 | %description plugin-glpk | |
191 | Imports/exports GLPK files. | |
192 | ||
193 | %description plugin-glpk -l pl.UTF-8 | |
194 | Importuje/eksporuje pliki GLPK. | |
195 | ||
773d8485 | 196 | # html |
197 | %package plugin-html | |
198 | Summary: HTML plugin | |
f96dcb22 | 199 | Summary(pl.UTF-8): Wtyczka HTML |
7548bd64 | 200 | Group: X11/Applications |
773d8485 | 201 | Requires: %{name} = %{epoch}:%{version}-%{release} |
202 | ||
203 | %description plugin-html | |
204 | Imports/exports of HTML, TeX, DVI and roff formats. | |
205 | ||
2d80c63a | 206 | %description plugin-html -l pl.UTF-8 |
773d8485 | 207 | Importuje/eksportuje formaty HTML, TeX, DVI i roff. |
208 | ||
209 | # lotus 123 | |
210 | %package plugin-lotus123 | |
211 | Summary: Lotus 123 plugin | |
f96dcb22 | 212 | Summary(pl.UTF-8): Wtyczka Lotus 123 |
7548bd64 | 213 | Group: X11/Applications |
773d8485 | 214 | Requires: %{name} = %{epoch}:%{version}-%{release} |
215 | ||
216 | %description plugin-lotus123 | |
217 | Imports Lotus 123 files. | |
218 | ||
2d80c63a | 219 | %description plugin-lotus123 -l pl.UTF-8 |
773d8485 | 220 | Importuje pliki Lotusa 123. |
221 | ||
5b3b7958 | 222 | # lpsolve |
223 | %package plugin-lpsolve | |
224 | Summary: lpsolve plugin | |
225 | Summary(pl.UTF-8): Wtyczka lpsolve | |
7548bd64 | 226 | Group: X11/Applications |
5b3b7958 | 227 | Requires: %{name} = %{epoch}:%{version}-%{release} |
228 | ||
229 | %description plugin-lpsolve | |
230 | Imports lpsolve files. | |
231 | ||
232 | %description plugin-lpsolve -l pl.UTF-8 | |
233 | Importuje pliki lpsolve. | |
234 | ||
af72cb9c | 235 | # nlsolve |
236 | %package plugin-nlsolve | |
237 | Summary: nlsolve plugin | |
238 | Summary(pl.UTF-8): Wtyczka nlsolve | |
239 | Group: X11/Applications | |
240 | Requires: %{name} = %{epoch}:%{version}-%{release} | |
241 | ||
242 | %description plugin-nlsolve | |
243 | Imports nlsolve files. | |
244 | ||
245 | %description plugin-nlsolve -l pl.UTF-8 | |
246 | Importuje pliki nlsolve. | |
247 | ||
773d8485 | 248 | # gnu oleo |
249 | %package plugin-gnuoleo | |
250 | Summary: GNU Oleo plugin | |
f96dcb22 | 251 | Summary(pl.UTF-8): Wtyczka GNU Oleo |
7548bd64 | 252 | Group: X11/Applications |
773d8485 | 253 | Requires: %{name} = %{epoch}:%{version}-%{release} |
254 | ||
255 | %description plugin-gnuoleo | |
256 | Imports GNU Oleo documents. | |
257 | ||
2d80c63a | 258 | %description plugin-gnuoleo -l pl.UTF-8 |
773d8485 | 259 | Importuje dokumenty GNU Oleo. |
260 | ||
261 | # openoffice | |
262 | %package plugin-openoffice | |
263 | Summary: OpenOffice.org plugin | |
f96dcb22 | 264 | Summary(pl.UTF-8): Wtyczka OpenOffice.org |
7548bd64 | 265 | Group: X11/Applications |
773d8485 | 266 | Requires: %{name} = %{epoch}:%{version}-%{release} |
267 | ||
268 | %description plugin-openoffice | |
269 | Imports/exports OpenOffice.org/StarOffice spreadsheets. | |
270 | ||
2d80c63a | 271 | %description plugin-openoffice -l pl.UTF-8 |
773d8485 | 272 | Importuje/eksportuje arkusze OpenOffice.org/StarOffice. |
273 | ||
98f8bc30 | 274 | # paradox |
275 | %package plugin-paradox | |
276 | Summary: Paradox plugin | |
f96dcb22 | 277 | Summary(pl.UTF-8): Wtyczka Paradox |
7548bd64 | 278 | Group: X11/Applications |
98f8bc30 | 279 | Requires: %{name} = %{epoch}:%{version}-%{release} |
280 | ||
281 | %description plugin-paradox | |
282 | Imports Paradox files. | |
283 | ||
2d80c63a | 284 | %description plugin-paradox -l pl.UTF-8 |
98f8bc30 | 285 | Importuje pliki w formacie Paradoxa. |
286 | ||
773d8485 | 287 | # plan perfect |
288 | %package plugin-planperfect | |
289 | Summary: Plan Perfect plugin | |
f96dcb22 | 290 | Summary(pl.UTF-8): Wtyczka Plan Perfect |
7548bd64 | 291 | Group: X11/Applications |
773d8485 | 292 | Requires: %{name} = %{epoch}:%{version}-%{release} |
293 | ||
294 | %description plugin-planperfect | |
295 | Imports Plan Perfect formatted documents. | |
296 | ||
2d80c63a | 297 | %description plugin-planperfect -l pl.UTF-8 |
773d8485 | 298 | Importuje dokumenty w formacie Plan Perfect. |
299 | ||
300 | # psiconv | |
301 | %package plugin-psiconv | |
302 | Summary: Psiconv plugin | |
f96dcb22 | 303 | Summary(pl.UTF-8): Wtyczka Psiconv |
7548bd64 | 304 | Group: X11/Applications |
773d8485 | 305 | Requires: %{name} = %{epoch}:%{version}-%{release} |
306 | ||
307 | %description plugin-psiconv | |
308 | Imports Psion 5 series Sheet files. | |
309 | ||
2d80c63a | 310 | %description plugin-psiconv -l pl.UTF-8 |
773d8485 | 311 | Importuje pliki arkuszy Psion serii 5. |
312 | ||
313 | # qpro | |
314 | %package plugin-qpro | |
315 | Summary: Quattro Pro(tm) plugin | |
f96dcb22 | 316 | Summary(pl.UTF-8): Wtyczka Quattro Pro(tm) |
7548bd64 | 317 | Group: X11/Applications |
773d8485 | 318 | Requires: %{name} = %{epoch}:%{version}-%{release} |
319 | ||
320 | %description plugin-qpro | |
321 | Imports Quattro Pro (tm) files. | |
322 | ||
2d80c63a | 323 | %description plugin-qpro -l pl.UTF-8 |
773d8485 | 324 | Importuje pliki Quattro Pro (tm). |
325 | ||
326 | # sc/xspread | |
327 | %package plugin-sc | |
328 | Summary: SC/XSpread plugin | |
f96dcb22 | 329 | Summary(pl.UTF-8): Wtyczka SC/XSpread |
7548bd64 | 330 | Group: X11/Applications |
773d8485 | 331 | Requires: %{name} = %{epoch}:%{version}-%{release} |
332 | ||
333 | %description plugin-sc | |
334 | Imports SC/XSpread files. | |
335 | ||
2d80c63a | 336 | %description plugin-sc -l pl.UTF-8 |
773d8485 | 337 | Importuje pliki SC/XSpread. |
338 | ||
339 | # sylk | |
340 | %package plugin-sylk | |
341 | Summary: MultiPlan (SYLK) plugin | |
f96dcb22 | 342 | Summary(pl.UTF-8): Wtyczka MultiPlan (SYLK) |
7548bd64 | 343 | Group: X11/Applications |
773d8485 | 344 | Requires: %{name} = %{epoch}:%{version}-%{release} |
345 | ||
346 | %description plugin-sylk | |
347 | Imports MultiPlan (SYLK) files. | |
348 | ||
2d80c63a | 349 | %description plugin-sylk -l pl.UTF-8 |
773d8485 | 350 | Importuje pliki MultiPlan (SYLK). |
351 | ||
352 | # xbase | |
353 | %package plugin-xbase | |
354 | Summary: XBase plugin | |
f96dcb22 | 355 | Summary(pl.UTF-8): Wtyczka Xbase |
7548bd64 | 356 | Group: X11/Applications |
773d8485 | 357 | Requires: %{name} = %{epoch}:%{version}-%{release} |
358 | ||
359 | %description plugin-xbase | |
360 | Imports Xbase files. | |
361 | ||
2d80c63a | 362 | %description plugin-xbase -l pl.UTF-8 |
773d8485 | 363 | Importuje pliki XBase. |
364 | ||
365 | # other plugins | |
366 | # gda | |
367 | %package plugin-gdaif | |
368 | Summary: Database plugin | |
f96dcb22 | 369 | Summary(pl.UTF-8): Wtyczka baz danych |
7548bd64 | 370 | Group: X11/Applications |
773d8485 | 371 | Requires: %{name} = %{epoch}:%{version}-%{release} |
372 | ||
373 | %description plugin-gdaif | |
374 | Database functions for retrieval of data from a database. | |
375 | ||
2d80c63a JR |
376 | %description plugin-gdaif -l pl.UTF-8 |
377 | Funkcje bazodanowe, pozwalające na pobieranie danych z baz danych. | |
773d8485 | 378 | |
379 | # gnome db | |
380 | %package plugin-gnomedb | |
381 | Summary: GNOME DB plugin | |
f96dcb22 | 382 | Summary(pl.UTF-8): Wtyczka GNOME DB |
7548bd64 | 383 | Group: X11/Applications |
773d8485 | 384 | Requires: %{name} = %{epoch}:%{version}-%{release} |
385 | Requires: gnumeric-plugin-gdaif | |
386 | ||
387 | %description plugin-gnomedb | |
388 | Gnumeric frontend for libgnomedb. | |
389 | ||
2d80c63a JR |
390 | %description plugin-gnomedb -l pl.UTF-8 |
391 | Nakładka Gnumerica na libgnomedb. | |
773d8485 | 392 | |
393 | # samples | |
394 | %package plugin-sample | |
395 | Summary: Sample plugins | |
f96dcb22 | 396 | Summary(pl.UTF-8): Przykładowe wtyczki |
7548bd64 | 397 | Group: X11/Applications |
773d8485 | 398 | Requires: %{name} = %{epoch}:%{version}-%{release} |
399 | ||
400 | %description plugin-sample | |
401 | Sample database and UI plugins. | |
402 | ||
2d80c63a JR |
403 | %description plugin-sample -l pl.UTF-8 |
404 | Przykładowe wtyczki bazy danych oraz interfejsu użytkownika. | |
773d8485 | 405 | |
406 | # perl/python stuff | |
407 | # perl-func/perl loader | |
408 | %package plugin-perl | |
409 | Summary: Perl plugin | |
f96dcb22 | 410 | Summary(pl.UTF-8): Wtyczk Perla |
7548bd64 | 411 | Group: X11/Applications |
773d8485 | 412 | Requires: %{name} = %{epoch}:%{version}-%{release} |
413 | ||
414 | %description plugin-perl | |
415 | Sample Perl plugin providing some (useless) functions. | |
416 | ||
2d80c63a JR |
417 | %description plugin-perl -l pl.UTF-8 |
418 | Przykładowa wtyczka Perla dostarczająca różnych (bezużytecznych) | |
773d8485 | 419 | funkcji. |
420 | ||
421 | # perl-func/perl loader | |
422 | %package plugin-python | |
423 | Summary: Python plugin | |
f96dcb22 | 424 | Summary(pl.UTF-8): Wtyczk Pythona |
7548bd64 | 425 | Group: X11/Applications |
773d8485 | 426 | Requires: %{name} = %{epoch}:%{version}-%{release} |
427 | Requires: python-modules | |
823c33a6 | 428 | Requires: python-pygtk-gtk |
773d8485 | 429 | |
430 | %description plugin-python | |
431 | Sample Python plugin providing some (useless) functions. | |
432 | ||
2d80c63a JR |
433 | %description plugin-python -l pl.UTF-8 |
434 | Przykładowa wtyczka Pythona, dostarczająca różnych (bezużytecznych) | |
773d8485 | 435 | funkcji. |
436 | ||
03a201fb | 437 | %prep |
3e614866 | 438 | %setup -q |
03a201fb | 439 | |
440 | %build | |
773d8485 | 441 | %{__gnome_doc_common} |
b0c91d4e | 442 | %{__glib_gettextize} |
443 | %{__intltoolize} | |
f42e3000 | 444 | %{__libtoolize} |
ef442457 | 445 | %{__aclocal} |
004c5b15 | 446 | %{__autoheader} |
447 | %{__autoconf} | |
448 | %{__automake} | |
3ae91ee9 | 449 | %configure \ |
450 | --disable-static \ | |
9d0d5aef | 451 | --disable-schemas-install \ |
65f0d7de | 452 | --disable-silent-rules \ |
3fc009a8 | 453 | --with-psiconv \ |
1ab44806 JB |
454 | --with%{!?with_gnome:out}-gnome \ |
455 | --with%{!?with_python:out}-python \ | |
456 | --with%{!?with_gda:out}-gda \ | |
457 | --with%{!?with_mono:out}-mono \ | |
3fc009a8 | 458 | --without-gb |
98fd4ddf | 459 | |
6173637b | 460 | %{__make} |
03a201fb | 461 | |
462 | %install | |
463 | rm -rf $RPM_BUILD_ROOT | |
03a201fb | 464 | |
e4865eaa | 465 | %{__make} install \ |
39bc417d | 466 | DESTDIR=$RPM_BUILD_ROOT \ |
7548bd64 | 467 | docdir=%{_datadir}/gnome/help/gnumeric/C \ |
b85a3f2e | 468 | GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1 |
03a201fb | 469 | |
af72cb9c | 470 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/gnumeric/%{version}/plugins/*/*.la |
471 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la | |
3fc009a8 | 472 | |
dab5e7ff | 473 | [ -d $RPM_BUILD_ROOT%{_datadir}/locale/sr@latin ] || \ |
474 | mv -f $RPM_BUILD_ROOT%{_datadir}/locale/sr@{Latn,latin} | |
5b3b7958 | 475 | |
773d8485 | 476 | %find_lang %{name} --with-gnome --all-name |
957d478d | 477 | |
03a201fb | 478 | %clean |
479 | rm -rf $RPM_BUILD_ROOT | |
480 | ||
18b176fc | 481 | %post |
773d8485 | 482 | %if %{with gnome} |
b0c91d4e | 483 | %gconf_schema_install gnumeric-dialogs.schemas |
484 | %gconf_schema_install gnumeric-general.schemas | |
485 | %gconf_schema_install gnumeric-plugins.schemas | |
b0c91d4e | 486 | %update_desktop_database_post |
773d8485 | 487 | %endif |
488 | %scrollkeeper_update_post | |
b0c91d4e | 489 | |
773d8485 | 490 | %if %{with gnome} |
b0c91d4e | 491 | %preun |
492 | %gconf_schema_uninstall gnumeric-dialogs.schemas | |
493 | %gconf_schema_uninstall gnumeric-general.schemas | |
494 | %gconf_schema_uninstall gnumeric-plugins.schemas | |
773d8485 | 495 | %endif |
0b26a3da | 496 | |
3fc009a8 | 497 | %postun |
b0c91d4e | 498 | %scrollkeeper_update_postun |
773d8485 | 499 | %if %{with gnome} |
b0c91d4e | 500 | %update_desktop_database_postun |
773d8485 | 501 | %endif |
c58876d7 | 502 | |
ffdeafe6 | 503 | %post -n libspreadsheet -p /sbin/ldconfig |
504 | %postun -n libspreadsheet -p /sbin/ldconfig | |
505 | ||
957d478d | 506 | %files -f %{name}.lang |
4136323f | 507 | %defattr(644,root,root,755) |
136bb2ae | 508 | %doc AUTHORS ChangeLog NEWS README |
772fa905 | 509 | |
3ae91ee9 | 510 | %attr(755,root,root) %{_bindir}/* |
772fa905 | 511 | |
18b176fc | 512 | %dir %{_libdir}/gnumeric |
773d8485 | 513 | %dir %{_libdir}/gnumeric/%{version} |
514 | %dir %{_libdir}/gnumeric/%{version}/plugins | |
773d8485 | 515 | %dir %{_libdir}/gnumeric/%{version}/plugins/fn-* |
516 | %dir %{_libdir}/gnumeric/%{version}/plugins/mps | |
773d8485 | 517 | |
518 | %if %{with gnome} | |
7b418745 | 519 | %{_sysconfdir}/gconf/schemas/gnumeric-dialogs.schemas |
520 | %{_sysconfdir}/gconf/schemas/gnumeric-general.schemas | |
521 | %{_sysconfdir}/gconf/schemas/gnumeric-plugins.schemas | |
3fc009a8 | 522 | %endif |
772fa905 | 523 | |
773d8485 | 524 | %{_libdir}/gnumeric/%{version}/plugins/fn-*/*.xml |
525 | %{_libdir}/gnumeric/%{version}/plugins/mps/*.xml | |
773d8485 | 526 | %attr(755,root,root) %{_libdir}/gnumeric/%{version}/plugins/fn-*/*.so |
527 | %attr(755,root,root) %{_libdir}/gnumeric/%{version}/plugins/mps/*.so | |
773d8485 | 528 | |
1fc634bc | 529 | %{_desktopdir}/*.desktop |
3fc009a8 | 530 | %{_pixmapsdir}/* |
b1222d2d | 531 | %{_iconsdir}/hicolor/*/apps/gnumeric.* |
772fa905 | 532 | %{_omf_dest_dir}/%{name} |
533 | ||
18b176fc AF |
534 | %dir %{_datadir}/gnumeric |
535 | %dir %{_datadir}/gnumeric/%{version}* | |
773d8485 | 536 | %{_datadir}/gnumeric/%{version}/*.xml |
537 | %{_datadir}/gnumeric/%{version}/autoformat-templates | |
773d8485 | 538 | %{_datadir}/gnumeric/%{version}/templates |
f035718b | 539 | %{_datadir}/gnumeric/%{version}/ui |
b1e8e3eb | 540 | |
3fc009a8 | 541 | %{_mandir}/man1/gnumeric.1* |
542 | %{_mandir}/man1/ssconvert.1* | |
5b3b7958 | 543 | %{_mandir}/man1/ssgrep.1* |
773d8485 | 544 | %{_mandir}/man1/ssindex.1* |
545 | ||
ffdeafe6 | 546 | %files -n libspreadsheet |
547 | %defattr(644,root,root,755) | |
548 | %attr(755,root,root) %{_libdir}/lib*.so | |
549 | ||
550 | %files -n libspreadsheet-devel | |
551 | %defattr(644,root,root,755) | |
e5139634 | 552 | %{_includedir}/libspreadsheet-1.10 |
ffdeafe6 | 553 | %{_pkgconfigdir}/*.pc |
554 | ||
773d8485 | 555 | # applix |
556 | %files plugin-applix | |
557 | %defattr(644,root,root,755) | |
558 | %dir %{_libdir}/gnumeric/%{version}/plugins/applix | |
559 | %attr(755,root,root) %{_libdir}/gnumeric/%{version}/plugins/applix/*.so | |
560 | %{_libdir}/gnumeric/%{version}/plugins/applix/*.xml | |
561 | ||
7548bd64 | 562 | # data interchange format (DIF) |
773d8485 | 563 | %files plugin-dif |
564 | %defattr(644,root,root,755) | |
565 | %dir %{_libdir}/gnumeric/%{version}/plugins/dif | |
566 | %attr(755,root,root) %{_libdir}/gnumeric/%{version}/plugins/dif/*.so | |
567 | %{_libdir}/gnumeric/%{version}/plugins/dif/*.xml | |
568 | ||
569 | # ms excel | |
570 | %files plugin-excel | |
571 | %defattr(644,root,root,755) | |
572 | %dir %{_libdir}/gnumeric/%{version}/plugins/excel | |
573 | %attr(755,root,root) %{_libdir}/gnumeric/%{version}/plugins/excel/*.so | |
574 | %{_libdir}/gnumeric/%{version}/plugins/excel/*.xml | |
575 | ||
5b3b7958 | 576 | # glpk |
577 | %files plugin-glpk | |
578 | %defattr(644,root,root,755) | |
579 | %dir %{_libdir}/gnumeric/%{version}/plugins/glpk | |
580 | %attr(755,root,root) %{_libdir}/gnumeric/%{version}/plugins/glpk/*.so | |
581 | %{_libdir}/gnumeric/%{version}/plugins/glpk/*.xml | |
582 | ||
773d8485 | 583 | # html |
584 | %files plugin-html | |
585 | %defattr(644,root,root,755) | |
586 | %dir %{_libdir}/gnumeric/%{version}/plugins/html | |
587 | %attr(755,root,root) %{_libdir}/gnumeric/%{version}/plugins/html/*.so | |
588 | %{_libdir}/gnumeric/%{version}/plugins/html/*.xml | |
589 | ||
590 | # lotus 123 | |
591 | %files plugin-lotus123 | |
592 | %defattr(644,root,root,755) | |
593 | %dir %{_libdir}/gnumeric/%{version}/plugins/lotus | |
594 | %attr(755,root,root) %{_libdir}/gnumeric/%{version}/plugins/lotus/*.so | |
595 | %{_libdir}/gnumeric/%{version}/plugins/lotus/*.xml | |
596 | ||
5b3b7958 | 597 | # lpsolve |
598 | %files plugin-lpsolve | |
599 | %defattr(644,root,root,755) | |
600 | %dir %{_libdir}/gnumeric/%{version}/plugins/lpsolve | |
601 | %attr(755,root,root) %{_libdir}/gnumeric/%{version}/plugins/lpsolve/*.so | |
602 | %{_libdir}/gnumeric/%{version}/plugins/lpsolve/*.xml | |
603 | ||
af72cb9c | 604 | # nlsolve |
605 | %files plugin-nlsolve | |
606 | %defattr(644,root,root,755) | |
607 | %dir %{_libdir}/gnumeric/%{version}/plugins/nlsolve | |
608 | %attr(755,root,root) %{_libdir}/gnumeric/%{version}/plugins/nlsolve/*.so | |
609 | %{_libdir}/gnumeric/%{version}/plugins/nlsolve/*.xml | |
610 | ||
773d8485 | 611 | # gnu oleo |
612 | %files plugin-gnuoleo | |
613 | %defattr(644,root,root,755) | |
614 | %dir %{_libdir}/gnumeric/%{version}/plugins/oleo | |
615 | %attr(755,root,root) %{_libdir}/gnumeric/%{version}/plugins/oleo/*.so | |
616 | %{_libdir}/gnumeric/%{version}/plugins/oleo/*.xml | |
617 | ||
618 | # openoffice | |
619 | %files plugin-openoffice | |
620 | %defattr(644,root,root,755) | |
621 | %dir %{_libdir}/gnumeric/%{version}/plugins/openoffice | |
622 | %attr(755,root,root) %{_libdir}/gnumeric/%{version}/plugins/openoffice/*.so | |
623 | %{_libdir}/gnumeric/%{version}/plugins/openoffice/*.xml | |
624 | ||
98f8bc30 | 625 | # paradox |
626 | %files plugin-paradox | |
627 | %defattr(644,root,root,755) | |
628 | %dir %{_libdir}/gnumeric/%{version}/plugins/paradox | |
629 | %attr(755,root,root) %{_libdir}/gnumeric/%{version}/plugins/paradox/*.so | |
630 | %{_libdir}/gnumeric/%{version}/plugins/paradox/*.xml | |
631 | ||
773d8485 | 632 | # plan perfect |
633 | %files plugin-planperfect | |
634 | %defattr(644,root,root,755) | |
635 | %dir %{_libdir}/gnumeric/%{version}/plugins/plan_perfect | |
636 | %attr(755,root,root) %{_libdir}/gnumeric/%{version}/plugins/plan_perfect/*.so | |
637 | %{_libdir}/gnumeric/%{version}/plugins/plan_perfect/*.xml | |
638 | ||
639 | # psiconv | |
640 | %files plugin-psiconv | |
641 | %defattr(644,root,root,755) | |
642 | %dir %{_libdir}/gnumeric/%{version}/plugins/psiconv | |
643 | %attr(755,root,root) %{_libdir}/gnumeric/%{version}/plugins/psiconv/*.so | |
644 | %{_libdir}/gnumeric/%{version}/plugins/psiconv/*.xml | |
645 | ||
646 | # qpro | |
647 | %files plugin-qpro | |
648 | %defattr(644,root,root,755) | |
649 | %dir %{_libdir}/gnumeric/%{version}/plugins/qpro | |
650 | %attr(755,root,root) %{_libdir}/gnumeric/%{version}/plugins/qpro/*.so | |
651 | %{_libdir}/gnumeric/%{version}/plugins/qpro/*.xml | |
652 | ||
653 | # sc/xspread | |
654 | %files plugin-sc | |
655 | %defattr(644,root,root,755) | |
656 | %dir %{_libdir}/gnumeric/%{version}/plugins/sc | |
657 | %attr(755,root,root) %{_libdir}/gnumeric/%{version}/plugins/sc/*.so | |
658 | %{_libdir}/gnumeric/%{version}/plugins/sc/*.xml | |
659 | ||
660 | # sylk | |
661 | %files plugin-sylk | |
662 | %defattr(644,root,root,755) | |
663 | %dir %{_libdir}/gnumeric/%{version}/plugins/sylk | |
664 | %attr(755,root,root) %{_libdir}/gnumeric/%{version}/plugins/sylk/*.so | |
665 | %{_libdir}/gnumeric/%{version}/plugins/sylk/*.xml | |
666 | ||
667 | # xbase | |
668 | %files plugin-xbase | |
669 | %defattr(644,root,root,755) | |
670 | %dir %{_libdir}/gnumeric/%{version}/plugins/xbase | |
671 | %attr(755,root,root) %{_libdir}/gnumeric/%{version}/plugins/xbase/*.so | |
672 | %{_libdir}/gnumeric/%{version}/plugins/xbase/*.xml | |
673 | ||
674 | %if %{with gda} | |
675 | # gda | |
676 | %files plugin-gdaif | |
677 | %defattr(644,root,root,755) | |
0f22a724 | 678 | %dir %{_libdir}/gnumeric/%{version}/plugins/gdaif |
679 | %attr(755,root,root) %{_libdir}/gnumeric/%{version}/plugins/gdaif/*.so | |
680 | %{_libdir}/gnumeric/%{version}/plugins/gdaif/*.xml | |
773d8485 | 681 | |
682 | # gnome db | |
683 | %files plugin-gnomedb | |
684 | %defattr(644,root,root,755) | |
0f22a724 | 685 | %dir %{_libdir}/gnumeric/%{version}/plugins/gnome-db |
686 | %attr(755,root,root) %{_libdir}/gnumeric/%{version}/plugins/gnome-db/*.so | |
687 | %{_libdir}/gnumeric/%{version}/plugins/gnome-db/*.xml | |
773d8485 | 688 | %endif |
689 | ||
690 | # samples | |
691 | %files plugin-sample | |
692 | %defattr(644,root,root,755) | |
693 | %dir %{_libdir}/gnumeric/%{version}/plugins/sample_datasource | |
694 | %dir %{_libdir}/gnumeric/%{version}/plugins/uihello | |
695 | %attr(755,root,root) %{_libdir}/gnumeric/%{version}/plugins/sample_datasource/*.so | |
696 | %attr(755,root,root) %{_libdir}/gnumeric/%{version}/plugins/uihello/*.so | |
697 | %{_libdir}/gnumeric/%{version}/plugins/sample_datasource/*.xml | |
698 | %{_libdir}/gnumeric/%{version}/plugins/uihello/*.xml | |
699 | ||
700 | # perl-func/perl loader | |
701 | %files plugin-perl | |
702 | %defattr(644,root,root,755) | |
703 | %dir %{_libdir}/gnumeric/%{version}/plugins/perl-* | |
704 | %attr(755,root,root) %{_libdir}/gnumeric/%{version}/plugins/perl-*/*.so | |
705 | %{_libdir}/gnumeric/%{version}/plugins/perl-*/*.pl | |
706 | %{_libdir}/gnumeric/%{version}/plugins/perl-*/*.xml | |
707 | ||
708 | # python-func/perl loader | |
709 | %if %{with python} | |
710 | %files plugin-python | |
711 | %defattr(644,root,root,755) | |
712 | %dir %{_libdir}/gnumeric/%{version}/plugins/gnome-glossary | |
713 | %dir %{_libdir}/gnumeric/%{version}/plugins/py* | |
714 | %attr(755,root,root) %{_libdir}/gnumeric/%{version}/plugins/py*/*.so | |
715 | %{_libdir}/gnumeric/%{version}/plugins/py*/*.py | |
716 | %{_libdir}/gnumeric/%{version}/plugins/py*/*.xml | |
717 | %{_libdir}/gnumeric/%{version}/plugins/gnome-glossary/glossary-po-header | |
718 | %{_libdir}/gnumeric/%{version}/plugins/gnome-glossary/*.py | |
719 | %{_libdir}/gnumeric/%{version}/plugins/gnome-glossary/*.xml | |
720 | %endif |