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: Qt5Gui-devel
48 BuildRequires: Qt5PrintSupport-devel
49 BuildRequires: Qt5Svg-devel
50 BuildRequires: Qt5Xml-devel
51 BuildRequires: agg-devel
52 %{?with_ocaml_cairo:BuildRequires: cairo-devel}
53 BuildRequires: cmake >= 2.6.4
54 BuildRequires: docbook-style-dsssl
55 %{?with_d:BuildRequires: dmd}
56 BuildRequires: fftw3-devel
57 BuildRequires: fftw3-single-devel
58 BuildRequires: freetype-devel >= 2.1.0
59 %{?with_ada:BuildRequires: gcc-ada >= 5:4.1}
60 BuildRequires: gcc-c++
61 BuildRequires: gcc-fortran
62 %{?with_itcl:BuildRequires: itcl-devel >= 3.4.1}
63 %{?with_itcl:BuildRequires: itk-devel >= 3.4}
64 BuildRequires: jadetex
65 %{?with_java:BuildRequires: jdk}
66 %{?with_java:BuildRequires: jpackage-utils}
67 BuildRequires: lapack-devel
68 BuildRequires: libLASi-devel
69 BuildRequires: libharu-devel >= 2.1.0
70 BuildRequires: libjpeg-devel
71 BuildRequires: libltdl-devel
72 BuildRequires: libpng-devel
73 BuildRequires: libstdc++-devel
74 %{?with_lua:BuildRequires: lua51 >= 5.1}
75 %{?with_lua:BuildRequires: lua51-devel >= 5.1}
76 %{?with_octave:BuildRequires: octave-devel >= 2:3.4.2}
77 BuildRequires: pango-devel
78 %{?with_perl_pdl:BuildRequires: perl-PDL}
79 BuildRequires: perl-XML-DOM
80 BuildRequires: perl-XML-Parser
81 BuildRequires: perl-XML-SAX-Expat
82 BuildRequires: pkgconfig
83 BuildRequires: pango-devel
84 BuildRequires: sip-PyQt5
85 BuildRequires: python-PyQt5-uic
86 BuildRequires: python-PyQt5-sip
87 BuildRequires: python-numpy-devel >= 15.3
88 BuildRequires: python-devel >= 1:2.3
89 BuildRequires: python-sip-devel
90 BuildRequires: qhull-devel >= 2011.1
91 BuildRequires: qt5-build >= 4
92 BuildRequires: qt5-qmake >= 4
93 BuildRequires: rpm-pythonprov
94 BuildRequires: rpmbuild(macros) >= 1.605
95 BuildRequires: sed >= 4.0
98 BuildRequires: swig-python
99 BuildRequires: tcl-devel >= 8.5
100 BuildRequires: tetex-dvips
101 BuildRequires: texinfo
102 BuildRequires: tk-devel >= 8.5
103 BuildRequires: wxGTK2-unicode-devel >= 2.6.0
104 BuildRequires: xorg-lib-libXext-devel
105 BuildRequires: xorg-lib-libICE-devel
106 BuildRequires: xorg-lib-libX11-devel
109 %if %{with ocaml_cairo}
110 BuildRequires: ocaml-cairo2-devel
111 BuildRequires: ocaml-cairo2-gtk-devel
113 BuildRequires: ocaml-idl-devel
114 BuildRequires: ocaml-findlib
115 BuildRequires: ocaml-lablgtk2-devel
117 BuildConflicts: plplot
118 BuildConflicts: plplot-devel
119 Obsoletes: plplot-f77
120 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
122 %define octave_oct_sitedir %(octave-config --oct-site-dir)
123 %define octave_m_sitedir %(octave-config --m-site-dir)
125 %define gcc_target %(%{__cc} -dumpmachine)
126 %define ada_incdir %{_libdir}/gcc/%{gcc_target}/%{cc_version}/adainclude
127 %define ada_objdir %{_libdir}/gcc/%{gcc_target}/%{cc_version}/adalib
130 PLplot is a library of functions that are useful for making scientific
131 plots. It can be used from within compiled languages such as C, C++,
132 FORTRAN and Java, and interactively from interpreted languages such as
133 Octave, Python, Perl and Tcl.
135 The PLplot library can be used to create standard X-Y plots, semilog
136 plots, log-log plots, contour plots, 3D surface plots, mesh plots, bar
137 charts and pie charts. Multiple graphs (of the same or different
138 sizes) may be placed on a single page with multiple lines in each
141 A variety of output file devices such as PostScript, PNG, JPEG, LaTeX
142 and others, as well as interactive devices such as xwin, tk, xterm and
143 Tektronics devices are supported. New devices can be easily added by
144 writing a small number of device dependent routines.
146 %description -l pl.UTF-8
147 PLplot to biblioteka funkcji przydatnych do tworzenia wykresów
148 naukowych. Może być używana z poziomu języków kompilowanych takich jak
149 C, C++, FORTRAN czy Java, albo interaktywnie z poziomu języków
150 interpretowanych takich jak Octave, Python, Perl czy Tcl.
152 Bibliotekę PLplot można wykorzystać do tworzenia standardowych
153 wykresów X-Y, wykresów półlogarytmicznych, wykresów konturowych,
154 wykresów powierzchni trójwymiarowych, wykresów siatek, wykresów
155 słupkowych i kołowych. Na jednej stronie można umieścić wiele wykresów
156 (o tych samych lub różnych rozmiarach), na jednym wykresie może być
159 Obsługiwanych jest wiele urządzeń wyjściowych, w tym PostScript, PNG,
160 JPEG, LaTeX i inne, a także urządzenia interaktywne, takie jak xwin,
161 tk, xterm i Tektronics. Nowe urządzenia można łatwo dodać pisząc parę
162 zależnych od urządzenia funkcji.
165 Summary: ntk driver for PLplot library
166 Summary(pl.UTF-8): Sterownik ntk dla biblioteki PLplot
168 Requires: %{name} = %{version}-%{release}
170 %description driver-ntk
171 ntk (new tk) driver for PLplot library. It supports Tcl/Tk output.
173 %description driver-ntk -l pl.UTF-8
174 Sterownik ntk (new tk) dla biblioteki PLplot. Obsługuje wyjście
178 Summary: pdf driver for PLplot library
179 Summary(pl.UTF-8): Sterownik pdf dla biblioteki PLplot
181 Requires: %{name} = %{version}-%{release}
182 Requires: libharu >= 2.1.0
184 %description driver-pdf
185 pdf driver for PLplot library. It's PDF driver using Haru library.
187 %description driver-pdf -l pl.UTF-8
188 Sterownik pdf dla biblioteki PLplot. Jest to sterownik PDF
189 wykorzystujący bibliotekę Haru.
191 %package driver-psttf
192 Summary: psttf driver for PLplot library
193 Summary(pl.UTF-8): Sterownik psttf dla biblioteki PLplot
195 Requires: %{name} = %{version}-%{release}
197 %description driver-psttf
198 psttf driver for PLplot library. It's PostScript driver using LASi to
201 %description driver-psttf -l pl.UTF-8
202 Sterownik psttf dla biblioteki PLplot. Jest to sterownik
203 postscriptowy, wykorzystujący LASi do obsługi fontów.
206 Summary: Tk drivers for PLplot library
207 Summary(pl.UTF-8): Sterowniki Tk dla biblioteki PLplot
209 Requires: %{name}-tcl = %{version}-%{release}
211 %description driver-tk
212 Tk and tkwin drivers for PLplot library. They support Tcl/Tk output.
214 %description driver-tk -l pl.UTF-8
215 Sterownik Tk i tkwin dla biblioteki PLplot. Obsługują wyjście poprzez
218 %package driver-cairo
219 Summary: Cairo driver for PLplot library
220 Summary(pl.UTF-8): Sterownik cairo dla biblioteki PLplot
222 Requires: %{name} = %{version}-%{release}
224 %description driver-cairo
225 Cairo driver for PLplot library. It supports JPEG and PNG output
228 %description driver-cairo -l pl.UTF-8
229 Sterownik cairo dla biblioteki PLplot. Obsługuje formaty wyjścia JPEG
233 Summary: Qt5 driver for PLplot library
234 Summary(pl.UTF-8): Sterownik Qt5 dla biblioteki PLplot
236 Requires: %{name}-qt5 = %{version}-%{release}
238 %description driver-qt5
239 Qt5 driver for PLplot library. Supports Qt5 output.
241 %description driver-qt5 -l pl.UTF-8
242 Sterownik Qt5 dla biblioteki PLplot. Obsługuje wyjście poprzez Qt5.
244 %package driver-wxwidgets
245 Summary: wxWidgets driver for PLplot library
246 Summary(pl.UTF-8): Sterownik wxWidgets dla biblioteki PLplot
248 Requires: %{name} = %{version}-%{release}
250 %description driver-wxwidgets
251 wxWidgets driver for PLplot library. Supports wxWidgets output.
253 %description driver-wxwidgets -l pl.UTF-8
254 Sterownik wxWidgets dla biblioteki PLplot. Obsługuje wyjście poprzez
258 Summary: xwin driver for PLplot library
259 Summary(pl.UTF-8): Sterownik xwin dla biblioteki PLplot
261 Requires: %{name} = %{version}-%{release}
263 %description driver-xwin
264 xwin driver for PLplot library. It supports X Window System output.
266 %description driver-xwin -l pl.UTF-8
267 Sterownik ntk (new tk) dla biblioteki PLplot. Obsługuje wyjście do
268 okna systemu X Window.
271 Summary: Header files for PLplot library
272 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki PLplot
273 Group: Development/Libraries
274 Requires: %{name} = %{version}-%{release}
275 Requires: freetype-devel >= 2.1
276 Requires: qhull-devel
277 Obsoletes: plplot-f77-devel
278 Obsoletes: plplot-static
281 Header files for PLplot library.
283 %description devel -l pl.UTF-8
284 Pliki nagłówkowe biblioteki PLplot.
287 Summary: PLplot library - C++ binding
288 Summary(pl.UTF-8): Biblioteka PLplot - wiązanie dla C++
290 Requires: %{name} = %{version}-%{release}
293 PLplot library - C++ binding.
295 %description c++ -l pl.UTF-8
296 Biblioteka PLplot - wiązanie dla C++.
299 Summary: PLplot library - C++ binding development files
300 Summary(pl.UTF-8): Biblioteka PLplot - pliki programistyczne wiązania dla C++
301 Group: Development/Libraries
302 Requires: %{name}-c++ = %{version}-%{release}
303 Requires: %{name}-devel = %{version}-%{release}
304 Requires: libstdc++-devel
305 Obsoletes: plplot-c++-static
307 %description c++-devel
308 PLplot library - C++ binding development files.
310 %description c++-devel -l pl.UTF-8
311 Biblioteka PLplot - pliki programistyczne wiązania dla C++.
314 Summary: PLplot library - D binding
315 Summary(pl.UTF-8): Biblioteka PLplot - wiązanie dla języka D
316 Group: Development/Libraries
317 Requires: %{name}-devel = %{version}-%{release}
320 PLplot library - D binding.
322 %description d-devel -l pl.UTF-8
323 Biblioteka PLplot - wiązanie dla języka D.
326 Summary: PLplot library - FORTRAN 95 binding
327 Summary(pl.UTF-8): Biblioteka PLplot - wiązanie dla języka FORTRAN 95
329 Requires: %{name} = %{version}-%{release}
330 Obsoletes: plplot-f95
333 PLplot library - FORTRAN 95 binding.
335 %description fortran -l pl.UTF-8
336 Biblioteka PLplot - wiązanie dla języka FORTRAN 95.
338 %package fortran-devel
339 Summary: PLplot library - FORTRAN 95 binding development files
340 Summary(pl.UTF-8): Biblioteka PLplot - pliki programistyczne wiązania dla języka FORTRAN 95
341 Group: Development/Libraries
342 Requires: %{name}-devel = %{version}-%{release}
343 Requires: %{name}-fortran = %{version}-%{release}
344 Requires: gcc-fortran
345 Obsoletes: plplot-f95-devel
347 %description fortran-devel
348 PLplot library - FORTRAN 95 binding development files.
350 %description fortran-devel -l pl.UTF-8
351 Biblioteka PLplot - pliki programistyczne wiązania dla języka FORTRAN
355 Summary: PLplot library - Ada binding
356 Summary(pl.UTF-8): Biblioteka PLplot - wiązanie dla Ady
358 Requires: %{name} = %{version}-%{release}
361 PLplot library - Ada binding.
363 %description ada -l pl.UTF-8
364 Biblioteka PLplot - wiązanie dla Ady.
367 Summary: PLplot library - Ada binding development files
368 Summary(pl.UTF-8): Biblioteka PLplot - pliki programistyczne wiązania dla Ady
369 Group: Development/Libraries
370 Requires: %{name}-devel = %{version}-%{release}
371 Requires: %{name}-ada = %{version}-%{release}
373 %description ada-devel
374 PLplot library - Ada binding development files.
376 %description ada-devel -l pl.UTF-8
377 Biblioteka PLplot - pliki programistyczne wiązania dla Ady.
380 Summary: PLplot library - Java binding
381 Summary(pl.UTF-8): Biblioteka PLplot - wiązanie dla Javy
383 Requires: %{name} = %{version}-%{release}
386 PLplot library - Java binding.
388 %description java -l pl.UTF-8
389 Biblioteka PLplot - wiązanie dla Javy.
392 Summary: PLplot library - Java binding development files
393 Summary(pl.UTF-8): Biblioteka PLplot - pliki programistyczne wiązania dla Javy
394 Group: Development/Libraries
395 Requires: %{name}-devel = %{version}-%{release}
396 Requires: %{name}-java = %{version}-%{release}
397 Obsoletes: plplot-java-static
399 %description java-devel
400 PLplot library - Java binding development files.
402 %description java-devel -l pl.UTF-8
403 Biblioteka PLplot - pliki programistyczne wiązania dla Javy.
406 Summary: PLplot library - Tcl/Tk binding
407 Summary(pl.UTF-8): Biblioteka PLplot - wiązanie dla Tcl/Tk
409 Requires: %{name} = %{version}-%{release}
412 PLplot library - Tcl/Tk binding.
414 %description tcl -l pl.UTF-8
415 Biblioteka PLplot - wiązanie dla Tcl/Tk.
418 Summary: PLplot library - Tcl/Tk binding development files
419 Summary(pl.UTF-8): Biblioteka PLplot - pliki programistyczne wiązania dla Tcl/Tk
420 Group: Development/Libraries
421 Requires: %{name}-devel = %{version}-%{release}
422 Requires: %{name}-tcl = %{version}-%{release}
423 %{?with_itcl:Requires: itcl-devel}
424 Obsoletes: plplot-tcl-static
426 %description tcl-devel
427 PLplot library - Tcl/Tk binding development files.
429 %description tcl-devel -l pl.UTF-8
430 Biblioteka PLplot - pliki programistyczne wiązania dla Tcl/Tk.
433 Summary: PLplot library - Qt5 binding
434 Summary(pl.UTF-8): Biblioteka PLplot - wiązanie dla Qt5
436 Requires: %{name} = %{version}-%{release}
439 PLplot library - Qt5 binding.
441 %description qt5 -l pl.UTF-8
442 Biblioteka PLplot - wiązanie dla Qt5.
445 Summary: PLplot library - Qt5 binding development files
446 Summary(pl.UTF-8): Biblioteka PLplot - pliki programistyczne wiązania dla Qt5
447 Group: Development/Libraries
448 Requires: %{name}-qt5 = %{version}-%{release}
449 Requires: %{name}-devel = %{version}-%{release}
450 Requires: QtGui-devel
451 Requires: QtSvg-devel
452 Requires: QtXml-devel
454 %description qt5-devel
455 PLplot library - Qt5 binding development files.
457 %description qt5-devel -l pl.UTF-8
458 Biblioteka PLplot - pliki programistyczne wiązania dla Qt5.
461 Summary: PLplot library - wxWidgets binding
462 Summary(pl.UTF-8): Biblioteka PLplot - wiązanie dla wxWidgets
464 Requires: %{name} = %{version}-%{release}
465 Requires: wxGTK2-unicode >= 2.6.0
467 %description wxwidgets
468 PLplot library - wxwidgets binding.
470 %description wxwidgets -l pl.UTF-8
471 Biblioteka PLplot - wiązanie dla wxWidgets.
473 %package wxwidgets-devel
474 Summary: PLplot library - wxWidgets binding development files
475 Summary(pl.UTF-8): Biblioteka PLplot - pliki programistyczne wiązania dla wxWidgets
476 Group: Development/Libraries
477 Requires: %{name}-wxwidgets = %{version}-%{release}
478 Requires: %{name}-devel = %{version}-%{release}
479 Requires: wxGTK2-unicode-devel >= 2.6.0
481 %description wxwidgets-devel
482 PLplot library - wxWidgets binding development files.
484 %description wxwidgets-devel -l pl.UTF-8
485 Biblioteka PLplot - pliki programistyczne wiązania dla wxWidgets.
488 Summary: PLplot library - Octave binding
489 Summary(pl.UTF-8): Biblioteka PLplot - wiązanie dla języka Octave
491 Requires: %{name} = %{version}-%{release}
494 PLplot library - Octave binding.
496 %description octave -l pl.UTF-8
497 Biblioteka PLplot - wiązanie dla języka Octave.
499 %package octave-examples
500 Summary: PLplot library - examples for Octave binding
501 Summary(pl.UTF-8): Biblioteka PLplot - przykłady do wiązania dla języka Octave
502 Group: Development/Libraries
503 Requires: %{name}-devel = %{version}-%{release}
504 Requires: %{name}-octave = %{version}-%{release}
506 %description octave-examples
507 PLplot library - examples for Octave binding.
509 %description octave-examples -l pl.UTF-8
510 Biblioteka PLplot - przykłady do wiązania dla języka Octave.
512 %package -n lua-plplot
513 Summary: Lua binding for PLplot library
514 Summary(pl.UTF-8): Wiązanie języka Lua do biblioteki PLplot
515 Group: Development/Languages
516 Requires: %{name} = %{version}-%{release}
517 Requires: lua51-libs >= 5.1
519 %description -n lua-plplot
520 Lua binding for PLplot library.
522 %description -n lua-plplot -l pl.UTF-8
523 Wiązanie języka Lua do biblioteki PLplot.
525 %package -n ocaml-plplot
526 Summary: OCaml binding for PLplot library
527 Summary(pl.UTF-8): Wiązanie języka OCaml do biblioteki PLplot
529 Requires: %{name} = %{version}-%{release}
530 %requires_eq ocaml-runtime
532 %description -n ocaml-plplot
533 OCaml binding for PLplot library.
535 %description -n ocaml-plplot -l pl.UTF-8
536 Wiązanie języka OCaml do biblioteki PLplot.
538 %package -n ocaml-plplot-devel
539 Summary: Development files for OCaml binding for PLplot library
540 Summary(pl.UTF-8): Wiązanie języka OCaml do biblioteki PLplot - pliki programistyczne
541 Group: Development/Libraries
542 Requires: ocaml-plplot = %{version}-%{release}
545 %description -n ocaml-plplot-devel
546 Development files for OCaml binding for PLplot library.
548 %description -n ocaml-plplot-devel -l pl.UTF-8
549 Wiązanie języka OCaml do biblioteki PLplot - pliki programistyczne.
551 %package -n ocaml-plcairo
552 Summary: PLcairo - Cairo extras for OCaml binding for PLplot library
553 Summary(pl.UTF-8): PLcairo - dodatki Cairo do wiązania języka OCaml do biblioteki PLplot
555 Requires: ocaml-plplot = %{version}-%{release}
556 Requires: ocaml-cairo2
557 Requires: ocaml-cairo2-gtk
558 %requires_eq ocaml-runtime
560 %description -n ocaml-plcairo
561 PLcairo - Cairo extras for OCaml binding for PLplot library.
563 %description -n ocaml-plcairo -l pl.UTF-8
564 PLcairo - dodatki Cairo do wiązania języka OCaml do biblioteki PLplot.
566 %package -n ocaml-plcairo-devel
567 Summary: Development files for PLcairo OCaml library
568 Summary(pl.UTF-8): Pliki programistyczne biblioteki OCamla PLcairo
569 Group: Development/Libraries
570 Requires: ocaml-cairo2-devel
571 Requires: ocaml-cairo2-gtk-devel
572 Requires: ocaml-plcairo = %{version}-%{release}
573 Requires: ocaml-plplot-devel = %{version}-%{release}
576 %description -n ocaml-plcairo-devel
577 Development files for PLcairo OCaml library.
579 %description -n ocaml-plcairo-devel -l pl.UTF-8
580 Pliki programistyczne biblioteki OCamla PLcairo.
582 %package -n python-plplot
583 Summary: PLplot library - Python binding
584 Summary(pl.UTF-8): Biblioteka PLplot - wiązanie dla Pythona
585 Group: Libraries/Python
586 Requires: %{name} = %{version}-%{release}
587 Requires: %{name}-tcl = %{version}-%{release}
588 %pyrequires_eq python-libs
589 Requires: python-numpy
591 %description -n python-plplot
592 PLplot library - Python binding.
594 %description -n python-plplot -l pl.UTF-8
595 Biblioteka PLplot - wiązanie dla Pythona.
597 %package -n python-plplot-qt5
598 Summary: PLplot library - PyQt5 binding
599 Summary(pl.UTF-8): Biblioteka PLplot - wiązanie dla PyQt5
600 Group: Libraries/Python
601 Requires: python-plplot = %{version}-%{release}
602 %pyrequires_eq python-libs
603 Requires: python-numpy
605 %description -n python-plplot-qt5
606 PLplot library - Python/PyQt5 binding.
608 %description -n python-plplot-qt5 -l pl.UTF-8
609 Biblioteka PLplot - wiązanie dla Pythona/PyQt5.
611 %package -n python-plplot-examples
612 Summary: PLplot library - Python binding examples
613 Summary(pl.UTF-8): Biblioteka PLplot - przykłady do wiązania dla Pythona
614 Group: Libraries/Python
615 Requires: %{name}-devel = %{version}-%{release}
616 Requires: python-plplot = %{version}-%{release}
618 %description -n python-plplot-examples
619 PLplot library - Python binding examples.
621 %description -n python-plplot-examples -l pl.UTF-8
622 Biblioteka PLplot - przykłady do wiązania dla Pythona.
630 %{__sed} -E -i -e '1s,#!\s*/usr/bin/env\s+python2(\s|$),#!%{__python}\1,' \
631 -e '1s,#!\s*/usr/bin/env\s+python(\s|$),#!%{__python}\1,' \
632 -e '1s,#!\s*/usr/bin/python(\s|$),#!%{__python}\1,' \
638 # required for cmake to find JNI headers/libs when lib64 is in use
639 %{?with_java:export JAVA_HOME=%{_jvmlibdir}/java}
640 # NOTE: no %{_libdir}/jni in PLD, use plain %{_libdir}
644 -DADA_INCLUDE_DIR=%{ada_incdir} \
645 -DADA_LIB_DIR=%{ada_objdir} \
655 -DCMAKE_Java_RUNTIME=%{java} \
656 -DCMAKE_Java_COMPILER=%{javac} \
657 -DCMAKE_Java_ARCHIVE=%{jar} \
658 -DJAR_DIR=%{_javadir} \
659 -DJAVAWRAPPER_DIR=%{_libdir} \
666 -DREQUIRED_LUA_VERSION=5.1 \
670 -DENABLE_itcl=%{?with_itcl:ON}%{!?with_itcl:OFF} \
671 -DENABLE_itk=%{?with_itcl:ON}%{!?with_itcl:OFF} \
674 -DOCAML_INSTALL_DIR=%{_libdir}/ocaml \
678 -DENABLE_octave=%{?with_octave:ON}%{!?with_octave:OFF} \
679 %{!?with_perl_pdl:-DENABLE_pdl=OFF} \
681 -DPLPLOT_USE_QT5=ON \
682 -DFORTRAN_MOD_DIR=%{_includedir}/plplot \
683 -DOCTAVE_INCLUDE_PATH=%{_includedir}/octave \
684 -DOCTAVE_OCT_DIR=%{octave_oct_sitedir} \
685 -DOCTAVE_M_DIR=%{octave_m_sitedir} \
686 -DPL_FREETYPE_FONT_PATH=/usr/share/fonts/TTF \
687 %{?with_cgm:-DPLD_cgm=ON} \
690 %{?with_plmeta:-DPLD_plmeta=ON} \
693 -DPython_ADDITIONAL_VERSIONS=2.7 \
694 -DUSE_INCRTCL_VERSION_4=ON \
697 -DPLPLOT_ITCL_VERSION="$(rpm -q itcl --qf '%%{VERSION}')" \
698 -DPLPLOT_ITK_VERSION="$(rpm -q itk --qf '%%{VERSION}')" \
699 -DIWIDGETS_VERSIONS_LIST="$(rpm -q iwidgets --qf '%%{VERSION}');$(rpm -q itk --qf '%%{VERSION}');$(rpm -q itcl --qf '%%{VERSION}')" \
701 -DwxWidgets_CONFIG_EXECUTABLE=/usr/bin/wx-gtk2-unicode-config \
702 -DwxWidgets_USE_UNICODE=ON
707 rm -rf $RPM_BUILD_ROOT
708 install -d $RPM_BUILD_ROOT%{_examplesdir}
710 %{__make} -C build install \
711 DESTDIR=$RPM_BUILD_ROOT
713 %{__mv} $RPM_BUILD_ROOT%{_datadir}/plplot%{version}/examples \
714 $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
716 %{__rm} -rf installed-docs
717 %{__mv} $RPM_BUILD_ROOT%{_docdir}/plplot installed-docs
719 %py_comp $RPM_BUILD_ROOT%{py_sitedir}
720 %py_ocomp $RPM_BUILD_ROOT%{py_sitedir}
724 rm -rf $RPM_BUILD_ROOT
726 %post -p /sbin/ldconfig
727 %postun -p /sbin/ldconfig
729 %post c++ -p /sbin/ldconfig
730 %postun c++ -p /sbin/ldconfig
732 %post fortran -p /sbin/ldconfig
733 %postun fortran -p /sbin/ldconfig
735 %post ada -p /sbin/ldconfig
736 %postun ada -p /sbin/ldconfig
738 %post tcl -p /sbin/ldconfig
739 %postun tcl -p /sbin/ldconfig
741 %post qt5 -p /sbin/ldconfig
742 %postun qt5 -p /sbin/ldconfig
744 %post wxwidgets -p /sbin/ldconfig
745 %postun wxwidgets -p /sbin/ldconfig
748 %defattr(644,root,root,755)
749 %doc ABOUT AUTHORS ChangeLog.release Copyright FAQ NEWS PROBLEMS README README.release SERVICE ToDo
750 %doc installed-docs/README.{csa,nn,drivers}
752 %attr(755,root,root) %{_bindir}/plm2gif
753 %attr(755,root,root) %{_bindir}/plpr
754 %attr(755,root,root) %{_bindir}/plrender
756 %attr(755,root,root) %{_bindir}/pltek
757 %attr(755,root,root) %{_bindir}/pstex2eps
758 %attr(755,root,root) %{_libdir}/libcsirocsa.so.*.*.*
759 %attr(755,root,root) %ghost %{_libdir}/libcsirocsa.so.0
760 %attr(755,root,root) %{_libdir}/libcsironn.so.*.*.*
761 %attr(755,root,root) %ghost %{_libdir}/libcsironn.so.0
763 %attr(755,root,root) %{_libdir}/libnistcd.so.*.*.*
764 %attr(755,root,root) %ghost %{_libdir}/libnistcd.so.0
766 %attr(755,root,root) %{_libdir}/libqsastime.so.*.*.*
767 %attr(755,root,root) %ghost %{_libdir}/libqsastime.so.0
768 %attr(755,root,root) %{_libdir}/libplplot.so.*.*.*
769 %attr(755,root,root) %ghost %{_libdir}/libplplot.so.16
771 %{_mandir}/man1/plm2gif.1*
772 %{_mandir}/man1/plpr.1*
773 %{_mandir}/man1/plrender.1*
775 %{_mandir}/man1/pltek.1*
776 %{_mandir}/man1/pstex2eps.1*
777 %dir %{_libdir}/plplot%{version}
778 %dir %{_libdir}/plplot%{version}/drivers
780 %attr(755,root,root) %{_libdir}/plplot%{version}/drivers/cgm.so
781 %{_libdir}/plplot%{version}/drivers/cgm.driver_info
783 %attr(755,root,root) %{_libdir}/plplot%{version}/drivers/mem.so
784 %{_libdir}/plplot%{version}/drivers/mem.driver_info
785 %attr(755,root,root) %{_libdir}/plplot%{version}/drivers/null.so
786 %{_libdir}/plplot%{version}/drivers/null.driver_info
788 %attr(755,root,root) %{_libdir}/plplot%{version}/drivers/plmeta.so
789 %{_libdir}/plplot%{version}/drivers/plmeta.driver_info
791 %attr(755,root,root) %{_libdir}/plplot%{version}/drivers/ps.so
792 %{_libdir}/plplot%{version}/drivers/ps.driver_info
793 %attr(755,root,root) %{_libdir}/plplot%{version}/drivers/pstex.so
794 %{_libdir}/plplot%{version}/drivers/pstex.driver_info
795 %attr(755,root,root) %{_libdir}/plplot%{version}/drivers/svg.so
796 %{_libdir}/plplot%{version}/drivers/svg.driver_info
797 %attr(755,root,root) %{_libdir}/plplot%{version}/drivers/xfig.so
798 %{_libdir}/plplot%{version}/drivers/xfig.driver_info
799 %dir %{_datadir}/plplot%{version}
800 %{_datadir}/plplot%{version}/*.pal
801 %{_datadir}/plplot%{version}/*.fnt
804 %defattr(644,root,root,755)
805 %attr(755,root,root) %{_libdir}/plplot%{version}/drivers/cairo.so
806 %{_libdir}/plplot%{version}/drivers/cairo.driver_info
809 %defattr(644,root,root,755)
810 %attr(755,root,root) %{_libdir}/plplot%{version}/drivers/ntk.so
811 %{_libdir}/plplot%{version}/drivers/ntk.driver_info
814 %defattr(644,root,root,755)
815 %attr(755,root,root) %{_libdir}/plplot%{version}/drivers/pdf.so
816 %{_libdir}/plplot%{version}/drivers/pdf.driver_info
819 %defattr(644,root,root,755)
820 %attr(755,root,root) %{_libdir}/plplot%{version}/drivers/psttf.so
821 %{_libdir}/plplot%{version}/drivers/psttf.driver_info
824 %defattr(644,root,root,755)
825 %attr(755,root,root) %{_libdir}/plplot%{version}/drivers/tk.so
826 %{_libdir}/plplot%{version}/drivers/tk.driver_info
827 %attr(755,root,root) %{_libdir}/plplot%{version}/drivers/tkwin.so
828 %{_libdir}/plplot%{version}/drivers/tkwin.driver_info
831 %defattr(644,root,root,755)
832 %attr(755,root,root) %{_libdir}/plplot%{version}/drivers/qt.so
833 %{_libdir}/plplot%{version}/drivers/qt.driver_info
835 %files driver-wxwidgets
836 %defattr(644,root,root,755)
837 %attr(755,root,root) %{_libdir}/plplot%{version}/drivers/wxwidgets.so
838 %{_libdir}/plplot%{version}/drivers/wxwidgets.driver_info
841 %defattr(644,root,root,755)
842 %attr(755,root,root) %{_libdir}/plplot%{version}/drivers/xwin.so
843 %{_libdir}/plplot%{version}/drivers/xwin.driver_info
846 %defattr(644,root,root,755)
847 %attr(755,root,root) %{_libdir}/libcsirocsa.so
848 %attr(755,root,root) %{_libdir}/libcsironn.so
850 %attr(755,root,root) %{_libdir}/libnistcd.so
852 %attr(755,root,root) %{_libdir}/libplplot.so
853 %attr(755,root,root) %{_libdir}/libqsastime.so
854 %dir %{_includedir}/plplot
856 %{_includedir}/plplot/cd.h
857 %{_includedir}/plplot/defines.h
859 %{_includedir}/plplot/csa.h
860 %{_includedir}/plplot/csadll.h
861 %{_includedir}/plplot/disptab.h
862 %{_includedir}/plplot/drivers.h
863 %{_includedir}/plplot/nn.h
864 %{_includedir}/plplot/nndll.h
865 %{_includedir}/plplot/pdf.h
866 %{_includedir}/plplot/plConfig.h
867 %{_includedir}/plplot/plDevs.h
868 %{_includedir}/plplot/pldebug.h
869 %{_includedir}/plplot/pldll.h
870 %{_includedir}/plplot/plevent.h
871 %{_includedir}/plplot/plplot.h
872 %{_includedir}/plplot/plplotP.h
873 %{_includedir}/plplot/plstrm.h
874 %{_includedir}/plplot/qsastime.h
875 %{_includedir}/plplot/qsastimedll.h
876 # xwin driver (uses X11 headers)
877 %{_includedir}/plplot/plxwd.h
878 %{_pkgconfigdir}/plplot.pc
879 %{_libdir}/cmake/plplot
880 %dir %{_examplesdir}/%{name}-%{version}
881 %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/Chloe.pgm
882 %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/README.Chloe
883 %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/plplot-test.sh
884 %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/plplot-test-interactive.sh
885 %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/test_c.sh
886 %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/test_c_interactive.sh
887 %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/test_diff.sh
889 %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/test_plrender.sh
891 %{_examplesdir}/%{name}-%{version}/c
892 %{_examplesdir}/%{name}-%{version}/cmake
893 %{_examplesdir}/%{name}-%{version}/CMakeLists.txt
894 %{_examplesdir}/%{name}-%{version}/Makefile
896 # perl examples use PDL::Graphics::PLplot module found in perl-PDL
897 %{_examplesdir}/%{name}-%{version}/perl
901 %defattr(644,root,root,755)
902 %attr(755,root,root) %{_libdir}/libplplotcxx.so.*.*.*
903 %attr(755,root,root) %ghost %{_libdir}/libplplotcxx.so.14
906 %defattr(644,root,root,755)
907 %attr(755,root,root) %{_libdir}/libplplotcxx.so
908 %{_includedir}/plplot/plstream.h
909 %{_pkgconfigdir}/plplot-c++.pc
910 %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/test_cxx.sh
911 %{_examplesdir}/%{name}-%{version}/c++
915 %defattr(644,root,root,755)
916 %{_libdir}/libplplotdmd.a
917 %{_includedir}/plplot/plplot.d
918 %{_pkgconfigdir}/plplot-d.pc
919 %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/test_d.sh
920 %{_examplesdir}/%{name}-%{version}/d
924 %defattr(644,root,root,755)
925 %doc bindings/fortran/README_array_sizes
926 %attr(755,root,root) %{_libdir}/libplplotfortran.so.*.*.*
927 %attr(755,root,root) %ghost %{_libdir}/libplplotfortran.so.0
930 %defattr(644,root,root,755)
931 %attr(755,root,root) %{_libdir}/libplplotfortran.so
932 %{_libdir}/libplfortrandemolib.a
933 %{_includedir}/plplot/plfortrandemolib.mod
934 %{_includedir}/plplot/plplot_double.mod
935 %{_includedir}/plplot/plplot_graphics.mod
936 %{_includedir}/plplot/plplot.mod
937 %{_includedir}/plplot/plplot_private_exposed.mod
938 %{_includedir}/plplot/plplot_private_utilities.mod
939 %{_includedir}/plplot/plplot_single.mod
940 %{_includedir}/plplot/plplot_types.mod
941 %{_pkgconfigdir}/plplot-fortran.pc
942 %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/test_fortran.sh
943 %{_examplesdir}/%{name}-%{version}/fortran
947 %defattr(644,root,root,755)
948 %attr(755,root,root) %{_libdir}/libplplotada.so.*.*.*
949 %attr(755,root,root) %ghost %{_libdir}/libplplotada.so.4
952 %defattr(644,root,root,755)
953 %attr(755,root,root) %{_libdir}/libplplotada.so
954 %{ada_objdir}/plplot_*.ali
955 %{ada_incdir}/plplot*.ad*
956 %{_pkgconfigdir}/plplot-ada.pc
957 %{_examplesdir}/%{name}-%{version}/ada
958 %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/test_ada.sh
963 %defattr(644,root,root,755)
964 %attr(755,root,root) %{_libdir}/libplplotjavac_wrap.so
965 %{_javadir}/plplot.jar
968 %defattr(644,root,root,755)
969 %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/test_java.sh
970 %{_examplesdir}/%{name}-%{version}/java
974 %defattr(644,root,root,755)
975 %attr(755,root,root) %{_bindir}/pltcl
976 %attr(755,root,root) %{_bindir}/plserver
977 %attr(755,root,root) %{_libdir}/libplplottcltk.so.*.*.*
978 %attr(755,root,root) %ghost %{_libdir}/libplplottcltk.so.14
979 %attr(755,root,root) %{_libdir}/libtclmatrix.so.*.*.*
980 %attr(755,root,root) %ghost %{_libdir}/libtclmatrix.so.10
981 %attr(755,root,root) %{_libdir}/libplplottcltk_Main.so.*.*.*
982 %attr(755,root,root) %ghost %{_libdir}/libplplottcltk_Main.so.1
983 %{_datadir}/plplot%{version}/*.tcl
984 %{_datadir}/plplot%{version}/tcl
985 %{_mandir}/man1/pltcl.1*
986 %{_mandir}/man1/plserver.1*
989 %defattr(644,root,root,755)
990 %attr(755,root,root) %{_libdir}/libplplottcltk.so
991 %attr(755,root,root) %{_libdir}/libtclmatrix.so
992 %attr(755,root,root) %{_libdir}/libplplottcltk_Main.so
993 %{_includedir}/plplot/pltcl.h
994 %{_includedir}/plplot/pltk.h
995 %{_includedir}/plplot/tclMatrix.h
996 %{_pkgconfigdir}/plplot-tcl.pc
997 %{_pkgconfigdir}/plplot-tcl_Main.pc
998 %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/test_tcl.sh
999 %{_examplesdir}/%{name}-%{version}/tcl
1000 %{_examplesdir}/%{name}-%{version}/tk
1003 %defattr(644,root,root,755)
1004 %attr(755,root,root) %{_libdir}/libplplotqt.so.*.*.*
1005 %attr(755,root,root) %ghost %{_libdir}/libplplotqt.so.2
1008 %defattr(644,root,root,755)
1009 %attr(755,root,root) %{_libdir}/libplplotqt.so
1010 %{_includedir}/plplot/qt.h
1011 %{_pkgconfigdir}/plplot-qt.pc
1014 %defattr(644,root,root,755)
1015 %attr(755,root,root) %{_bindir}/wxPLViewer
1016 %attr(755,root,root) %{_libdir}/libplplotwxwidgets.so.*.*.*
1017 %attr(755,root,root) %ghost %{_libdir}/libplplotwxwidgets.so.1
1019 %files wxwidgets-devel
1020 %defattr(644,root,root,755)
1021 %attr(755,root,root) %{_libdir}/libplplotwxwidgets.so
1022 %{_includedir}/plplot/wxPLplot*.h
1023 %{_pkgconfigdir}/plplot-wxwidgets.pc
1027 %defattr(644,root,root,755)
1028 %doc bindings/octave/{BUGS,FGA,README,ToDo,USAGE}
1029 %attr(755,root,root) %{octave_oct_sitedir}/plplot_octave.oct
1030 %{octave_m_sitedir}/*.m
1031 %{_datadir}/plplot_octave
1032 %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/test_octave_interactive.sh
1034 %files octave-examples
1035 %defattr(644,root,root,755)
1036 %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/test_octave.sh
1037 %{_examplesdir}/%{name}-%{version}/octave
1041 %files -n lua-plplot
1042 %defattr(644,root,root,755)
1043 %dir %{_libdir}/lua/5.1/plplot
1044 %attr(755,root,root) %{_libdir}/lua/5.1/plplot/plplotluac.so
1045 %{_examplesdir}/%{name}-%{version}/lua
1046 %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/test_lua.sh
1050 %files -n ocaml-plplot
1051 %defattr(644,root,root,755)
1052 %attr(755,root,root) %{_libdir}/ocaml/stublibs/dllplplot_stubs.so
1054 %files -n ocaml-plplot-devel
1055 %dir %{_libdir}/ocaml/plplot
1056 %{_libdir}/ocaml/plplot/META
1057 %{_libdir}/ocaml/plplot/libplplot_stubs.a
1058 %{_libdir}/ocaml/plplot/plplot.cma
1059 %{_libdir}/ocaml/plplot/plplot.cmi
1060 %{_libdir}/ocaml/plplot/plplot.mli
1061 %if %{with ocaml_opt}
1062 %{_libdir}/ocaml/plplot/plplot.a
1063 %{_libdir}/ocaml/plplot/plplot.cmx
1064 %{_libdir}/ocaml/plplot/plplot.cmxa
1066 %{_pkgconfigdir}/plplot-ocaml.pc
1067 %{_examplesdir}/%{name}-%{version}/ocaml
1068 %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/test_ocaml.sh
1070 %if %{with ocaml_cairo}
1071 %files -n ocaml-plcairo
1072 %defattr(644,root,root,755)
1073 %attr(755,root,root) %{_libdir}/ocaml/stublibs/dllplcairo_stubs.so
1075 %files -n ocaml-plcairo-devel
1076 %dir %{_libdir}/ocaml/plcairo
1077 %{_libdir}/ocaml/plcairo/META
1078 %{_libdir}/ocaml/plcairo/libplcairo_stubs.a
1079 %{_libdir}/ocaml/plcairo/plcairo.cma
1080 %{_libdir}/ocaml/plcairo/plcairo.cmi
1081 %{_libdir}/ocaml/plcairo/plcairo.mli
1082 %if %{with ocaml_opt}
1083 %{_libdir}/ocaml/plcairo/plcairo.a
1084 %{_libdir}/ocaml/plcairo/plcairo.cmxa
1089 %files -n python-plplot
1090 %defattr(644,root,root,755)
1091 %attr(755,root,root) %{py_sitedir}/_Pltk_init.so
1092 %attr(755,root,root) %{py_sitedir}/_plplotc.so
1093 %{py_sitedir}/Plframe.py[co]
1094 %{py_sitedir}/Pltk_init.py[co]
1095 %{py_sitedir}/plplotc.py[co]
1096 %{py_sitedir}/plplot.py[co]
1097 %{py_sitedir}/TclSup.py[co]
1099 %files -n python-plplot-qt5
1100 %defattr(644,root,root,755)
1101 %attr(755,root,root) %{py_sitedir}/plplot_pyqt5.so
1103 %files -n python-plplot-examples
1104 %defattr(644,root,root,755)
1105 %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/test_python.sh
1106 %{_examplesdir}/%{name}-%{version}/python