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