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