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