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