2 # - fix building with installed plplot/plplot-devel (tries to use installed drivers for dyn_test)
3 # - bindings: tk-x-plat?
4 # NOTES (see cmake/modules/drivers-init.cmake for some issue notes):
5 # aqt driver is Darwin-only
6 # wingcc driver is Windows-only
7 # cgm driver has severe valgrind issues (as of 5.11.1)
8 # gd driver is not maintained
9 # plmeta is disabled due to "some issues" (as of 5.11.1)
10 # pstex driver deprecated in favour of psttf and pscairo
13 %bcond_with perl_pdl # Perl/PDL examples in tests (only)
14 %bcond_without ada # Ada binding
15 %bcond_with d # D 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 %bcond_with ocaml_cairo # OCaml-Cairo component
21 %bcond_without ocaml_opt # OCaml native optimized binaries (bytecode is always built)
22 %bcond_without octave # Octave bindings
23 %bcond_with cgm # CGM driver, libnistcd library
24 %bcond_with plmeta # plmeta driver, plrender program, {plm2gir,plpr} scripts
26 # not yet available on x32 (ocaml 4.02.1), update when upstream will support it
27 %ifnarch %{ix86} %{x8664} arm aarch64 ppc sparc sparcv9
28 %undefine with_ocaml_opt
34 Summary: PLplot - a library of functions that are useful for making scientific plots
35 Summary(pl.UTF-8): PLplot - biblioteka funkcji przydatnych do tworzenia wykresów naukowych
41 Source0: http://downloads.sourceforge.net/plplot/%{name}-%{version}.tar.gz
42 # Source0-md5: 998a05be218e5de8f2faf988b8dbdc51
43 Patch0: %{name}-octave.patch
44 Patch2: %{name}-no-DISPLAY.patch
45 Patch3: %{name}-plmeta.patch
46 Patch5: %{name}-adadirs.patch
47 Patch6: %{name}-ocamldir.patch
48 Patch7: %{name}-d.patch
49 URL: http://plplot.sourceforge.net/
50 BuildRequires: QtGui-devel >= 4
51 BuildRequires: QtSvg-devel >= 4
52 BuildRequires: QtXml-devel >= 4
53 BuildRequires: agg-devel
54 %{?with_ocaml_cairo:BuildRequires: cairo-devel}
55 BuildRequires: cmake >= 2.6.4
56 BuildRequires: docbook-style-dsssl
57 %{?with_d:BuildRequires: dmd}
58 BuildRequires: fftw3-devel
59 BuildRequires: fftw3-single-devel
60 BuildRequires: freetype-devel >= 2.1.0
61 %{?with_ada:BuildRequires: gcc-ada >= 5:4.1}
62 BuildRequires: gcc-c++
63 BuildRequires: gcc-fortran
64 %{?with_itcl:BuildRequires: itcl-devel >= 3.4.1}
65 %{?with_itcl:BuildRequires: itk-devel >= 3.4}
66 BuildRequires: jadetex
67 %{?with_java:BuildRequires: jdk}
68 %{?with_java:BuildRequires: jpackage-utils}
69 BuildRequires: lapack-devel
70 BuildRequires: libLASi-devel
71 BuildRequires: libharu-devel >= 2.1.0
72 BuildRequires: libjpeg-devel
73 BuildRequires: libltdl-devel
74 BuildRequires: libpng-devel
75 BuildRequires: libstdc++-devel
76 %{?with_lua:BuildRequires: lua51 >= 5.1}
77 %{?with_lua:BuildRequires: lua51-devel >= 5.1}
78 %{?with_octave:BuildRequires: octave-devel >= 2:3.4.2}
79 BuildRequires: pango-devel
80 %{?with_perl_pdl:BuildRequires: perl-PDL}
81 BuildRequires: perl-XML-DOM
82 BuildRequires: perl-XML-Parser
83 BuildRequires: perl-XML-SAX-Expat
84 BuildRequires: pkgconfig
85 BuildRequires: pango-devel
86 BuildRequires: sip-PyQt4
87 BuildRequires: python-PyQt4-uic
88 BuildRequires: python-numpy-devel >= 15.3
89 BuildRequires: python-devel >= 1:2.3
90 BuildRequires: python-sip-devel
91 BuildRequires: qhull-devel >= 2011.1
92 BuildRequires: qt4-build >= 4
93 BuildRequires: qt4-qmake >= 4
94 BuildRequires: rpm-pythonprov
95 BuildRequires: rpmbuild(macros) >= 1.605
96 BuildRequires: sed >= 4.0
99 BuildRequires: swig-python
100 BuildRequires: tcl-devel >= 8.5
101 BuildRequires: tetex-dvips
102 BuildRequires: texinfo
103 BuildRequires: tk-devel >= 8.5
104 BuildRequires: wxGTK2-unicode-devel >= 2.6.0
105 BuildRequires: xorg-lib-libXext-devel
106 BuildRequires: xorg-lib-libICE-devel
107 BuildRequires: xorg-lib-libX11-devel
110 %if %{with ocaml_cairo}
111 BuildRequires: ocaml-cairo2-devel
112 BuildRequires: ocaml-cairo2-gtk-devel
114 BuildRequires: ocaml-idl-devel
115 BuildRequires: ocaml-findlib
116 BuildRequires: ocaml-lablgtk2-devel
118 BuildConflicts: plplot
119 BuildConflicts: plplot-devel
120 Obsoletes: plplot-f77
121 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
123 %define octave_oct_sitedir %(octave-config --oct-site-dir)
124 %define octave_m_sitedir %(octave-config --m-site-dir)
126 %define gcc_target %(%{__cc} -dumpmachine)
127 %define ada_incdir %{_libdir}/gcc/%{gcc_target}/%{cc_version}/adainclude
128 %define ada_objdir %{_libdir}/gcc/%{gcc_target}/%{cc_version}/adalib
131 PLplot is a library of functions that are useful for making scientific
132 plots. It can be used from within compiled languages such as C, C++,
133 FORTRAN and Java, and interactively from interpreted languages such as
134 Octave, Python, Perl and Tcl.
136 The PLplot library can be used to create standard X-Y plots, semilog
137 plots, log-log plots, contour plots, 3D surface plots, mesh plots, bar
138 charts and pie charts. Multiple graphs (of the same or different
139 sizes) may be placed on a single page with multiple lines in each
142 A variety of output file devices such as PostScript, PNG, JPEG, LaTeX
143 and others, as well as interactive devices such as xwin, tk, xterm and
144 Tektronics devices are supported. New devices can be easily added by
145 writing a small number of device dependent routines.
147 %description -l pl.UTF-8
148 PLplot to biblioteka funkcji przydatnych do tworzenia wykresów
149 naukowych. Może być używana z poziomu języków kompilowanych takich jak
150 C, C++, FORTRAN czy Java, albo interaktywnie z poziomu języków
151 interpretowanych takich jak Octave, Python, Perl czy Tcl.
153 Bibliotekę PLplot można wykorzystać do tworzenia standardowych
154 wykresów X-Y, wykresów półlogarytmicznych, wykresów konturowych,
155 wykresów powierzchni trójwymiarowych, wykresów siatek, wykresów
156 słupkowych i kołowych. Na jednej stronie można umieścić wiele wykresów
157 (o tych samych lub różnych rozmiarach), na jednym wykresie może być
160 Obsługiwanych jest wiele urządzeń wyjściowych, w tym PostScript, PNG,
161 JPEG, LaTeX i inne, a także urządzenia interaktywne, takie jak xwin,
162 tk, xterm i Tektronics. Nowe urządzenia można łatwo dodać pisząc parę
163 zależnych od urządzenia funkcji.
166 Summary: ntk driver for PLplot library
167 Summary(pl.UTF-8): Sterownik ntk dla biblioteki PLplot
169 Requires: %{name} = %{version}-%{release}
171 %description driver-ntk
172 ntk (new tk) driver for PLplot library. It supports Tcl/Tk output.
174 %description driver-ntk -l pl.UTF-8
175 Sterownik ntk (new tk) dla biblioteki PLplot. Obsługuje wyjście
179 Summary: pdf driver for PLplot library
180 Summary(pl.UTF-8): Sterownik pdf dla biblioteki PLplot
182 Requires: %{name} = %{version}-%{release}
183 Requires: libharu >= 2.1.0
185 %description driver-pdf
186 pdf driver for PLplot library. It's PDF driver using Haru library.
188 %description driver-pdf -l pl.UTF-8
189 Sterownik pdf dla biblioteki PLplot. Jest to sterownik PDF
190 wykorzystujący bibliotekę Haru.
192 %package driver-psttf
193 Summary: psttf driver for PLplot library
194 Summary(pl.UTF-8): Sterownik psttf dla biblioteki PLplot
196 Requires: %{name} = %{version}-%{release}
198 %description driver-psttf
199 psttf driver for PLplot library. It's PostScript driver using LASi to
202 %description driver-psttf -l pl.UTF-8
203 Sterownik psttf dla biblioteki PLplot. Jest to sterownik
204 postscriptowy, wykorzystujący LASi do obsługi fontów.
207 Summary: Tk drivers for PLplot library
208 Summary(pl.UTF-8): Sterowniki Tk dla biblioteki PLplot
210 Requires: %{name}-tcl = %{version}-%{release}
212 %description driver-tk
213 Tk and tkwin drivers for PLplot library. They support Tcl/Tk output.
215 %description driver-tk -l pl.UTF-8
216 Sterownik Tk i tkwin dla biblioteki PLplot. Obsługują wyjście poprzez
219 %package driver-cairo
220 Summary: Cairo driver for PLplot library
221 Summary(pl.UTF-8): Sterownik cairo dla biblioteki PLplot
223 Requires: %{name} = %{version}-%{release}
225 %description driver-cairo
226 Cairo driver for PLplot library. It supports JPEG and PNG output
229 %description driver-cairo -l pl.UTF-8
230 Sterownik cairo dla biblioteki PLplot. Obsługuje formaty wyjścia JPEG
234 Summary: Qt4 driver for PLplot library
235 Summary(pl.UTF-8): Sterownik Qt4 dla biblioteki PLplot
237 Requires: %{name}-qt4 = %{version}-%{release}
239 %description driver-qt4
240 Qt4 driver for PLplot library. Supports Qt4 output.
242 %description driver-qt4 -l pl.UTF-8
243 Sterownik Qt4 dla biblioteki PLplot. Obsługuje wyjście poprzez Qt4.
245 %package driver-wxwidgets
246 Summary: wxWidgets driver for PLplot library
247 Summary(pl.UTF-8): Sterownik wxWidgets dla biblioteki PLplot
249 Requires: %{name} = %{version}-%{release}
251 %description driver-wxwidgets
252 wxWidgets driver for PLplot library. Supports wxWidgets output.
254 %description driver-wxwidgets -l pl.UTF-8
255 Sterownik wxWidgets dla biblioteki PLplot. Obsługuje wyjście poprzez
259 Summary: xwin driver for PLplot library
260 Summary(pl.UTF-8): Sterownik xwin dla biblioteki PLplot
262 Requires: %{name} = %{version}-%{release}
264 %description driver-xwin
265 xwin driver for PLplot library. It supports X Window System output.
267 %description driver-xwin -l pl.UTF-8
268 Sterownik ntk (new tk) dla biblioteki PLplot. Obsługuje wyjście do
269 okna systemu X Window.
272 Summary: Header files for PLplot library
273 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki PLplot
274 Group: Development/Libraries
275 Requires: %{name} = %{version}-%{release}
276 Requires: freetype-devel >= 2.1
277 Requires: qhull-devel
278 Obsoletes: plplot-f77-devel
279 Obsoletes: plplot-static
282 Header files for PLplot library.
284 %description devel -l pl.UTF-8
285 Pliki nagłówkowe biblioteki PLplot.
288 Summary: PLplot library - C++ binding
289 Summary(pl.UTF-8): Biblioteka PLplot - wiązanie dla C++
291 Requires: %{name} = %{version}-%{release}
294 PLplot library - C++ binding.
296 %description c++ -l pl.UTF-8
297 Biblioteka PLplot - wiązanie dla C++.
300 Summary: PLplot library - C++ binding development files
301 Summary(pl.UTF-8): Biblioteka PLplot - pliki programistyczne wiązania dla C++
302 Group: Development/Libraries
303 Requires: %{name}-c++ = %{version}-%{release}
304 Requires: %{name}-devel = %{version}-%{release}
305 Requires: libstdc++-devel
306 Obsoletes: plplot-c++-static
308 %description c++-devel
309 PLplot library - C++ binding development files.
311 %description c++-devel -l pl.UTF-8
312 Biblioteka PLplot - pliki programistyczne wiązania dla C++.
315 Summary: PLplot library - D binding
316 Summary(pl.UTF-8): Biblioteka PLplot - wiązanie dla języka D
317 Group: Development/Libraries
318 Requires: %{name}-devel = %{version}-%{release}
321 PLplot library - D binding.
323 %description d-devel -l pl.UTF-8
324 Biblioteka PLplot - wiązanie dla języka D.
327 Summary: PLplot library - FORTRAN 95 binding
328 Summary(pl.UTF-8): Biblioteka PLplot - wiązanie dla języka FORTRAN 95
330 Requires: %{name} = %{version}-%{release}
333 PLplot library - FORTRAN 95 binding.
335 %description f95 -l pl.UTF-8
336 Biblioteka PLplot - wiązanie dla języka FORTRAN 95.
339 Summary: PLplot library - FORTRAN 95 binding development files
340 Summary(pl.UTF-8): Biblioteka PLplot - pliki programistyczne wiązania dla języka FORTRAN 95
341 Group: Development/Libraries
342 Requires: %{name}-devel = %{version}-%{release}
343 Requires: %{name}-f95 = %{version}-%{release}
344 Requires: gcc-fortran
346 %description f95-devel
347 PLplot library - FORTRAN 95 binding development files.
349 %description f95-devel -l pl.UTF-8
350 Biblioteka PLplot - pliki programistyczne wiązania dla języka FORTRAN
354 Summary: PLplot library - Ada binding
355 Summary(pl.UTF-8): Biblioteka PLplot - wiązanie dla Ady
357 Requires: %{name} = %{version}-%{release}
360 PLplot library - Ada binding.
362 %description ada -l pl.UTF-8
363 Biblioteka PLplot - wiązanie dla Ady.
366 Summary: PLplot library - Ada binding development files
367 Summary(pl.UTF-8): Biblioteka PLplot - pliki programistyczne wiązania dla Ady
368 Group: Development/Libraries
369 Requires: %{name}-devel = %{version}-%{release}
370 Requires: %{name}-ada = %{version}-%{release}
372 %description ada-devel
373 PLplot library - Ada binding development files.
375 %description ada-devel -l pl.UTF-8
376 Biblioteka PLplot - pliki programistyczne wiązania dla Ady.
379 Summary: PLplot library - Java binding
380 Summary(pl.UTF-8): Biblioteka PLplot - wiązanie dla Javy
382 Requires: %{name} = %{version}-%{release}
385 PLplot library - Java binding.
387 %description java -l pl.UTF-8
388 Biblioteka PLplot - wiązanie dla Javy.
391 Summary: PLplot library - Java binding development files
392 Summary(pl.UTF-8): Biblioteka PLplot - pliki programistyczne wiązania dla Javy
393 Group: Development/Libraries
394 Requires: %{name}-devel = %{version}-%{release}
395 Requires: %{name}-java = %{version}-%{release}
396 Obsoletes: plplot-java-static
398 %description java-devel
399 PLplot library - Java binding development files.
401 %description java-devel -l pl.UTF-8
402 Biblioteka PLplot - pliki programistyczne wiązania dla Javy.
405 Summary: PLplot library - Tcl/Tk binding
406 Summary(pl.UTF-8): Biblioteka PLplot - wiązanie dla Tcl/Tk
408 Requires: %{name} = %{version}-%{release}
411 PLplot library - Tcl/Tk binding.
413 %description tcl -l pl.UTF-8
414 Biblioteka PLplot - wiązanie dla Tcl/Tk.
417 Summary: PLplot library - Tcl/Tk binding development files
418 Summary(pl.UTF-8): Biblioteka PLplot - pliki programistyczne wiązania dla Tcl/Tk
419 Group: Development/Libraries
420 Requires: %{name}-devel = %{version}-%{release}
421 Requires: %{name}-tcl = %{version}-%{release}
422 %{?with_itcl:Requires: itcl-devel}
423 Obsoletes: plplot-tcl-static
425 %description tcl-devel
426 PLplot library - Tcl/Tk binding development files.
428 %description tcl-devel -l pl.UTF-8
429 Biblioteka PLplot - pliki programistyczne wiązania dla Tcl/Tk.
432 Summary: PLplot library - Qt4 binding
433 Summary(pl.UTF-8): Biblioteka PLplot - wiązanie dla Qt4
435 Requires: %{name} = %{version}-%{release}
438 PLplot library - Qt4 binding.
440 %description qt4 -l pl.UTF-8
441 Biblioteka PLplot - wiązanie dla Qt4.
444 Summary: PLplot library - Qt4 binding development files
445 Summary(pl.UTF-8): Biblioteka PLplot - pliki programistyczne wiązania dla Qt4
446 Group: Development/Libraries
447 Requires: %{name}-qt4 = %{version}-%{release}
448 Requires: %{name}-devel = %{version}-%{release}
449 Requires: QtGui-devel
450 Requires: QtSvg-devel
451 Requires: QtXml-devel
453 %description qt4-devel
454 PLplot library - Qt4 binding development files.
456 %description qt4-devel -l pl.UTF-8
457 Biblioteka PLplot - pliki programistyczne wiązania dla Qt4.
460 Summary: PLplot library - wxWidgets binding
461 Summary(pl.UTF-8): Biblioteka PLplot - wiązanie dla wxWidgets
463 Requires: %{name} = %{version}-%{release}
464 Requires: wxGTK2-unicode >= 2.6.0
466 %description wxwidgets
467 PLplot library - wxwidgets binding.
469 %description wxwidgets -l pl.UTF-8
470 Biblioteka PLplot - wiązanie dla wxWidgets.
472 %package wxwidgets-devel
473 Summary: PLplot library - wxWidgets binding development files
474 Summary(pl.UTF-8): Biblioteka PLplot - pliki programistyczne wiązania dla wxWidgets
475 Group: Development/Libraries
476 Requires: %{name}-wxwidgets = %{version}-%{release}
477 Requires: %{name}-devel = %{version}-%{release}
478 Requires: wxGTK2-unicode-devel >= 2.6.0
480 %description wxwidgets-devel
481 PLplot library - wxWidgets binding development files.
483 %description wxwidgets-devel -l pl.UTF-8
484 Biblioteka PLplot - pliki programistyczne wiązania dla wxWidgets.
487 Summary: PLplot library - Octave binding
488 Summary(pl.UTF-8): Biblioteka PLplot - wiązanie dla języka Octave
490 Requires: %{name} = %{version}-%{release}
493 PLplot library - Octave binding.
495 %description octave -l pl.UTF-8
496 Biblioteka PLplot - wiązanie dla języka Octave.
498 %package octave-examples
499 Summary: PLplot library - examples for Octave binding
500 Summary(pl.UTF-8): Biblioteka PLplot - przykłady do wiązania dla języka Octave
501 Group: Development/Libraries
502 Requires: %{name}-devel = %{version}-%{release}
503 Requires: %{name}-octave = %{version}-%{release}
505 %description octave-examples
506 PLplot library - examples for Octave binding.
508 %description octave-examples -l pl.UTF-8
509 Biblioteka PLplot - przykłady do wiązania dla języka Octave.
511 %package -n lua-plplot
512 Summary: Lua binding for PLplot library
513 Summary(pl.UTF-8): Wiązanie języka Lua do biblioteki PLplot
514 Group: Development/Languages
515 Requires: %{name} = %{version}-%{release}
516 Requires: lua51-libs >= 5.1
518 %description -n lua-plplot
519 Lua binding for PLplot library.
521 %description -n lua-plplot -l pl.UTF-8
522 Wiązanie języka Lua do biblioteki PLplot.
524 %package -n ocaml-plplot
525 Summary: OCaml binding for PLplot library
526 Summary(pl.UTF-8): Wiązanie języka OCaml do biblioteki PLplot
528 Requires: %{name} = %{version}-%{release}
529 %requires_eq ocaml-runtime
531 %description -n ocaml-plplot
532 OCaml binding for PLplot library.
534 %description -n ocaml-plplot -l pl.UTF-8
535 Wiązanie języka OCaml do biblioteki PLplot.
537 %package -n ocaml-plplot-devel
538 Summary: Development files for OCaml binding for PLplot library
539 Summary(pl.UTF-8): Wiązanie języka OCaml do biblioteki PLplot - pliki programistyczne
540 Group: Development/Libraries
541 Requires: ocaml-plplot = %{version}-%{release}
544 %description -n ocaml-plplot-devel
545 Development files for OCaml binding for PLplot library.
547 %description -n ocaml-plplot-devel -l pl.UTF-8
548 Wiązanie języka OCaml do biblioteki PLplot - pliki programistyczne.
550 %package -n ocaml-plcairo
551 Summary: PLcairo - Cairo extras for OCaml binding for PLplot library
552 Summary(pl.UTF-8): PLcairo - dodatki Cairo do wiązania języka OCaml do biblioteki PLplot
554 Requires: ocaml-plplot = %{version}-%{release}
555 Requires: ocaml-cairo2
556 Requires: ocaml-cairo2-gtk
557 %requires_eq ocaml-runtime
559 %description -n ocaml-plcairo
560 PLcairo - Cairo extras for OCaml binding for PLplot library.
562 %description -n ocaml-plcairo -l pl.UTF-8
563 PLcairo - dodatki Cairo do wiązania języka OCaml do biblioteki PLplot.
565 %package -n ocaml-plcairo-devel
566 Summary: Development files for PLcairo OCaml library
567 Summary(pl.UTF-8): Pliki programistyczne biblioteki OCamla PLcairo
568 Group: Development/Libraries
569 Requires: ocaml-cairo2-devel
570 Requires: ocaml-cairo2-gtk-devel
571 Requires: ocaml-plcairo = %{version}-%{release}
572 Requires: ocaml-plplot-devel = %{version}-%{release}
575 %description -n ocaml-plcairo-devel
576 Development files for PLcairo OCaml library.
578 %description -n ocaml-plcairo-devel -l pl.UTF-8
579 Pliki programistyczne biblioteki OCamla PLcairo.
581 %package -n python-plplot
582 Summary: PLplot library - Python binding
583 Summary(pl.UTF-8): Biblioteka PLplot - wiązanie dla Pythona
584 Group: Libraries/Python
585 Requires: %{name} = %{version}-%{release}
586 Requires: %{name}-tcl = %{version}-%{release}
587 %pyrequires_eq python-libs
588 Requires: python-numpy
590 %description -n python-plplot
591 PLplot library - Python binding.
593 %description -n python-plplot -l pl.UTF-8
594 Biblioteka PLplot - wiązanie dla Pythona.
596 %package -n python-plplot-qt4
597 Summary: PLplot library - PyQt4 binding
598 Summary(pl.UTF-8): Biblioteka PLplot - wiązanie dla PyQt4
599 Group: Libraries/Python
600 Requires: python-plplot = %{version}-%{release}
601 %pyrequires_eq python-libs
602 Requires: python-numpy
604 %description -n python-plplot-qt4
605 PLplot library - Python/PyQt4 binding.
607 %description -n python-plplot-qt4 -l pl.UTF-8
608 Biblioteka PLplot - wiązanie dla Pythona/PyQt4.
610 %package -n python-plplot-examples
611 Summary: PLplot library - Python binding examples
612 Summary(pl.UTF-8): Biblioteka PLplot - przykłady do wiązania dla Pythona
613 Group: Libraries/Python
614 Requires: %{name}-devel = %{version}-%{release}
615 Requires: python-plplot = %{version}-%{release}
617 %description -n python-plplot-examples
618 PLplot library - Python binding examples.
620 %description -n python-plplot-examples -l pl.UTF-8
621 Biblioteka PLplot - przykłady do wiązania dla Pythona.
635 # required for cmake to find JNI headers/libs when lib64 is in use
636 %{?with_java:export JAVA_HOME=%{_jvmlibdir}/java}
637 # NOTE: no %{_libdir}/jni in PLD, use plain %{_libdir}
641 -DADA_INCLUDE_PATH=%{ada_incdir} \
642 -DADA_LIB_PATH=%{ada_objdir} \
652 -DCMAKE_Java_RUNTIME=%{java} \
653 -DCMAKE_Java_COMPILER=%{javac} \
654 -DCMAKE_Java_ARCHIVE=%{jar} \
655 -DJAR_DIR=%{_javadir} \
656 -DJAVAWRAPPER_DIR=%{_libdir} \
662 -DLUA_EXECUTABLE=%{_bindir}/lua5.1 \
666 -DENABLE_itcl=%{?with_itcl:ON}%{!?with_itcl:OFF} \
667 -DENABLE_itk=%{?with_itcl:ON}%{!?with_itcl:OFF} \
668 -DENABLE_ocaml=%{?with_ocaml:ON}%{!?with_ocaml:OFF} \
669 -DENABLE_octave=%{?with_octave:ON}%{!?with_octave:OFF} \
670 %{!?with_perl_pdl:-DENABLE_pdl=OFF} \
672 -DF95_MOD_DIR=%{_includedir}/plplot \
673 -DOCTAVE_INCLUDE_PATH=%{_includedir}/octave \
674 -DOCTAVE_OCT_DIR=%{octave_oct_sitedir} \
675 -DOCTAVE_M_DIR=%{octave_m_sitedir} \
676 -DPL_FREETYPE_FONT_PATH=/usr/share/fonts/TTF \
677 %{?with_cgm:-DPLD_cgm=ON} \
680 %{?with_plmeta:-DPLD_plmeta=ON} \
682 -DPython_ADDITIONAL_VERSIONS=2.7 \
684 -DUSE_INCRTCL_VERSION_4=ON \
687 -DPLPLOT_ITCL_VERSION="$(rpm -q itcl --qf '%%{VERSION}')" \
688 -DPLPLOT_ITK_VERSION="$(rpm -q itk --qf '%%{VERSION}')" \
689 -DIWIDGETS_VERSIONS_LIST="$(rpm -q iwidgets --qf '%%{VERSION}');$(rpm -q itk --qf '%%{VERSION}');$(rpm -q itcl --qf '%%{VERSION}')" \
691 -DwxWidgets_CONFIG_EXECUTABLE=/usr/bin/wx-gtk2-unicode-config \
692 -DwxWidgets_USE_UNICODE=ON
697 rm -rf $RPM_BUILD_ROOT
698 install -d $RPM_BUILD_ROOT%{_examplesdir}
700 %{__make} -C build install \
701 DESTDIR=$RPM_BUILD_ROOT
703 %{__mv} $RPM_BUILD_ROOT%{_datadir}/plplot%{version}/examples \
704 $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
706 rm -rf installed-docs
707 %{__mv} $RPM_BUILD_ROOT%{_docdir}/plplot installed-docs
709 %py_comp $RPM_BUILD_ROOT%{py_sitedir}
710 %py_ocomp $RPM_BUILD_ROOT%{py_sitedir}
714 rm -rf $RPM_BUILD_ROOT
716 %post -p /sbin/ldconfig
717 %postun -p /sbin/ldconfig
719 %post c++ -p /sbin/ldconfig
720 %postun c++ -p /sbin/ldconfig
722 %post f95 -p /sbin/ldconfig
723 %postun f95 -p /sbin/ldconfig
725 %post ada -p /sbin/ldconfig
726 %postun ada -p /sbin/ldconfig
728 %post tcl -p /sbin/ldconfig
729 %postun tcl -p /sbin/ldconfig
731 %post qt4 -p /sbin/ldconfig
732 %postun qt4 -p /sbin/ldconfig
734 %post wxwidgets -p /sbin/ldconfig
735 %postun wxwidgets -p /sbin/ldconfig
738 %defattr(644,root,root,755)
739 %doc ABOUT AUTHORS ChangeLog.release Copyright FAQ NEWS PROBLEMS README README.release SERVICE ToDo
740 %doc installed-docs/README.{1st.csa,1st.nn,csa,nn,drivers}
742 %attr(755,root,root) %{_bindir}/plm2gif
743 %attr(755,root,root) %{_bindir}/plpr
744 %attr(755,root,root) %{_bindir}/plrender
746 %attr(755,root,root) %{_bindir}/pltek
747 %attr(755,root,root) %{_bindir}/pstex2eps
748 %attr(755,root,root) %{_libdir}/libcsirocsa.so.*.*.*
749 %attr(755,root,root) %ghost %{_libdir}/libcsirocsa.so.0
750 %attr(755,root,root) %{_libdir}/libcsironn.so.*.*.*
751 %attr(755,root,root) %ghost %{_libdir}/libcsironn.so.0
753 %attr(755,root,root) %{_libdir}/libnistcd.so.*.*.*
754 %attr(755,root,root) %ghost %{_libdir}/libnistcd.so.0
756 %attr(755,root,root) %{_libdir}/libqsastime.so.*.*.*
757 %attr(755,root,root) %ghost %{_libdir}/libqsastime.so.0
758 %attr(755,root,root) %{_libdir}/libplplot.so.*.*.*
759 %attr(755,root,root) %ghost %{_libdir}/libplplot.so.14
761 %{_mandir}/man1/plm2gif.1*
762 %{_mandir}/man1/plpr.1*
763 %{_mandir}/man1/plrender.1*
765 %{_mandir}/man1/pltek.1*
766 %{_mandir}/man1/pstex2eps.1*
767 %dir %{_libdir}/plplot%{version}
768 %dir %{_libdir}/plplot%{version}/drivers
770 %attr(755,root,root) %{_libdir}/plplot%{version}/drivers/cgm.so
771 %{_libdir}/plplot%{version}/drivers/cgm.driver_info
773 %attr(755,root,root) %{_libdir}/plplot%{version}/drivers/mem.so
774 %{_libdir}/plplot%{version}/drivers/mem.driver_info
775 %attr(755,root,root) %{_libdir}/plplot%{version}/drivers/null.so
776 %{_libdir}/plplot%{version}/drivers/null.driver_info
778 %attr(755,root,root) %{_libdir}/plplot%{version}/drivers/plmeta.so
779 %{_libdir}/plplot%{version}/drivers/plmeta.driver_info
781 %attr(755,root,root) %{_libdir}/plplot%{version}/drivers/ps.so
782 %{_libdir}/plplot%{version}/drivers/ps.driver_info
783 %attr(755,root,root) %{_libdir}/plplot%{version}/drivers/pstex.so
784 %{_libdir}/plplot%{version}/drivers/pstex.driver_info
785 %attr(755,root,root) %{_libdir}/plplot%{version}/drivers/svg.so
786 %{_libdir}/plplot%{version}/drivers/svg.driver_info
787 %attr(755,root,root) %{_libdir}/plplot%{version}/drivers/xfig.so
788 %{_libdir}/plplot%{version}/drivers/xfig.driver_info
789 %dir %{_datadir}/plplot%{version}
790 %{_datadir}/plplot%{version}/*.map
791 %{_datadir}/plplot%{version}/*.pal
792 %{_datadir}/plplot%{version}/*.fnt
795 %defattr(644,root,root,755)
796 %attr(755,root,root) %{_libdir}/plplot%{version}/drivers/cairo.so
797 %{_libdir}/plplot%{version}/drivers/cairo.driver_info
800 %defattr(644,root,root,755)
801 %attr(755,root,root) %{_libdir}/plplot%{version}/drivers/ntk.so
802 %{_libdir}/plplot%{version}/drivers/ntk.driver_info
805 %defattr(644,root,root,755)
806 %attr(755,root,root) %{_libdir}/plplot%{version}/drivers/pdf.so
807 %{_libdir}/plplot%{version}/drivers/pdf.driver_info
810 %defattr(644,root,root,755)
811 %attr(755,root,root) %{_libdir}/plplot%{version}/drivers/psttf.so
812 %{_libdir}/plplot%{version}/drivers/psttf.driver_info
815 %defattr(644,root,root,755)
816 %attr(755,root,root) %{_libdir}/plplot%{version}/drivers/tk.so
817 %{_libdir}/plplot%{version}/drivers/tk.driver_info
818 %attr(755,root,root) %{_libdir}/plplot%{version}/drivers/tkwin.so
819 %{_libdir}/plplot%{version}/drivers/tkwin.driver_info
822 %defattr(644,root,root,755)
823 %attr(755,root,root) %{_libdir}/plplot%{version}/drivers/qt.so
824 %{_libdir}/plplot%{version}/drivers/qt.driver_info
826 %files driver-wxwidgets
827 %defattr(644,root,root,755)
828 %attr(755,root,root) %{_libdir}/plplot%{version}/drivers/wxwidgets.so
829 %{_libdir}/plplot%{version}/drivers/wxwidgets.driver_info
832 %defattr(644,root,root,755)
833 %attr(755,root,root) %{_libdir}/plplot%{version}/drivers/xwin.so
834 %{_libdir}/plplot%{version}/drivers/xwin.driver_info
837 %defattr(644,root,root,755)
838 %attr(755,root,root) %{_libdir}/libcsirocsa.so
839 %attr(755,root,root) %{_libdir}/libcsironn.so
841 %attr(755,root,root) %{_libdir}/libnistcd.so
843 %attr(755,root,root) %{_libdir}/libplplot.so
844 %attr(755,root,root) %{_libdir}/libqsastime.so
845 %dir %{_includedir}/plplot
847 %{_includedir}/plplot/cd.h
848 %{_includedir}/plplot/defines.h
850 %{_includedir}/plplot/disptab.h
851 %{_includedir}/plplot/drivers.h
852 %{_includedir}/plplot/pdf.h
853 %{_includedir}/plplot/plConfig.h
854 %{_includedir}/plplot/plDevs.h
855 %{_includedir}/plplot/pldebug.h
856 %{_includedir}/plplot/pldll.h
857 %{_includedir}/plplot/plevent.h
858 %{_includedir}/plplot/plplot.h
859 %{_includedir}/plplot/plplotP.h
860 %{_includedir}/plplot/plstrm.h
861 %{_includedir}/plplot/qsastime.h
862 %{_includedir}/plplot/qsastimedll.h
863 # xwin driver (uses X11 headers)
864 %{_includedir}/plplot/plxwd.h
865 %{_pkgconfigdir}/plplot.pc
866 %{_libdir}/cmake/plplot
867 %dir %{_examplesdir}/%{name}-%{version}
868 %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/Chloe.pgm
869 %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/README.Chloe
870 %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/plplot-test.sh
871 %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/plplot-test-interactive.sh
872 %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/test_c.sh
873 %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/test_c_interactive.sh
874 %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/test_diff.sh
876 %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/test_plrender.sh
878 %{_examplesdir}/%{name}-%{version}/c
879 %{_examplesdir}/%{name}-%{version}/cmake
880 %{_examplesdir}/%{name}-%{version}/CMakeLists.txt
881 %{_examplesdir}/%{name}-%{version}/Makefile
883 # perl examples use PDL::Graphics::PLplot module found in perl-PDL
884 %{_examplesdir}/%{name}-%{version}/perl
888 %defattr(644,root,root,755)
889 %attr(755,root,root) %{_libdir}/libplplotcxx.so.*.*.*
890 %attr(755,root,root) %ghost %{_libdir}/libplplotcxx.so.13
893 %defattr(644,root,root,755)
894 %attr(755,root,root) %{_libdir}/libplplotcxx.so
895 %{_includedir}/plplot/plstream.h
896 %{_pkgconfigdir}/plplot-c++.pc
897 %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/test_cxx.sh
898 %{_examplesdir}/%{name}-%{version}/c++
902 %defattr(644,root,root,755)
903 %{_libdir}/libplplotdmd.a
904 %{_includedir}/plplot/plplot.d
905 %{_pkgconfigdir}/plplot-d.pc
906 %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/test_d.sh
907 %{_examplesdir}/%{name}-%{version}/d
911 %defattr(644,root,root,755)
912 %doc bindings/f95/README_array_sizes
913 %attr(755,root,root) %{_libdir}/libplplotf95.so.*.*.*
914 %attr(755,root,root) %ghost %{_libdir}/libplplotf95.so.13
917 %defattr(644,root,root,755)
918 %attr(755,root,root) %{_libdir}/libplplotf95.so
919 %{_libdir}/libplf95demolib.a
920 %{_includedir}/plplot/plf95demolib.mod
921 %{_includedir}/plplot/plplot_double.mod
922 %{_includedir}/plplot/plplot_graphics.mod
923 %{_includedir}/plplot/plplot.mod
924 %{_includedir}/plplot/plplot_private_exposed.mod
925 %{_includedir}/plplot/plplot_private_utilities.mod
926 %{_includedir}/plplot/plplot_single.mod
927 %{_includedir}/plplot/plplot_types.mod
928 %{_pkgconfigdir}/plplot-f95.pc
929 %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/test_f95.sh
930 %{_examplesdir}/%{name}-%{version}/f95
934 %defattr(644,root,root,755)
935 %attr(755,root,root) %{_libdir}/libplplotada.so.*.*.*
936 %attr(755,root,root) %ghost %{_libdir}/libplplotada.so.2
939 %defattr(644,root,root,755)
940 %attr(755,root,root) %{_libdir}/libplplotada.so
941 %{ada_objdir}/plplotada
942 %{ada_incdir}/plplotada
943 %{_pkgconfigdir}/plplot-ada.pc
944 %{_examplesdir}/%{name}-%{version}/ada
945 %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/test_ada.sh
950 %defattr(644,root,root,755)
951 %attr(755,root,root) %{_libdir}/plplotjavac_wrap.so
952 %{_javadir}/plplot.jar
955 %defattr(644,root,root,755)
956 %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/test_java.sh
957 %{_examplesdir}/%{name}-%{version}/java
961 %defattr(644,root,root,755)
962 %attr(755,root,root) %{_bindir}/pltcl
963 %attr(755,root,root) %{_bindir}/plserver
964 %attr(755,root,root) %{_libdir}/libplplottcltk.so.*.*.*
965 %attr(755,root,root) %ghost %{_libdir}/libplplottcltk.so.13
966 %attr(755,root,root) %{_libdir}/libtclmatrix.so.*.*.*
967 %attr(755,root,root) %ghost %{_libdir}/libtclmatrix.so.10
968 %attr(755,root,root) %{_libdir}/libplplottcltk_Main.so.*.*.*
969 %attr(755,root,root) %ghost %{_libdir}/libplplottcltk_Main.so.1
970 %{_datadir}/plplot%{version}/*.tcl
971 %{_datadir}/plplot%{version}/tcl
972 %{_mandir}/man1/pltcl.1*
973 %{_mandir}/man1/plserver.1*
976 %defattr(644,root,root,755)
977 %attr(755,root,root) %{_libdir}/libplplottcltk.so
978 %attr(755,root,root) %{_libdir}/libtclmatrix.so
979 %attr(755,root,root) %{_libdir}/libplplottcltk_Main.so
980 %{_includedir}/plplot/pltcl.h
981 %{_includedir}/plplot/pltk.h
982 %{_includedir}/plplot/tclMatrix.h
983 %{_pkgconfigdir}/plplot-tcl.pc
984 %{_pkgconfigdir}/plplot-tcl_Main.pc
985 %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/test_tcl.sh
986 %{_examplesdir}/%{name}-%{version}/tcl
987 %{_examplesdir}/%{name}-%{version}/tk
990 %defattr(644,root,root,755)
991 %attr(755,root,root) %{_libdir}/libplplotqt.so.*.*.*
992 %attr(755,root,root) %ghost %{_libdir}/libplplotqt.so.2
995 %defattr(644,root,root,755)
996 %attr(755,root,root) %{_libdir}/libplplotqt.so
997 %{_includedir}/plplot/qt.h
998 %{_pkgconfigdir}/plplot-qt.pc
1001 %defattr(644,root,root,755)
1002 %attr(755,root,root) %{_bindir}/wxPLViewer
1003 %attr(755,root,root) %{_libdir}/libplplotwxwidgets.so.*.*.*
1004 %attr(755,root,root) %ghost %{_libdir}/libplplotwxwidgets.so.1
1006 %files wxwidgets-devel
1007 %defattr(644,root,root,755)
1008 %attr(755,root,root) %{_libdir}/libplplotwxwidgets.so
1009 %{_includedir}/plplot/wxPLplot*.h
1010 %{_pkgconfigdir}/plplot-wxwidgets.pc
1014 %defattr(644,root,root,755)
1015 %doc bindings/octave/{BUGS,FGA,README,ToDo,USAGE}
1016 %attr(755,root,root) %{octave_oct_sitedir}/plplot_octave.oct
1017 %{octave_m_sitedir}/PLplot
1018 %{_datadir}/plplot_octave
1019 %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/test_octave_interactive.sh
1021 %files octave-examples
1022 %defattr(644,root,root,755)
1023 %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/test_octave.sh
1024 %{_examplesdir}/%{name}-%{version}/octave
1028 %files -n lua-plplot
1029 %defattr(644,root,root,755)
1030 %dir %{_libdir}/lua/5.1/plplot
1031 %attr(755,root,root) %{_libdir}/lua/5.1/plplot/plplotluac.so
1032 %{_examplesdir}/%{name}-%{version}/lua
1033 %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/test_lua.sh
1037 %files -n ocaml-plplot
1038 %defattr(644,root,root,755)
1039 %attr(755,root,root) %{_libdir}/ocaml/stublibs/dllplplot_stubs.so
1041 %files -n ocaml-plplot-devel
1042 %dir %{_libdir}/ocaml/plplot
1043 %{_libdir}/ocaml/plplot/META
1044 %{_libdir}/ocaml/plplot/libplplot_stubs.a
1045 %{_libdir}/ocaml/plplot/plplot.cma
1046 %{_libdir}/ocaml/plplot/plplot.cmi
1047 %{_libdir}/ocaml/plplot/plplot.mli
1048 %if %{with ocaml_opt}
1049 %{_libdir}/ocaml/plplot/plplot.a
1050 %{_libdir}/ocaml/plplot/plplot.cmxa
1052 %{_pkgconfigdir}/plplot-ocaml.pc
1053 %{_examplesdir}/%{name}-%{version}/ocaml
1054 %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/test_ocaml.sh
1056 %if %{with ocaml_cairo}
1057 %files -n ocaml-plcairo
1058 %defattr(644,root,root,755)
1059 %attr(755,root,root) %{_libdir}/ocaml/stublibs/dllplcairo_stubs.so
1061 %files -n ocaml-plcairo-devel
1062 %dir %{_libdir}/ocaml/plcairo
1063 %{_libdir}/ocaml/plcairo/META
1064 %{_libdir}/ocaml/plcairo/libplcairo_stubs.a
1065 %{_libdir}/ocaml/plcairo/plcairo.cma
1066 %{_libdir}/ocaml/plcairo/plcairo.cmi
1067 %{_libdir}/ocaml/plcairo/plcairo.mli
1068 %if %{with ocaml_opt}
1069 %{_libdir}/ocaml/plcairo/plcairo.a
1070 %{_libdir}/ocaml/plcairo/plcairo.cmxa
1075 %files -n python-plplot
1076 %defattr(644,root,root,755)
1077 %attr(755,root,root) %{py_sitedir}/_plplotcmodule.so
1078 %attr(755,root,root) %{py_sitedir}/plplot_widgetmodule.so
1079 %{py_sitedir}/Plframe.py[co]
1080 %{py_sitedir}/plplotc.py[co]
1081 %{py_sitedir}/plplot.py[co]
1082 %{py_sitedir}/TclSup.py[co]
1084 %files -n python-plplot-qt4
1085 %defattr(644,root,root,755)
1086 %attr(755,root,root) %{py_sitedir}/plplot_pyqt4.so
1088 %files -n python-plplot-examples
1089 %defattr(644,root,root,755)
1090 %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/test_python.sh
1091 %{_examplesdir}/%{name}-%{version}/python