2 # - perl_pdl - why disabled?
3 # - bindings: d, gnome2, tk-x-plat?
5 # aqt driver is Darwin-only
6 # wingcc driver is Windows-only
7 # gd driver is not maintained
8 # dg300,gcw,gnome,hpgl,impress,linuxvga,ljii,ljiip,pbm,tek drivers are retired
9 # pstex driver deprecated in favour of psttf and pscairo
12 %bcond_without gnome2 # GNOME 2 and pygtk bindings
13 %bcond_with perl_pdl # enable perl examples in tests
14 %bcond_without ada # Ada binding
15 %bcond_without java # Java binding
16 %bcond_without itcl # [incr Tcl]/[incr Tk] support in Tcl/Tk binding
17 %bcond_without lua # Lua binding
18 %bcond_without ocaml # OCaml binding
20 Summary: PLplot - a library of functions that are useful for making scientific plots
21 Summary(pl.UTF-8): PLplot - biblioteka funkcji przydatnych do tworzenia wykresów naukowych
27 Source0: http://downloads.sourceforge.net/plplot/%{name}-%{version}.tar.gz
28 # Source0-md5: 9f2c8536a58875d97ab6b29bbed67d26
29 Patch0: %{name}-octave.patch
30 Patch1: %{name}-qhull.patch
31 Patch2: %{name}-link.patch
32 Patch3: %{name}-cmake.patch
33 Patch4: %{name}-nofonts.patch
34 Patch5: %{name}-adadirs.patch
35 Patch6: %{name}-ocamldir.patch
36 URL: http://plplot.sourceforge.net/
37 BuildRequires: QtGui-devel
38 BuildRequires: QtSvg-devel
39 BuildRequires: QtXml-devel
40 BuildRequires: agg-devel
41 BuildRequires: cmake >= 2.6.4
42 BuildRequires: docbook-style-dsssl
43 BuildRequires: fftw3-devel
44 BuildRequires: fftw3-single-devel
45 BuildRequires: freetype-devel >= 2.1.0
46 %{?with_ada:BuildRequires: gcc-ada >= 5:4.1}
47 BuildRequires: gcc-c++
48 BuildRequires: gcc-fortran
49 %{?with_itcl:BuildRequires: itcl-devel >= 3.4.1}
50 %{?with_itcl:BuildRequires: itk-devel >= 3.4}
51 BuildRequires: jadetex
52 %{?with_java:BuildRequires: jdk}
53 %{?with_java:BuildRequires: jpackage-utils}
54 BuildRequires: lapack-devel
55 BuildRequires: libLASi-devel
56 %{?with_gnome2:BuildRequires: libgnomeprintui-devel >= 2.2}
57 BuildRequires: libharu-devel >= 2.1.0
58 BuildRequires: libjpeg-devel
59 BuildRequires: libltdl-devel
60 BuildRequires: libpng-devel
61 BuildRequires: libstdc++-devel
62 %{?with_lua:BuildRequires: lua51 >= 5.1}
63 %{?with_lua:BuildRequires: lua51-devel >= 5.1}
64 BuildRequires: octave-devel >= 2:3.4.2
65 BuildRequires: pango-devel
66 %{?with_perl_pdl:BuildRequires: perl-PDL}
67 BuildRequires: perl-XML-DOM
68 BuildRequires: perl-XML-Parser
69 BuildRequires: perl-XML-SAX-Expat
70 BuildRequires: pkgconfig
71 BuildRequires: pango-devel
72 BuildRequires: python-PyQt4-devel
73 BuildRequires: python-numpy-devel >= 15.3
74 BuildRequires: python-devel >= 1:2.3
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 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
102 %define octave_oct_sitedir %(octave-config --oct-site-dir)
103 %define octave_m_sitedir %(octave-config --m-site-dir)
105 %define gcc_target %(%{__cc} -dumpmachine)
106 %define ada_incdir %{_libdir}/gcc/%{gcc_target}/%{cc_version}/adainclude
107 %define ada_objdir %{_libdir}/gcc/%{gcc_target}/%{cc_version}/adalib
110 PLplot is a library of functions that are useful for making scientific
111 plots. It can be used from within compiled languages such as C, C++,
112 FORTRAN and Java, and interactively from interpreted languages such as
113 Octave, Python, Perl and Tcl.
115 The PLplot library can be used to create standard X-Y plots, semilog
116 plots, log-log plots, contour plots, 3D surface plots, mesh plots, bar
117 charts and pie charts. Multiple graphs (of the same or different
118 sizes) may be placed on a single page with multiple lines in each
121 A variety of output file devices such as PostScript, PNG, JPEG, LaTeX
122 and others, as well as interactive devices such as xwin, tk, xterm and
123 Tektronics devices are supported. New devices can be easily added by
124 writing a small number of device dependent routines.
126 %description -l pl.UTF-8
127 PLplot to biblioteka funkcji przydatnych do tworzenia wykresów
128 naukowych. Może być używana z poziomu języków kompilowanych takich jak
129 C, C++, FORTRAN czy Java, albo interaktywnie z poziomu języków
130 interpretowanych takich jak Octave, Python, Perl czy Tcl.
132 Bibliotekę PLplot można wykorzystać do tworzenia standardowych
133 wykresów X-Y, wykresów półlogarytmicznych, wykresów konturowych,
134 wykresów powierzchni trójwymiarowych, wykresów siatek, wykresów
135 słupkowych i kołowych. Na jednej stronie można umieścić wiele wykresów
136 (o tych samych lub różnych rozmiarach), na jednym wykresie może być
139 Obsługiwanych jest wiele urządzeń wyjściowych, w tym PostScript, PNG,
140 JPEG, LaTeX i inne, a także urządzenia interaktywne, takie jak xwin,
141 tk, xterm i Tektronics. Nowe urządzenia można łatwo dodać pisząc parę
142 zależnych od urządzenia funkcji.
145 Summary: ntk driver for PLplot library
146 Summary(pl.UTF-8): Sterownik ntk dla biblioteki PLplot
148 Requires: %{name} = %{version}-%{release}
150 %description driver-ntk
151 ntk (new tk) driver for PLplot library. It supports Tcl/Tk output.
153 %description driver-ntk -l pl.UTF-8
154 Sterownik ntk (new tk) dla biblioteki PLplot. Obsługuje wyjście
158 Summary: pdf driver for PLplot library
159 Summary(pl.UTF-8): Sterownik pdf dla biblioteki PLplot
161 Requires: %{name} = %{version}-%{release}
162 Requires: libharu >= 2.1.0
164 %description driver-pdf
165 pdf driver for PLplot library. It's PDF driver using Haru library.
167 %description driver-pdf -l pl.UTF-8
168 Sterownik pdf dla biblioteki PLplot. Jest to sterownik PDF
169 wykorzystujący bibliotekę Haru.
171 %package driver-psttf
172 Summary: psttf driver for PLplot library
173 Summary(pl.UTF-8): Sterownik psttf dla biblioteki PLplot
175 Requires: %{name} = %{version}-%{release}
177 %description driver-psttf
178 psttf driver for PLplot library. It's PostScript driver using LASi to
181 %description driver-psttf -l pl.UTF-8
182 Sterownik psttf dla biblioteki PLplot. Jest to sterownik
183 postscriptowy, wykorzystujący LASi do obsługi fontów.
186 Summary: Tk drivers for PLplot library
187 Summary(pl.UTF-8): Sterowniki Tk dla biblioteki PLplot
189 Requires: %{name}-tcl = %{version}-%{release}
191 %description driver-tk
192 Tk and tkwin drivers for PLplot library. They support Tcl/Tk output.
194 %description driver-tk -l pl.UTF-8
195 Sterownik Tk i tkwin dla biblioteki PLplot. Obsługują wyjście poprzez
198 %package driver-cairo
199 Summary: Cairo driver for PLplot library
200 Summary(pl.UTF-8): Sterownik cairo dla biblioteki PLplot
202 Requires: %{name} = %{version}-%{release}
204 %description driver-cairo
205 Cairo driver for PLplot library. It supports JPEG and PNG output
208 %description driver-cairo -l pl.UTF-8
209 Sterownik cairo dla biblioteki PLplot. Obsługuje formaty wyjścia JPEG
213 Summary: Qt4 driver for PLplot library
214 Summary(pl.UTF-8): Sterownik Qt4 dla biblioteki PLplot
216 Requires: %{name}-qt4 = %{version}-%{release}
218 %description driver-qt4
219 Qt4 driver for PLplot library. Supports Qt4 output.
221 %description driver-qt4 -l pl.UTF-8
222 Sterownik Qt4 dla biblioteki PLplot. Obsługuje wyjście poprzez Qt4.
224 %package driver-wxwidgets
225 Summary: wxWidgets driver for PLplot library
226 Summary(pl.UTF-8): Sterownik wxWidgets dla biblioteki PLplot
228 Requires: %{name} = %{version}-%{release}
230 %description driver-wxwidgets
231 wxWidgets driver for PLplot library. Supports wxWidgets output.
233 %description driver-wxwidgets -l pl.UTF-8
234 Sterownik wxWidgets dla biblioteki PLplot. Obsługuje wyjście poprzez
238 Summary: xwin driver for PLplot library
239 Summary(pl.UTF-8): Sterownik xwin dla biblioteki PLplot
241 Requires: %{name} = %{version}-%{release}
243 %description driver-xwin
244 xwin driver for PLplot library. It supports X Window System output.
246 %description driver-xwin -l pl.UTF-8
247 Sterownik ntk (new tk) dla biblioteki PLplot. Obsługuje wyjście do
248 okna systemu X Window.
251 Summary: Header files for PLplot library
252 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki PLplot
253 Group: Development/Libraries
254 Requires: %{name} = %{version}-%{release}
255 Requires: freetype-devel >= 2.1
256 Requires: qhull-devel
257 Obsoletes: plplot-static
260 Header files for PLplot library.
262 %description devel -l pl.UTF-8
263 Pliki nagłówkowe biblioteki PLplot.
266 Summary: PLplot library - C++ binding
267 Summary(pl.UTF-8): Biblioteka PLplot - wiązanie dla C++
269 Requires: %{name} = %{version}-%{release}
272 PLplot library - C++ binding.
274 %description c++ -l pl.UTF-8
275 Biblioteka PLplot - wiązanie dla C++.
278 Summary: PLplot library - C++ binding development files
279 Summary(pl.UTF-8): Biblioteka PLplot - pliki programistyczne wiązania dla C++
280 Group: Development/Libraries
281 Requires: %{name}-c++ = %{version}-%{release}
282 Requires: %{name}-devel = %{version}-%{release}
283 Requires: libstdc++-devel
284 Obsoletes: plplot-c++-static
286 %description c++-devel
287 PLplot library - C++ binding development files.
289 %description c++-devel -l pl.UTF-8
290 Biblioteka PLplot - pliki programistyczne wiązania dla C++.
293 Summary: PLplot library - FORTRAN 77 binding
294 Summary(pl.UTF-8): Biblioteka PLplot - wiązanie dla języka FORTRAN 77
296 Requires: %{name} = %{version}-%{release}
299 PLplot library - FORTRAN 77 binding.
301 %description f77 -l pl.UTF-8
302 Biblioteka PLplot - wiązanie dla języka FORTRAN 77.
305 Summary: PLplot library - FORTRAN 77 binding development files
306 Summary(pl.UTF-8): Biblioteka PLplot - pliki programistyczne wiązania dla języka FORTRAN 77
307 Group: Development/Libraries
308 Requires: %{name}-devel = %{version}-%{release}
309 Requires: %{name}-f77 = %{version}-%{release}
310 Requires: gcc-fortran
311 Obsoletes: plplot-f77-static
313 %description f77-devel
314 PLplot library - FORTRAN 77 binding development files.
316 %description f77-devel -l pl.UTF-8
317 Biblioteka PLplot - pliki programistyczne wiązania dla języka FORTRAN
321 Summary: PLplot library - FORTRAN 95 binding
322 Summary(pl.UTF-8): Biblioteka PLplot - wiązanie dla języka FORTRAN 95
324 Requires: %{name} = %{version}-%{release}
327 PLplot library - FORTRAN 95 binding.
329 %description f95 -l pl.UTF-8
330 Biblioteka PLplot - wiązanie dla języka FORTRAN 95.
333 Summary: PLplot library - FORTRAN 95 binding development files
334 Summary(pl.UTF-8): Biblioteka PLplot - pliki programistyczne wiązania dla języka FORTRAN 95
335 Group: Development/Libraries
336 Requires: %{name}-devel = %{version}-%{release}
337 Requires: %{name}-f95 = %{version}-%{release}
338 Requires: gcc-fortran
340 %description f95-devel
341 PLplot library - FORTRAN 95 binding development files.
343 %description f95-devel -l pl.UTF-8
344 Biblioteka PLplot - pliki programistyczne wiązania dla języka FORTRAN
348 Summary: PLplot library - Ada binding
349 Summary(pl.UTF-8): Biblioteka PLplot - wiązanie dla Ady
351 Requires: %{name} = %{version}-%{release}
354 PLplot library - Ada binding.
356 %description ada -l pl.UTF-8
357 Biblioteka PLplot - wiązanie dla Ady.
360 Summary: PLplot library - Ada binding development files
361 Summary(pl.UTF-8): Biblioteka PLplot - pliki programistyczne wiązania dla Ady
362 Group: Development/Libraries
363 Requires: %{name}-devel = %{version}-%{release}
364 Requires: %{name}-ada = %{version}-%{release}
366 %description ada-devel
367 PLplot library - Ada binding development files.
369 %description ada-devel -l pl.UTF-8
370 Biblioteka PLplot - pliki programistyczne wiązania dla Ady.
373 Summary: PLplot library - Java binding
374 Summary(pl.UTF-8): Biblioteka PLplot - wiązanie dla Javy
376 Requires: %{name} = %{version}-%{release}
379 PLplot library - Java binding.
381 %description java -l pl.UTF-8
382 Biblioteka PLplot - wiązanie dla Javy.
385 Summary: PLplot library - Java binding development files
386 Summary(pl.UTF-8): Biblioteka PLplot - pliki programistyczne wiązania dla Javy
387 Group: Development/Libraries
388 Requires: %{name}-devel = %{version}-%{release}
389 Requires: %{name}-java = %{version}-%{release}
390 Obsoletes: plplot-java-static
392 %description java-devel
393 PLplot library - Java binding development files.
395 %description java-devel -l pl.UTF-8
396 Biblioteka PLplot - pliki programistyczne wiązania dla Javy.
399 Summary: PLplot library - Tcl/Tk binding
400 Summary(pl.UTF-8): Biblioteka PLplot - wiązanie dla Tcl/Tk
402 Requires: %{name} = %{version}-%{release}
405 PLplot library - Tcl/Tk binding.
407 %description tcl -l pl.UTF-8
408 Biblioteka PLplot - wiązanie dla Tcl/Tk.
411 Summary: PLplot library - Tcl/Tk binding development files
412 Summary(pl.UTF-8): Biblioteka PLplot - pliki programistyczne wiązania dla Tcl/Tk
413 Group: Development/Libraries
414 Requires: %{name}-devel = %{version}-%{release}
415 Requires: %{name}-tcl = %{version}-%{release}
416 %{?with_itcl:Requires: itcl-devel}
417 Obsoletes: plplot-tcl-static
419 %description tcl-devel
420 PLplot library - Tcl/Tk binding development files.
422 %description tcl-devel -l pl.UTF-8
423 Biblioteka PLplot - pliki programistyczne wiązania dla Tcl/Tk.
426 Summary: PLplot library - Qt4 binding
427 Summary(pl.UTF-8): Biblioteka PLplot - wiązanie dla Qt4
429 Requires: %{name} = %{version}-%{release}
432 PLplot library - Qt4 binding.
434 %description qt4 -l pl.UTF-8
435 Biblioteka PLplot - wiązanie dla Qt4.
438 Summary: PLplot library - Qt4 binding development files
439 Summary(pl.UTF-8): Biblioteka PLplot - pliki programistyczne wiązania dla Qt4
440 Group: Development/Libraries
441 Requires: %{name}-qt4 = %{version}-%{release}
442 Requires: %{name}-devel = %{version}-%{release}
443 Requires: QtGui-devel
444 Requires: QtSvg-devel
445 Requires: QtXml-devel
447 %description qt4-devel
448 PLplot library - Qt4 binding development files.
450 %description qt4-devel -l pl.UTF-8
451 Biblioteka PLplot - pliki programistyczne wiązania dla Qt4.
454 Summary: PLplot library - wxWidgets binding
455 Summary(pl.UTF-8): Biblioteka PLplot - wiązanie dla wxWidgets
457 Requires: %{name} = %{version}-%{release}
458 Requires: wxGTK2-unicode >= 2.6.0
460 %description wxwidgets
461 PLplot library - wxwidgets binding.
463 %description wxwidgets -l pl.UTF-8
464 Biblioteka PLplot - wiązanie dla wxWidgets.
466 %package wxwidgets-devel
467 Summary: PLplot library - wxWidgets binding development files
468 Summary(pl.UTF-8): Biblioteka PLplot - pliki programistyczne wiązania dla wxWidgets
469 Group: Development/Libraries
470 Requires: %{name}-wxwidgets = %{version}-%{release}
471 Requires: %{name}-devel = %{version}-%{release}
472 Requires: wxGTK2-unicode-devel >= 2.6.0
474 %description wxwidgets-devel
475 PLplot library - wxWidgets binding development files.
477 %description wxwidgets-devel -l pl.UTF-8
478 Biblioteka PLplot - pliki programistyczne wiązania dla wxWidgets.
481 Summary: PLplot library - Octave binding
482 Summary(pl.UTF-8): Biblioteka PLplot - wiązanie dla języka Octave
484 Requires: %{name} = %{version}-%{release}
487 PLplot library - Octave binding.
489 %description octave -l pl.UTF-8
490 Biblioteka PLplot - wiązanie dla języka Octave.
492 %package octave-examples
493 Summary: PLplot library - examples for Octave binding
494 Summary(pl.UTF-8): Biblioteka PLplot - przykłady do wiązania dla języka Octave
495 Group: Development/Libraries
496 Requires: %{name}-devel = %{version}-%{release}
497 Requires: %{name}-octave = %{version}-%{release}
499 %description octave-examples
500 PLplot library - examples for Octave binding.
502 %description octave-examples -l pl.UTF-8
503 Biblioteka PLplot - przykłady do wiązania dla języka Octave.
505 %package -n lua-plplot
506 Summary: Lua binding for PLplot library
507 Summary(pl.UTF-8): Wiązanie języka Lua do biblioteki PLplot
508 Group: Development/Languages
509 Requires: %{name} = %{version}-%{release}
510 Requires: lua51-libs >= 5.1
512 %description -n lua-plplot
513 Lua binding for PLplot library.
515 %description -n lua-plplot -l pl.UTF-8
516 Wiązanie języka Lua do biblioteki PLplot.
518 %package -n ocaml-plplot
519 Summary: OCaml binding for PLplot library
520 Summary(pl.UTF-8): Wiązanie języka OCaml do biblioteki PLplot
522 Requires: %{name} = %{version}-%{release}
523 %requires_eq ocaml-runtime
525 %description -n ocaml-plplot
526 OCaml binding for PLplot library.
528 %description -n ocaml-plplot -l pl.UTF-8
529 Wiązanie języka OCaml do biblioteki PLplot.
531 %package -n ocaml-plplot-devel
532 Summary: Development files for OCaml binding for PLplot library
533 Summary(pl.UTF-8): Wiązanie języka OCaml do biblioteki PLplot - pliki programistyczne
534 Group: Development/Libraries
535 Requires: ocaml-plplot = %{version}-%{release}
538 %description -n ocaml-plplot-devel
539 Development files for OCaml binding for PLplot library.
541 %description -n ocaml-plplot-devel -l pl.UTF-8
542 Wiązanie języka OCaml do biblioteki PLplot - pliki programistyczne.
544 %package -n ocaml-plcairo
545 Summary: PLcairo - Cairo extras for OCaml binding for PLplot library
546 Summary(pl.UTF-8): PLcairo - dodatki Cairo do wiązania języka OCaml do biblioteki PLplot
548 Requires: ocaml-plplot = %{version}-%{release}
549 Requires: ocaml-cairo
550 %requires_eq ocaml-runtime
552 %description -n ocaml-plcairo
553 PLcairo - Cairo extras for OCaml binding for PLplot library.
555 %description -n ocaml-plcairo -l pl.UTF-8
556 PLcairo - dodatki Cairo do wiązania języka OCaml do biblioteki PLplot.
558 %package -n ocaml-plcairo-devel
559 Summary: Development files for PLcairo OCaml library
560 Summary(pl.UTF-8): Pliki programistyczne biblioteki OCamla PLcairo
561 Group: Development/Libraries
562 Requires: ocaml-cairo-devel
563 Requires: ocaml-plcairo = %{version}-%{release}
564 Requires: ocaml-plplot-devel = %{version}-%{release}
567 %description -n ocaml-plcairo-devel
568 Development files for PLcairo OCaml library.
570 %description -n ocaml-plcairo-devel -l pl.UTF-8
571 Pliki programistyczne biblioteki OCamla PLcairo.
573 %package -n python-plplot
574 Summary: PLplot library - Python binding
575 Summary(pl.UTF-8): Biblioteka PLplot - wiązanie dla Pythona
576 Group: Libraries/Python
577 Requires: %{name} = %{version}-%{release}
578 Requires: %{name}-tcl = %{version}-%{release}
579 %pyrequires_eq python-libs
580 Requires: python-numpy
582 %description -n python-plplot
583 PLplot library - Python binding.
585 %description -n python-plplot -l pl.UTF-8
586 Biblioteka PLplot - wiązanie dla Pythona.
588 %package -n python-plplot-qt4
589 Summary: PLplot library - PyQt4 binding
590 Summary(pl.UTF-8): Biblioteka PLplot - wiązanie dla PyQt4
591 Group: Libraries/Python
592 Requires: python-plplot = %{version}-%{release}
593 %pyrequires_eq python-libs
594 Requires: python-numpy
596 %description -n python-plplot-qt4
597 PLplot library - Python/PyQt4 binding.
599 %description -n python-plplot-qt4 -l pl.UTF-8
600 Biblioteka PLplot - wiązanie dla Pythona/PyQt4.
602 %package -n python-plplot-examples
603 Summary: PLplot library - Python binding examples
604 Summary(pl.UTF-8): Biblioteka PLplot - przykłady do wiązania dla Pythona
605 Group: Libraries/Python
606 Requires: %{name}-devel = %{version}-%{release}
607 Requires: python-plplot = %{version}-%{release}
609 %description -n python-plplot-examples
610 PLplot library - Python binding examples.
612 %description -n python-plplot-examples -l pl.UTF-8
613 Biblioteka PLplot - przykłady do wiązania dla Pythona.
628 # required for cmake to find JNI headers/libs when lib64 is in use
629 %{?with_java:export JAVA_HOME=%{_jvmlibdir}/java}
630 # NOTE: no %{_libdir}/jni in PLD, use plain %{_libdir}
634 -DADA_INCLUDE_PATH=%{ada_incdir} \
635 -DADA_LIB_PATH=%{ada_objdir} \
640 -DCMAKE_Java_RUNTIME=%{java} \
641 -DCMAKE_Java_COMPILER=%{javac} \
642 -DCMAKE_Java_ARCHIVE=%{jar} \
643 -DJAR_DIR=%{_javadir} \
644 -DJAVAWRAPPER_DIR=%{_libdir} \
650 -DLUA_EXECUTABLE=%{_bindir}/lua51 \
654 -DF77_INCLUDE_DIR=%{_includedir}/plplot \
655 -DF95_MOD_DIR=%{_includedir}/plplot \
656 -DOCTAVE_INCLUDE_PATH=%{_includedir}/octave \
657 -DOCTAVE_OCT_DIR=%{octave_oct_sitedir} \
658 -DOCTAVE_M_DIR=%{octave_m_sitedir} \
661 -DENABLE_ocaml=%{?with_ocaml:ON}%{!?with_ocaml:OFF} \
662 -DENABLE_itcl=%{?with_itcl:ON}%{!?with_itcl:OFF} \
663 -DENABLE_itk=%{?with_itcl:ON}%{!?with_itcl:OFF} \
669 -DPL_FREETYPE_FONT_PATH=/usr/share/fonts/TTF \
670 -DwxWidgets_CONFIG_EXECUTABLE=/usr/bin/wx-gtk2-unicode-config \
671 -DwxWidgets_USE_UNICODE=ON \
672 %{!?with_perl_pdl:-DENABLE_pdl=OFF}
677 rm -rf $RPM_BUILD_ROOT
678 install -d $RPM_BUILD_ROOT%{_examplesdir}
680 %{__make} -C build install \
681 DESTDIR=$RPM_BUILD_ROOT
683 mv $RPM_BUILD_ROOT%{_datadir}/plplot%{version}/examples \
684 $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
686 rm -rf installed-docs
687 mv $RPM_BUILD_ROOT%{_docdir}/plplot installed-docs
689 %py_comp $RPM_BUILD_ROOT%{py_sitedir}
690 %py_ocomp $RPM_BUILD_ROOT%{py_sitedir}
694 rm -rf $RPM_BUILD_ROOT
696 %post -p /sbin/ldconfig
697 %postun -p /sbin/ldconfig
699 %post c++ -p /sbin/ldconfig
700 %postun c++ -p /sbin/ldconfig
702 %post f77 -p /sbin/ldconfig
703 %postun f77 -p /sbin/ldconfig
705 %post f95 -p /sbin/ldconfig
706 %postun f95 -p /sbin/ldconfig
708 %post ada -p /sbin/ldconfig
709 %postun ada -p /sbin/ldconfig
711 %post tcl -p /sbin/ldconfig
712 %postun tcl -p /sbin/ldconfig
714 %post qt4 -p /sbin/ldconfig
715 %postun qt4 -p /sbin/ldconfig
717 %post wxwidgets -p /sbin/ldconfig
718 %postun wxwidgets -p /sbin/ldconfig
721 %defattr(644,root,root,755)
722 %doc ABOUT AUTHORS ChangeLog.release Copyright FAQ NEWS PROBLEMS README README.release SERVICE ToDo
723 %doc installed-docs/README.{1st.csa,1st.nn,csa,nn,drivers}
724 %attr(755,root,root) %{_bindir}/plm2gif
725 %attr(755,root,root) %{_bindir}/plpr
726 %attr(755,root,root) %{_bindir}/plrender
727 %attr(755,root,root) %{_bindir}/pltek
728 %attr(755,root,root) %{_bindir}/pstex2eps
729 %attr(755,root,root) %{_libdir}/libcsirocsa.so.*.*.*
730 %attr(755,root,root) %ghost %{_libdir}/libcsirocsa.so.0
731 %attr(755,root,root) %{_libdir}/libcsironn.so.*.*.*
732 %attr(755,root,root) %ghost %{_libdir}/libcsironn.so.0
733 %attr(755,root,root) %{_libdir}/libnistcd.so.*.*.*
734 %attr(755,root,root) %ghost %{_libdir}/libnistcd.so.0
735 %attr(755,root,root) %{_libdir}/libqsastime.so.*.*.*
736 %attr(755,root,root) %ghost %{_libdir}/libqsastime.so.0
737 %attr(755,root,root) %{_libdir}/libplplotd.so.*.*.*
738 %attr(755,root,root) %ghost %{_libdir}/libplplotd.so.11
739 %{_mandir}/man1/plm2gif.1*
740 %{_mandir}/man1/plpr.1*
741 %{_mandir}/man1/plrender.1*
742 %{_mandir}/man1/pltek.1*
743 %{_mandir}/man1/pstex2eps.1*
744 %dir %{_libdir}/plplot%{version}
745 %dir %{_libdir}/plplot%{version}/driversd
746 %attr(755,root,root) %{_libdir}/plplot%{version}/driversd/cgm.so
747 %{_libdir}/plplot%{version}/driversd/cgm.driver_info
748 %attr(755,root,root) %{_libdir}/plplot%{version}/driversd/mem.so
749 %{_libdir}/plplot%{version}/driversd/mem.driver_info
750 %attr(755,root,root) %{_libdir}/plplot%{version}/driversd/null.so
751 %{_libdir}/plplot%{version}/driversd/null.driver_info
752 %attr(755,root,root) %{_libdir}/plplot%{version}/driversd/plmeta.so
753 %{_libdir}/plplot%{version}/driversd/plmeta.driver_info
754 %attr(755,root,root) %{_libdir}/plplot%{version}/driversd/ps.so
755 %{_libdir}/plplot%{version}/driversd/ps.driver_info
756 %attr(755,root,root) %{_libdir}/plplot%{version}/driversd/pstex.so
757 %{_libdir}/plplot%{version}/driversd/pstex.driver_info
758 %attr(755,root,root) %{_libdir}/plplot%{version}/driversd/svg.so
759 %{_libdir}/plplot%{version}/driversd/svg.driver_info
760 %attr(755,root,root) %{_libdir}/plplot%{version}/driversd/xfig.so
761 %{_libdir}/plplot%{version}/driversd/xfig.driver_info
762 %dir %{_datadir}/plplot%{version}
763 %{_datadir}/plplot%{version}/*.map
764 %{_datadir}/plplot%{version}/*.pal
765 %{_datadir}/plplot%{version}/*.fnt
768 %defattr(644,root,root,755)
769 %attr(755,root,root) %{_libdir}/plplot%{version}/driversd/cairo.so
770 %{_libdir}/plplot%{version}/driversd/cairo.driver_info
773 %defattr(644,root,root,755)
774 %attr(755,root,root) %{_libdir}/plplot%{version}/driversd/ntk.so
775 %{_libdir}/plplot%{version}/driversd/ntk.driver_info
778 %defattr(644,root,root,755)
779 %attr(755,root,root) %{_libdir}/plplot%{version}/driversd/pdf.so
780 %{_libdir}/plplot%{version}/driversd/pdf.driver_info
783 %defattr(644,root,root,755)
784 %attr(755,root,root) %{_libdir}/plplot%{version}/driversd/psttf.so
785 %{_libdir}/plplot%{version}/driversd/psttf.driver_info
788 %defattr(644,root,root,755)
789 %attr(755,root,root) %{_libdir}/plplot%{version}/driversd/tk.so
790 %{_libdir}/plplot%{version}/driversd/tk.driver_info
791 %attr(755,root,root) %{_libdir}/plplot%{version}/driversd/tkwin.so
792 %{_libdir}/plplot%{version}/driversd/tkwin.driver_info
795 %defattr(644,root,root,755)
796 %attr(755,root,root) %{_libdir}/plplot%{version}/driversd/qt.so
797 %{_libdir}/plplot%{version}/driversd/qt.driver_info
799 %files driver-wxwidgets
800 %defattr(644,root,root,755)
801 %attr(755,root,root) %{_libdir}/plplot%{version}/driversd/wxwidgets.so
802 %{_libdir}/plplot%{version}/driversd/wxwidgets.driver_info
805 %defattr(644,root,root,755)
806 %attr(755,root,root) %{_libdir}/plplot%{version}/driversd/xwin.so
807 %{_libdir}/plplot%{version}/driversd/xwin.driver_info
810 %defattr(644,root,root,755)
811 %attr(755,root,root) %{_libdir}/libcsirocsa.so
812 %attr(755,root,root) %{_libdir}/libcsironn.so
813 %attr(755,root,root) %{_libdir}/libnistcd.so
814 %attr(755,root,root) %{_libdir}/libplplotd.so
815 %attr(755,root,root) %{_libdir}/libqsastime.so
816 %dir %{_includedir}/plplot
817 %{_includedir}/plplot/cd.h
818 %{_includedir}/plplot/defines.h
819 %{_includedir}/plplot/disptab.h
820 %{_includedir}/plplot/drivers.h
821 %{_includedir}/plplot/pdf.h
822 %{_includedir}/plplot/plConfig.h
823 %{_includedir}/plplot/plDevs.h
824 %{_includedir}/plplot/pldebug.h
825 %{_includedir}/plplot/pldll.h
826 %{_includedir}/plplot/plevent.h
827 %{_includedir}/plplot/plplot.h
828 %{_includedir}/plplot/plplotP.h
829 %{_includedir}/plplot/plstrm.h
830 %{_includedir}/plplot/qsastime.h
831 %{_includedir}/plplot/qsastimedll.h
832 # xwin driver (uses X11 headers)
833 %{_includedir}/plplot/plxwd.h
835 %{_includedir}/plplot/gcw.h
836 %{_includedir}/plplot/plplotcanvas.h
837 %{_pkgconfigdir}/plplotd.pc
838 %dir %{_examplesdir}/%{name}-%{version}
839 %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/plplot-test.sh
840 %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/test_c.sh
841 %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/plplot-test-interactive.sh
842 %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/test_c_interactive.sh
843 %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/test_diff.sh
844 %{_examplesdir}/%{name}-%{version}/c
845 %{_examplesdir}/%{name}-%{version}/cmake
846 %{_examplesdir}/%{name}-%{version}/CMakeLists.txt
847 %{_examplesdir}/%{name}-%{version}/lena.*
848 %{_examplesdir}/%{name}-%{version}/Makefile
850 # perl examples use PDL::Graphics::PLplot module found in perl-PDL
851 %{_examplesdir}/%{name}-%{version}/perl
855 %defattr(644,root,root,755)
856 %attr(755,root,root) %{_libdir}/libplplotcxxd.so.*.*.*
857 %attr(755,root,root) %ghost %{_libdir}/libplplotcxxd.so.10
860 %defattr(644,root,root,755)
861 %attr(755,root,root) %{_libdir}/libplplotcxxd.so
862 %{_includedir}/plplot/plstream.h
863 %{_pkgconfigdir}/plplotd-c++.pc
864 %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/test_cxx.sh
865 %{_examplesdir}/%{name}-%{version}/c++
868 %defattr(644,root,root,755)
869 %attr(755,root,root) %{_libdir}/libplplotf77cd.so.*.*.*
870 %attr(755,root,root) %ghost %{_libdir}/libplplotf77cd.so.9
871 %attr(755,root,root) %{_libdir}/libplplotf77d.so.*.*.*
872 %attr(755,root,root) %ghost %{_libdir}/libplplotf77d.so.9
875 %defattr(644,root,root,755)
876 %attr(755,root,root) %{_libdir}/libplplotf77cd.so
877 %attr(755,root,root) %{_libdir}/libplplotf77d.so
878 %{_includedir}/plplot/plplot_parameters.h
879 %{_pkgconfigdir}/plplotd-f77.pc
880 %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/test_f77.sh
881 %{_examplesdir}/%{name}-%{version}/f77
884 %defattr(644,root,root,755)
885 %doc bindings/f95/readme_f95.txt
886 %attr(755,root,root) %{_libdir}/libplplotf95cd.so.*.*.*
887 %attr(755,root,root) %ghost %{_libdir}/libplplotf95cd.so.9
888 %attr(755,root,root) %{_libdir}/libplplotf95d.so.*.*.*
889 %attr(755,root,root) %ghost %{_libdir}/libplplotf95d.so.9
892 %defattr(644,root,root,755)
893 %attr(755,root,root) %{_libdir}/libplplotf95cd.so
894 %attr(755,root,root) %{_libdir}/libplplotf95d.so
895 %{_includedir}/plplot/plplot.mod
896 %{_includedir}/plplot/plplot_flt.mod
897 %{_includedir}/plplot/plplotp.mod
898 %{_pkgconfigdir}/plplotd-f95.pc
899 %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/test_f95.sh
900 %{_examplesdir}/%{name}-%{version}/f95
904 %defattr(644,root,root,755)
905 %attr(755,root,root) %{_libdir}/libplplotadad.so.*.*.*
906 %attr(755,root,root) %ghost %{_libdir}/libplplotadad.so.0
909 %defattr(644,root,root,755)
910 %attr(755,root,root) %{_libdir}/libplplotadad.so
911 %{ada_objdir}/plplotadad
912 %{ada_incdir}/plplotadad
913 %{_pkgconfigdir}/plplotd-ada.pc
914 %{_examplesdir}/%{name}-%{version}/ada
915 %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/test_ada.sh
920 %defattr(644,root,root,755)
921 %attr(755,root,root) %{_libdir}/plplotjavac_wrap.so
922 %{_javadir}/plplot.jar
925 %defattr(644,root,root,755)
926 %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/test_java.sh
927 %{_examplesdir}/%{name}-%{version}/java
931 %defattr(644,root,root,755)
932 %attr(755,root,root) %{_bindir}/pltcl
933 %attr(755,root,root) %{_bindir}/plserver
934 %attr(755,root,root) %{_libdir}/libplplottcltkd.so.*.*.*
935 %attr(755,root,root) %ghost %{_libdir}/libplplottcltkd.so.9
936 %attr(755,root,root) %{_libdir}/libtclmatrixd.so.*.*.*
937 %attr(755,root,root) %ghost %{_libdir}/libtclmatrixd.so.9
938 %{_datadir}/plplot%{version}/*.tcl
939 %{_datadir}/plplot%{version}/tcl
940 %{_mandir}/man1/pltcl.1*
941 %{_mandir}/man1/plserver.1*
944 %defattr(644,root,root,755)
945 %attr(755,root,root) %{_libdir}/libplplottcltkd.so
946 %attr(755,root,root) %{_libdir}/libtclmatrixd.so
947 %{_includedir}/plplot/pltcl.h
948 %{_includedir}/plplot/pltk.h
949 %{_includedir}/plplot/tclMatrix.h
950 %{_pkgconfigdir}/plplotd-tcl.pc
951 %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/test_tcl.sh
952 %{_examplesdir}/%{name}-%{version}/tcl
953 %{_examplesdir}/%{name}-%{version}/tk
956 %defattr(644,root,root,755)
957 %attr(755,root,root) %ghost %{_libdir}/libplplotqtd.so.0
958 %attr(755,root,root) %{_libdir}/libplplotqtd.so.0.0.1
961 %defattr(644,root,root,755)
962 %attr(755,root,root) %{_libdir}/libplplotqtd.so
963 %{_includedir}/plplot/qt.h
964 %{_pkgconfigdir}/plplotd-qt.pc
967 %defattr(644,root,root,755)
968 %attr(755,root,root) %{_libdir}/libplplotwxwidgetsd.so.*.*.*
969 %attr(755,root,root) %ghost %{_libdir}/libplplotwxwidgetsd.so.0
971 %files wxwidgets-devel
972 %defattr(644,root,root,755)
973 %attr(755,root,root) %{_libdir}/libplplotwxwidgetsd.so
974 %{_includedir}/plplot/wxPLplot*.h
975 %{_pkgconfigdir}/plplotd-wxwidgets.pc
978 %defattr(644,root,root,755)
979 %doc bindings/octave/{BUGS,FGA,README,ToDo,USAGE}
980 %attr(755,root,root) %{octave_oct_sitedir}/plplot_octave.oct
981 %{octave_m_sitedir}/PLplot
982 %{_datadir}/plplot_octave
983 %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/test_octave_interactive.sh
985 %files octave-examples
986 %defattr(644,root,root,755)
987 %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/test_octave.sh
988 %{_examplesdir}/%{name}-%{version}/octave
992 %defattr(644,root,root,755)
993 %dir %{_libdir}/lua/5.1/plplot
994 %attr(755,root,root) %{_libdir}/lua/5.1/plplot/plplotluac.so
995 %{_examplesdir}/%{name}-%{version}/lua
996 %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/test_lua.sh
1000 %files -n ocaml-plplot
1001 %defattr(644,root,root,755)
1002 %attr(755,root,root) %{_libdir}/ocaml/stublibs/dllplplot_stubs.so
1004 %files -n ocaml-plplot-devel
1005 %dir %{_libdir}/ocaml/plplot
1006 %{_libdir}/ocaml/plplot/META
1007 %{_libdir}/ocaml/plplot/libplplot_stubs.a
1008 %{_libdir}/ocaml/plplot/plplot.a
1009 %{_libdir}/ocaml/plplot/plplot.cm*
1010 %{_libdir}/ocaml/plplot/plplot.mli
1011 %{_pkgconfigdir}/plplotd-ocaml.pc
1012 %{_examplesdir}/%{name}-%{version}/ocaml
1013 %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/test_ocaml.sh
1015 %files -n ocaml-plcairo
1016 %defattr(644,root,root,755)
1017 %attr(755,root,root) %{_libdir}/ocaml/stublibs/dllplcairo_stubs.so
1019 %files -n ocaml-plcairo-devel
1020 %dir %{_libdir}/ocaml/plcairo
1021 %{_libdir}/ocaml/plcairo/META
1022 %{_libdir}/ocaml/plcairo/libplcairo_stubs.a
1023 %{_libdir}/ocaml/plcairo/plcairo.a
1024 %{_libdir}/ocaml/plcairo/plcairo.cm*
1025 %{_libdir}/ocaml/plcairo/plcairo.mli
1028 %files -n python-plplot
1029 %defattr(644,root,root,755)
1030 %attr(755,root,root) %{py_sitedir}/_plplotcmodule.so
1031 %attr(755,root,root) %{py_sitedir}/plplot_widgetmodule.so
1032 %{py_sitedir}/Plframe.py[co]
1033 %{py_sitedir}/plplotc.py[co]
1034 %{py_sitedir}/plplot.py[co]
1035 %{py_sitedir}/TclSup.py[co]
1037 %files -n python-plplot-qt4
1038 %defattr(644,root,root,755)
1039 %attr(755,root,root) %{py_sitedir}/plplot_pyqt4.so
1041 %files -n python-plplot-examples
1042 %defattr(644,root,root,755)
1043 %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/test_python.sh
1044 %{_examplesdir}/%{name}-%{version}/python