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: 36aec5bfadc2e207cf8ee39f573c9303
43 Patch0: %{name}-no-DISPLAY.patch
44 Patch1: %{name}-plmeta.patch
45 Patch2: %{name}-d.patch
47 URL: http://plplot.sourceforge.net/
48 BuildRequires: Qt5Gui-devel
49 BuildRequires: Qt5PrintSupport-devel
50 BuildRequires: Qt5Svg-devel
51 BuildRequires: Qt5Xml-devel
52 BuildRequires: agg-devel
53 %{?with_ocaml_cairo:BuildRequires: cairo-devel}
54 BuildRequires: cmake >= 2.6.4
55 BuildRequires: docbook-style-dsssl
56 %{?with_d:BuildRequires: dmd}
57 BuildRequires: fftw3-devel
58 BuildRequires: fftw3-single-devel
59 BuildRequires: freetype-devel >= 2.1.0
60 %{?with_ada:BuildRequires: gcc-ada >= 5:4.1}
61 BuildRequires: gcc-c++
62 BuildRequires: gcc-fortran
63 %{?with_itcl:BuildRequires: itcl-devel >= 3.4.1}
64 %{?with_itcl:BuildRequires: itk-devel >= 3.4}
65 BuildRequires: jadetex
66 %{?with_java:BuildRequires: jdk}
67 %{?with_java:BuildRequires: jpackage-utils}
68 BuildRequires: lapack-devel
69 BuildRequires: libLASi-devel
70 BuildRequires: libharu-devel >= 2.1.0
71 BuildRequires: libjpeg-devel
72 BuildRequires: libltdl-devel
73 BuildRequires: libpng-devel
74 BuildRequires: libstdc++-devel
75 %{?with_lua:BuildRequires: lua51 >= 5.1}
76 %{?with_lua:BuildRequires: lua51-devel >= 5.1}
77 %{?with_octave:BuildRequires: octave-devel >= 2:3.4.2}
78 BuildRequires: pango-devel
79 %{?with_perl_pdl:BuildRequires: perl-PDL}
80 BuildRequires: perl-XML-DOM
81 BuildRequires: perl-XML-Parser
82 BuildRequires: perl-XML-SAX-Expat
83 BuildRequires: pkgconfig
84 BuildRequires: pango-devel
85 BuildRequires: sip-PyQt5
86 BuildRequires: python-PyQt5-uic
87 BuildRequires: python-PyQt5-sip
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: qt5-build >= 4
93 BuildRequires: qt5-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: Qt5 driver for PLplot library
235 Summary(pl.UTF-8): Sterownik Qt5 dla biblioteki PLplot
237 Requires: %{name}-qt5 = %{version}-%{release}
239 %description driver-qt5
240 Qt5 driver for PLplot library. Supports Qt5 output.
242 %description driver-qt5 -l pl.UTF-8
243 Sterownik Qt5 dla biblioteki PLplot. Obsługuje wyjście poprzez Qt5.
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}
331 Obsoletes: plplot-f95
334 PLplot library - FORTRAN 95 binding.
336 %description fortran -l pl.UTF-8
337 Biblioteka PLplot - wiązanie dla języka FORTRAN 95.
339 %package fortran-devel
340 Summary: PLplot library - FORTRAN 95 binding development files
341 Summary(pl.UTF-8): Biblioteka PLplot - pliki programistyczne wiązania dla języka FORTRAN 95
342 Group: Development/Libraries
343 Requires: %{name}-devel = %{version}-%{release}
344 Requires: %{name}-fortran = %{version}-%{release}
345 Requires: gcc-fortran
346 Obsoletes: plplot-f95-devel
348 %description fortran-devel
349 PLplot library - FORTRAN 95 binding development files.
351 %description fortran-devel -l pl.UTF-8
352 Biblioteka PLplot - pliki programistyczne wiązania dla języka FORTRAN
356 Summary: PLplot library - Ada binding
357 Summary(pl.UTF-8): Biblioteka PLplot - wiązanie dla Ady
359 Requires: %{name} = %{version}-%{release}
362 PLplot library - Ada binding.
364 %description ada -l pl.UTF-8
365 Biblioteka PLplot - wiązanie dla Ady.
368 Summary: PLplot library - Ada binding development files
369 Summary(pl.UTF-8): Biblioteka PLplot - pliki programistyczne wiązania dla Ady
370 Group: Development/Libraries
371 Requires: %{name}-devel = %{version}-%{release}
372 Requires: %{name}-ada = %{version}-%{release}
374 %description ada-devel
375 PLplot library - Ada binding development files.
377 %description ada-devel -l pl.UTF-8
378 Biblioteka PLplot - pliki programistyczne wiązania dla Ady.
381 Summary: PLplot library - Java binding
382 Summary(pl.UTF-8): Biblioteka PLplot - wiązanie dla Javy
384 Requires: %{name} = %{version}-%{release}
387 PLplot library - Java binding.
389 %description java -l pl.UTF-8
390 Biblioteka PLplot - wiązanie dla Javy.
393 Summary: PLplot library - Java binding development files
394 Summary(pl.UTF-8): Biblioteka PLplot - pliki programistyczne wiązania dla Javy
395 Group: Development/Libraries
396 Requires: %{name}-devel = %{version}-%{release}
397 Requires: %{name}-java = %{version}-%{release}
398 Obsoletes: plplot-java-static
400 %description java-devel
401 PLplot library - Java binding development files.
403 %description java-devel -l pl.UTF-8
404 Biblioteka PLplot - pliki programistyczne wiązania dla Javy.
407 Summary: PLplot library - Tcl/Tk binding
408 Summary(pl.UTF-8): Biblioteka PLplot - wiązanie dla Tcl/Tk
410 Requires: %{name} = %{version}-%{release}
413 PLplot library - Tcl/Tk binding.
415 %description tcl -l pl.UTF-8
416 Biblioteka PLplot - wiązanie dla Tcl/Tk.
419 Summary: PLplot library - Tcl/Tk binding development files
420 Summary(pl.UTF-8): Biblioteka PLplot - pliki programistyczne wiązania dla Tcl/Tk
421 Group: Development/Libraries
422 Requires: %{name}-devel = %{version}-%{release}
423 Requires: %{name}-tcl = %{version}-%{release}
424 %{?with_itcl:Requires: itcl-devel}
425 Obsoletes: plplot-tcl-static
427 %description tcl-devel
428 PLplot library - Tcl/Tk binding development files.
430 %description tcl-devel -l pl.UTF-8
431 Biblioteka PLplot - pliki programistyczne wiązania dla Tcl/Tk.
434 Summary: PLplot library - Qt5 binding
435 Summary(pl.UTF-8): Biblioteka PLplot - wiązanie dla Qt5
437 Requires: %{name} = %{version}-%{release}
440 PLplot library - Qt5 binding.
442 %description qt5 -l pl.UTF-8
443 Biblioteka PLplot - wiązanie dla Qt5.
446 Summary: PLplot library - Qt5 binding development files
447 Summary(pl.UTF-8): Biblioteka PLplot - pliki programistyczne wiązania dla Qt5
448 Group: Development/Libraries
449 Requires: %{name}-qt5 = %{version}-%{release}
450 Requires: %{name}-devel = %{version}-%{release}
451 Requires: QtGui-devel
452 Requires: QtSvg-devel
453 Requires: QtXml-devel
455 %description qt5-devel
456 PLplot library - Qt5 binding development files.
458 %description qt5-devel -l pl.UTF-8
459 Biblioteka PLplot - pliki programistyczne wiązania dla Qt5.
462 Summary: PLplot library - wxWidgets binding
463 Summary(pl.UTF-8): Biblioteka PLplot - wiązanie dla wxWidgets
465 Requires: %{name} = %{version}-%{release}
466 Requires: wxGTK2-unicode >= 2.6.0
468 %description wxwidgets
469 PLplot library - wxwidgets binding.
471 %description wxwidgets -l pl.UTF-8
472 Biblioteka PLplot - wiązanie dla wxWidgets.
474 %package wxwidgets-devel
475 Summary: PLplot library - wxWidgets binding development files
476 Summary(pl.UTF-8): Biblioteka PLplot - pliki programistyczne wiązania dla wxWidgets
477 Group: Development/Libraries
478 Requires: %{name}-wxwidgets = %{version}-%{release}
479 Requires: %{name}-devel = %{version}-%{release}
480 Requires: wxGTK2-unicode-devel >= 2.6.0
482 %description wxwidgets-devel
483 PLplot library - wxWidgets binding development files.
485 %description wxwidgets-devel -l pl.UTF-8
486 Biblioteka PLplot - pliki programistyczne wiązania dla wxWidgets.
489 Summary: PLplot library - Octave binding
490 Summary(pl.UTF-8): Biblioteka PLplot - wiązanie dla języka Octave
492 Requires: %{name} = %{version}-%{release}
495 PLplot library - Octave binding.
497 %description octave -l pl.UTF-8
498 Biblioteka PLplot - wiązanie dla języka Octave.
500 %package octave-examples
501 Summary: PLplot library - examples for Octave binding
502 Summary(pl.UTF-8): Biblioteka PLplot - przykłady do wiązania dla języka Octave
503 Group: Development/Libraries
504 Requires: %{name}-devel = %{version}-%{release}
505 Requires: %{name}-octave = %{version}-%{release}
507 %description octave-examples
508 PLplot library - examples for Octave binding.
510 %description octave-examples -l pl.UTF-8
511 Biblioteka PLplot - przykłady do wiązania dla języka Octave.
513 %package -n lua-plplot
514 Summary: Lua binding for PLplot library
515 Summary(pl.UTF-8): Wiązanie języka Lua do biblioteki PLplot
516 Group: Development/Languages
517 Requires: %{name} = %{version}-%{release}
518 Requires: lua51-libs >= 5.1
520 %description -n lua-plplot
521 Lua binding for PLplot library.
523 %description -n lua-plplot -l pl.UTF-8
524 Wiązanie języka Lua do biblioteki PLplot.
526 %package -n ocaml-plplot
527 Summary: OCaml binding for PLplot library
528 Summary(pl.UTF-8): Wiązanie języka OCaml do biblioteki PLplot
530 Requires: %{name} = %{version}-%{release}
531 %requires_eq ocaml-runtime
533 %description -n ocaml-plplot
534 OCaml binding for PLplot library.
536 %description -n ocaml-plplot -l pl.UTF-8
537 Wiązanie języka OCaml do biblioteki PLplot.
539 %package -n ocaml-plplot-devel
540 Summary: Development files for OCaml binding for PLplot library
541 Summary(pl.UTF-8): Wiązanie języka OCaml do biblioteki PLplot - pliki programistyczne
542 Group: Development/Libraries
543 Requires: ocaml-plplot = %{version}-%{release}
546 %description -n ocaml-plplot-devel
547 Development files for OCaml binding for PLplot library.
549 %description -n ocaml-plplot-devel -l pl.UTF-8
550 Wiązanie języka OCaml do biblioteki PLplot - pliki programistyczne.
552 %package -n ocaml-plcairo
553 Summary: PLcairo - Cairo extras for OCaml binding for PLplot library
554 Summary(pl.UTF-8): PLcairo - dodatki Cairo do wiązania języka OCaml do biblioteki PLplot
556 Requires: ocaml-plplot = %{version}-%{release}
557 Requires: ocaml-cairo2
558 Requires: ocaml-cairo2-gtk
559 %requires_eq ocaml-runtime
561 %description -n ocaml-plcairo
562 PLcairo - Cairo extras for OCaml binding for PLplot library.
564 %description -n ocaml-plcairo -l pl.UTF-8
565 PLcairo - dodatki Cairo do wiązania języka OCaml do biblioteki PLplot.
567 %package -n ocaml-plcairo-devel
568 Summary: Development files for PLcairo OCaml library
569 Summary(pl.UTF-8): Pliki programistyczne biblioteki OCamla PLcairo
570 Group: Development/Libraries
571 Requires: ocaml-cairo2-devel
572 Requires: ocaml-cairo2-gtk-devel
573 Requires: ocaml-plcairo = %{version}-%{release}
574 Requires: ocaml-plplot-devel = %{version}-%{release}
577 %description -n ocaml-plcairo-devel
578 Development files for PLcairo OCaml library.
580 %description -n ocaml-plcairo-devel -l pl.UTF-8
581 Pliki programistyczne biblioteki OCamla PLcairo.
583 %package -n python-plplot
584 Summary: PLplot library - Python binding
585 Summary(pl.UTF-8): Biblioteka PLplot - wiązanie dla Pythona
586 Group: Libraries/Python
587 Requires: %{name} = %{version}-%{release}
588 Requires: %{name}-tcl = %{version}-%{release}
589 %pyrequires_eq python-libs
590 Requires: python-numpy
592 %description -n python-plplot
593 PLplot library - Python binding.
595 %description -n python-plplot -l pl.UTF-8
596 Biblioteka PLplot - wiązanie dla Pythona.
598 %package -n python-plplot-qt5
599 Summary: PLplot library - PyQt5 binding
600 Summary(pl.UTF-8): Biblioteka PLplot - wiązanie dla PyQt5
601 Group: Libraries/Python
602 Requires: python-plplot = %{version}-%{release}
603 %pyrequires_eq python-libs
604 Requires: python-numpy
606 %description -n python-plplot-qt5
607 PLplot library - Python/PyQt5 binding.
609 %description -n python-plplot-qt5 -l pl.UTF-8
610 Biblioteka PLplot - wiązanie dla Pythona/PyQt5.
612 %package -n python-plplot-examples
613 Summary: PLplot library - Python binding examples
614 Summary(pl.UTF-8): Biblioteka PLplot - przykłady do wiązania dla Pythona
615 Group: Libraries/Python
616 Requires: %{name}-devel = %{version}-%{release}
617 Requires: python-plplot = %{version}-%{release}
619 %description -n python-plplot-examples
620 PLplot library - Python binding examples.
622 %description -n python-plplot-examples -l pl.UTF-8
623 Biblioteka PLplot - przykłady do wiązania dla Pythona.
632 %{__sed} -E -i -e '1s,#!\s*/usr/bin/env\s+python2(\s|$),#!%{__python}\1,' \
633 -e '1s,#!\s*/usr/bin/env\s+python(\s|$),#!%{__python}\1,' \
634 -e '1s,#!\s*/usr/bin/python(\s|$),#!%{__python}\1,' \
640 # required for cmake to find JNI headers/libs when lib64 is in use
641 %{?with_java:export JAVA_HOME=%{_jvmlibdir}/java}
642 # NOTE: no %{_libdir}/jni in PLD, use plain %{_libdir}
646 -DADA_INCLUDE_DIR=%{ada_incdir} \
647 -DADA_LIB_DIR=%{ada_objdir} \
657 -DCMAKE_Java_RUNTIME=%{java} \
658 -DCMAKE_Java_COMPILER=%{javac} \
659 -DCMAKE_Java_ARCHIVE=%{jar} \
660 -DJAR_DIR=%{_javadir} \
661 -DJAVAWRAPPER_DIR=%{_libdir} \
668 -DREQUIRED_LUA_VERSION=5.1 \
672 -DENABLE_itcl=%{?with_itcl:ON}%{!?with_itcl:OFF} \
673 -DENABLE_itk=%{?with_itcl:ON}%{!?with_itcl:OFF} \
676 -DOCAML_INSTALL_DIR=%{_libdir}/ocaml \
680 -DENABLE_octave=%{?with_octave:ON}%{!?with_octave:OFF} \
681 %{!?with_perl_pdl:-DENABLE_pdl=OFF} \
683 -DPLPLOT_USE_QT5=ON \
684 -DFORTRAN_MOD_DIR=%{_includedir}/plplot \
685 -DOCTAVE_INCLUDE_PATH=%{_includedir}/octave \
686 -DOCTAVE_OCT_DIR=%{octave_oct_sitedir} \
687 -DOCTAVE_M_DIR=%{octave_m_sitedir} \
688 -DPL_FREETYPE_FONT_PATH=/usr/share/fonts/TTF \
689 %{?with_cgm:-DPLD_cgm=ON} \
692 %{?with_plmeta:-DPLD_plmeta=ON} \
695 -DPython_ADDITIONAL_VERSIONS=2.7 \
696 -DUSE_INCRTCL_VERSION_4=ON \
699 -DPLPLOT_ITCL_VERSION="$(rpm -q itcl --qf '%%{VERSION}')" \
700 -DPLPLOT_ITK_VERSION="$(rpm -q itk --qf '%%{VERSION}')" \
701 -DIWIDGETS_VERSIONS_LIST="$(rpm -q iwidgets --qf '%%{VERSION}');$(rpm -q itk --qf '%%{VERSION}');$(rpm -q itcl --qf '%%{VERSION}')" \
703 -DwxWidgets_CONFIG_EXECUTABLE=/usr/bin/wx-gtk2-unicode-config \
704 -DwxWidgets_USE_UNICODE=ON
709 rm -rf $RPM_BUILD_ROOT
710 install -d $RPM_BUILD_ROOT%{_examplesdir}
712 %{__make} -C build install \
713 DESTDIR=$RPM_BUILD_ROOT
715 %{__mv} $RPM_BUILD_ROOT%{_datadir}/plplot%{version}/examples \
716 $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
718 %{__rm} -rf installed-docs
719 %{__mv} $RPM_BUILD_ROOT%{_docdir}/plplot installed-docs
721 %py_comp $RPM_BUILD_ROOT%{py_sitedir}
722 %py_ocomp $RPM_BUILD_ROOT%{py_sitedir}
726 rm -rf $RPM_BUILD_ROOT
728 %post -p /sbin/ldconfig
729 %postun -p /sbin/ldconfig
731 %post c++ -p /sbin/ldconfig
732 %postun c++ -p /sbin/ldconfig
734 %post fortran -p /sbin/ldconfig
735 %postun fortran -p /sbin/ldconfig
737 %post ada -p /sbin/ldconfig
738 %postun ada -p /sbin/ldconfig
740 %post tcl -p /sbin/ldconfig
741 %postun tcl -p /sbin/ldconfig
743 %post qt5 -p /sbin/ldconfig
744 %postun qt5 -p /sbin/ldconfig
746 %post wxwidgets -p /sbin/ldconfig
747 %postun wxwidgets -p /sbin/ldconfig
750 %defattr(644,root,root,755)
751 %doc ABOUT AUTHORS ChangeLog.release Copyright FAQ NEWS PROBLEMS README README.release SERVICE ToDo
752 %doc installed-docs/README.{csa,nn,drivers}
754 %attr(755,root,root) %{_bindir}/plm2gif
755 %attr(755,root,root) %{_bindir}/plpr
756 %attr(755,root,root) %{_bindir}/plrender
758 %attr(755,root,root) %{_bindir}/pltek
759 %attr(755,root,root) %{_bindir}/pstex2eps
760 %attr(755,root,root) %{_libdir}/libcsirocsa.so.*.*.*
761 %attr(755,root,root) %ghost %{_libdir}/libcsirocsa.so.0
762 %attr(755,root,root) %{_libdir}/libcsironn.so.*.*.*
763 %attr(755,root,root) %ghost %{_libdir}/libcsironn.so.0
765 %attr(755,root,root) %{_libdir}/libnistcd.so.*.*.*
766 %attr(755,root,root) %ghost %{_libdir}/libnistcd.so.0
768 %attr(755,root,root) %{_libdir}/libqsastime.so.*.*.*
769 %attr(755,root,root) %ghost %{_libdir}/libqsastime.so.0
770 %attr(755,root,root) %{_libdir}/libplplot.so.*.*.*
771 %attr(755,root,root) %ghost %{_libdir}/libplplot.so.17
773 %{_mandir}/man1/plm2gif.1*
774 %{_mandir}/man1/plpr.1*
775 %{_mandir}/man1/plrender.1*
777 %{_mandir}/man1/pltek.1*
778 %{_mandir}/man1/pstex2eps.1*
779 %dir %{_libdir}/plplot%{version}
780 %dir %{_libdir}/plplot%{version}/drivers
782 %attr(755,root,root) %{_libdir}/plplot%{version}/drivers/cgm.so
783 %{_libdir}/plplot%{version}/drivers/cgm.driver_info
785 %attr(755,root,root) %{_libdir}/plplot%{version}/drivers/mem.so
786 %{_libdir}/plplot%{version}/drivers/mem.driver_info
787 %attr(755,root,root) %{_libdir}/plplot%{version}/drivers/null.so
788 %{_libdir}/plplot%{version}/drivers/null.driver_info
790 %attr(755,root,root) %{_libdir}/plplot%{version}/drivers/plmeta.so
791 %{_libdir}/plplot%{version}/drivers/plmeta.driver_info
793 %attr(755,root,root) %{_libdir}/plplot%{version}/drivers/ps.so
794 %{_libdir}/plplot%{version}/drivers/ps.driver_info
795 %attr(755,root,root) %{_libdir}/plplot%{version}/drivers/pstex.so
796 %{_libdir}/plplot%{version}/drivers/pstex.driver_info
797 %attr(755,root,root) %{_libdir}/plplot%{version}/drivers/svg.so
798 %{_libdir}/plplot%{version}/drivers/svg.driver_info
799 %attr(755,root,root) %{_libdir}/plplot%{version}/drivers/xfig.so
800 %{_libdir}/plplot%{version}/drivers/xfig.driver_info
801 %dir %{_datadir}/plplot%{version}
802 %{_datadir}/plplot%{version}/*.pal
803 %{_datadir}/plplot%{version}/*.fnt
806 %defattr(644,root,root,755)
807 %attr(755,root,root) %{_libdir}/plplot%{version}/drivers/cairo.so
808 %{_libdir}/plplot%{version}/drivers/cairo.driver_info
811 %defattr(644,root,root,755)
812 %attr(755,root,root) %{_libdir}/plplot%{version}/drivers/ntk.so
813 %{_libdir}/plplot%{version}/drivers/ntk.driver_info
816 %defattr(644,root,root,755)
817 %attr(755,root,root) %{_libdir}/plplot%{version}/drivers/pdf.so
818 %{_libdir}/plplot%{version}/drivers/pdf.driver_info
821 %defattr(644,root,root,755)
822 %attr(755,root,root) %{_libdir}/plplot%{version}/drivers/psttf.so
823 %{_libdir}/plplot%{version}/drivers/psttf.driver_info
826 %defattr(644,root,root,755)
827 %attr(755,root,root) %{_libdir}/plplot%{version}/drivers/tk.so
828 %{_libdir}/plplot%{version}/drivers/tk.driver_info
829 %attr(755,root,root) %{_libdir}/plplot%{version}/drivers/tkwin.so
830 %{_libdir}/plplot%{version}/drivers/tkwin.driver_info
833 %defattr(644,root,root,755)
834 %attr(755,root,root) %{_libdir}/plplot%{version}/drivers/qt.so
835 %{_libdir}/plplot%{version}/drivers/qt.driver_info
837 %files driver-wxwidgets
838 %defattr(644,root,root,755)
839 %attr(755,root,root) %{_libdir}/plplot%{version}/drivers/wxwidgets.so
840 %{_libdir}/plplot%{version}/drivers/wxwidgets.driver_info
843 %defattr(644,root,root,755)
844 %attr(755,root,root) %{_libdir}/plplot%{version}/drivers/xwin.so
845 %{_libdir}/plplot%{version}/drivers/xwin.driver_info
848 %defattr(644,root,root,755)
849 %attr(755,root,root) %{_libdir}/libcsirocsa.so
850 %attr(755,root,root) %{_libdir}/libcsironn.so
852 %attr(755,root,root) %{_libdir}/libnistcd.so
854 %attr(755,root,root) %{_libdir}/libplplot.so
855 %attr(755,root,root) %{_libdir}/libqsastime.so
856 %dir %{_includedir}/plplot
858 %{_includedir}/plplot/cd.h
859 %{_includedir}/plplot/defines.h
861 %{_includedir}/plplot/csa.h
862 %{_includedir}/plplot/csadll.h
863 %{_includedir}/plplot/disptab.h
864 %{_includedir}/plplot/drivers.h
865 %{_includedir}/plplot/nn.h
866 %{_includedir}/plplot/nndll.h
867 %{_includedir}/plplot/pdf.h
868 %{_includedir}/plplot/plConfig.h
869 %{_includedir}/plplot/plDevs.h
870 %{_includedir}/plplot/pldebug.h
871 %{_includedir}/plplot/pldll.h
872 %{_includedir}/plplot/plevent.h
873 %{_includedir}/plplot/plplot.h
874 %{_includedir}/plplot/plplotP.h
875 %{_includedir}/plplot/plstrm.h
876 %{_includedir}/plplot/qsastime.h
877 %{_includedir}/plplot/qsastimedll.h
878 # xwin driver (uses X11 headers)
879 %{_includedir}/plplot/plxwd.h
880 %{_pkgconfigdir}/plplot.pc
881 %{_libdir}/cmake/plplot
882 %dir %{_examplesdir}/%{name}-%{version}
883 %{_examplesdir}/%{name}-%{version}/c
884 %{_examplesdir}/%{name}-%{version}/cmake
885 %{_examplesdir}/%{name}-%{version}/CMakeLists.txt
886 %{_examplesdir}/%{name}-%{version}/Chloe.pgm
887 %{_examplesdir}/%{name}-%{version}/Makefile
888 %{_examplesdir}/%{name}-%{version}/README.Chloe
889 %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/plplot-test.sh
890 %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/plplot-test-interactive.sh
891 %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/test_c.sh
892 %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/test_c_interactive.sh
893 %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/test_diff.sh
894 %{_examplesdir}/%{name}-%{version}/plplot_test
896 %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/test_plrender.sh
899 # perl examples use PDL::Graphics::PLplot module found in perl-PDL
900 %{_examplesdir}/%{name}-%{version}/perl
904 %defattr(644,root,root,755)
905 %attr(755,root,root) %{_libdir}/libplplotcxx.so.*.*.*
906 %attr(755,root,root) %ghost %{_libdir}/libplplotcxx.so.15
909 %defattr(644,root,root,755)
910 %attr(755,root,root) %{_libdir}/libplplotcxx.so
911 %{_includedir}/plplot/plstream.h
912 %{_pkgconfigdir}/plplot-c++.pc
913 %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/test_cxx.sh
914 %{_examplesdir}/%{name}-%{version}/c++
918 %defattr(644,root,root,755)
919 %{_libdir}/libplplotdmd.a
920 %{_includedir}/plplot/plplot.d
921 %{_pkgconfigdir}/plplot-d.pc
922 %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/test_d.sh
923 %{_examplesdir}/%{name}-%{version}/d
927 %defattr(644,root,root,755)
928 %doc bindings/fortran/README_array_sizes
929 %attr(755,root,root) %{_libdir}/libplplotfortran.so.*.*.*
930 %attr(755,root,root) %ghost %{_libdir}/libplplotfortran.so.0
933 %defattr(644,root,root,755)
934 %attr(755,root,root) %{_libdir}/libplplotfortran.so
935 %{_libdir}/libplfortrandemolib.a
936 %{_includedir}/plplot/plfortrandemolib.mod
937 %{_includedir}/plplot/plplot_double.mod
938 %{_includedir}/plplot/plplot_graphics.mod
939 %{_includedir}/plplot/plplot.mod
940 %{_includedir}/plplot/plplot_private_exposed.mod
941 %{_includedir}/plplot/plplot_private_utilities.mod
942 %{_includedir}/plplot/plplot_single.mod
943 %{_includedir}/plplot/plplot_types.mod
944 %{_pkgconfigdir}/plplot-fortran.pc
945 %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/test_fortran.sh
946 %{_examplesdir}/%{name}-%{version}/fortran
950 %defattr(644,root,root,755)
951 %attr(755,root,root) %{_libdir}/libplplotada.so.*.*.*
952 %attr(755,root,root) %ghost %{_libdir}/libplplotada.so.4
955 %defattr(644,root,root,755)
956 %attr(755,root,root) %{_libdir}/libplplotada.so
957 %{ada_objdir}/plplot_*.ali
958 %{ada_incdir}/plplot*.ad*
959 %{_pkgconfigdir}/plplot-ada.pc
960 %{_examplesdir}/%{name}-%{version}/ada
961 %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/test_ada.sh
966 %defattr(644,root,root,755)
967 %attr(755,root,root) %{_libdir}/libplplotjavac_wrap.so
968 %{_javadir}/plplot.jar
971 %defattr(644,root,root,755)
972 %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/test_java.sh
973 %{_examplesdir}/%{name}-%{version}/java
977 %defattr(644,root,root,755)
978 %attr(755,root,root) %{_bindir}/pltcl
979 %attr(755,root,root) %{_bindir}/plserver
980 %attr(755,root,root) %{_libdir}/libplplottcltk.so.*.*.*
981 %attr(755,root,root) %ghost %{_libdir}/libplplottcltk.so.14
982 %attr(755,root,root) %{_libdir}/libtclmatrix.so.*.*.*
983 %attr(755,root,root) %ghost %{_libdir}/libtclmatrix.so.10
984 %attr(755,root,root) %{_libdir}/libplplottcltk_Main.so.*.*.*
985 %attr(755,root,root) %ghost %{_libdir}/libplplottcltk_Main.so.1
986 %{_datadir}/plplot%{version}/*.tcl
987 %{_datadir}/plplot%{version}/tcl
988 %{_mandir}/man1/pltcl.1*
989 %{_mandir}/man1/plserver.1*
992 %defattr(644,root,root,755)
993 %attr(755,root,root) %{_libdir}/libplplottcltk.so
994 %attr(755,root,root) %{_libdir}/libtclmatrix.so
995 %attr(755,root,root) %{_libdir}/libplplottcltk_Main.so
996 %{_includedir}/plplot/pltcl.h
997 %{_includedir}/plplot/pltk.h
998 %{_includedir}/plplot/tclMatrix.h
999 %{_pkgconfigdir}/plplot-tcl.pc
1000 %{_pkgconfigdir}/plplot-tcl_Main.pc
1001 %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/test_tcl.sh
1002 %{_examplesdir}/%{name}-%{version}/tcl
1003 %{_examplesdir}/%{name}-%{version}/tk
1006 %defattr(644,root,root,755)
1007 %attr(755,root,root) %{_libdir}/libplplotqt.so.*.*.*
1008 %attr(755,root,root) %ghost %{_libdir}/libplplotqt.so.2
1011 %defattr(644,root,root,755)
1012 %attr(755,root,root) %{_libdir}/libplplotqt.so
1013 %{_includedir}/plplot/qt.h
1014 %{_pkgconfigdir}/plplot-qt.pc
1017 %defattr(644,root,root,755)
1018 %attr(755,root,root) %{_bindir}/wxPLViewer
1019 %attr(755,root,root) %{_libdir}/libplplotwxwidgets.so.*.*.*
1020 %attr(755,root,root) %ghost %{_libdir}/libplplotwxwidgets.so.1
1022 %files wxwidgets-devel
1023 %defattr(644,root,root,755)
1024 %attr(755,root,root) %{_libdir}/libplplotwxwidgets.so
1025 %{_includedir}/plplot/wxPLplot*.h
1026 %{_pkgconfigdir}/plplot-wxwidgets.pc
1030 %defattr(644,root,root,755)
1031 %doc bindings/octave/{BUGS,FGA,README,ToDo,USAGE}
1032 %attr(755,root,root) %{octave_oct_sitedir}/plplot_octave.oct
1033 %{octave_m_sitedir}/*.m
1034 %{_datadir}/plplot_octave
1035 %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/test_octave_interactive.sh
1037 %files octave-examples
1038 %defattr(644,root,root,755)
1039 %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/test_octave.sh
1040 %{_examplesdir}/%{name}-%{version}/octave
1044 %files -n lua-plplot
1045 %defattr(644,root,root,755)
1046 %dir %{_libdir}/lua/5.1/plplot
1047 %attr(755,root,root) %{_libdir}/lua/5.1/plplot/plplotluac.so
1048 %{_examplesdir}/%{name}-%{version}/lua
1049 %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/test_lua.sh
1053 %files -n ocaml-plplot
1054 %defattr(644,root,root,755)
1055 %attr(755,root,root) %{_libdir}/ocaml/stublibs/dllplplot_stubs.so
1057 %files -n ocaml-plplot-devel
1058 %dir %{_libdir}/ocaml/plplot
1059 %{_libdir}/ocaml/plplot/META
1060 %{_libdir}/ocaml/plplot/libplplot_stubs.a
1061 %{_libdir}/ocaml/plplot/plplot.cma
1062 %{_libdir}/ocaml/plplot/plplot.cmi
1063 %{_libdir}/ocaml/plplot/plplot.mli
1064 %if %{with ocaml_opt}
1065 %{_libdir}/ocaml/plplot/plplot.a
1066 %{_libdir}/ocaml/plplot/plplot.cmx
1067 %{_libdir}/ocaml/plplot/plplot.cmxa
1069 %{_pkgconfigdir}/plplot-ocaml.pc
1070 %{_examplesdir}/%{name}-%{version}/ocaml
1071 %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/test_ocaml.sh
1073 %if %{with ocaml_cairo}
1074 %files -n ocaml-plcairo
1075 %defattr(644,root,root,755)
1076 %attr(755,root,root) %{_libdir}/ocaml/stublibs/dllplcairo_stubs.so
1078 %files -n ocaml-plcairo-devel
1079 %dir %{_libdir}/ocaml/plcairo
1080 %{_libdir}/ocaml/plcairo/META
1081 %{_libdir}/ocaml/plcairo/libplcairo_stubs.a
1082 %{_libdir}/ocaml/plcairo/plcairo.cma
1083 %{_libdir}/ocaml/plcairo/plcairo.cmi
1084 %{_libdir}/ocaml/plcairo/plcairo.mli
1085 %if %{with ocaml_opt}
1086 %{_libdir}/ocaml/plcairo/plcairo.a
1087 %{_libdir}/ocaml/plcairo/plcairo.cmxa
1092 %files -n python-plplot
1093 %defattr(644,root,root,755)
1094 %attr(755,root,root) %{py_sitedir}/_Pltk_init.so
1095 %attr(755,root,root) %{py_sitedir}/_plplotc.so
1096 %{py_sitedir}/Plframe.py[co]
1097 %{py_sitedir}/Pltk_init.py[co]
1098 %{py_sitedir}/plplotc.py[co]
1099 %{py_sitedir}/plplot.py[co]
1100 %{py_sitedir}/TclSup.py[co]
1102 %files -n python-plplot-qt5
1103 %defattr(644,root,root,755)
1104 %attr(755,root,root) %{py_sitedir}/plplot_pyqt5.so
1106 %files -n python-plplot-examples
1107 %defattr(644,root,root,755)
1108 %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/test_python.sh
1109 %{_examplesdir}/%{name}-%{version}/python