2 # - fix building with installed plplot/plplot-devel (tries to use installed drivers for dyn_test)
3 # - perl_pdl - why disabled?
4 # - bindings: d, gnome2, tk-x-plat?
6 # aqt driver is Darwin-only
7 # wingcc driver is Windows-only
8 # gd driver is not maintained
9 # dg300,gcw,gnome,hpgl,impress,linuxvga,ljii,ljiip,pbm,tek drivers are retired
10 # pstex driver deprecated in favour of psttf and pscairo
13 %bcond_without gnome2 # GNOME 2 and pygtk bindings
14 %bcond_with perl_pdl # enable perl examples in tests
15 %bcond_with ada # Ada 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
21 Summary: PLplot - a library of functions that are useful for making scientific plots
22 Summary(pl.UTF-8): PLplot - biblioteka funkcji przydatnych do tworzenia wykresów naukowych
28 Source0: http://downloads.sourceforge.net/plplot/%{name}-%{version}.tar.gz
29 # Source0-md5: ece8c0b4d5cd815968a6d56bed0fbe7b
30 Patch0: %{name}-octave.patch
31 Patch1: %{name}-qhull.patch
32 Patch4: %{name}-nofonts.patch
33 Patch5: %{name}-adadirs.patch
34 Patch6: %{name}-ocamldir.patch
35 URL: http://plplot.sourceforge.net/
36 BuildRequires: QtGui-devel
37 BuildRequires: QtSvg-devel
38 BuildRequires: QtXml-devel
39 BuildRequires: agg-devel
40 BuildRequires: cmake >= 2.6.4
41 BuildRequires: docbook-style-dsssl
42 BuildRequires: fftw3-devel
43 BuildRequires: fftw3-single-devel
44 BuildRequires: freetype-devel >= 2.1.0
45 %{?with_ada:BuildRequires: gcc-ada >= 5:4.1}
46 BuildRequires: gcc-c++
47 BuildRequires: gcc-fortran
48 %{?with_itcl:BuildRequires: itcl-devel >= 3.4.1}
49 %{?with_itcl:BuildRequires: itk-devel >= 3.4}
50 BuildRequires: jadetex
51 %{?with_java:BuildRequires: jdk}
52 %{?with_java:BuildRequires: jpackage-utils}
53 BuildRequires: lapack-devel
54 BuildRequires: libLASi-devel
55 %{?with_gnome2:BuildRequires: libgnomeprintui-devel >= 2.2}
56 BuildRequires: libharu-devel >= 2.1.0
57 BuildRequires: libjpeg-devel
58 BuildRequires: libltdl-devel
59 BuildRequires: libpng-devel
60 BuildRequires: libstdc++-devel
61 %{?with_lua:BuildRequires: lua51 >= 5.1}
62 %{?with_lua:BuildRequires: lua51-devel >= 5.1}
63 BuildRequires: octave-devel >= 2:3.4.2
64 BuildRequires: pango-devel
65 %{?with_perl_pdl:BuildRequires: perl-PDL}
66 BuildRequires: perl-XML-DOM
67 BuildRequires: perl-XML-Parser
68 BuildRequires: perl-XML-SAX-Expat
69 BuildRequires: pkgconfig
70 BuildRequires: pango-devel
71 BuildRequires: python-PyQt4-devel
72 BuildRequires: python-numpy-devel >= 15.3
73 BuildRequires: python-devel >= 1:2.3
74 BuildRequires: python-sip-devel
75 %{?with_gnome2:BuildRequires: python-pygtk-devel >= 2:2.13.0}
76 BuildRequires: qhull-devel >= 2011.1
77 BuildRequires: qt4-build
78 BuildRequires: qt4-qmake
79 BuildRequires: rpm-pythonprov
80 BuildRequires: rpmbuild(macros) >= 1.605
81 BuildRequires: sed >= 4.0
84 BuildRequires: swig-python
85 BuildRequires: tcl-devel >= 8.5
86 BuildRequires: tetex-dvips
87 BuildRequires: texinfo
88 BuildRequires: tk-devel >= 8.5
89 BuildRequires: wxGTK2-unicode-devel >= 2.6.0
90 BuildRequires: xorg-lib-libXext-devel
91 BuildRequires: xorg-lib-libICE-devel
92 BuildRequires: xorg-lib-libX11-devel
95 BuildRequires: ocaml-cairo-devel >= 1.2.0
96 BuildRequires: ocaml-camlidl
97 BuildRequires: ocaml-findlib
98 BuildRequires: ocaml-lablgtk2-devel
100 BuildConflicts: plplot
101 BuildConflicts: plplot-devel
102 Obsoletes: plplot-f77
103 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
105 %define octave_oct_sitedir %(octave-config --oct-site-dir)
106 %define octave_m_sitedir %(octave-config --m-site-dir)
108 %define gcc_target %(%{__cc} -dumpmachine)
109 %define ada_incdir %{_libdir}/gcc/%{gcc_target}/%{cc_version}/adainclude
110 %define ada_objdir %{_libdir}/gcc/%{gcc_target}/%{cc_version}/adalib
113 PLplot is a library of functions that are useful for making scientific
114 plots. It can be used from within compiled languages such as C, C++,
115 FORTRAN and Java, and interactively from interpreted languages such as
116 Octave, Python, Perl and Tcl.
118 The PLplot library can be used to create standard X-Y plots, semilog
119 plots, log-log plots, contour plots, 3D surface plots, mesh plots, bar
120 charts and pie charts. Multiple graphs (of the same or different
121 sizes) may be placed on a single page with multiple lines in each
124 A variety of output file devices such as PostScript, PNG, JPEG, LaTeX
125 and others, as well as interactive devices such as xwin, tk, xterm and
126 Tektronics devices are supported. New devices can be easily added by
127 writing a small number of device dependent routines.
129 %description -l pl.UTF-8
130 PLplot to biblioteka funkcji przydatnych do tworzenia wykresów
131 naukowych. Może być używana z poziomu języków kompilowanych takich jak
132 C, C++, FORTRAN czy Java, albo interaktywnie z poziomu języków
133 interpretowanych takich jak Octave, Python, Perl czy Tcl.
135 Bibliotekę PLplot można wykorzystać do tworzenia standardowych
136 wykresów X-Y, wykresów półlogarytmicznych, wykresów konturowych,
137 wykresów powierzchni trójwymiarowych, wykresów siatek, wykresów
138 słupkowych i kołowych. Na jednej stronie można umieścić wiele wykresów
139 (o tych samych lub różnych rozmiarach), na jednym wykresie może być
142 Obsługiwanych jest wiele urządzeń wyjściowych, w tym PostScript, PNG,
143 JPEG, LaTeX i inne, a także urządzenia interaktywne, takie jak xwin,
144 tk, xterm i Tektronics. Nowe urządzenia można łatwo dodać pisząc parę
145 zależnych od urządzenia funkcji.
148 Summary: ntk driver for PLplot library
149 Summary(pl.UTF-8): Sterownik ntk dla biblioteki PLplot
151 Requires: %{name} = %{version}-%{release}
153 %description driver-ntk
154 ntk (new tk) driver for PLplot library. It supports Tcl/Tk output.
156 %description driver-ntk -l pl.UTF-8
157 Sterownik ntk (new tk) dla biblioteki PLplot. Obsługuje wyjście
161 Summary: pdf driver for PLplot library
162 Summary(pl.UTF-8): Sterownik pdf dla biblioteki PLplot
164 Requires: %{name} = %{version}-%{release}
165 Requires: libharu >= 2.1.0
167 %description driver-pdf
168 pdf driver for PLplot library. It's PDF driver using Haru library.
170 %description driver-pdf -l pl.UTF-8
171 Sterownik pdf dla biblioteki PLplot. Jest to sterownik PDF
172 wykorzystujący bibliotekę Haru.
174 %package driver-psttf
175 Summary: psttf driver for PLplot library
176 Summary(pl.UTF-8): Sterownik psttf dla biblioteki PLplot
178 Requires: %{name} = %{version}-%{release}
180 %description driver-psttf
181 psttf driver for PLplot library. It's PostScript driver using LASi to
184 %description driver-psttf -l pl.UTF-8
185 Sterownik psttf dla biblioteki PLplot. Jest to sterownik
186 postscriptowy, wykorzystujący LASi do obsługi fontów.
189 Summary: Tk drivers for PLplot library
190 Summary(pl.UTF-8): Sterowniki Tk dla biblioteki PLplot
192 Requires: %{name}-tcl = %{version}-%{release}
194 %description driver-tk
195 Tk and tkwin drivers for PLplot library. They support Tcl/Tk output.
197 %description driver-tk -l pl.UTF-8
198 Sterownik Tk i tkwin dla biblioteki PLplot. Obsługują wyjście poprzez
201 %package driver-cairo
202 Summary: Cairo driver for PLplot library
203 Summary(pl.UTF-8): Sterownik cairo dla biblioteki PLplot
205 Requires: %{name} = %{version}-%{release}
207 %description driver-cairo
208 Cairo driver for PLplot library. It supports JPEG and PNG output
211 %description driver-cairo -l pl.UTF-8
212 Sterownik cairo dla biblioteki PLplot. Obsługuje formaty wyjścia JPEG
216 Summary: Qt4 driver for PLplot library
217 Summary(pl.UTF-8): Sterownik Qt4 dla biblioteki PLplot
219 Requires: %{name}-qt4 = %{version}-%{release}
221 %description driver-qt4
222 Qt4 driver for PLplot library. Supports Qt4 output.
224 %description driver-qt4 -l pl.UTF-8
225 Sterownik Qt4 dla biblioteki PLplot. Obsługuje wyjście poprzez Qt4.
227 %package driver-wxwidgets
228 Summary: wxWidgets driver for PLplot library
229 Summary(pl.UTF-8): Sterownik wxWidgets dla biblioteki PLplot
231 Requires: %{name} = %{version}-%{release}
233 %description driver-wxwidgets
234 wxWidgets driver for PLplot library. Supports wxWidgets output.
236 %description driver-wxwidgets -l pl.UTF-8
237 Sterownik wxWidgets dla biblioteki PLplot. Obsługuje wyjście poprzez
241 Summary: xwin driver for PLplot library
242 Summary(pl.UTF-8): Sterownik xwin dla biblioteki PLplot
244 Requires: %{name} = %{version}-%{release}
246 %description driver-xwin
247 xwin driver for PLplot library. It supports X Window System output.
249 %description driver-xwin -l pl.UTF-8
250 Sterownik ntk (new tk) dla biblioteki PLplot. Obsługuje wyjście do
251 okna systemu X Window.
254 Summary: Header files for PLplot library
255 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki PLplot
256 Group: Development/Libraries
257 Requires: %{name} = %{version}-%{release}
258 Requires: freetype-devel >= 2.1
259 Requires: qhull-devel
260 Obsoletes: plplot-f77-devel
261 Obsoletes: plplot-static
264 Header files for PLplot library.
266 %description devel -l pl.UTF-8
267 Pliki nagłówkowe biblioteki PLplot.
270 Summary: PLplot library - C++ binding
271 Summary(pl.UTF-8): Biblioteka PLplot - wiązanie dla C++
273 Requires: %{name} = %{version}-%{release}
276 PLplot library - C++ binding.
278 %description c++ -l pl.UTF-8
279 Biblioteka PLplot - wiązanie dla C++.
282 Summary: PLplot library - C++ binding development files
283 Summary(pl.UTF-8): Biblioteka PLplot - pliki programistyczne wiązania dla C++
284 Group: Development/Libraries
285 Requires: %{name}-c++ = %{version}-%{release}
286 Requires: %{name}-devel = %{version}-%{release}
287 Requires: libstdc++-devel
288 Obsoletes: plplot-c++-static
290 %description c++-devel
291 PLplot library - C++ binding development files.
293 %description c++-devel -l pl.UTF-8
294 Biblioteka PLplot - pliki programistyczne wiązania dla C++.
297 Summary: PLplot library - FORTRAN 95 binding
298 Summary(pl.UTF-8): Biblioteka PLplot - wiązanie dla języka FORTRAN 95
300 Requires: %{name} = %{version}-%{release}
303 PLplot library - FORTRAN 95 binding.
305 %description f95 -l pl.UTF-8
306 Biblioteka PLplot - wiązanie dla języka FORTRAN 95.
309 Summary: PLplot library - FORTRAN 95 binding development files
310 Summary(pl.UTF-8): Biblioteka PLplot - pliki programistyczne wiązania dla języka FORTRAN 95
311 Group: Development/Libraries
312 Requires: %{name}-devel = %{version}-%{release}
313 Requires: %{name}-f95 = %{version}-%{release}
314 Requires: gcc-fortran
316 %description f95-devel
317 PLplot library - FORTRAN 95 binding development files.
319 %description f95-devel -l pl.UTF-8
320 Biblioteka PLplot - pliki programistyczne wiązania dla języka FORTRAN
324 Summary: PLplot library - Ada binding
325 Summary(pl.UTF-8): Biblioteka PLplot - wiązanie dla Ady
327 Requires: %{name} = %{version}-%{release}
330 PLplot library - Ada binding.
332 %description ada -l pl.UTF-8
333 Biblioteka PLplot - wiązanie dla Ady.
336 Summary: PLplot library - Ada binding development files
337 Summary(pl.UTF-8): Biblioteka PLplot - pliki programistyczne wiązania dla Ady
338 Group: Development/Libraries
339 Requires: %{name}-devel = %{version}-%{release}
340 Requires: %{name}-ada = %{version}-%{release}
342 %description ada-devel
343 PLplot library - Ada binding development files.
345 %description ada-devel -l pl.UTF-8
346 Biblioteka PLplot - pliki programistyczne wiązania dla Ady.
349 Summary: PLplot library - Java binding
350 Summary(pl.UTF-8): Biblioteka PLplot - wiązanie dla Javy
352 Requires: %{name} = %{version}-%{release}
355 PLplot library - Java binding.
357 %description java -l pl.UTF-8
358 Biblioteka PLplot - wiązanie dla Javy.
361 Summary: PLplot library - Java binding development files
362 Summary(pl.UTF-8): Biblioteka PLplot - pliki programistyczne wiązania dla Javy
363 Group: Development/Libraries
364 Requires: %{name}-devel = %{version}-%{release}
365 Requires: %{name}-java = %{version}-%{release}
366 Obsoletes: plplot-java-static
368 %description java-devel
369 PLplot library - Java binding development files.
371 %description java-devel -l pl.UTF-8
372 Biblioteka PLplot - pliki programistyczne wiązania dla Javy.
375 Summary: PLplot library - Tcl/Tk binding
376 Summary(pl.UTF-8): Biblioteka PLplot - wiązanie dla Tcl/Tk
378 Requires: %{name} = %{version}-%{release}
381 PLplot library - Tcl/Tk binding.
383 %description tcl -l pl.UTF-8
384 Biblioteka PLplot - wiązanie dla Tcl/Tk.
387 Summary: PLplot library - Tcl/Tk binding development files
388 Summary(pl.UTF-8): Biblioteka PLplot - pliki programistyczne wiązania dla Tcl/Tk
389 Group: Development/Libraries
390 Requires: %{name}-devel = %{version}-%{release}
391 Requires: %{name}-tcl = %{version}-%{release}
392 %{?with_itcl:Requires: itcl-devel}
393 Obsoletes: plplot-tcl-static
395 %description tcl-devel
396 PLplot library - Tcl/Tk binding development files.
398 %description tcl-devel -l pl.UTF-8
399 Biblioteka PLplot - pliki programistyczne wiązania dla Tcl/Tk.
402 Summary: PLplot library - Qt4 binding
403 Summary(pl.UTF-8): Biblioteka PLplot - wiązanie dla Qt4
405 Requires: %{name} = %{version}-%{release}
408 PLplot library - Qt4 binding.
410 %description qt4 -l pl.UTF-8
411 Biblioteka PLplot - wiązanie dla Qt4.
414 Summary: PLplot library - Qt4 binding development files
415 Summary(pl.UTF-8): Biblioteka PLplot - pliki programistyczne wiązania dla Qt4
416 Group: Development/Libraries
417 Requires: %{name}-qt4 = %{version}-%{release}
418 Requires: %{name}-devel = %{version}-%{release}
419 Requires: QtGui-devel
420 Requires: QtSvg-devel
421 Requires: QtXml-devel
423 %description qt4-devel
424 PLplot library - Qt4 binding development files.
426 %description qt4-devel -l pl.UTF-8
427 Biblioteka PLplot - pliki programistyczne wiązania dla Qt4.
430 Summary: PLplot library - wxWidgets binding
431 Summary(pl.UTF-8): Biblioteka PLplot - wiązanie dla wxWidgets
433 Requires: %{name} = %{version}-%{release}
434 Requires: wxGTK2-unicode >= 2.6.0
436 %description wxwidgets
437 PLplot library - wxwidgets binding.
439 %description wxwidgets -l pl.UTF-8
440 Biblioteka PLplot - wiązanie dla wxWidgets.
442 %package wxwidgets-devel
443 Summary: PLplot library - wxWidgets binding development files
444 Summary(pl.UTF-8): Biblioteka PLplot - pliki programistyczne wiązania dla wxWidgets
445 Group: Development/Libraries
446 Requires: %{name}-wxwidgets = %{version}-%{release}
447 Requires: %{name}-devel = %{version}-%{release}
448 Requires: wxGTK2-unicode-devel >= 2.6.0
450 %description wxwidgets-devel
451 PLplot library - wxWidgets binding development files.
453 %description wxwidgets-devel -l pl.UTF-8
454 Biblioteka PLplot - pliki programistyczne wiązania dla wxWidgets.
457 Summary: PLplot library - Octave binding
458 Summary(pl.UTF-8): Biblioteka PLplot - wiązanie dla języka Octave
460 Requires: %{name} = %{version}-%{release}
463 PLplot library - Octave binding.
465 %description octave -l pl.UTF-8
466 Biblioteka PLplot - wiązanie dla języka Octave.
468 %package octave-examples
469 Summary: PLplot library - examples for Octave binding
470 Summary(pl.UTF-8): Biblioteka PLplot - przykłady do wiązania dla języka Octave
471 Group: Development/Libraries
472 Requires: %{name}-devel = %{version}-%{release}
473 Requires: %{name}-octave = %{version}-%{release}
475 %description octave-examples
476 PLplot library - examples for Octave binding.
478 %description octave-examples -l pl.UTF-8
479 Biblioteka PLplot - przykłady do wiązania dla języka Octave.
481 %package -n lua-plplot
482 Summary: Lua binding for PLplot library
483 Summary(pl.UTF-8): Wiązanie języka Lua do biblioteki PLplot
484 Group: Development/Languages
485 Requires: %{name} = %{version}-%{release}
486 Requires: lua51-libs >= 5.1
488 %description -n lua-plplot
489 Lua binding for PLplot library.
491 %description -n lua-plplot -l pl.UTF-8
492 Wiązanie języka Lua do biblioteki PLplot.
494 %package -n ocaml-plplot
495 Summary: OCaml binding for PLplot library
496 Summary(pl.UTF-8): Wiązanie języka OCaml do biblioteki PLplot
498 Requires: %{name} = %{version}-%{release}
499 %requires_eq ocaml-runtime
501 %description -n ocaml-plplot
502 OCaml binding for PLplot library.
504 %description -n ocaml-plplot -l pl.UTF-8
505 Wiązanie języka OCaml do biblioteki PLplot.
507 %package -n ocaml-plplot-devel
508 Summary: Development files for OCaml binding for PLplot library
509 Summary(pl.UTF-8): Wiązanie języka OCaml do biblioteki PLplot - pliki programistyczne
510 Group: Development/Libraries
511 Requires: ocaml-plplot = %{version}-%{release}
514 %description -n ocaml-plplot-devel
515 Development files for OCaml binding for PLplot library.
517 %description -n ocaml-plplot-devel -l pl.UTF-8
518 Wiązanie języka OCaml do biblioteki PLplot - pliki programistyczne.
520 %package -n ocaml-plcairo
521 Summary: PLcairo - Cairo extras for OCaml binding for PLplot library
522 Summary(pl.UTF-8): PLcairo - dodatki Cairo do wiązania języka OCaml do biblioteki PLplot
524 Requires: ocaml-plplot = %{version}-%{release}
525 Requires: ocaml-cairo
526 %requires_eq ocaml-runtime
528 %description -n ocaml-plcairo
529 PLcairo - Cairo extras for OCaml binding for PLplot library.
531 %description -n ocaml-plcairo -l pl.UTF-8
532 PLcairo - dodatki Cairo do wiązania języka OCaml do biblioteki PLplot.
534 %package -n ocaml-plcairo-devel
535 Summary: Development files for PLcairo OCaml library
536 Summary(pl.UTF-8): Pliki programistyczne biblioteki OCamla PLcairo
537 Group: Development/Libraries
538 Requires: ocaml-cairo-devel
539 Requires: ocaml-plcairo = %{version}-%{release}
540 Requires: ocaml-plplot-devel = %{version}-%{release}
543 %description -n ocaml-plcairo-devel
544 Development files for PLcairo OCaml library.
546 %description -n ocaml-plcairo-devel -l pl.UTF-8
547 Pliki programistyczne biblioteki OCamla PLcairo.
549 %package -n python-plplot
550 Summary: PLplot library - Python binding
551 Summary(pl.UTF-8): Biblioteka PLplot - wiązanie dla Pythona
552 Group: Libraries/Python
553 Requires: %{name} = %{version}-%{release}
554 Requires: %{name}-tcl = %{version}-%{release}
555 %pyrequires_eq python-libs
556 Requires: python-numpy
558 %description -n python-plplot
559 PLplot library - Python binding.
561 %description -n python-plplot -l pl.UTF-8
562 Biblioteka PLplot - wiązanie dla Pythona.
564 %package -n python-plplot-qt4
565 Summary: PLplot library - PyQt4 binding
566 Summary(pl.UTF-8): Biblioteka PLplot - wiązanie dla PyQt4
567 Group: Libraries/Python
568 Requires: python-plplot = %{version}-%{release}
569 %pyrequires_eq python-libs
570 Requires: python-numpy
572 %description -n python-plplot-qt4
573 PLplot library - Python/PyQt4 binding.
575 %description -n python-plplot-qt4 -l pl.UTF-8
576 Biblioteka PLplot - wiązanie dla Pythona/PyQt4.
578 %package -n python-plplot-examples
579 Summary: PLplot library - Python binding examples
580 Summary(pl.UTF-8): Biblioteka PLplot - przykłady do wiązania dla Pythona
581 Group: Libraries/Python
582 Requires: %{name}-devel = %{version}-%{release}
583 Requires: python-plplot = %{version}-%{release}
585 %description -n python-plplot-examples
586 PLplot library - Python binding examples.
588 %description -n python-plplot-examples -l pl.UTF-8
589 Biblioteka PLplot - przykłady do wiązania dla Pythona.
602 # required for cmake to find JNI headers/libs when lib64 is in use
603 %{?with_java:export JAVA_HOME=%{_jvmlibdir}/java}
604 # NOTE: no %{_libdir}/jni in PLD, use plain %{_libdir}
608 -DADA_INCLUDE_PATH=%{ada_incdir} \
609 -DADA_LIB_PATH=%{ada_objdir} \
614 -DCMAKE_Java_RUNTIME=%{java} \
615 -DCMAKE_Java_COMPILER=%{javac} \
616 -DCMAKE_Java_ARCHIVE=%{jar} \
617 -DJAR_DIR=%{_javadir} \
618 -DJAVAWRAPPER_DIR=%{_libdir} \
624 -DLUA_EXECUTABLE=%{_bindir}/lua51 \
628 -DF95_MOD_DIR=%{_includedir}/plplot \
629 -DOCTAVE_INCLUDE_PATH=%{_includedir}/octave \
630 -DOCTAVE_OCT_DIR=%{octave_oct_sitedir} \
631 -DOCTAVE_M_DIR=%{octave_m_sitedir} \
634 -DENABLE_ocaml=%{?with_ocaml:ON}%{!?with_ocaml:OFF} \
635 -DENABLE_itcl=%{?with_itcl:ON}%{!?with_itcl:OFF} \
636 -DENABLE_itk=%{?with_itcl:ON}%{!?with_itcl:OFF} \
642 -DPL_FREETYPE_FONT_PATH=/usr/share/fonts/TTF \
643 -DwxWidgets_CONFIG_EXECUTABLE=/usr/bin/wx-gtk2-unicode-config \
644 -DwxWidgets_USE_UNICODE=ON \
645 -DPython_ADDITIONAL_VERSIONS=2.7 \
646 %{!?with_perl_pdl:-DENABLE_pdl=OFF}
651 rm -rf $RPM_BUILD_ROOT
652 install -d $RPM_BUILD_ROOT%{_examplesdir}
654 %{__make} -C build install \
655 DESTDIR=$RPM_BUILD_ROOT
657 mv $RPM_BUILD_ROOT%{_datadir}/plplot%{version}/examples \
658 $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
660 rm -rf installed-docs
661 mv $RPM_BUILD_ROOT%{_docdir}/plplot installed-docs
663 %py_comp $RPM_BUILD_ROOT%{py_sitedir}
664 %py_ocomp $RPM_BUILD_ROOT%{py_sitedir}
668 rm -rf $RPM_BUILD_ROOT
670 %post -p /sbin/ldconfig
671 %postun -p /sbin/ldconfig
673 %post c++ -p /sbin/ldconfig
674 %postun c++ -p /sbin/ldconfig
676 %post f95 -p /sbin/ldconfig
677 %postun f95 -p /sbin/ldconfig
679 %post ada -p /sbin/ldconfig
680 %postun ada -p /sbin/ldconfig
682 %post tcl -p /sbin/ldconfig
683 %postun tcl -p /sbin/ldconfig
685 %post qt4 -p /sbin/ldconfig
686 %postun qt4 -p /sbin/ldconfig
688 %post wxwidgets -p /sbin/ldconfig
689 %postun wxwidgets -p /sbin/ldconfig
692 %defattr(644,root,root,755)
693 %doc ABOUT AUTHORS ChangeLog.release Copyright FAQ NEWS PROBLEMS README README.release SERVICE ToDo
694 %doc installed-docs/README.{1st.csa,1st.nn,csa,nn,drivers}
695 %attr(755,root,root) %{_bindir}/plm2gif
696 %attr(755,root,root) %{_bindir}/plpr
697 %attr(755,root,root) %{_bindir}/plrender
698 %attr(755,root,root) %{_bindir}/pltek
699 %attr(755,root,root) %{_bindir}/pstex2eps
700 %attr(755,root,root) %{_libdir}/libcsirocsa.so.*.*.*
701 %attr(755,root,root) %ghost %{_libdir}/libcsirocsa.so.0
702 %attr(755,root,root) %{_libdir}/libcsironn.so.*.*.*
703 %attr(755,root,root) %ghost %{_libdir}/libcsironn.so.0
704 %attr(755,root,root) %{_libdir}/libnistcd.so.*.*.*
705 %attr(755,root,root) %ghost %{_libdir}/libnistcd.so.0
706 %attr(755,root,root) %{_libdir}/libqsastime.so.*.*.*
707 %attr(755,root,root) %ghost %{_libdir}/libqsastime.so.0
708 %attr(755,root,root) %{_libdir}/libplplotd.so.*.*.*
709 %attr(755,root,root) %ghost %{_libdir}/libplplotd.so.12
710 %{_mandir}/man1/plm2gif.1*
711 %{_mandir}/man1/plpr.1*
712 %{_mandir}/man1/plrender.1*
713 %{_mandir}/man1/pltek.1*
714 %{_mandir}/man1/pstex2eps.1*
715 %dir %{_libdir}/plplot%{version}
716 %dir %{_libdir}/plplot%{version}/driversd
717 %attr(755,root,root) %{_libdir}/plplot%{version}/driversd/cgm.so
718 %{_libdir}/plplot%{version}/driversd/cgm.driver_info
719 %attr(755,root,root) %{_libdir}/plplot%{version}/driversd/mem.so
720 %{_libdir}/plplot%{version}/driversd/mem.driver_info
721 %attr(755,root,root) %{_libdir}/plplot%{version}/driversd/null.so
722 %{_libdir}/plplot%{version}/driversd/null.driver_info
723 %attr(755,root,root) %{_libdir}/plplot%{version}/driversd/plmeta.so
724 %{_libdir}/plplot%{version}/driversd/plmeta.driver_info
725 %attr(755,root,root) %{_libdir}/plplot%{version}/driversd/ps.so
726 %{_libdir}/plplot%{version}/driversd/ps.driver_info
727 %attr(755,root,root) %{_libdir}/plplot%{version}/driversd/pstex.so
728 %{_libdir}/plplot%{version}/driversd/pstex.driver_info
729 %attr(755,root,root) %{_libdir}/plplot%{version}/driversd/svg.so
730 %{_libdir}/plplot%{version}/driversd/svg.driver_info
731 %attr(755,root,root) %{_libdir}/plplot%{version}/driversd/xfig.so
732 %{_libdir}/plplot%{version}/driversd/xfig.driver_info
733 %dir %{_datadir}/plplot%{version}
734 %{_datadir}/plplot%{version}/*.map
735 %{_datadir}/plplot%{version}/*.pal
736 %{_datadir}/plplot%{version}/*.fnt
739 %defattr(644,root,root,755)
740 %attr(755,root,root) %{_libdir}/plplot%{version}/driversd/cairo.so
741 %{_libdir}/plplot%{version}/driversd/cairo.driver_info
744 %defattr(644,root,root,755)
745 %attr(755,root,root) %{_libdir}/plplot%{version}/driversd/ntk.so
746 %{_libdir}/plplot%{version}/driversd/ntk.driver_info
749 %defattr(644,root,root,755)
750 %attr(755,root,root) %{_libdir}/plplot%{version}/driversd/pdf.so
751 %{_libdir}/plplot%{version}/driversd/pdf.driver_info
754 %defattr(644,root,root,755)
755 %attr(755,root,root) %{_libdir}/plplot%{version}/driversd/psttf.so
756 %{_libdir}/plplot%{version}/driversd/psttf.driver_info
759 %defattr(644,root,root,755)
760 %attr(755,root,root) %{_libdir}/plplot%{version}/driversd/tk.so
761 %{_libdir}/plplot%{version}/driversd/tk.driver_info
762 %attr(755,root,root) %{_libdir}/plplot%{version}/driversd/tkwin.so
763 %{_libdir}/plplot%{version}/driversd/tkwin.driver_info
766 %defattr(644,root,root,755)
767 %attr(755,root,root) %{_libdir}/plplot%{version}/driversd/qt.so
768 %{_libdir}/plplot%{version}/driversd/qt.driver_info
770 %files driver-wxwidgets
771 %defattr(644,root,root,755)
772 %attr(755,root,root) %{_libdir}/plplot%{version}/driversd/wxwidgets.so
773 %{_libdir}/plplot%{version}/driversd/wxwidgets.driver_info
776 %defattr(644,root,root,755)
777 %attr(755,root,root) %{_libdir}/plplot%{version}/driversd/xwin.so
778 %{_libdir}/plplot%{version}/driversd/xwin.driver_info
781 %defattr(644,root,root,755)
782 %attr(755,root,root) %{_libdir}/libcsirocsa.so
783 %attr(755,root,root) %{_libdir}/libcsironn.so
784 %attr(755,root,root) %{_libdir}/libnistcd.so
785 %attr(755,root,root) %{_libdir}/libplplotd.so
786 %attr(755,root,root) %{_libdir}/libqsastime.so
787 %dir %{_includedir}/plplot
788 %{_includedir}/plplot/cd.h
789 %{_includedir}/plplot/defines.h
790 %{_includedir}/plplot/disptab.h
791 %{_includedir}/plplot/drivers.h
792 %{_includedir}/plplot/pdf.h
793 %{_includedir}/plplot/plConfig.h
794 %{_includedir}/plplot/plDevs.h
795 %{_includedir}/plplot/pldebug.h
796 %{_includedir}/plplot/pldll.h
797 %{_includedir}/plplot/plevent.h
798 %{_includedir}/plplot/plplot.h
799 %{_includedir}/plplot/plplotP.h
800 %{_includedir}/plplot/plstrm.h
801 %{_includedir}/plplot/qsastime.h
802 %{_includedir}/plplot/qsastimedll.h
803 # xwin driver (uses X11 headers)
804 %{_includedir}/plplot/plxwd.h
806 %{_includedir}/plplot/gcw.h
807 %{_includedir}/plplot/plplotcanvas.h
808 %{_pkgconfigdir}/plplotd.pc
809 %dir %{_examplesdir}/%{name}-%{version}
810 %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/plplot-test.sh
811 %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/test_c.sh
812 %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/plplot-test-interactive.sh
813 %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/test_c_interactive.sh
814 %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/test_diff.sh
815 %{_examplesdir}/%{name}-%{version}/c
816 %{_examplesdir}/%{name}-%{version}/cmake
817 %{_examplesdir}/%{name}-%{version}/CMakeLists.txt
818 %{_examplesdir}/%{name}-%{version}/lena.*
819 %{_examplesdir}/%{name}-%{version}/Makefile
821 # perl examples use PDL::Graphics::PLplot module found in perl-PDL
822 %{_examplesdir}/%{name}-%{version}/perl
826 %defattr(644,root,root,755)
827 %attr(755,root,root) %{_libdir}/libplplotcxxd.so.*.*.*
828 %attr(755,root,root) %ghost %{_libdir}/libplplotcxxd.so.11
831 %defattr(644,root,root,755)
832 %attr(755,root,root) %{_libdir}/libplplotcxxd.so
833 %{_includedir}/plplot/plstream.h
834 %{_pkgconfigdir}/plplotd-c++.pc
835 %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/test_cxx.sh
836 %{_examplesdir}/%{name}-%{version}/c++
839 %defattr(644,root,root,755)
840 %doc bindings/f95/readme_f95.txt
841 %attr(755,root,root) %{_libdir}/libplplotf95cd.so.*.*.*
842 %attr(755,root,root) %ghost %{_libdir}/libplplotf95cd.so.11
843 %attr(755,root,root) %{_libdir}/libplplotf95d.so.*.*.*
844 %attr(755,root,root) %ghost %{_libdir}/libplplotf95d.so.11
847 %defattr(644,root,root,755)
848 %attr(755,root,root) %{_libdir}/libplplotf95cd.so
849 %attr(755,root,root) %{_libdir}/libplplotf95d.so
850 %{_includedir}/plplot/plplot.mod
851 %{_includedir}/plplot/plplot_flt.mod
852 %{_includedir}/plplot/plplotp.mod
853 %{_pkgconfigdir}/plplotd-f95.pc
854 %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/test_f95.sh
855 %{_examplesdir}/%{name}-%{version}/f95
859 %defattr(644,root,root,755)
860 %attr(755,root,root) %{_libdir}/libplplotadad.so.*.*.*
861 %attr(755,root,root) %ghost %{_libdir}/libplplotadad.so.0
864 %defattr(644,root,root,755)
865 %attr(755,root,root) %{_libdir}/libplplotadad.so
866 %{ada_objdir}/plplotadad
867 %{ada_incdir}/plplotadad
868 %{_pkgconfigdir}/plplotd-ada.pc
869 %{_examplesdir}/%{name}-%{version}/ada
870 %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/test_ada.sh
875 %defattr(644,root,root,755)
876 %attr(755,root,root) %{_libdir}/plplotjavac_wrap.so
877 %{_javadir}/plplot.jar
880 %defattr(644,root,root,755)
881 %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/test_java.sh
882 %{_examplesdir}/%{name}-%{version}/java
886 %defattr(644,root,root,755)
887 %attr(755,root,root) %{_bindir}/pltcl
888 %attr(755,root,root) %{_bindir}/plserver
889 %attr(755,root,root) %{_libdir}/libplplottcltkd.so.*.*.*
890 %attr(755,root,root) %ghost %{_libdir}/libplplottcltkd.so.11
891 %attr(755,root,root) %{_libdir}/libtclmatrixd.so.*.*.*
892 %attr(755,root,root) %ghost %{_libdir}/libtclmatrixd.so.9
893 %{_datadir}/plplot%{version}/*.tcl
894 %{_datadir}/plplot%{version}/tcl
895 %{_mandir}/man1/pltcl.1*
896 %{_mandir}/man1/plserver.1*
899 %defattr(644,root,root,755)
900 %attr(755,root,root) %{_libdir}/libplplottcltkd.so
901 %attr(755,root,root) %{_libdir}/libtclmatrixd.so
902 %{_includedir}/plplot/pltcl.h
903 %{_includedir}/plplot/pltk.h
904 %{_includedir}/plplot/tclMatrix.h
905 %{_pkgconfigdir}/plplotd-tcl.pc
906 %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/test_tcl.sh
907 %{_examplesdir}/%{name}-%{version}/tcl
908 %{_examplesdir}/%{name}-%{version}/tk
911 %defattr(644,root,root,755)
912 %attr(755,root,root) %ghost %{_libdir}/libplplotqtd.so.1
913 %attr(755,root,root) %{_libdir}/libplplotqtd.so.1.0.0
916 %defattr(644,root,root,755)
917 %attr(755,root,root) %{_libdir}/libplplotqtd.so
918 %{_includedir}/plplot/qt.h
919 %{_pkgconfigdir}/plplotd-qt.pc
922 %defattr(644,root,root,755)
923 %attr(755,root,root) %{_libdir}/libplplotwxwidgetsd.so.*.*.*
924 %attr(755,root,root) %ghost %{_libdir}/libplplotwxwidgetsd.so.0
926 %files wxwidgets-devel
927 %defattr(644,root,root,755)
928 %attr(755,root,root) %{_libdir}/libplplotwxwidgetsd.so
929 %{_includedir}/plplot/wxPLplot*.h
930 %{_pkgconfigdir}/plplotd-wxwidgets.pc
933 %defattr(644,root,root,755)
934 %doc bindings/octave/{BUGS,FGA,README,ToDo,USAGE}
935 %attr(755,root,root) %{octave_oct_sitedir}/plplot_octave.oct
936 %{octave_m_sitedir}/PLplot
937 %{_datadir}/plplot_octave
938 %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/test_octave_interactive.sh
940 %files octave-examples
941 %defattr(644,root,root,755)
942 %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/test_octave.sh
943 %{_examplesdir}/%{name}-%{version}/octave
947 %defattr(644,root,root,755)
948 %dir %{_libdir}/lua/5.1/plplot
949 %attr(755,root,root) %{_libdir}/lua/5.1/plplot/plplotluac.so
950 %{_examplesdir}/%{name}-%{version}/lua
951 %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/test_lua.sh
955 %files -n ocaml-plplot
956 %defattr(644,root,root,755)
957 %attr(755,root,root) %{_libdir}/ocaml/stublibs/dllplplot_stubs.so
959 %files -n ocaml-plplot-devel
960 %dir %{_libdir}/ocaml/plplot
961 %{_libdir}/ocaml/plplot/META
962 %{_libdir}/ocaml/plplot/libplplot_stubs.a
963 %{_libdir}/ocaml/plplot/plplot.a
964 %{_libdir}/ocaml/plplot/plplot.cm*
965 %{_libdir}/ocaml/plplot/plplot.mli
966 %{_pkgconfigdir}/plplotd-ocaml.pc
967 %{_examplesdir}/%{name}-%{version}/ocaml
968 %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/test_ocaml.sh
970 %files -n ocaml-plcairo
971 %defattr(644,root,root,755)
972 %attr(755,root,root) %{_libdir}/ocaml/stublibs/dllplcairo_stubs.so
974 %files -n ocaml-plcairo-devel
975 %dir %{_libdir}/ocaml/plcairo
976 %{_libdir}/ocaml/plcairo/META
977 %{_libdir}/ocaml/plcairo/libplcairo_stubs.a
978 %{_libdir}/ocaml/plcairo/plcairo.a
979 %{_libdir}/ocaml/plcairo/plcairo.cm*
980 %{_libdir}/ocaml/plcairo/plcairo.mli
983 %files -n python-plplot
984 %defattr(644,root,root,755)
985 %attr(755,root,root) %{py_sitedir}/_plplotcmodule.so
986 %attr(755,root,root) %{py_sitedir}/plplot_widgetmodule.so
987 %{py_sitedir}/Plframe.py[co]
988 %{py_sitedir}/plplotc.py[co]
989 %{py_sitedir}/plplot.py[co]
990 %{py_sitedir}/TclSup.py[co]
992 %files -n python-plplot-qt4
993 %defattr(644,root,root,755)
994 %attr(755,root,root) %{py_sitedir}/plplot_pyqt4.so
996 %files -n python-plplot-examples
997 %defattr(644,root,root,755)
998 %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/test_python.sh
999 %{_examplesdir}/%{name}-%{version}/python