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.
629 %{__sed} -E -i -e '1s,#!\s*/usr/bin/env\s+python2(\s|$),#!%{__python}\1,' \
630 -e '1s,#!\s*/usr/bin/env\s+python(\s|$),#!%{__python}\1,' \
631 -e '1s,#!\s*/usr/bin/python(\s|$),#!%{__python}\1,' \
637 # required for cmake to find JNI headers/libs when lib64 is in use
638 %{?with_java:export JAVA_HOME=%{_jvmlibdir}/java}
639 # NOTE: no %{_libdir}/jni in PLD, use plain %{_libdir}
643 -DADA_INCLUDE_DIR=%{ada_incdir} \
644 -DADA_LIB_DIR=%{ada_objdir} \
654 -DCMAKE_Java_RUNTIME=%{java} \
655 -DCMAKE_Java_COMPILER=%{javac} \
656 -DCMAKE_Java_ARCHIVE=%{jar} \
657 -DJAR_DIR=%{_javadir} \
658 -DJAVAWRAPPER_DIR=%{_libdir} \
665 -DREQUIRED_LUA_VERSION=5.1 \
669 -DENABLE_itcl=%{?with_itcl:ON}%{!?with_itcl:OFF} \
670 -DENABLE_itk=%{?with_itcl:ON}%{!?with_itcl:OFF} \
673 -DOCAML_INSTALL_DIR=%{_libdir}/ocaml \
677 -DENABLE_octave=%{?with_octave:ON}%{!?with_octave:OFF} \
678 %{!?with_perl_pdl:-DENABLE_pdl=OFF} \
680 -DPLPLOT_USE_QT5=ON \
681 -DFORTRAN_MOD_DIR=%{_includedir}/plplot \
682 -DOCTAVE_INCLUDE_PATH=%{_includedir}/octave \
683 -DOCTAVE_OCT_DIR=%{octave_oct_sitedir} \
684 -DOCTAVE_M_DIR=%{octave_m_sitedir} \
685 -DPL_FREETYPE_FONT_PATH=/usr/share/fonts/TTF \
686 %{?with_cgm:-DPLD_cgm=ON} \
689 %{?with_plmeta:-DPLD_plmeta=ON} \
692 -DPython_ADDITIONAL_VERSIONS=2.7 \
693 -DUSE_INCRTCL_VERSION_4=ON \
696 -DPLPLOT_ITCL_VERSION="$(rpm -q itcl --qf '%%{VERSION}')" \
697 -DPLPLOT_ITK_VERSION="$(rpm -q itk --qf '%%{VERSION}')" \
698 -DIWIDGETS_VERSIONS_LIST="$(rpm -q iwidgets --qf '%%{VERSION}');$(rpm -q itk --qf '%%{VERSION}');$(rpm -q itcl --qf '%%{VERSION}')" \
700 -DwxWidgets_CONFIG_EXECUTABLE=/usr/bin/wx-gtk2-unicode-config \
701 -DwxWidgets_USE_UNICODE=ON
706 rm -rf $RPM_BUILD_ROOT
707 install -d $RPM_BUILD_ROOT%{_examplesdir}
709 %{__make} -C build install \
710 DESTDIR=$RPM_BUILD_ROOT
712 %{__mv} $RPM_BUILD_ROOT%{_datadir}/plplot%{version}/examples \
713 $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
715 %{__rm} -rf installed-docs
716 %{__mv} $RPM_BUILD_ROOT%{_docdir}/plplot installed-docs
718 %py_comp $RPM_BUILD_ROOT%{py_sitedir}
719 %py_ocomp $RPM_BUILD_ROOT%{py_sitedir}
723 rm -rf $RPM_BUILD_ROOT
725 %post -p /sbin/ldconfig
726 %postun -p /sbin/ldconfig
728 %post c++ -p /sbin/ldconfig
729 %postun c++ -p /sbin/ldconfig
731 %post fortran -p /sbin/ldconfig
732 %postun fortran -p /sbin/ldconfig
734 %post ada -p /sbin/ldconfig
735 %postun ada -p /sbin/ldconfig
737 %post tcl -p /sbin/ldconfig
738 %postun tcl -p /sbin/ldconfig
740 %post qt5 -p /sbin/ldconfig
741 %postun qt5 -p /sbin/ldconfig
743 %post wxwidgets -p /sbin/ldconfig
744 %postun wxwidgets -p /sbin/ldconfig
747 %defattr(644,root,root,755)
748 %doc ABOUT AUTHORS ChangeLog.release Copyright FAQ NEWS PROBLEMS README README.release SERVICE ToDo
749 %doc installed-docs/README.{csa,nn,drivers}
751 %attr(755,root,root) %{_bindir}/plm2gif
752 %attr(755,root,root) %{_bindir}/plpr
753 %attr(755,root,root) %{_bindir}/plrender
755 %attr(755,root,root) %{_bindir}/pltek
756 %attr(755,root,root) %{_bindir}/pstex2eps
757 %attr(755,root,root) %{_libdir}/libcsirocsa.so.*.*.*
758 %attr(755,root,root) %ghost %{_libdir}/libcsirocsa.so.0
759 %attr(755,root,root) %{_libdir}/libcsironn.so.*.*.*
760 %attr(755,root,root) %ghost %{_libdir}/libcsironn.so.0
762 %attr(755,root,root) %{_libdir}/libnistcd.so.*.*.*
763 %attr(755,root,root) %ghost %{_libdir}/libnistcd.so.0
765 %attr(755,root,root) %{_libdir}/libqsastime.so.*.*.*
766 %attr(755,root,root) %ghost %{_libdir}/libqsastime.so.0
767 %attr(755,root,root) %{_libdir}/libplplot.so.*.*.*
768 %attr(755,root,root) %ghost %{_libdir}/libplplot.so.16
770 %{_mandir}/man1/plm2gif.1*
771 %{_mandir}/man1/plpr.1*
772 %{_mandir}/man1/plrender.1*
774 %{_mandir}/man1/pltek.1*
775 %{_mandir}/man1/pstex2eps.1*
776 %dir %{_libdir}/plplot%{version}
777 %dir %{_libdir}/plplot%{version}/drivers
779 %attr(755,root,root) %{_libdir}/plplot%{version}/drivers/cgm.so
780 %{_libdir}/plplot%{version}/drivers/cgm.driver_info
782 %attr(755,root,root) %{_libdir}/plplot%{version}/drivers/mem.so
783 %{_libdir}/plplot%{version}/drivers/mem.driver_info
784 %attr(755,root,root) %{_libdir}/plplot%{version}/drivers/null.so
785 %{_libdir}/plplot%{version}/drivers/null.driver_info
787 %attr(755,root,root) %{_libdir}/plplot%{version}/drivers/plmeta.so
788 %{_libdir}/plplot%{version}/drivers/plmeta.driver_info
790 %attr(755,root,root) %{_libdir}/plplot%{version}/drivers/ps.so
791 %{_libdir}/plplot%{version}/drivers/ps.driver_info
792 %attr(755,root,root) %{_libdir}/plplot%{version}/drivers/pstex.so
793 %{_libdir}/plplot%{version}/drivers/pstex.driver_info
794 %attr(755,root,root) %{_libdir}/plplot%{version}/drivers/svg.so
795 %{_libdir}/plplot%{version}/drivers/svg.driver_info
796 %attr(755,root,root) %{_libdir}/plplot%{version}/drivers/xfig.so
797 %{_libdir}/plplot%{version}/drivers/xfig.driver_info
798 %dir %{_datadir}/plplot%{version}
799 %{_datadir}/plplot%{version}/*.pal
800 %{_datadir}/plplot%{version}/*.fnt
803 %defattr(644,root,root,755)
804 %attr(755,root,root) %{_libdir}/plplot%{version}/drivers/cairo.so
805 %{_libdir}/plplot%{version}/drivers/cairo.driver_info
808 %defattr(644,root,root,755)
809 %attr(755,root,root) %{_libdir}/plplot%{version}/drivers/ntk.so
810 %{_libdir}/plplot%{version}/drivers/ntk.driver_info
813 %defattr(644,root,root,755)
814 %attr(755,root,root) %{_libdir}/plplot%{version}/drivers/pdf.so
815 %{_libdir}/plplot%{version}/drivers/pdf.driver_info
818 %defattr(644,root,root,755)
819 %attr(755,root,root) %{_libdir}/plplot%{version}/drivers/psttf.so
820 %{_libdir}/plplot%{version}/drivers/psttf.driver_info
823 %defattr(644,root,root,755)
824 %attr(755,root,root) %{_libdir}/plplot%{version}/drivers/tk.so
825 %{_libdir}/plplot%{version}/drivers/tk.driver_info
826 %attr(755,root,root) %{_libdir}/plplot%{version}/drivers/tkwin.so
827 %{_libdir}/plplot%{version}/drivers/tkwin.driver_info
830 %defattr(644,root,root,755)
831 %attr(755,root,root) %{_libdir}/plplot%{version}/drivers/qt.so
832 %{_libdir}/plplot%{version}/drivers/qt.driver_info
834 %files driver-wxwidgets
835 %defattr(644,root,root,755)
836 %attr(755,root,root) %{_libdir}/plplot%{version}/drivers/wxwidgets.so
837 %{_libdir}/plplot%{version}/drivers/wxwidgets.driver_info
840 %defattr(644,root,root,755)
841 %attr(755,root,root) %{_libdir}/plplot%{version}/drivers/xwin.so
842 %{_libdir}/plplot%{version}/drivers/xwin.driver_info
845 %defattr(644,root,root,755)
846 %attr(755,root,root) %{_libdir}/libcsirocsa.so
847 %attr(755,root,root) %{_libdir}/libcsironn.so
849 %attr(755,root,root) %{_libdir}/libnistcd.so
851 %attr(755,root,root) %{_libdir}/libplplot.so
852 %attr(755,root,root) %{_libdir}/libqsastime.so
853 %dir %{_includedir}/plplot
855 %{_includedir}/plplot/cd.h
856 %{_includedir}/plplot/defines.h
858 %{_includedir}/plplot/csa.h
859 %{_includedir}/plplot/csadll.h
860 %{_includedir}/plplot/disptab.h
861 %{_includedir}/plplot/drivers.h
862 %{_includedir}/plplot/nn.h
863 %{_includedir}/plplot/nndll.h
864 %{_includedir}/plplot/pdf.h
865 %{_includedir}/plplot/plConfig.h
866 %{_includedir}/plplot/plDevs.h
867 %{_includedir}/plplot/pldebug.h
868 %{_includedir}/plplot/pldll.h
869 %{_includedir}/plplot/plevent.h
870 %{_includedir}/plplot/plplot.h
871 %{_includedir}/plplot/plplotP.h
872 %{_includedir}/plplot/plstrm.h
873 %{_includedir}/plplot/qsastime.h
874 %{_includedir}/plplot/qsastimedll.h
875 # xwin driver (uses X11 headers)
876 %{_includedir}/plplot/plxwd.h
877 %{_pkgconfigdir}/plplot.pc
878 %{_libdir}/cmake/plplot
879 %dir %{_examplesdir}/%{name}-%{version}
880 %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/Chloe.pgm
881 %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/README.Chloe
882 %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/plplot-test.sh
883 %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/plplot-test-interactive.sh
884 %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/test_c.sh
885 %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/test_c_interactive.sh
886 %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/test_diff.sh
888 %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/test_plrender.sh
890 %{_examplesdir}/%{name}-%{version}/c
891 %{_examplesdir}/%{name}-%{version}/cmake
892 %{_examplesdir}/%{name}-%{version}/CMakeLists.txt
893 %{_examplesdir}/%{name}-%{version}/Makefile
895 # perl examples use PDL::Graphics::PLplot module found in perl-PDL
896 %{_examplesdir}/%{name}-%{version}/perl
900 %defattr(644,root,root,755)
901 %attr(755,root,root) %{_libdir}/libplplotcxx.so.*.*.*
902 %attr(755,root,root) %ghost %{_libdir}/libplplotcxx.so.14
905 %defattr(644,root,root,755)
906 %attr(755,root,root) %{_libdir}/libplplotcxx.so
907 %{_includedir}/plplot/plstream.h
908 %{_pkgconfigdir}/plplot-c++.pc
909 %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/test_cxx.sh
910 %{_examplesdir}/%{name}-%{version}/c++
914 %defattr(644,root,root,755)
915 %{_libdir}/libplplotdmd.a
916 %{_includedir}/plplot/plplot.d
917 %{_pkgconfigdir}/plplot-d.pc
918 %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/test_d.sh
919 %{_examplesdir}/%{name}-%{version}/d
923 %defattr(644,root,root,755)
924 %doc bindings/fortran/README_array_sizes
925 %attr(755,root,root) %{_libdir}/libplplotfortran.so.*.*.*
926 %attr(755,root,root) %ghost %{_libdir}/libplplotfortran.so.0
929 %defattr(644,root,root,755)
930 %attr(755,root,root) %{_libdir}/libplplotfortran.so
931 %{_libdir}/libplfortrandemolib.a
932 %{_includedir}/plplot/plfortrandemolib.mod
933 %{_includedir}/plplot/plplot_double.mod
934 %{_includedir}/plplot/plplot_graphics.mod
935 %{_includedir}/plplot/plplot.mod
936 %{_includedir}/plplot/plplot_private_exposed.mod
937 %{_includedir}/plplot/plplot_private_utilities.mod
938 %{_includedir}/plplot/plplot_single.mod
939 %{_includedir}/plplot/plplot_types.mod
940 %{_pkgconfigdir}/plplot-fortran.pc
941 %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/test_fortran.sh
942 %{_examplesdir}/%{name}-%{version}/fortran
946 %defattr(644,root,root,755)
947 %attr(755,root,root) %{_libdir}/libplplotada.so.*.*.*
948 %attr(755,root,root) %ghost %{_libdir}/libplplotada.so.4
951 %defattr(644,root,root,755)
952 %attr(755,root,root) %{_libdir}/libplplotada.so
953 %{ada_objdir}/plplot_*.ali
954 %{ada_incdir}/plplot*.ad*
955 %{_pkgconfigdir}/plplot-ada.pc
956 %{_examplesdir}/%{name}-%{version}/ada
957 %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/test_ada.sh
962 %defattr(644,root,root,755)
963 %attr(755,root,root) %{_libdir}/libplplotjavac_wrap.so
964 %{_javadir}/plplot.jar
967 %defattr(644,root,root,755)
968 %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/test_java.sh
969 %{_examplesdir}/%{name}-%{version}/java
973 %defattr(644,root,root,755)
974 %attr(755,root,root) %{_bindir}/pltcl
975 %attr(755,root,root) %{_bindir}/plserver
976 %attr(755,root,root) %{_libdir}/libplplottcltk.so.*.*.*
977 %attr(755,root,root) %ghost %{_libdir}/libplplottcltk.so.14
978 %attr(755,root,root) %{_libdir}/libtclmatrix.so.*.*.*
979 %attr(755,root,root) %ghost %{_libdir}/libtclmatrix.so.10
980 %attr(755,root,root) %{_libdir}/libplplottcltk_Main.so.*.*.*
981 %attr(755,root,root) %ghost %{_libdir}/libplplottcltk_Main.so.1
982 %{_datadir}/plplot%{version}/*.tcl
983 %{_datadir}/plplot%{version}/tcl
984 %{_mandir}/man1/pltcl.1*
985 %{_mandir}/man1/plserver.1*
988 %defattr(644,root,root,755)
989 %attr(755,root,root) %{_libdir}/libplplottcltk.so
990 %attr(755,root,root) %{_libdir}/libtclmatrix.so
991 %attr(755,root,root) %{_libdir}/libplplottcltk_Main.so
992 %{_includedir}/plplot/pltcl.h
993 %{_includedir}/plplot/pltk.h
994 %{_includedir}/plplot/tclMatrix.h
995 %{_pkgconfigdir}/plplot-tcl.pc
996 %{_pkgconfigdir}/plplot-tcl_Main.pc
997 %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/test_tcl.sh
998 %{_examplesdir}/%{name}-%{version}/tcl
999 %{_examplesdir}/%{name}-%{version}/tk
1002 %defattr(644,root,root,755)
1003 %attr(755,root,root) %{_libdir}/libplplotqt.so.*.*.*
1004 %attr(755,root,root) %ghost %{_libdir}/libplplotqt.so.2
1007 %defattr(644,root,root,755)
1008 %attr(755,root,root) %{_libdir}/libplplotqt.so
1009 %{_includedir}/plplot/qt.h
1010 %{_pkgconfigdir}/plplot-qt.pc
1013 %defattr(644,root,root,755)
1014 %attr(755,root,root) %{_bindir}/wxPLViewer
1015 %attr(755,root,root) %{_libdir}/libplplotwxwidgets.so.*.*.*
1016 %attr(755,root,root) %ghost %{_libdir}/libplplotwxwidgets.so.1
1018 %files wxwidgets-devel
1019 %defattr(644,root,root,755)
1020 %attr(755,root,root) %{_libdir}/libplplotwxwidgets.so
1021 %{_includedir}/plplot/wxPLplot*.h
1022 %{_pkgconfigdir}/plplot-wxwidgets.pc
1026 %defattr(644,root,root,755)
1027 %doc bindings/octave/{BUGS,FGA,README,ToDo,USAGE}
1028 %attr(755,root,root) %{octave_oct_sitedir}/plplot_octave.oct
1029 %{octave_m_sitedir}/*.m
1030 %{_datadir}/plplot_octave
1031 %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/test_octave_interactive.sh
1033 %files octave-examples
1034 %defattr(644,root,root,755)
1035 %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/test_octave.sh
1036 %{_examplesdir}/%{name}-%{version}/octave
1040 %files -n lua-plplot
1041 %defattr(644,root,root,755)
1042 %dir %{_libdir}/lua/5.1/plplot
1043 %attr(755,root,root) %{_libdir}/lua/5.1/plplot/plplotluac.so
1044 %{_examplesdir}/%{name}-%{version}/lua
1045 %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/test_lua.sh
1049 %files -n ocaml-plplot
1050 %defattr(644,root,root,755)
1051 %attr(755,root,root) %{_libdir}/ocaml/stublibs/dllplplot_stubs.so
1053 %files -n ocaml-plplot-devel
1054 %dir %{_libdir}/ocaml/plplot
1055 %{_libdir}/ocaml/plplot/META
1056 %{_libdir}/ocaml/plplot/libplplot_stubs.a
1057 %{_libdir}/ocaml/plplot/plplot.cma
1058 %{_libdir}/ocaml/plplot/plplot.cmi
1059 %{_libdir}/ocaml/plplot/plplot.mli
1060 %if %{with ocaml_opt}
1061 %{_libdir}/ocaml/plplot/plplot.a
1062 %{_libdir}/ocaml/plplot/plplot.cmx
1063 %{_libdir}/ocaml/plplot/plplot.cmxa
1065 %{_pkgconfigdir}/plplot-ocaml.pc
1066 %{_examplesdir}/%{name}-%{version}/ocaml
1067 %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/test_ocaml.sh
1069 %if %{with ocaml_cairo}
1070 %files -n ocaml-plcairo
1071 %defattr(644,root,root,755)
1072 %attr(755,root,root) %{_libdir}/ocaml/stublibs/dllplcairo_stubs.so
1074 %files -n ocaml-plcairo-devel
1075 %dir %{_libdir}/ocaml/plcairo
1076 %{_libdir}/ocaml/plcairo/META
1077 %{_libdir}/ocaml/plcairo/libplcairo_stubs.a
1078 %{_libdir}/ocaml/plcairo/plcairo.cma
1079 %{_libdir}/ocaml/plcairo/plcairo.cmi
1080 %{_libdir}/ocaml/plcairo/plcairo.mli
1081 %if %{with ocaml_opt}
1082 %{_libdir}/ocaml/plcairo/plcairo.a
1083 %{_libdir}/ocaml/plcairo/plcairo.cmxa
1088 %files -n python-plplot
1089 %defattr(644,root,root,755)
1090 %attr(755,root,root) %{py_sitedir}/_Pltk_init.so
1091 %attr(755,root,root) %{py_sitedir}/_plplotc.so
1092 %{py_sitedir}/Plframe.py[co]
1093 %{py_sitedir}/Pltk_init.py[co]
1094 %{py_sitedir}/plplotc.py[co]
1095 %{py_sitedir}/plplot.py[co]
1096 %{py_sitedir}/TclSup.py[co]
1098 %files -n python-plplot-qt5
1099 %defattr(644,root,root,755)
1100 %attr(755,root,root) %{py_sitedir}/plplot_pyqt5.so
1102 %files -n python-plplot-examples
1103 %defattr(644,root,root,755)
1104 %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/test_python.sh
1105 %{_examplesdir}/%{name}-%{version}/python