]> git.pld-linux.org Git - packages/plplot.git/blob - plplot.spec
- release 5 (by relup.sh)
[packages/plplot.git] / plplot.spec
1 # TODO:
2 # - perl_pdl - why disabled?
3 # - bindings: d, gnome2, tk-x-plat?
4 # NOTES:
5 # aqt driver is Darwin-only
6 # wingcc driver is Windows-only
7 # gd driver is not maintained
8 # dg300,gcw,gnome,hpgl,impress,linuxvga,ljii,ljiip,pbm,tek drivers are retired
9 # pstex driver deprecated in favour of psttf and pscairo
10 #
11 # Conditional build:
12 %bcond_without  gnome2          # GNOME 2 and pygtk bindings
13 %bcond_with     perl_pdl        # enable perl examples in tests
14 %bcond_without  ada             # Ada binding
15 %bcond_without  java            # Java binding
16 %bcond_without  itcl            # [incr Tcl]/[incr Tk] support in Tcl/Tk binding
17 %bcond_without  lua             # Lua binding
18 %bcond_without  ocaml           # OCaml binding
19 #
20 Summary:        PLplot - a library of functions that are useful for making scientific plots
21 Summary(pl.UTF-8):      PLplot - biblioteka funkcji przydatnych do tworzenia wykresów naukowych
22 Name:           plplot
23 Version:        5.9.9
24 Release:        5
25 License:        LGPL v2+
26 Group:          Libraries
27 Source0:        http://downloads.sourceforge.net/plplot/%{name}-%{version}.tar.gz
28 # Source0-md5:  9f2c8536a58875d97ab6b29bbed67d26
29 Patch0:         %{name}-octave.patch
30 Patch1:         %{name}-qhull.patch
31 Patch2:         %{name}-link.patch
32 Patch3:         %{name}-cmake.patch
33 Patch4:         %{name}-nofonts.patch
34 Patch5:         %{name}-adadirs.patch
35 Patch6:         %{name}-ocamldir.patch
36 URL:            http://plplot.sourceforge.net/
37 BuildRequires:  QtGui-devel
38 BuildRequires:  QtSvg-devel
39 BuildRequires:  QtXml-devel
40 BuildRequires:  agg-devel
41 BuildRequires:  cmake >= 2.6.4
42 BuildRequires:  docbook-style-dsssl
43 BuildRequires:  fftw3-devel
44 BuildRequires:  fftw3-single-devel
45 BuildRequires:  freetype-devel >= 2.1.0
46 %{?with_ada:BuildRequires:      gcc-ada >= 5:4.1}
47 BuildRequires:  gcc-c++
48 BuildRequires:  gcc-fortran
49 %{?with_itcl:BuildRequires:     itcl-devel >= 3.4.1}
50 %{?with_itcl:BuildRequires:     itk-devel >= 3.4}
51 BuildRequires:  jadetex
52 %{?with_java:BuildRequires:     jdk}
53 %{?with_java:BuildRequires:     jpackage-utils}
54 BuildRequires:  lapack-devel
55 BuildRequires:  libLASi-devel
56 %{?with_gnome2:BuildRequires:   libgnomeprintui-devel >= 2.2}
57 BuildRequires:  libharu-devel >= 2.1.0
58 BuildRequires:  libjpeg-devel
59 BuildRequires:  libltdl-devel
60 BuildRequires:  libpng-devel
61 BuildRequires:  libstdc++-devel
62 %{?with_lua:BuildRequires:      lua51 >= 5.1}
63 %{?with_lua:BuildRequires:      lua51-devel >= 5.1}
64 BuildRequires:  octave-devel >= 2:3.4.2
65 BuildRequires:  pango-devel
66 %{?with_perl_pdl:BuildRequires: perl-PDL}
67 BuildRequires:  perl-XML-DOM
68 BuildRequires:  perl-XML-Parser
69 BuildRequires:  perl-XML-SAX-Expat
70 BuildRequires:  pkgconfig
71 BuildRequires:  pango-devel
72 BuildRequires:  python-PyQt4-devel
73 BuildRequires:  python-numpy-devel >= 15.3
74 BuildRequires:  python-devel >= 1:2.3
75 %{?with_gnome2:BuildRequires:   python-pygtk-devel >= 2:2.13.0}
76 BuildRequires:  qhull-devel >= 2011.1
77 BuildRequires:  qt4-build
78 BuildRequires:  qt4-qmake
79 BuildRequires:  rpm-pythonprov
80 BuildRequires:  rpmbuild(macros) >= 1.605
81 BuildRequires:  sed >= 4.0
82 BuildRequires:  sip
83 BuildRequires:  swig
84 BuildRequires:  swig-python
85 BuildRequires:  tcl-devel >= 8.5
86 BuildRequires:  tetex-dvips
87 BuildRequires:  texinfo
88 BuildRequires:  tk-devel >= 8.5
89 BuildRequires:  wxGTK2-unicode-devel >= 2.6.0
90 BuildRequires:  xorg-lib-libXext-devel
91 BuildRequires:  xorg-lib-libICE-devel
92 BuildRequires:  xorg-lib-libX11-devel
93 %if %{with ocaml}
94 BuildRequires:  ocaml
95 BuildRequires:  ocaml-cairo-devel >= 1.2.0
96 BuildRequires:  ocaml-camlidl
97 BuildRequires:  ocaml-findlib
98 BuildRequires:  ocaml-lablgtk2-devel
99 %endif
100 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
101
102 %define         octave_oct_sitedir      %(octave-config --oct-site-dir)
103 %define         octave_m_sitedir        %(octave-config --m-site-dir)
104
105 %define         gcc_target      %(%{__cc} -dumpmachine)
106 %define         ada_incdir      %{_libdir}/gcc/%{gcc_target}/%{cc_version}/adainclude
107 %define         ada_objdir      %{_libdir}/gcc/%{gcc_target}/%{cc_version}/adalib
108
109 %description
110 PLplot is a library of functions that are useful for making scientific
111 plots. It can be used from within compiled languages such as C, C++,
112 FORTRAN and Java, and interactively from interpreted languages such as
113 Octave, Python, Perl and Tcl.
114
115 The PLplot library can be used to create standard X-Y plots, semilog
116 plots, log-log plots, contour plots, 3D surface plots, mesh plots, bar
117 charts and pie charts. Multiple graphs (of the same or different
118 sizes) may be placed on a single page with multiple lines in each
119 graph.
120
121 A variety of output file devices such as PostScript, PNG, JPEG, LaTeX
122 and others, as well as interactive devices such as xwin, tk, xterm and
123 Tektronics devices are supported. New devices can be easily added by
124 writing a small number of device dependent routines.
125
126 %description -l pl.UTF-8
127 PLplot to biblioteka funkcji przydatnych do tworzenia wykresów
128 naukowych. Może być używana z poziomu języków kompilowanych takich jak
129 C, C++, FORTRAN czy Java, albo interaktywnie z poziomu języków
130 interpretowanych takich jak Octave, Python, Perl czy Tcl.
131
132 Bibliotekę PLplot można wykorzystać do tworzenia standardowych
133 wykresów X-Y, wykresów półlogarytmicznych, wykresów konturowych,
134 wykresów powierzchni trójwymiarowych, wykresów siatek, wykresów
135 słupkowych i kołowych. Na jednej stronie można umieścić wiele wykresów
136 (o tych samych lub różnych rozmiarach), na jednym wykresie może być
137 wiele linii.
138
139 Obsługiwanych jest wiele urządzeń wyjściowych, w tym PostScript, PNG,
140 JPEG, LaTeX i inne, a także urządzenia interaktywne, takie jak xwin,
141 tk, xterm i Tektronics. Nowe urządzenia można łatwo dodać pisząc parę
142 zależnych od urządzenia funkcji.
143
144 %package driver-ntk
145 Summary:        ntk driver for PLplot library
146 Summary(pl.UTF-8):      Sterownik ntk dla biblioteki PLplot
147 Group:          Libraries
148 Requires:       %{name} = %{version}-%{release}
149
150 %description driver-ntk
151 ntk (new tk) driver for PLplot library. It supports Tcl/Tk output.
152
153 %description driver-ntk -l pl.UTF-8
154 Sterownik ntk (new tk) dla biblioteki PLplot. Obsługuje wyjście
155 poprzez Tcl/Tk.
156
157 %package driver-pdf
158 Summary:        pdf driver for PLplot library
159 Summary(pl.UTF-8):      Sterownik pdf dla biblioteki PLplot
160 Group:          Libraries
161 Requires:       %{name} = %{version}-%{release}
162 Requires:       libharu >= 2.1.0
163
164 %description driver-pdf
165 pdf driver for PLplot library. It's PDF driver using Haru library.
166
167 %description driver-pdf -l pl.UTF-8
168 Sterownik pdf dla biblioteki PLplot. Jest to sterownik PDF
169 wykorzystujący bibliotekę Haru.
170
171 %package driver-psttf
172 Summary:        psttf driver for PLplot library
173 Summary(pl.UTF-8):      Sterownik psttf dla biblioteki PLplot
174 Group:          Libraries
175 Requires:       %{name} = %{version}-%{release}
176
177 %description driver-psttf
178 psttf driver for PLplot library. It's PostScript driver using LASi to
179 provide fonts.
180
181 %description driver-psttf -l pl.UTF-8
182 Sterownik psttf dla biblioteki PLplot. Jest to sterownik
183 postscriptowy, wykorzystujący LASi do obsługi fontów.
184
185 %package driver-tk
186 Summary:        Tk drivers for PLplot library
187 Summary(pl.UTF-8):      Sterowniki Tk dla biblioteki PLplot
188 Group:          Libraries
189 Requires:       %{name}-tcl = %{version}-%{release}
190
191 %description driver-tk
192 Tk and tkwin drivers for PLplot library. They support Tcl/Tk output.
193
194 %description driver-tk -l pl.UTF-8
195 Sterownik Tk i tkwin dla biblioteki PLplot. Obsługują wyjście poprzez
196 Tcl/Tk.
197
198 %package driver-cairo
199 Summary:        Cairo driver for PLplot library
200 Summary(pl.UTF-8):      Sterownik cairo dla biblioteki PLplot
201 Group:          Libraries
202 Requires:       %{name} = %{version}-%{release}
203
204 %description driver-cairo
205 Cairo driver for PLplot library. It supports JPEG and PNG output
206 formats.
207
208 %description driver-cairo -l pl.UTF-8
209 Sterownik cairo dla biblioteki PLplot. Obsługuje formaty wyjścia JPEG
210 i PNG.
211
212 %package driver-qt4
213 Summary:        Qt4 driver for PLplot library
214 Summary(pl.UTF-8):      Sterownik Qt4 dla biblioteki PLplot
215 Group:          Libraries
216 Requires:       %{name}-qt4 = %{version}-%{release}
217
218 %description driver-qt4
219 Qt4 driver for PLplot library. Supports Qt4 output.
220
221 %description driver-qt4 -l pl.UTF-8
222 Sterownik Qt4 dla biblioteki PLplot. Obsługuje wyjście poprzez Qt4.
223
224 %package driver-wxwidgets
225 Summary:        wxWidgets driver for PLplot library
226 Summary(pl.UTF-8):      Sterownik wxWidgets dla biblioteki PLplot
227 Group:          Libraries
228 Requires:       %{name} = %{version}-%{release}
229
230 %description driver-wxwidgets
231 wxWidgets driver for PLplot library. Supports wxWidgets output.
232
233 %description driver-wxwidgets -l pl.UTF-8
234 Sterownik wxWidgets dla biblioteki PLplot. Obsługuje wyjście poprzez
235 wxWidgets.
236
237 %package driver-xwin
238 Summary:        xwin driver for PLplot library
239 Summary(pl.UTF-8):      Sterownik xwin dla biblioteki PLplot
240 Group:          Libraries
241 Requires:       %{name} = %{version}-%{release}
242
243 %description driver-xwin
244 xwin driver for PLplot library. It supports X Window System output.
245
246 %description driver-xwin -l pl.UTF-8
247 Sterownik ntk (new tk) dla biblioteki PLplot. Obsługuje wyjście do
248 okna systemu X Window.
249
250 %package devel
251 Summary:        Header files for PLplot library
252 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki PLplot
253 Group:          Development/Libraries
254 Requires:       %{name} = %{version}-%{release}
255 Requires:       freetype-devel >= 2.1
256 Requires:       qhull-devel
257 Obsoletes:      plplot-static
258
259 %description devel
260 Header files for PLplot library.
261
262 %description devel -l pl.UTF-8
263 Pliki nagłówkowe biblioteki PLplot.
264
265 %package c++
266 Summary:        PLplot library - C++ binding
267 Summary(pl.UTF-8):      Biblioteka PLplot - wiązanie dla C++
268 Group:          Libraries
269 Requires:       %{name} = %{version}-%{release}
270
271 %description c++
272 PLplot library - C++ binding.
273
274 %description c++ -l pl.UTF-8
275 Biblioteka PLplot - wiązanie dla C++.
276
277 %package c++-devel
278 Summary:        PLplot library - C++ binding development files
279 Summary(pl.UTF-8):      Biblioteka PLplot - pliki programistyczne wiązania dla C++
280 Group:          Development/Libraries
281 Requires:       %{name}-c++ = %{version}-%{release}
282 Requires:       %{name}-devel = %{version}-%{release}
283 Requires:       libstdc++-devel
284 Obsoletes:      plplot-c++-static
285
286 %description c++-devel
287 PLplot library - C++ binding development files.
288
289 %description c++-devel -l pl.UTF-8
290 Biblioteka PLplot - pliki programistyczne wiązania dla C++.
291
292 %package f77
293 Summary:        PLplot library - FORTRAN 77 binding
294 Summary(pl.UTF-8):      Biblioteka PLplot - wiązanie dla języka FORTRAN 77
295 Group:          Libraries
296 Requires:       %{name} = %{version}-%{release}
297
298 %description f77
299 PLplot library - FORTRAN 77 binding.
300
301 %description f77 -l pl.UTF-8
302 Biblioteka PLplot - wiązanie dla języka FORTRAN 77.
303
304 %package f77-devel
305 Summary:        PLplot library - FORTRAN 77 binding development files
306 Summary(pl.UTF-8):      Biblioteka PLplot - pliki programistyczne wiązania dla języka FORTRAN 77
307 Group:          Development/Libraries
308 Requires:       %{name}-devel = %{version}-%{release}
309 Requires:       %{name}-f77 = %{version}-%{release}
310 Requires:       gcc-fortran
311 Obsoletes:      plplot-f77-static
312
313 %description f77-devel
314 PLplot library - FORTRAN 77 binding development files.
315
316 %description f77-devel -l pl.UTF-8
317 Biblioteka PLplot - pliki programistyczne wiązania dla języka FORTRAN
318 77.
319
320 %package f95
321 Summary:        PLplot library - FORTRAN 95 binding
322 Summary(pl.UTF-8):      Biblioteka PLplot - wiązanie dla języka FORTRAN 95
323 Group:          Libraries
324 Requires:       %{name} = %{version}-%{release}
325
326 %description f95
327 PLplot library - FORTRAN 95 binding.
328
329 %description f95 -l pl.UTF-8
330 Biblioteka PLplot - wiązanie dla języka FORTRAN 95.
331
332 %package f95-devel
333 Summary:        PLplot library - FORTRAN 95 binding development files
334 Summary(pl.UTF-8):      Biblioteka PLplot - pliki programistyczne wiązania dla języka FORTRAN 95
335 Group:          Development/Libraries
336 Requires:       %{name}-devel = %{version}-%{release}
337 Requires:       %{name}-f95 = %{version}-%{release}
338 Requires:       gcc-fortran
339
340 %description f95-devel
341 PLplot library - FORTRAN 95 binding development files.
342
343 %description f95-devel -l pl.UTF-8
344 Biblioteka PLplot - pliki programistyczne wiązania dla języka FORTRAN
345 95.
346
347 %package ada
348 Summary:        PLplot library - Ada binding
349 Summary(pl.UTF-8):      Biblioteka PLplot - wiązanie dla Ady
350 Group:          Libraries
351 Requires:       %{name} = %{version}-%{release}
352
353 %description ada
354 PLplot library - Ada binding.
355
356 %description ada -l pl.UTF-8
357 Biblioteka PLplot - wiązanie dla Ady.
358
359 %package ada-devel
360 Summary:        PLplot library - Ada binding development files
361 Summary(pl.UTF-8):      Biblioteka PLplot - pliki programistyczne wiązania dla Ady
362 Group:          Development/Libraries
363 Requires:       %{name}-devel = %{version}-%{release}
364 Requires:       %{name}-ada = %{version}-%{release}
365
366 %description ada-devel
367 PLplot library - Ada binding development files.
368
369 %description ada-devel -l pl.UTF-8
370 Biblioteka PLplot - pliki programistyczne wiązania dla Ady.
371
372 %package java
373 Summary:        PLplot library - Java binding
374 Summary(pl.UTF-8):      Biblioteka PLplot - wiązanie dla Javy
375 Group:          Libraries
376 Requires:       %{name} = %{version}-%{release}
377
378 %description java
379 PLplot library - Java binding.
380
381 %description java -l pl.UTF-8
382 Biblioteka PLplot - wiązanie dla Javy.
383
384 %package java-devel
385 Summary:        PLplot library - Java binding development files
386 Summary(pl.UTF-8):      Biblioteka PLplot - pliki programistyczne wiązania dla Javy
387 Group:          Development/Libraries
388 Requires:       %{name}-devel = %{version}-%{release}
389 Requires:       %{name}-java = %{version}-%{release}
390 Obsoletes:      plplot-java-static
391
392 %description java-devel
393 PLplot library - Java binding development files.
394
395 %description java-devel -l pl.UTF-8
396 Biblioteka PLplot - pliki programistyczne wiązania dla Javy.
397
398 %package tcl
399 Summary:        PLplot library - Tcl/Tk binding
400 Summary(pl.UTF-8):      Biblioteka PLplot - wiązanie dla Tcl/Tk
401 Group:          Libraries
402 Requires:       %{name} = %{version}-%{release}
403
404 %description tcl
405 PLplot library - Tcl/Tk binding.
406
407 %description tcl -l pl.UTF-8
408 Biblioteka PLplot - wiązanie dla Tcl/Tk.
409
410 %package tcl-devel
411 Summary:        PLplot library - Tcl/Tk binding development files
412 Summary(pl.UTF-8):      Biblioteka PLplot - pliki programistyczne wiązania dla Tcl/Tk
413 Group:          Development/Libraries
414 Requires:       %{name}-devel = %{version}-%{release}
415 Requires:       %{name}-tcl = %{version}-%{release}
416 %{?with_itcl:Requires:  itcl-devel}
417 Obsoletes:      plplot-tcl-static
418
419 %description tcl-devel
420 PLplot library - Tcl/Tk binding development files.
421
422 %description tcl-devel -l pl.UTF-8
423 Biblioteka PLplot - pliki programistyczne wiązania dla Tcl/Tk.
424
425 %package qt4
426 Summary:        PLplot library - Qt4 binding
427 Summary(pl.UTF-8):      Biblioteka PLplot - wiązanie dla Qt4
428 Group:          Libraries
429 Requires:       %{name} = %{version}-%{release}
430
431 %description qt4
432 PLplot library - Qt4 binding.
433
434 %description qt4 -l pl.UTF-8
435 Biblioteka PLplot - wiązanie dla Qt4.
436
437 %package qt4-devel
438 Summary:        PLplot library - Qt4 binding development files
439 Summary(pl.UTF-8):      Biblioteka PLplot - pliki programistyczne wiązania dla Qt4
440 Group:          Development/Libraries
441 Requires:       %{name}-qt4 = %{version}-%{release}
442 Requires:       %{name}-devel = %{version}-%{release}
443 Requires:       QtGui-devel
444 Requires:       QtSvg-devel
445 Requires:       QtXml-devel
446
447 %description qt4-devel
448 PLplot library - Qt4 binding development files.
449
450 %description qt4-devel -l pl.UTF-8
451 Biblioteka PLplot - pliki programistyczne wiązania dla Qt4.
452
453 %package wxwidgets
454 Summary:        PLplot library - wxWidgets binding
455 Summary(pl.UTF-8):      Biblioteka PLplot - wiązanie dla wxWidgets
456 Group:          Libraries
457 Requires:       %{name} = %{version}-%{release}
458 Requires:       wxGTK2-unicode >= 2.6.0
459
460 %description wxwidgets
461 PLplot library - wxwidgets binding.
462
463 %description wxwidgets -l pl.UTF-8
464 Biblioteka PLplot - wiązanie dla wxWidgets.
465
466 %package wxwidgets-devel
467 Summary:        PLplot library - wxWidgets binding development files
468 Summary(pl.UTF-8):      Biblioteka PLplot - pliki programistyczne wiązania dla wxWidgets
469 Group:          Development/Libraries
470 Requires:       %{name}-wxwidgets = %{version}-%{release}
471 Requires:       %{name}-devel = %{version}-%{release}
472 Requires:       wxGTK2-unicode-devel >= 2.6.0
473
474 %description wxwidgets-devel
475 PLplot library - wxWidgets binding development files.
476
477 %description wxwidgets-devel -l pl.UTF-8
478 Biblioteka PLplot - pliki programistyczne wiązania dla wxWidgets.
479
480 %package octave
481 Summary:        PLplot library - Octave binding
482 Summary(pl.UTF-8):      Biblioteka PLplot - wiązanie dla języka Octave
483 Group:          Libraries
484 Requires:       %{name} = %{version}-%{release}
485
486 %description octave
487 PLplot library - Octave binding.
488
489 %description octave -l pl.UTF-8
490 Biblioteka PLplot - wiązanie dla języka Octave.
491
492 %package octave-examples
493 Summary:        PLplot library - examples for Octave binding
494 Summary(pl.UTF-8):      Biblioteka PLplot - przykłady do wiązania dla języka Octave
495 Group:          Development/Libraries
496 Requires:       %{name}-devel = %{version}-%{release}
497 Requires:       %{name}-octave = %{version}-%{release}
498
499 %description octave-examples
500 PLplot library - examples for Octave binding.
501
502 %description octave-examples -l pl.UTF-8
503 Biblioteka PLplot - przykłady do wiązania dla języka Octave.
504
505 %package -n lua-plplot
506 Summary:        Lua binding for PLplot library
507 Summary(pl.UTF-8):      Wiązanie języka Lua do biblioteki PLplot
508 Group:          Development/Languages
509 Requires:       %{name} = %{version}-%{release}
510 Requires:       lua51-libs >= 5.1
511
512 %description -n lua-plplot
513 Lua binding for PLplot library.
514
515 %description -n lua-plplot -l pl.UTF-8
516 Wiązanie języka Lua do biblioteki PLplot.
517
518 %package -n ocaml-plplot
519 Summary:        OCaml binding for PLplot library
520 Summary(pl.UTF-8):      Wiązanie języka OCaml do biblioteki PLplot
521 Group:          Libraries
522 Requires:       %{name} = %{version}-%{release}
523 %requires_eq    ocaml-runtime
524
525 %description -n ocaml-plplot
526 OCaml binding for PLplot library.
527
528 %description -n ocaml-plplot -l pl.UTF-8
529 Wiązanie języka OCaml do biblioteki PLplot.
530
531 %package -n ocaml-plplot-devel
532 Summary:        Development files for OCaml binding for PLplot library
533 Summary(pl.UTF-8):      Wiązanie języka OCaml do biblioteki PLplot - pliki programistyczne
534 Group:          Development/Libraries
535 Requires:       ocaml-plplot = %{version}-%{release}
536 %requires_eq    ocaml
537
538 %description -n ocaml-plplot-devel
539 Development files for OCaml binding for PLplot library.
540
541 %description -n ocaml-plplot-devel -l pl.UTF-8
542 Wiązanie języka OCaml do biblioteki PLplot - pliki programistyczne.
543
544 %package -n ocaml-plcairo
545 Summary:        PLcairo - Cairo extras for OCaml binding for PLplot library
546 Summary(pl.UTF-8):      PLcairo - dodatki Cairo do wiązania języka OCaml do biblioteki PLplot
547 Group:          Libraries
548 Requires:       ocaml-plplot = %{version}-%{release}
549 Requires:       ocaml-cairo
550 %requires_eq    ocaml-runtime
551
552 %description -n ocaml-plcairo
553 PLcairo - Cairo extras for OCaml binding for PLplot library.
554
555 %description -n ocaml-plcairo -l pl.UTF-8
556 PLcairo - dodatki Cairo do wiązania języka OCaml do biblioteki PLplot.
557
558 %package -n ocaml-plcairo-devel
559 Summary:        Development files for PLcairo OCaml library
560 Summary(pl.UTF-8):      Pliki programistyczne biblioteki OCamla PLcairo
561 Group:          Development/Libraries
562 Requires:       ocaml-cairo-devel
563 Requires:       ocaml-plcairo = %{version}-%{release}
564 Requires:       ocaml-plplot-devel = %{version}-%{release}
565 %requires_eq    ocaml
566
567 %description -n ocaml-plcairo-devel
568 Development files for PLcairo OCaml library.
569
570 %description -n ocaml-plcairo-devel -l pl.UTF-8
571 Pliki programistyczne biblioteki OCamla PLcairo.
572
573 %package -n python-plplot
574 Summary:        PLplot library - Python binding
575 Summary(pl.UTF-8):      Biblioteka PLplot - wiązanie dla Pythona
576 Group:          Libraries/Python
577 Requires:       %{name} = %{version}-%{release}
578 Requires:       %{name}-tcl = %{version}-%{release}
579 %pyrequires_eq  python-libs
580 Requires:       python-numpy
581
582 %description -n python-plplot
583 PLplot library - Python binding.
584
585 %description -n python-plplot -l pl.UTF-8
586 Biblioteka PLplot - wiązanie dla Pythona.
587
588 %package -n python-plplot-qt4
589 Summary:        PLplot library - PyQt4 binding
590 Summary(pl.UTF-8):      Biblioteka PLplot - wiązanie dla PyQt4
591 Group:          Libraries/Python
592 Requires:       python-plplot = %{version}-%{release}
593 %pyrequires_eq  python-libs
594 Requires:       python-numpy
595
596 %description -n python-plplot-qt4
597 PLplot library - Python/PyQt4 binding.
598
599 %description -n python-plplot-qt4 -l pl.UTF-8
600 Biblioteka PLplot - wiązanie dla Pythona/PyQt4.
601
602 %package -n python-plplot-examples
603 Summary:        PLplot library - Python binding examples
604 Summary(pl.UTF-8):      Biblioteka PLplot - przykłady do wiązania dla Pythona
605 Group:          Libraries/Python
606 Requires:       %{name}-devel = %{version}-%{release}
607 Requires:       python-plplot = %{version}-%{release}
608
609 %description -n python-plplot-examples
610 PLplot library - Python binding examples.
611
612 %description -n python-plplot-examples -l pl.UTF-8
613 Biblioteka PLplot - przykłady do wiązania dla Pythona.
614
615 %prep
616 %setup -q
617 %patch0 -p1
618 %patch1 -p1
619 %patch2 -p1
620 %patch3 -p1
621 %patch4 -p1
622 %patch5 -p1
623 %patch6 -p1
624
625 %build
626 mkdir build
627 cd build
628 # required for cmake to find JNI headers/libs when lib64 is in use
629 %{?with_java:export JAVA_HOME=%{_jvmlibdir}/java}
630 # NOTE: no %{_libdir}/jni in PLD, use plain %{_libdir}
631 %cmake .. \
632 %if %{with ada}
633         -DENABLE_ada=ON \
634         -DADA_INCLUDE_PATH=%{ada_incdir} \
635         -DADA_LIB_PATH=%{ada_objdir} \
636 %else
637         -DENABLE_ada=OFF \
638 %endif
639 %if %{with java}
640         -DCMAKE_Java_RUNTIME=%{java} \
641         -DCMAKE_Java_COMPILER=%{javac} \
642         -DCMAKE_Java_ARCHIVE=%{jar} \
643         -DJAR_DIR=%{_javadir} \
644         -DJAVAWRAPPER_DIR=%{_libdir} \
645 %else
646         -DENABLE_java=OFF \
647 %endif
648 %if %{with lua}
649         -DENABLE_lua=ON \
650         -DLUA_EXECUTABLE=%{_bindir}/lua51 \
651 %else
652         -DENABLE_lua=OFF \
653 %endif
654         -DF77_INCLUDE_DIR=%{_includedir}/plplot \
655         -DF95_MOD_DIR=%{_includedir}/plplot \
656         -DOCTAVE_INCLUDE_PATH=%{_includedir}/octave \
657         -DOCTAVE_OCT_DIR=%{octave_oct_sitedir} \
658         -DOCTAVE_M_DIR=%{octave_m_sitedir} \
659         -DUSE_RPATH=OFF \
660         -DENABLE_tk=ON \
661         -DENABLE_ocaml=%{?with_ocaml:ON}%{!?with_ocaml:OFF} \
662         -DENABLE_itcl=%{?with_itcl:ON}%{!?with_itcl:OFF} \
663         -DENABLE_itk=%{?with_itcl:ON}%{!?with_itcl:OFF} \
664         -DPLD_cgm=ON \
665         -DPLD_ntk=ON \
666         -DPLD_pdf=ON \
667         -DPLD_plmeta=ON \
668         -DPLD_pstex=ON \
669         -DPL_FREETYPE_FONT_PATH=/usr/share/fonts/TTF \
670         -DwxWidgets_CONFIG_EXECUTABLE=/usr/bin/wx-gtk2-unicode-config \
671         -DwxWidgets_USE_UNICODE=ON \
672         %{!?with_perl_pdl:-DENABLE_pdl=OFF}
673
674 %{__make}
675
676 %install
677 rm -rf $RPM_BUILD_ROOT
678 install -d $RPM_BUILD_ROOT%{_examplesdir}
679
680 %{__make} -C build install \
681         DESTDIR=$RPM_BUILD_ROOT
682
683 mv $RPM_BUILD_ROOT%{_datadir}/plplot%{version}/examples \
684         $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
685
686 rm -rf installed-docs
687 mv $RPM_BUILD_ROOT%{_docdir}/plplot installed-docs
688
689 %py_comp $RPM_BUILD_ROOT%{py_sitedir}
690 %py_ocomp $RPM_BUILD_ROOT%{py_sitedir}
691 %py_postclean
692
693 %clean
694 rm -rf $RPM_BUILD_ROOT
695
696 %post   -p /sbin/ldconfig
697 %postun -p /sbin/ldconfig
698
699 %post   c++ -p /sbin/ldconfig
700 %postun c++ -p /sbin/ldconfig
701
702 %post   f77 -p /sbin/ldconfig
703 %postun f77 -p /sbin/ldconfig
704
705 %post   f95 -p /sbin/ldconfig
706 %postun f95 -p /sbin/ldconfig
707
708 %post   ada -p /sbin/ldconfig
709 %postun ada -p /sbin/ldconfig
710
711 %post   tcl -p /sbin/ldconfig
712 %postun tcl -p /sbin/ldconfig
713
714 %post   qt4 -p /sbin/ldconfig
715 %postun qt4 -p /sbin/ldconfig
716
717 %post   wxwidgets -p /sbin/ldconfig
718 %postun wxwidgets -p /sbin/ldconfig
719
720 %files
721 %defattr(644,root,root,755)
722 %doc ABOUT AUTHORS ChangeLog.release Copyright FAQ NEWS PROBLEMS README README.release SERVICE ToDo
723 %doc installed-docs/README.{1st.csa,1st.nn,csa,nn,drivers}
724 %attr(755,root,root) %{_bindir}/plm2gif
725 %attr(755,root,root) %{_bindir}/plpr
726 %attr(755,root,root) %{_bindir}/plrender
727 %attr(755,root,root) %{_bindir}/pltek
728 %attr(755,root,root) %{_bindir}/pstex2eps
729 %attr(755,root,root) %{_libdir}/libcsirocsa.so.*.*.*
730 %attr(755,root,root) %ghost %{_libdir}/libcsirocsa.so.0
731 %attr(755,root,root) %{_libdir}/libcsironn.so.*.*.*
732 %attr(755,root,root) %ghost %{_libdir}/libcsironn.so.0
733 %attr(755,root,root) %{_libdir}/libnistcd.so.*.*.*
734 %attr(755,root,root) %ghost %{_libdir}/libnistcd.so.0
735 %attr(755,root,root) %{_libdir}/libqsastime.so.*.*.*
736 %attr(755,root,root) %ghost %{_libdir}/libqsastime.so.0
737 %attr(755,root,root) %{_libdir}/libplplotd.so.*.*.*
738 %attr(755,root,root) %ghost %{_libdir}/libplplotd.so.11
739 %{_mandir}/man1/plm2gif.1*
740 %{_mandir}/man1/plpr.1*
741 %{_mandir}/man1/plrender.1*
742 %{_mandir}/man1/pltek.1*
743 %{_mandir}/man1/pstex2eps.1*
744 %dir %{_libdir}/plplot%{version}
745 %dir %{_libdir}/plplot%{version}/driversd
746 %attr(755,root,root) %{_libdir}/plplot%{version}/driversd/cgm.so
747 %{_libdir}/plplot%{version}/driversd/cgm.driver_info
748 %attr(755,root,root) %{_libdir}/plplot%{version}/driversd/mem.so
749 %{_libdir}/plplot%{version}/driversd/mem.driver_info
750 %attr(755,root,root) %{_libdir}/plplot%{version}/driversd/null.so
751 %{_libdir}/plplot%{version}/driversd/null.driver_info
752 %attr(755,root,root) %{_libdir}/plplot%{version}/driversd/plmeta.so
753 %{_libdir}/plplot%{version}/driversd/plmeta.driver_info
754 %attr(755,root,root) %{_libdir}/plplot%{version}/driversd/ps.so
755 %{_libdir}/plplot%{version}/driversd/ps.driver_info
756 %attr(755,root,root) %{_libdir}/plplot%{version}/driversd/pstex.so
757 %{_libdir}/plplot%{version}/driversd/pstex.driver_info
758 %attr(755,root,root) %{_libdir}/plplot%{version}/driversd/svg.so
759 %{_libdir}/plplot%{version}/driversd/svg.driver_info
760 %attr(755,root,root) %{_libdir}/plplot%{version}/driversd/xfig.so
761 %{_libdir}/plplot%{version}/driversd/xfig.driver_info
762 %dir %{_datadir}/plplot%{version}
763 %{_datadir}/plplot%{version}/*.map
764 %{_datadir}/plplot%{version}/*.pal
765 %{_datadir}/plplot%{version}/*.fnt
766
767 %files driver-cairo
768 %defattr(644,root,root,755)
769 %attr(755,root,root) %{_libdir}/plplot%{version}/driversd/cairo.so
770 %{_libdir}/plplot%{version}/driversd/cairo.driver_info
771
772 %files driver-ntk
773 %defattr(644,root,root,755)
774 %attr(755,root,root) %{_libdir}/plplot%{version}/driversd/ntk.so
775 %{_libdir}/plplot%{version}/driversd/ntk.driver_info
776
777 %files driver-pdf
778 %defattr(644,root,root,755)
779 %attr(755,root,root) %{_libdir}/plplot%{version}/driversd/pdf.so
780 %{_libdir}/plplot%{version}/driversd/pdf.driver_info
781
782 %files driver-psttf
783 %defattr(644,root,root,755)
784 %attr(755,root,root) %{_libdir}/plplot%{version}/driversd/psttf.so
785 %{_libdir}/plplot%{version}/driversd/psttf.driver_info
786
787 %files driver-tk
788 %defattr(644,root,root,755)
789 %attr(755,root,root) %{_libdir}/plplot%{version}/driversd/tk.so
790 %{_libdir}/plplot%{version}/driversd/tk.driver_info
791 %attr(755,root,root) %{_libdir}/plplot%{version}/driversd/tkwin.so
792 %{_libdir}/plplot%{version}/driversd/tkwin.driver_info
793
794 %files driver-qt4
795 %defattr(644,root,root,755)
796 %attr(755,root,root) %{_libdir}/plplot%{version}/driversd/qt.so
797 %{_libdir}/plplot%{version}/driversd/qt.driver_info
798
799 %files driver-wxwidgets
800 %defattr(644,root,root,755)
801 %attr(755,root,root) %{_libdir}/plplot%{version}/driversd/wxwidgets.so
802 %{_libdir}/plplot%{version}/driversd/wxwidgets.driver_info
803
804 %files driver-xwin
805 %defattr(644,root,root,755)
806 %attr(755,root,root) %{_libdir}/plplot%{version}/driversd/xwin.so
807 %{_libdir}/plplot%{version}/driversd/xwin.driver_info
808
809 %files devel
810 %defattr(644,root,root,755)
811 %attr(755,root,root) %{_libdir}/libcsirocsa.so
812 %attr(755,root,root) %{_libdir}/libcsironn.so
813 %attr(755,root,root) %{_libdir}/libnistcd.so
814 %attr(755,root,root) %{_libdir}/libplplotd.so
815 %attr(755,root,root) %{_libdir}/libqsastime.so
816 %dir %{_includedir}/plplot
817 %{_includedir}/plplot/cd.h
818 %{_includedir}/plplot/defines.h
819 %{_includedir}/plplot/disptab.h
820 %{_includedir}/plplot/drivers.h
821 %{_includedir}/plplot/pdf.h
822 %{_includedir}/plplot/plConfig.h
823 %{_includedir}/plplot/plDevs.h
824 %{_includedir}/plplot/pldebug.h
825 %{_includedir}/plplot/pldll.h
826 %{_includedir}/plplot/plevent.h
827 %{_includedir}/plplot/plplot.h
828 %{_includedir}/plplot/plplotP.h
829 %{_includedir}/plplot/plstrm.h
830 %{_includedir}/plplot/qsastime.h
831 %{_includedir}/plplot/qsastimedll.h
832 # xwin driver (uses X11 headers)
833 %{_includedir}/plplot/plxwd.h
834 # -gnome
835 %{_includedir}/plplot/gcw.h
836 %{_includedir}/plplot/plplotcanvas.h
837 %{_pkgconfigdir}/plplotd.pc
838 %dir %{_examplesdir}/%{name}-%{version}
839 %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/plplot-test.sh
840 %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/test_c.sh
841 %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/plplot-test-interactive.sh
842 %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/test_c_interactive.sh
843 %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/test_diff.sh
844 %{_examplesdir}/%{name}-%{version}/c
845 %{_examplesdir}/%{name}-%{version}/cmake
846 %{_examplesdir}/%{name}-%{version}/CMakeLists.txt
847 %{_examplesdir}/%{name}-%{version}/lena.*
848 %{_examplesdir}/%{name}-%{version}/Makefile
849 %if %{with perl_pdl}
850 # perl examples use PDL::Graphics::PLplot module found in perl-PDL
851 %{_examplesdir}/%{name}-%{version}/perl
852 %endif
853
854 %files c++
855 %defattr(644,root,root,755)
856 %attr(755,root,root) %{_libdir}/libplplotcxxd.so.*.*.*
857 %attr(755,root,root) %ghost %{_libdir}/libplplotcxxd.so.10
858
859 %files c++-devel
860 %defattr(644,root,root,755)
861 %attr(755,root,root) %{_libdir}/libplplotcxxd.so
862 %{_includedir}/plplot/plstream.h
863 %{_pkgconfigdir}/plplotd-c++.pc
864 %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/test_cxx.sh
865 %{_examplesdir}/%{name}-%{version}/c++
866
867 %files f77
868 %defattr(644,root,root,755)
869 %attr(755,root,root) %{_libdir}/libplplotf77cd.so.*.*.*
870 %attr(755,root,root) %ghost %{_libdir}/libplplotf77cd.so.9
871 %attr(755,root,root) %{_libdir}/libplplotf77d.so.*.*.*
872 %attr(755,root,root) %ghost %{_libdir}/libplplotf77d.so.9
873
874 %files f77-devel
875 %defattr(644,root,root,755)
876 %attr(755,root,root) %{_libdir}/libplplotf77cd.so
877 %attr(755,root,root) %{_libdir}/libplplotf77d.so
878 %{_includedir}/plplot/plplot_parameters.h
879 %{_pkgconfigdir}/plplotd-f77.pc
880 %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/test_f77.sh
881 %{_examplesdir}/%{name}-%{version}/f77
882
883 %files f95
884 %defattr(644,root,root,755)
885 %doc bindings/f95/readme_f95.txt
886 %attr(755,root,root) %{_libdir}/libplplotf95cd.so.*.*.*
887 %attr(755,root,root) %ghost %{_libdir}/libplplotf95cd.so.9
888 %attr(755,root,root) %{_libdir}/libplplotf95d.so.*.*.*
889 %attr(755,root,root) %ghost %{_libdir}/libplplotf95d.so.9
890
891 %files f95-devel
892 %defattr(644,root,root,755)
893 %attr(755,root,root) %{_libdir}/libplplotf95cd.so
894 %attr(755,root,root) %{_libdir}/libplplotf95d.so
895 %{_includedir}/plplot/plplot.mod
896 %{_includedir}/plplot/plplot_flt.mod
897 %{_includedir}/plplot/plplotp.mod
898 %{_pkgconfigdir}/plplotd-f95.pc
899 %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/test_f95.sh
900 %{_examplesdir}/%{name}-%{version}/f95
901
902 %if %{with ada}
903 %files ada
904 %defattr(644,root,root,755)
905 %attr(755,root,root) %{_libdir}/libplplotadad.so.*.*.*
906 %attr(755,root,root) %ghost %{_libdir}/libplplotadad.so.0
907
908 %files ada-devel
909 %defattr(644,root,root,755)
910 %attr(755,root,root) %{_libdir}/libplplotadad.so
911 %{ada_objdir}/plplotadad
912 %{ada_incdir}/plplotadad
913 %{_pkgconfigdir}/plplotd-ada.pc
914 %{_examplesdir}/%{name}-%{version}/ada
915 %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/test_ada.sh
916 %endif
917
918 %if %{with java}
919 %files java
920 %defattr(644,root,root,755)
921 %attr(755,root,root) %{_libdir}/plplotjavac_wrap.so
922 %{_javadir}/plplot.jar
923
924 %files java-devel
925 %defattr(644,root,root,755)
926 %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/test_java.sh
927 %{_examplesdir}/%{name}-%{version}/java
928 %endif
929
930 %files tcl
931 %defattr(644,root,root,755)
932 %attr(755,root,root) %{_bindir}/pltcl
933 %attr(755,root,root) %{_bindir}/plserver
934 %attr(755,root,root) %{_libdir}/libplplottcltkd.so.*.*.*
935 %attr(755,root,root) %ghost %{_libdir}/libplplottcltkd.so.9
936 %attr(755,root,root) %{_libdir}/libtclmatrixd.so.*.*.*
937 %attr(755,root,root) %ghost %{_libdir}/libtclmatrixd.so.9
938 %{_datadir}/plplot%{version}/*.tcl
939 %{_datadir}/plplot%{version}/tcl
940 %{_mandir}/man1/pltcl.1*
941 %{_mandir}/man1/plserver.1*
942
943 %files tcl-devel
944 %defattr(644,root,root,755)
945 %attr(755,root,root) %{_libdir}/libplplottcltkd.so
946 %attr(755,root,root) %{_libdir}/libtclmatrixd.so
947 %{_includedir}/plplot/pltcl.h
948 %{_includedir}/plplot/pltk.h
949 %{_includedir}/plplot/tclMatrix.h
950 %{_pkgconfigdir}/plplotd-tcl.pc
951 %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/test_tcl.sh
952 %{_examplesdir}/%{name}-%{version}/tcl
953 %{_examplesdir}/%{name}-%{version}/tk
954
955 %files qt4
956 %defattr(644,root,root,755)
957 %attr(755,root,root) %ghost %{_libdir}/libplplotqtd.so.0
958 %attr(755,root,root) %{_libdir}/libplplotqtd.so.0.0.1
959
960 %files qt4-devel
961 %defattr(644,root,root,755)
962 %attr(755,root,root) %{_libdir}/libplplotqtd.so
963 %{_includedir}/plplot/qt.h
964 %{_pkgconfigdir}/plplotd-qt.pc
965
966 %files wxwidgets
967 %defattr(644,root,root,755)
968 %attr(755,root,root) %{_libdir}/libplplotwxwidgetsd.so.*.*.*
969 %attr(755,root,root) %ghost %{_libdir}/libplplotwxwidgetsd.so.0
970
971 %files wxwidgets-devel
972 %defattr(644,root,root,755)
973 %attr(755,root,root) %{_libdir}/libplplotwxwidgetsd.so
974 %{_includedir}/plplot/wxPLplot*.h
975 %{_pkgconfigdir}/plplotd-wxwidgets.pc
976
977 %files octave
978 %defattr(644,root,root,755)
979 %doc bindings/octave/{BUGS,FGA,README,ToDo,USAGE}
980 %attr(755,root,root) %{octave_oct_sitedir}/plplot_octave.oct
981 %{octave_m_sitedir}/PLplot
982 %{_datadir}/plplot_octave
983 %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/test_octave_interactive.sh
984
985 %files octave-examples
986 %defattr(644,root,root,755)
987 %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/test_octave.sh
988 %{_examplesdir}/%{name}-%{version}/octave
989
990 %if %{with lua}
991 %files -n lua-plplot
992 %defattr(644,root,root,755)
993 %dir %{_libdir}/lua/5.1/plplot
994 %attr(755,root,root) %{_libdir}/lua/5.1/plplot/plplotluac.so
995 %{_examplesdir}/%{name}-%{version}/lua
996 %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/test_lua.sh
997 %endif
998
999 %if %{with ocaml}
1000 %files -n ocaml-plplot
1001 %defattr(644,root,root,755)
1002 %attr(755,root,root) %{_libdir}/ocaml/stublibs/dllplplot_stubs.so
1003
1004 %files -n ocaml-plplot-devel
1005 %dir %{_libdir}/ocaml/plplot
1006 %{_libdir}/ocaml/plplot/META
1007 %{_libdir}/ocaml/plplot/libplplot_stubs.a
1008 %{_libdir}/ocaml/plplot/plplot.a
1009 %{_libdir}/ocaml/plplot/plplot.cm*
1010 %{_libdir}/ocaml/plplot/plplot.mli
1011 %{_pkgconfigdir}/plplotd-ocaml.pc
1012 %{_examplesdir}/%{name}-%{version}/ocaml
1013 %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/test_ocaml.sh
1014
1015 %files -n ocaml-plcairo
1016 %defattr(644,root,root,755)
1017 %attr(755,root,root) %{_libdir}/ocaml/stublibs/dllplcairo_stubs.so
1018
1019 %files -n ocaml-plcairo-devel
1020 %dir %{_libdir}/ocaml/plcairo
1021 %{_libdir}/ocaml/plcairo/META
1022 %{_libdir}/ocaml/plcairo/libplcairo_stubs.a
1023 %{_libdir}/ocaml/plcairo/plcairo.a
1024 %{_libdir}/ocaml/plcairo/plcairo.cm*
1025 %{_libdir}/ocaml/plcairo/plcairo.mli
1026 %endif
1027
1028 %files -n python-plplot
1029 %defattr(644,root,root,755)
1030 %attr(755,root,root) %{py_sitedir}/_plplotcmodule.so
1031 %attr(755,root,root) %{py_sitedir}/plplot_widgetmodule.so
1032 %{py_sitedir}/Plframe.py[co]
1033 %{py_sitedir}/plplotc.py[co]
1034 %{py_sitedir}/plplot.py[co]
1035 %{py_sitedir}/TclSup.py[co]
1036
1037 %files -n python-plplot-qt4
1038 %defattr(644,root,root,755)
1039 %attr(755,root,root) %{py_sitedir}/plplot_pyqt4.so
1040
1041 %files -n python-plplot-examples
1042 %defattr(644,root,root,755)
1043 %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/test_python.sh
1044 %{_examplesdir}/%{name}-%{version}/python
This page took 0.394658 seconds and 3 git commands to generate.