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