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: 244883879f24a2324f536d624168870d
43 Patch2: %{name}-no-DISPLAY.patch
44 Patch3: %{name}-plmeta.patch
45 Patch7: %{name}-d.patch
46 URL: http://plplot.sourceforge.net/
47 BuildRequires: QtGui-devel >= 4
48 BuildRequires: QtSvg-devel >= 4
49 BuildRequires: QtXml-devel >= 4
50 BuildRequires: agg-devel
51 %{?with_ocaml_cairo:BuildRequires: cairo-devel}
52 BuildRequires: cmake >= 2.6.4
53 BuildRequires: docbook-style-dsssl
54 %{?with_d:BuildRequires: dmd}
55 BuildRequires: fftw3-devel
56 BuildRequires: fftw3-single-devel
57 BuildRequires: freetype-devel >= 2.1.0
58 %{?with_ada:BuildRequires: gcc-ada >= 5:4.1}
59 BuildRequires: gcc-c++
60 BuildRequires: gcc-fortran
61 %{?with_itcl:BuildRequires: itcl-devel >= 3.4.1}
62 %{?with_itcl:BuildRequires: itk-devel >= 3.4}
63 BuildRequires: jadetex
64 %{?with_java:BuildRequires: jdk}
65 %{?with_java:BuildRequires: jpackage-utils}
66 BuildRequires: lapack-devel
67 BuildRequires: libLASi-devel
68 BuildRequires: libharu-devel >= 2.1.0
69 BuildRequires: libjpeg-devel
70 BuildRequires: libltdl-devel
71 BuildRequires: libpng-devel
72 BuildRequires: libstdc++-devel
73 %{?with_lua:BuildRequires: lua51 >= 5.1}
74 %{?with_lua:BuildRequires: lua51-devel >= 5.1}
75 %{?with_octave:BuildRequires: octave-devel >= 2:3.4.2}
76 BuildRequires: pango-devel
77 %{?with_perl_pdl:BuildRequires: perl-PDL}
78 BuildRequires: perl-XML-DOM
79 BuildRequires: perl-XML-Parser
80 BuildRequires: perl-XML-SAX-Expat
81 BuildRequires: pkgconfig
82 BuildRequires: pango-devel
83 BuildRequires: sip-PyQt5
84 BuildRequires: python-PyQt5-uic
85 BuildRequires: python-PyQt5-sip
86 BuildRequires: python-numpy-devel >= 15.3
87 BuildRequires: python-devel >= 1:2.3
88 BuildRequires: python-sip-devel
89 BuildRequires: qhull-devel >= 2011.1
90 BuildRequires: qt5-build >= 4
91 BuildRequires: qt5-qmake >= 4
92 BuildRequires: rpm-pythonprov
93 BuildRequires: rpmbuild(macros) >= 1.605
94 BuildRequires: sed >= 4.0
97 BuildRequires: swig-python
98 BuildRequires: tcl-devel >= 8.5
99 BuildRequires: tetex-dvips
100 BuildRequires: texinfo
101 BuildRequires: tk-devel >= 8.5
102 BuildRequires: wxGTK2-unicode-devel >= 2.6.0
103 BuildRequires: xorg-lib-libXext-devel
104 BuildRequires: xorg-lib-libICE-devel
105 BuildRequires: xorg-lib-libX11-devel
108 %if %{with ocaml_cairo}
109 BuildRequires: ocaml-cairo2-devel
110 BuildRequires: ocaml-cairo2-gtk-devel
112 BuildRequires: ocaml-idl-devel
113 BuildRequires: ocaml-findlib
114 BuildRequires: ocaml-lablgtk2-devel
116 BuildConflicts: plplot
117 BuildConflicts: plplot-devel
118 Obsoletes: plplot-f77
119 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
121 %define octave_oct_sitedir %(octave-config --oct-site-dir)
122 %define octave_m_sitedir %(octave-config --m-site-dir)
124 %define gcc_target %(%{__cc} -dumpmachine)
125 %define ada_incdir %{_libdir}/gcc/%{gcc_target}/%{cc_version}/adainclude
126 %define ada_objdir %{_libdir}/gcc/%{gcc_target}/%{cc_version}/adalib
129 PLplot is a library of functions that are useful for making scientific
130 plots. It can be used from within compiled languages such as C, C++,
131 FORTRAN and Java, and interactively from interpreted languages such as
132 Octave, Python, Perl and Tcl.
134 The PLplot library can be used to create standard X-Y plots, semilog
135 plots, log-log plots, contour plots, 3D surface plots, mesh plots, bar
136 charts and pie charts. Multiple graphs (of the same or different
137 sizes) may be placed on a single page with multiple lines in each
140 A variety of output file devices such as PostScript, PNG, JPEG, LaTeX
141 and others, as well as interactive devices such as xwin, tk, xterm and
142 Tektronics devices are supported. New devices can be easily added by
143 writing a small number of device dependent routines.
145 %description -l pl.UTF-8
146 PLplot to biblioteka funkcji przydatnych do tworzenia wykresów
147 naukowych. Może być używana z poziomu języków kompilowanych takich jak
148 C, C++, FORTRAN czy Java, albo interaktywnie z poziomu języków
149 interpretowanych takich jak Octave, Python, Perl czy Tcl.
151 Bibliotekę PLplot można wykorzystać do tworzenia standardowych
152 wykresów X-Y, wykresów półlogarytmicznych, wykresów konturowych,
153 wykresów powierzchni trójwymiarowych, wykresów siatek, wykresów
154 słupkowych i kołowych. Na jednej stronie można umieścić wiele wykresów
155 (o tych samych lub różnych rozmiarach), na jednym wykresie może być
158 Obsługiwanych jest wiele urządzeń wyjściowych, w tym PostScript, PNG,
159 JPEG, LaTeX i inne, a także urządzenia interaktywne, takie jak xwin,
160 tk, xterm i Tektronics. Nowe urządzenia można łatwo dodać pisząc parę
161 zależnych od urządzenia funkcji.
164 Summary: ntk driver for PLplot library
165 Summary(pl.UTF-8): Sterownik ntk dla biblioteki PLplot
167 Requires: %{name} = %{version}-%{release}
169 %description driver-ntk
170 ntk (new tk) driver for PLplot library. It supports Tcl/Tk output.
172 %description driver-ntk -l pl.UTF-8
173 Sterownik ntk (new tk) dla biblioteki PLplot. Obsługuje wyjście
177 Summary: pdf driver for PLplot library
178 Summary(pl.UTF-8): Sterownik pdf dla biblioteki PLplot
180 Requires: %{name} = %{version}-%{release}
181 Requires: libharu >= 2.1.0
183 %description driver-pdf
184 pdf driver for PLplot library. It's PDF driver using Haru library.
186 %description driver-pdf -l pl.UTF-8
187 Sterownik pdf dla biblioteki PLplot. Jest to sterownik PDF
188 wykorzystujący bibliotekę Haru.
190 %package driver-psttf
191 Summary: psttf driver for PLplot library
192 Summary(pl.UTF-8): Sterownik psttf dla biblioteki PLplot
194 Requires: %{name} = %{version}-%{release}
196 %description driver-psttf
197 psttf driver for PLplot library. It's PostScript driver using LASi to
200 %description driver-psttf -l pl.UTF-8
201 Sterownik psttf dla biblioteki PLplot. Jest to sterownik
202 postscriptowy, wykorzystujący LASi do obsługi fontów.
205 Summary: Tk drivers for PLplot library
206 Summary(pl.UTF-8): Sterowniki Tk dla biblioteki PLplot
208 Requires: %{name}-tcl = %{version}-%{release}
210 %description driver-tk
211 Tk and tkwin drivers for PLplot library. They support Tcl/Tk output.
213 %description driver-tk -l pl.UTF-8
214 Sterownik Tk i tkwin dla biblioteki PLplot. Obsługują wyjście poprzez
217 %package driver-cairo
218 Summary: Cairo driver for PLplot library
219 Summary(pl.UTF-8): Sterownik cairo dla biblioteki PLplot
221 Requires: %{name} = %{version}-%{release}
223 %description driver-cairo
224 Cairo driver for PLplot library. It supports JPEG and PNG output
227 %description driver-cairo -l pl.UTF-8
228 Sterownik cairo dla biblioteki PLplot. Obsługuje formaty wyjścia JPEG
232 Summary: Qt5 driver for PLplot library
233 Summary(pl.UTF-8): Sterownik Qt5 dla biblioteki PLplot
235 Requires: %{name}-qt5 = %{version}-%{release}
237 %description driver-qt5
238 Qt5 driver for PLplot library. Supports Qt5 output.
240 %description driver-qt5 -l pl.UTF-8
241 Sterownik Qt5 dla biblioteki PLplot. Obsługuje wyjście poprzez Qt5.
243 %package driver-wxwidgets
244 Summary: wxWidgets driver for PLplot library
245 Summary(pl.UTF-8): Sterownik wxWidgets dla biblioteki PLplot
247 Requires: %{name} = %{version}-%{release}
249 %description driver-wxwidgets
250 wxWidgets driver for PLplot library. Supports wxWidgets output.
252 %description driver-wxwidgets -l pl.UTF-8
253 Sterownik wxWidgets dla biblioteki PLplot. Obsługuje wyjście poprzez
257 Summary: xwin driver for PLplot library
258 Summary(pl.UTF-8): Sterownik xwin dla biblioteki PLplot
260 Requires: %{name} = %{version}-%{release}
262 %description driver-xwin
263 xwin driver for PLplot library. It supports X Window System output.
265 %description driver-xwin -l pl.UTF-8
266 Sterownik ntk (new tk) dla biblioteki PLplot. Obsługuje wyjście do
267 okna systemu X Window.
270 Summary: Header files for PLplot library
271 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki PLplot
272 Group: Development/Libraries
273 Requires: %{name} = %{version}-%{release}
274 Requires: freetype-devel >= 2.1
275 Requires: qhull-devel
276 Obsoletes: plplot-f77-devel
277 Obsoletes: plplot-static
280 Header files for PLplot library.
282 %description devel -l pl.UTF-8
283 Pliki nagłówkowe biblioteki PLplot.
286 Summary: PLplot library - C++ binding
287 Summary(pl.UTF-8): Biblioteka PLplot - wiązanie dla C++
289 Requires: %{name} = %{version}-%{release}
292 PLplot library - C++ binding.
294 %description c++ -l pl.UTF-8
295 Biblioteka PLplot - wiązanie dla C++.
298 Summary: PLplot library - C++ binding development files
299 Summary(pl.UTF-8): Biblioteka PLplot - pliki programistyczne wiązania dla C++
300 Group: Development/Libraries
301 Requires: %{name}-c++ = %{version}-%{release}
302 Requires: %{name}-devel = %{version}-%{release}
303 Requires: libstdc++-devel
304 Obsoletes: plplot-c++-static
306 %description c++-devel
307 PLplot library - C++ binding development files.
309 %description c++-devel -l pl.UTF-8
310 Biblioteka PLplot - pliki programistyczne wiązania dla C++.
313 Summary: PLplot library - D binding
314 Summary(pl.UTF-8): Biblioteka PLplot - wiązanie dla języka D
315 Group: Development/Libraries
316 Requires: %{name}-devel = %{version}-%{release}
319 PLplot library - D binding.
321 %description d-devel -l pl.UTF-8
322 Biblioteka PLplot - wiązanie dla języka D.
325 Summary: PLplot library - FORTRAN 95 binding
326 Summary(pl.UTF-8): Biblioteka PLplot - wiązanie dla języka FORTRAN 95
328 Requires: %{name} = %{version}-%{release}
329 Obsoletes: plplot-f95
332 PLplot library - FORTRAN 95 binding.
334 %description fortran -l pl.UTF-8
335 Biblioteka PLplot - wiązanie dla języka FORTRAN 95.
337 %package fortran-devel
338 Summary: PLplot library - FORTRAN 95 binding development files
339 Summary(pl.UTF-8): Biblioteka PLplot - pliki programistyczne wiązania dla języka FORTRAN 95
340 Group: Development/Libraries
341 Requires: %{name}-devel = %{version}-%{release}
342 Requires: %{name}-fortran = %{version}-%{release}
343 Requires: gcc-fortran
344 Obsoletes: plplot-f95-devel
346 %description fortran-devel
347 PLplot library - FORTRAN 95 binding development files.
349 %description fortran-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 - Qt5 binding
433 Summary(pl.UTF-8): Biblioteka PLplot - wiązanie dla Qt5
435 Requires: %{name} = %{version}-%{release}
438 PLplot library - Qt5 binding.
440 %description qt5 -l pl.UTF-8
441 Biblioteka PLplot - wiązanie dla Qt5.
444 Summary: PLplot library - Qt5 binding development files
445 Summary(pl.UTF-8): Biblioteka PLplot - pliki programistyczne wiązania dla Qt5
446 Group: Development/Libraries
447 Requires: %{name}-qt5 = %{version}-%{release}
448 Requires: %{name}-devel = %{version}-%{release}
449 Requires: QtGui-devel
450 Requires: QtSvg-devel
451 Requires: QtXml-devel
453 %description qt5-devel
454 PLplot library - Qt5 binding development files.
456 %description qt5-devel -l pl.UTF-8
457 Biblioteka PLplot - pliki programistyczne wiązania dla Qt5.
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-qt5
597 Summary: PLplot library - PyQt5 binding
598 Summary(pl.UTF-8): Biblioteka PLplot - wiązanie dla PyQt5
599 Group: Libraries/Python
600 Requires: python-plplot = %{version}-%{release}
601 %pyrequires_eq python-libs
602 Requires: python-numpy
604 %description -n python-plplot-qt5
605 PLplot library - Python/PyQt5 binding.
607 %description -n python-plplot-qt5 -l pl.UTF-8
608 Biblioteka PLplot - wiązanie dla Pythona/PyQt5.
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.
632 # required for cmake to find JNI headers/libs when lib64 is in use
633 %{?with_java:export JAVA_HOME=%{_jvmlibdir}/java}
634 # NOTE: no %{_libdir}/jni in PLD, use plain %{_libdir}
638 -DADA_INCLUDE_DIR=%{ada_incdir} \
639 -DADA_LIB_DIR=%{ada_objdir} \
649 -DCMAKE_Java_RUNTIME=%{java} \
650 -DCMAKE_Java_COMPILER=%{javac} \
651 -DCMAKE_Java_ARCHIVE=%{jar} \
652 -DJAR_DIR=%{_javadir} \
653 -DJAVAWRAPPER_DIR=%{_libdir} \
660 -DREQUIRED_LUA_VERSION=5.1 \
664 -DENABLE_itcl=%{?with_itcl:ON}%{!?with_itcl:OFF} \
665 -DENABLE_itk=%{?with_itcl:ON}%{!?with_itcl:OFF} \
668 -DOCAML_INSTALL_DIR=%{_libdir}/ocaml \
672 -DENABLE_octave=%{?with_octave:ON}%{!?with_octave:OFF} \
673 %{!?with_perl_pdl:-DENABLE_pdl=OFF} \
675 -DPLPLOT_USE_QT5=ON \
676 -DFORTRAN_MOD_DIR=%{_includedir}/plplot \
677 -DOCTAVE_INCLUDE_PATH=%{_includedir}/octave \
678 -DOCTAVE_OCT_DIR=%{octave_oct_sitedir} \
679 -DOCTAVE_M_DIR=%{octave_m_sitedir} \
680 -DPL_FREETYPE_FONT_PATH=/usr/share/fonts/TTF \
681 %{?with_cgm:-DPLD_cgm=ON} \
684 %{?with_plmeta:-DPLD_plmeta=ON} \
687 -DPython_ADDITIONAL_VERSIONS=2.7 \
688 -DUSE_INCRTCL_VERSION_4=ON \
691 -DPLPLOT_ITCL_VERSION="$(rpm -q itcl --qf '%%{VERSION}')" \
692 -DPLPLOT_ITK_VERSION="$(rpm -q itk --qf '%%{VERSION}')" \
693 -DIWIDGETS_VERSIONS_LIST="$(rpm -q iwidgets --qf '%%{VERSION}');$(rpm -q itk --qf '%%{VERSION}');$(rpm -q itcl --qf '%%{VERSION}')" \
695 -DwxWidgets_CONFIG_EXECUTABLE=/usr/bin/wx-gtk2-unicode-config \
696 -DwxWidgets_USE_UNICODE=ON
701 rm -rf $RPM_BUILD_ROOT
702 install -d $RPM_BUILD_ROOT%{_examplesdir}
704 %{__make} -C build install \
705 DESTDIR=$RPM_BUILD_ROOT
707 %{__mv} $RPM_BUILD_ROOT%{_datadir}/plplot%{version}/examples \
708 $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
710 %{__rm} -rf installed-docs
711 %{__mv} $RPM_BUILD_ROOT%{_docdir}/plplot installed-docs
713 %py_comp $RPM_BUILD_ROOT%{py_sitedir}
714 %py_ocomp $RPM_BUILD_ROOT%{py_sitedir}
718 rm -rf $RPM_BUILD_ROOT
720 %post -p /sbin/ldconfig
721 %postun -p /sbin/ldconfig
723 %post c++ -p /sbin/ldconfig
724 %postun c++ -p /sbin/ldconfig
726 %post fortran -p /sbin/ldconfig
727 %postun fortran -p /sbin/ldconfig
729 %post ada -p /sbin/ldconfig
730 %postun ada -p /sbin/ldconfig
732 %post tcl -p /sbin/ldconfig
733 %postun tcl -p /sbin/ldconfig
735 %post qt5 -p /sbin/ldconfig
736 %postun qt5 -p /sbin/ldconfig
738 %post wxwidgets -p /sbin/ldconfig
739 %postun wxwidgets -p /sbin/ldconfig
742 %defattr(644,root,root,755)
743 %doc ABOUT AUTHORS ChangeLog.release Copyright FAQ NEWS PROBLEMS README README.release SERVICE ToDo
744 %doc installed-docs/README.{csa,nn,drivers}
746 %attr(755,root,root) %{_bindir}/plm2gif
747 %attr(755,root,root) %{_bindir}/plpr
748 %attr(755,root,root) %{_bindir}/plrender
750 %attr(755,root,root) %{_bindir}/pltek
751 %attr(755,root,root) %{_bindir}/pstex2eps
752 %attr(755,root,root) %{_libdir}/libcsirocsa.so.*.*.*
753 %attr(755,root,root) %ghost %{_libdir}/libcsirocsa.so.0
754 %attr(755,root,root) %{_libdir}/libcsironn.so.*.*.*
755 %attr(755,root,root) %ghost %{_libdir}/libcsironn.so.0
757 %attr(755,root,root) %{_libdir}/libnistcd.so.*.*.*
758 %attr(755,root,root) %ghost %{_libdir}/libnistcd.so.0
760 %attr(755,root,root) %{_libdir}/libqsastime.so.*.*.*
761 %attr(755,root,root) %ghost %{_libdir}/libqsastime.so.0
762 %attr(755,root,root) %{_libdir}/libplplot.so.*.*.*
763 %attr(755,root,root) %ghost %{_libdir}/libplplot.so.16
765 %{_mandir}/man1/plm2gif.1*
766 %{_mandir}/man1/plpr.1*
767 %{_mandir}/man1/plrender.1*
769 %{_mandir}/man1/pltek.1*
770 %{_mandir}/man1/pstex2eps.1*
771 %dir %{_libdir}/plplot%{version}
772 %dir %{_libdir}/plplot%{version}/drivers
774 %attr(755,root,root) %{_libdir}/plplot%{version}/drivers/cgm.so
775 %{_libdir}/plplot%{version}/drivers/cgm.driver_info
777 %attr(755,root,root) %{_libdir}/plplot%{version}/drivers/mem.so
778 %{_libdir}/plplot%{version}/drivers/mem.driver_info
779 %attr(755,root,root) %{_libdir}/plplot%{version}/drivers/null.so
780 %{_libdir}/plplot%{version}/drivers/null.driver_info
782 %attr(755,root,root) %{_libdir}/plplot%{version}/drivers/plmeta.so
783 %{_libdir}/plplot%{version}/drivers/plmeta.driver_info
785 %attr(755,root,root) %{_libdir}/plplot%{version}/drivers/ps.so
786 %{_libdir}/plplot%{version}/drivers/ps.driver_info
787 %attr(755,root,root) %{_libdir}/plplot%{version}/drivers/pstex.so
788 %{_libdir}/plplot%{version}/drivers/pstex.driver_info
789 %attr(755,root,root) %{_libdir}/plplot%{version}/drivers/svg.so
790 %{_libdir}/plplot%{version}/drivers/svg.driver_info
791 %attr(755,root,root) %{_libdir}/plplot%{version}/drivers/xfig.so
792 %{_libdir}/plplot%{version}/drivers/xfig.driver_info
793 %dir %{_datadir}/plplot%{version}
794 %{_datadir}/plplot%{version}/*.pal
795 %{_datadir}/plplot%{version}/*.fnt
798 %defattr(644,root,root,755)
799 %attr(755,root,root) %{_libdir}/plplot%{version}/drivers/cairo.so
800 %{_libdir}/plplot%{version}/drivers/cairo.driver_info
803 %defattr(644,root,root,755)
804 %attr(755,root,root) %{_libdir}/plplot%{version}/drivers/ntk.so
805 %{_libdir}/plplot%{version}/drivers/ntk.driver_info
808 %defattr(644,root,root,755)
809 %attr(755,root,root) %{_libdir}/plplot%{version}/drivers/pdf.so
810 %{_libdir}/plplot%{version}/drivers/pdf.driver_info
813 %defattr(644,root,root,755)
814 %attr(755,root,root) %{_libdir}/plplot%{version}/drivers/psttf.so
815 %{_libdir}/plplot%{version}/drivers/psttf.driver_info
818 %defattr(644,root,root,755)
819 %attr(755,root,root) %{_libdir}/plplot%{version}/drivers/tk.so
820 %{_libdir}/plplot%{version}/drivers/tk.driver_info
821 %attr(755,root,root) %{_libdir}/plplot%{version}/drivers/tkwin.so
822 %{_libdir}/plplot%{version}/drivers/tkwin.driver_info
825 %defattr(644,root,root,755)
826 %attr(755,root,root) %{_libdir}/plplot%{version}/drivers/qt.so
827 %{_libdir}/plplot%{version}/drivers/qt.driver_info
829 %files driver-wxwidgets
830 %defattr(644,root,root,755)
831 %attr(755,root,root) %{_libdir}/plplot%{version}/drivers/wxwidgets.so
832 %{_libdir}/plplot%{version}/drivers/wxwidgets.driver_info
835 %defattr(644,root,root,755)
836 %attr(755,root,root) %{_libdir}/plplot%{version}/drivers/xwin.so
837 %{_libdir}/plplot%{version}/drivers/xwin.driver_info
840 %defattr(644,root,root,755)
841 %attr(755,root,root) %{_libdir}/libcsirocsa.so
842 %attr(755,root,root) %{_libdir}/libcsironn.so
844 %attr(755,root,root) %{_libdir}/libnistcd.so
846 %attr(755,root,root) %{_libdir}/libplplot.so
847 %attr(755,root,root) %{_libdir}/libqsastime.so
848 %dir %{_includedir}/plplot
850 %{_includedir}/plplot/cd.h
851 %{_includedir}/plplot/defines.h
853 %{_includedir}/plplot/csa.h
854 %{_includedir}/plplot/csadll.h
855 %{_includedir}/plplot/disptab.h
856 %{_includedir}/plplot/drivers.h
857 %{_includedir}/plplot/nn.h
858 %{_includedir}/plplot/nndll.h
859 %{_includedir}/plplot/pdf.h
860 %{_includedir}/plplot/plConfig.h
861 %{_includedir}/plplot/plDevs.h
862 %{_includedir}/plplot/pldebug.h
863 %{_includedir}/plplot/pldll.h
864 %{_includedir}/plplot/plevent.h
865 %{_includedir}/plplot/plplot.h
866 %{_includedir}/plplot/plplotP.h
867 %{_includedir}/plplot/plstrm.h
868 %{_includedir}/plplot/qsastime.h
869 %{_includedir}/plplot/qsastimedll.h
870 # xwin driver (uses X11 headers)
871 %{_includedir}/plplot/plxwd.h
872 %{_pkgconfigdir}/plplot.pc
873 %{_libdir}/cmake/plplot
874 %dir %{_examplesdir}/%{name}-%{version}
875 %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/Chloe.pgm
876 %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/README.Chloe
877 %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/plplot-test.sh
878 %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/plplot-test-interactive.sh
879 %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/test_c.sh
880 %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/test_c_interactive.sh
881 %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/test_diff.sh
883 %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/test_plrender.sh
885 %{_examplesdir}/%{name}-%{version}/c
886 %{_examplesdir}/%{name}-%{version}/cmake
887 %{_examplesdir}/%{name}-%{version}/CMakeLists.txt
888 %{_examplesdir}/%{name}-%{version}/Makefile
890 # perl examples use PDL::Graphics::PLplot module found in perl-PDL
891 %{_examplesdir}/%{name}-%{version}/perl
895 %defattr(644,root,root,755)
896 %attr(755,root,root) %{_libdir}/libplplotcxx.so.*.*.*
897 %attr(755,root,root) %ghost %{_libdir}/libplplotcxx.so.14
900 %defattr(644,root,root,755)
901 %attr(755,root,root) %{_libdir}/libplplotcxx.so
902 %{_includedir}/plplot/plstream.h
903 %{_pkgconfigdir}/plplot-c++.pc
904 %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/test_cxx.sh
905 %{_examplesdir}/%{name}-%{version}/c++
909 %defattr(644,root,root,755)
910 %{_libdir}/libplplotdmd.a
911 %{_includedir}/plplot/plplot.d
912 %{_pkgconfigdir}/plplot-d.pc
913 %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/test_d.sh
914 %{_examplesdir}/%{name}-%{version}/d
918 %defattr(644,root,root,755)
919 %doc bindings/fortran/README_array_sizes
920 %attr(755,root,root) %{_libdir}/libplplotfortran.so.*.*.*
921 %attr(755,root,root) %ghost %{_libdir}/libplplotfortran.so.0
924 %defattr(644,root,root,755)
925 %attr(755,root,root) %{_libdir}/libplplotfortran.so
926 %{_libdir}/libplfortrandemolib.a
927 %{_includedir}/plplot/plfortrandemolib.mod
928 %{_includedir}/plplot/plplot_double.mod
929 %{_includedir}/plplot/plplot_graphics.mod
930 %{_includedir}/plplot/plplot.mod
931 %{_includedir}/plplot/plplot_private_exposed.mod
932 %{_includedir}/plplot/plplot_private_utilities.mod
933 %{_includedir}/plplot/plplot_single.mod
934 %{_includedir}/plplot/plplot_types.mod
935 %{_pkgconfigdir}/plplot-fortran.pc
936 %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/test_fortran.sh
937 %{_examplesdir}/%{name}-%{version}/fortran
941 %defattr(644,root,root,755)
942 %attr(755,root,root) %{_libdir}/libplplotada.so.*.*.*
943 %attr(755,root,root) %ghost %{_libdir}/libplplotada.so.4
946 %defattr(644,root,root,755)
947 %attr(755,root,root) %{_libdir}/libplplotada.so
948 %{ada_objdir}/plplot_*.ali
949 %{ada_incdir}/plplot*.ad*
950 %{_pkgconfigdir}/plplot-ada.pc
951 %{_examplesdir}/%{name}-%{version}/ada
952 %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/test_ada.sh
957 %defattr(644,root,root,755)
958 %attr(755,root,root) %{_libdir}/libplplotjavac_wrap.so
959 %{_javadir}/plplot.jar
962 %defattr(644,root,root,755)
963 %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/test_java.sh
964 %{_examplesdir}/%{name}-%{version}/java
968 %defattr(644,root,root,755)
969 %attr(755,root,root) %{_bindir}/pltcl
970 %attr(755,root,root) %{_bindir}/plserver
971 %attr(755,root,root) %{_libdir}/libplplottcltk.so.*.*.*
972 %attr(755,root,root) %ghost %{_libdir}/libplplottcltk.so.14
973 %attr(755,root,root) %{_libdir}/libtclmatrix.so.*.*.*
974 %attr(755,root,root) %ghost %{_libdir}/libtclmatrix.so.10
975 %attr(755,root,root) %{_libdir}/libplplottcltk_Main.so.*.*.*
976 %attr(755,root,root) %ghost %{_libdir}/libplplottcltk_Main.so.1
977 %{_datadir}/plplot%{version}/*.tcl
978 %{_datadir}/plplot%{version}/tcl
979 %{_mandir}/man1/pltcl.1*
980 %{_mandir}/man1/plserver.1*
983 %defattr(644,root,root,755)
984 %attr(755,root,root) %{_libdir}/libplplottcltk.so
985 %attr(755,root,root) %{_libdir}/libtclmatrix.so
986 %attr(755,root,root) %{_libdir}/libplplottcltk_Main.so
987 %{_includedir}/plplot/pltcl.h
988 %{_includedir}/plplot/pltk.h
989 %{_includedir}/plplot/tclMatrix.h
990 %{_pkgconfigdir}/plplot-tcl.pc
991 %{_pkgconfigdir}/plplot-tcl_Main.pc
992 %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/test_tcl.sh
993 %{_examplesdir}/%{name}-%{version}/tcl
994 %{_examplesdir}/%{name}-%{version}/tk
997 %defattr(644,root,root,755)
998 %attr(755,root,root) %{_libdir}/libplplotqt.so.*.*.*
999 %attr(755,root,root) %ghost %{_libdir}/libplplotqt.so.2
1002 %defattr(644,root,root,755)
1003 %attr(755,root,root) %{_libdir}/libplplotqt.so
1004 %{_includedir}/plplot/qt.h
1005 %{_pkgconfigdir}/plplot-qt.pc
1008 %defattr(644,root,root,755)
1009 %attr(755,root,root) %{_bindir}/wxPLViewer
1010 %attr(755,root,root) %{_libdir}/libplplotwxwidgets.so.*.*.*
1011 %attr(755,root,root) %ghost %{_libdir}/libplplotwxwidgets.so.1
1013 %files wxwidgets-devel
1014 %defattr(644,root,root,755)
1015 %attr(755,root,root) %{_libdir}/libplplotwxwidgets.so
1016 %{_includedir}/plplot/wxPLplot*.h
1017 %{_pkgconfigdir}/plplot-wxwidgets.pc
1021 %defattr(644,root,root,755)
1022 %doc bindings/octave/{BUGS,FGA,README,ToDo,USAGE}
1023 %attr(755,root,root) %{octave_oct_sitedir}/plplot_octave.oct
1024 %{octave_m_sitedir}/*.m
1025 %{_datadir}/plplot_octave
1026 %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/test_octave_interactive.sh
1028 %files octave-examples
1029 %defattr(644,root,root,755)
1030 %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/test_octave.sh
1031 %{_examplesdir}/%{name}-%{version}/octave
1035 %files -n lua-plplot
1036 %defattr(644,root,root,755)
1037 %dir %{_libdir}/lua/5.1/plplot
1038 %attr(755,root,root) %{_libdir}/lua/5.1/plplot/plplotluac.so
1039 %{_examplesdir}/%{name}-%{version}/lua
1040 %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/test_lua.sh
1044 %files -n ocaml-plplot
1045 %defattr(644,root,root,755)
1046 %attr(755,root,root) %{_libdir}/ocaml/stublibs/dllplplot_stubs.so
1048 %files -n ocaml-plplot-devel
1049 %dir %{_libdir}/ocaml/plplot
1050 %{_libdir}/ocaml/plplot/META
1051 %{_libdir}/ocaml/plplot/libplplot_stubs.a
1052 %{_libdir}/ocaml/plplot/plplot.cma
1053 %{_libdir}/ocaml/plplot/plplot.cmi
1054 %{_libdir}/ocaml/plplot/plplot.mli
1055 %if %{with ocaml_opt}
1056 %{_libdir}/ocaml/plplot/plplot.a
1057 %{_libdir}/ocaml/plplot/plplot.cmx
1058 %{_libdir}/ocaml/plplot/plplot.cmxa
1060 %{_pkgconfigdir}/plplot-ocaml.pc
1061 %{_examplesdir}/%{name}-%{version}/ocaml
1062 %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/test_ocaml.sh
1064 %if %{with ocaml_cairo}
1065 %files -n ocaml-plcairo
1066 %defattr(644,root,root,755)
1067 %attr(755,root,root) %{_libdir}/ocaml/stublibs/dllplcairo_stubs.so
1069 %files -n ocaml-plcairo-devel
1070 %dir %{_libdir}/ocaml/plcairo
1071 %{_libdir}/ocaml/plcairo/META
1072 %{_libdir}/ocaml/plcairo/libplcairo_stubs.a
1073 %{_libdir}/ocaml/plcairo/plcairo.cma
1074 %{_libdir}/ocaml/plcairo/plcairo.cmi
1075 %{_libdir}/ocaml/plcairo/plcairo.mli
1076 %if %{with ocaml_opt}
1077 %{_libdir}/ocaml/plcairo/plcairo.a
1078 %{_libdir}/ocaml/plcairo/plcairo.cmxa
1083 %files -n python-plplot
1084 %defattr(644,root,root,755)
1085 %attr(755,root,root) %{py_sitedir}/_Pltk_init.so
1086 %attr(755,root,root) %{py_sitedir}/_plplotc.so
1087 %{py_sitedir}/Plframe.py[co]
1088 %{py_sitedir}/Pltk_init.py[co]
1089 %{py_sitedir}/plplotc.py[co]
1090 %{py_sitedir}/plplot.py[co]
1091 %{py_sitedir}/TclSup.py[co]
1093 %files -n python-plplot-qt5
1094 %defattr(644,root,root,755)
1095 %attr(755,root,root) %{py_sitedir}/plplot_pyqt5.so
1097 %files -n python-plplot-examples
1098 %defattr(644,root,root,755)
1099 %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/test_python.sh
1100 %{_examplesdir}/%{name}-%{version}/python