2 # - fix building with installed plplot/plplot-devel (tries to use installed drivers for dyn_test)
3 # - perl_pdl - why disabled?
4 # - bindings: 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,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_with d # D binding
17 %bcond_without java # Java binding
18 %bcond_without itcl # [incr Tcl]/[incr Tk] support in Tcl/Tk binding
19 %bcond_without lua # Lua binding
20 %bcond_without ocaml # OCaml binding
22 Summary: PLplot - a library of functions that are useful for making scientific plots
23 Summary(pl.UTF-8): PLplot - biblioteka funkcji przydatnych do tworzenia wykresów naukowych
29 Source0: http://downloads.sourceforge.net/plplot/%{name}-%{version}.tar.gz
30 # Source0-md5: ece8c0b4d5cd815968a6d56bed0fbe7b
31 Patch0: %{name}-octave.patch
32 Patch1: %{name}-qhull.patch
33 Patch2: %{name}-no-DISPLAY.patch
34 Patch4: %{name}-nofonts.patch
35 Patch5: %{name}-adadirs.patch
36 Patch6: %{name}-ocamldir.patch
37 Patch7: %{name}-d.patch
38 URL: http://plplot.sourceforge.net/
39 BuildRequires: QtGui-devel >= 4
40 BuildRequires: QtSvg-devel >= 4
41 BuildRequires: QtXml-devel >= 4
42 BuildRequires: agg-devel
43 BuildRequires: cmake >= 2.6.4
44 BuildRequires: docbook-style-dsssl
45 %{?with_d:BuildRequires: dmd}
46 BuildRequires: fftw3-devel
47 BuildRequires: fftw3-single-devel
48 BuildRequires: freetype-devel >= 2.1.0
49 %{?with_ada:BuildRequires: gcc-ada >= 5:4.1}
50 BuildRequires: gcc-c++
51 BuildRequires: gcc-fortran
52 %{?with_itcl:BuildRequires: itcl-devel >= 3.4.1}
53 %{?with_itcl:BuildRequires: itk-devel >= 3.4}
54 BuildRequires: jadetex
55 %{?with_java:BuildRequires: jdk}
56 %{?with_java:BuildRequires: jpackage-utils}
57 BuildRequires: lapack-devel
58 BuildRequires: libLASi-devel
59 %{?with_gnome2:BuildRequires: libgnomeprintui-devel >= 2.2}
60 BuildRequires: libharu-devel >= 2.1.0
61 BuildRequires: libjpeg-devel
62 BuildRequires: libltdl-devel
63 BuildRequires: libpng-devel
64 BuildRequires: libstdc++-devel
65 %{?with_lua:BuildRequires: lua51 >= 5.1}
66 %{?with_lua:BuildRequires: lua51-devel >= 5.1}
67 BuildRequires: octave-devel >= 2:3.4.2
68 BuildRequires: pango-devel
69 %{?with_perl_pdl:BuildRequires: perl-PDL}
70 BuildRequires: perl-XML-DOM
71 BuildRequires: perl-XML-Parser
72 BuildRequires: perl-XML-SAX-Expat
73 BuildRequires: pkgconfig
74 BuildRequires: pango-devel
75 BuildRequires: python-PyQt4-devel
76 BuildRequires: python-numpy-devel >= 15.3
77 BuildRequires: python-devel >= 1:2.3
78 BuildRequires: python-sip-devel
79 %{?with_gnome2:BuildRequires: python-pygtk-devel >= 2:2.13.0}
80 BuildRequires: qhull-devel >= 2011.1
81 BuildRequires: qt4-build >= 4
82 BuildRequires: qt4-qmake >= 4
83 BuildRequires: rpm-pythonprov
84 BuildRequires: rpmbuild(macros) >= 1.605
85 BuildRequires: sed >= 4.0
88 BuildRequires: swig-python
89 BuildRequires: tcl-devel >= 8.5
90 BuildRequires: tetex-dvips
91 BuildRequires: texinfo
92 BuildRequires: tk-devel >= 8.5
93 BuildRequires: wxGTK2-unicode-devel >= 2.6.0
94 BuildRequires: xorg-lib-libXext-devel
95 BuildRequires: xorg-lib-libICE-devel
96 BuildRequires: xorg-lib-libX11-devel
99 BuildRequires: ocaml-cairo-devel >= 1.2.0
100 BuildRequires: ocaml-camlidl
101 BuildRequires: ocaml-findlib
102 BuildRequires: ocaml-lablgtk2-devel
104 BuildConflicts: plplot
105 BuildConflicts: plplot-devel
106 Obsoletes: plplot-f77
107 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
109 %define octave_oct_sitedir %(octave-config --oct-site-dir)
110 %define octave_m_sitedir %(octave-config --m-site-dir)
112 %define gcc_target %(%{__cc} -dumpmachine)
113 %define ada_incdir %{_libdir}/gcc/%{gcc_target}/%{cc_version}/adainclude
114 %define ada_objdir %{_libdir}/gcc/%{gcc_target}/%{cc_version}/adalib
117 PLplot is a library of functions that are useful for making scientific
118 plots. It can be used from within compiled languages such as C, C++,
119 FORTRAN and Java, and interactively from interpreted languages such as
120 Octave, Python, Perl and Tcl.
122 The PLplot library can be used to create standard X-Y plots, semilog
123 plots, log-log plots, contour plots, 3D surface plots, mesh plots, bar
124 charts and pie charts. Multiple graphs (of the same or different
125 sizes) may be placed on a single page with multiple lines in each
128 A variety of output file devices such as PostScript, PNG, JPEG, LaTeX
129 and others, as well as interactive devices such as xwin, tk, xterm and
130 Tektronics devices are supported. New devices can be easily added by
131 writing a small number of device dependent routines.
133 %description -l pl.UTF-8
134 PLplot to biblioteka funkcji przydatnych do tworzenia wykresów
135 naukowych. Może być używana z poziomu języków kompilowanych takich jak
136 C, C++, FORTRAN czy Java, albo interaktywnie z poziomu języków
137 interpretowanych takich jak Octave, Python, Perl czy Tcl.
139 Bibliotekę PLplot można wykorzystać do tworzenia standardowych
140 wykresów X-Y, wykresów półlogarytmicznych, wykresów konturowych,
141 wykresów powierzchni trójwymiarowych, wykresów siatek, wykresów
142 słupkowych i kołowych. Na jednej stronie można umieścić wiele wykresów
143 (o tych samych lub różnych rozmiarach), na jednym wykresie może być
146 Obsługiwanych jest wiele urządzeń wyjściowych, w tym PostScript, PNG,
147 JPEG, LaTeX i inne, a także urządzenia interaktywne, takie jak xwin,
148 tk, xterm i Tektronics. Nowe urządzenia można łatwo dodać pisząc parę
149 zależnych od urządzenia funkcji.
152 Summary: ntk driver for PLplot library
153 Summary(pl.UTF-8): Sterownik ntk dla biblioteki PLplot
155 Requires: %{name} = %{version}-%{release}
157 %description driver-ntk
158 ntk (new tk) driver for PLplot library. It supports Tcl/Tk output.
160 %description driver-ntk -l pl.UTF-8
161 Sterownik ntk (new tk) dla biblioteki PLplot. Obsługuje wyjście
165 Summary: pdf driver for PLplot library
166 Summary(pl.UTF-8): Sterownik pdf dla biblioteki PLplot
168 Requires: %{name} = %{version}-%{release}
169 Requires: libharu >= 2.1.0
171 %description driver-pdf
172 pdf driver for PLplot library. It's PDF driver using Haru library.
174 %description driver-pdf -l pl.UTF-8
175 Sterownik pdf dla biblioteki PLplot. Jest to sterownik PDF
176 wykorzystujący bibliotekę Haru.
178 %package driver-psttf
179 Summary: psttf driver for PLplot library
180 Summary(pl.UTF-8): Sterownik psttf dla biblioteki PLplot
182 Requires: %{name} = %{version}-%{release}
184 %description driver-psttf
185 psttf driver for PLplot library. It's PostScript driver using LASi to
188 %description driver-psttf -l pl.UTF-8
189 Sterownik psttf dla biblioteki PLplot. Jest to sterownik
190 postscriptowy, wykorzystujący LASi do obsługi fontów.
193 Summary: Tk drivers for PLplot library
194 Summary(pl.UTF-8): Sterowniki Tk dla biblioteki PLplot
196 Requires: %{name}-tcl = %{version}-%{release}
198 %description driver-tk
199 Tk and tkwin drivers for PLplot library. They support Tcl/Tk output.
201 %description driver-tk -l pl.UTF-8
202 Sterownik Tk i tkwin dla biblioteki PLplot. Obsługują wyjście poprzez
205 %package driver-cairo
206 Summary: Cairo driver for PLplot library
207 Summary(pl.UTF-8): Sterownik cairo dla biblioteki PLplot
209 Requires: %{name} = %{version}-%{release}
211 %description driver-cairo
212 Cairo driver for PLplot library. It supports JPEG and PNG output
215 %description driver-cairo -l pl.UTF-8
216 Sterownik cairo dla biblioteki PLplot. Obsługuje formaty wyjścia JPEG
220 Summary: Qt4 driver for PLplot library
221 Summary(pl.UTF-8): Sterownik Qt4 dla biblioteki PLplot
223 Requires: %{name}-qt4 = %{version}-%{release}
225 %description driver-qt4
226 Qt4 driver for PLplot library. Supports Qt4 output.
228 %description driver-qt4 -l pl.UTF-8
229 Sterownik Qt4 dla biblioteki PLplot. Obsługuje wyjście poprzez Qt4.
231 %package driver-wxwidgets
232 Summary: wxWidgets driver for PLplot library
233 Summary(pl.UTF-8): Sterownik wxWidgets dla biblioteki PLplot
235 Requires: %{name} = %{version}-%{release}
237 %description driver-wxwidgets
238 wxWidgets driver for PLplot library. Supports wxWidgets output.
240 %description driver-wxwidgets -l pl.UTF-8
241 Sterownik wxWidgets dla biblioteki PLplot. Obsługuje wyjście poprzez
245 Summary: xwin driver for PLplot library
246 Summary(pl.UTF-8): Sterownik xwin dla biblioteki PLplot
248 Requires: %{name} = %{version}-%{release}
250 %description driver-xwin
251 xwin driver for PLplot library. It supports X Window System output.
253 %description driver-xwin -l pl.UTF-8
254 Sterownik ntk (new tk) dla biblioteki PLplot. Obsługuje wyjście do
255 okna systemu X Window.
258 Summary: Header files for PLplot library
259 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki PLplot
260 Group: Development/Libraries
261 Requires: %{name} = %{version}-%{release}
262 Requires: freetype-devel >= 2.1
263 Requires: qhull-devel
264 Obsoletes: plplot-f77-devel
265 Obsoletes: plplot-static
268 Header files for PLplot library.
270 %description devel -l pl.UTF-8
271 Pliki nagłówkowe biblioteki PLplot.
274 Summary: PLplot library - C++ binding
275 Summary(pl.UTF-8): Biblioteka PLplot - wiązanie dla C++
277 Requires: %{name} = %{version}-%{release}
280 PLplot library - C++ binding.
282 %description c++ -l pl.UTF-8
283 Biblioteka PLplot - wiązanie dla C++.
286 Summary: PLplot library - C++ binding development files
287 Summary(pl.UTF-8): Biblioteka PLplot - pliki programistyczne wiązania dla C++
288 Group: Development/Libraries
289 Requires: %{name}-c++ = %{version}-%{release}
290 Requires: %{name}-devel = %{version}-%{release}
291 Requires: libstdc++-devel
292 Obsoletes: plplot-c++-static
294 %description c++-devel
295 PLplot library - C++ binding development files.
297 %description c++-devel -l pl.UTF-8
298 Biblioteka PLplot - pliki programistyczne wiązania dla C++.
301 Summary: PLplot library - D binding
302 Summary(pl.UTF-8): Biblioteka PLplot - wiązanie dla języka D
303 Group: Development/Libraries
304 Requires: %{name}-devel = %{version}-%{release}
307 PLplot library - D binding.
309 %description d-devel -l pl.UTF-8
310 Biblioteka PLplot - wiązanie dla języka D.
313 Summary: PLplot library - FORTRAN 95 binding
314 Summary(pl.UTF-8): Biblioteka PLplot - wiązanie dla języka FORTRAN 95
316 Requires: %{name} = %{version}-%{release}
319 PLplot library - FORTRAN 95 binding.
321 %description f95 -l pl.UTF-8
322 Biblioteka PLplot - wiązanie dla języka FORTRAN 95.
325 Summary: PLplot library - FORTRAN 95 binding development files
326 Summary(pl.UTF-8): Biblioteka PLplot - pliki programistyczne wiązania dla języka FORTRAN 95
327 Group: Development/Libraries
328 Requires: %{name}-devel = %{version}-%{release}
329 Requires: %{name}-f95 = %{version}-%{release}
330 Requires: gcc-fortran
332 %description f95-devel
333 PLplot library - FORTRAN 95 binding development files.
335 %description f95-devel -l pl.UTF-8
336 Biblioteka PLplot - pliki programistyczne wiązania dla języka FORTRAN
340 Summary: PLplot library - Ada binding
341 Summary(pl.UTF-8): Biblioteka PLplot - wiązanie dla Ady
343 Requires: %{name} = %{version}-%{release}
346 PLplot library - Ada binding.
348 %description ada -l pl.UTF-8
349 Biblioteka PLplot - wiązanie dla Ady.
352 Summary: PLplot library - Ada binding development files
353 Summary(pl.UTF-8): Biblioteka PLplot - pliki programistyczne wiązania dla Ady
354 Group: Development/Libraries
355 Requires: %{name}-devel = %{version}-%{release}
356 Requires: %{name}-ada = %{version}-%{release}
358 %description ada-devel
359 PLplot library - Ada binding development files.
361 %description ada-devel -l pl.UTF-8
362 Biblioteka PLplot - pliki programistyczne wiązania dla Ady.
365 Summary: PLplot library - Java binding
366 Summary(pl.UTF-8): Biblioteka PLplot - wiązanie dla Javy
368 Requires: %{name} = %{version}-%{release}
371 PLplot library - Java binding.
373 %description java -l pl.UTF-8
374 Biblioteka PLplot - wiązanie dla Javy.
377 Summary: PLplot library - Java binding development files
378 Summary(pl.UTF-8): Biblioteka PLplot - pliki programistyczne wiązania dla Javy
379 Group: Development/Libraries
380 Requires: %{name}-devel = %{version}-%{release}
381 Requires: %{name}-java = %{version}-%{release}
382 Obsoletes: plplot-java-static
384 %description java-devel
385 PLplot library - Java binding development files.
387 %description java-devel -l pl.UTF-8
388 Biblioteka PLplot - pliki programistyczne wiązania dla Javy.
391 Summary: PLplot library - Tcl/Tk binding
392 Summary(pl.UTF-8): Biblioteka PLplot - wiązanie dla Tcl/Tk
394 Requires: %{name} = %{version}-%{release}
397 PLplot library - Tcl/Tk binding.
399 %description tcl -l pl.UTF-8
400 Biblioteka PLplot - wiązanie dla Tcl/Tk.
403 Summary: PLplot library - Tcl/Tk binding development files
404 Summary(pl.UTF-8): Biblioteka PLplot - pliki programistyczne wiązania dla Tcl/Tk
405 Group: Development/Libraries
406 Requires: %{name}-devel = %{version}-%{release}
407 Requires: %{name}-tcl = %{version}-%{release}
408 %{?with_itcl:Requires: itcl-devel}
409 Obsoletes: plplot-tcl-static
411 %description tcl-devel
412 PLplot library - Tcl/Tk binding development files.
414 %description tcl-devel -l pl.UTF-8
415 Biblioteka PLplot - pliki programistyczne wiązania dla Tcl/Tk.
418 Summary: PLplot library - Qt4 binding
419 Summary(pl.UTF-8): Biblioteka PLplot - wiązanie dla Qt4
421 Requires: %{name} = %{version}-%{release}
424 PLplot library - Qt4 binding.
426 %description qt4 -l pl.UTF-8
427 Biblioteka PLplot - wiązanie dla Qt4.
430 Summary: PLplot library - Qt4 binding development files
431 Summary(pl.UTF-8): Biblioteka PLplot - pliki programistyczne wiązania dla Qt4
432 Group: Development/Libraries
433 Requires: %{name}-qt4 = %{version}-%{release}
434 Requires: %{name}-devel = %{version}-%{release}
435 Requires: QtGui-devel
436 Requires: QtSvg-devel
437 Requires: QtXml-devel
439 %description qt4-devel
440 PLplot library - Qt4 binding development files.
442 %description qt4-devel -l pl.UTF-8
443 Biblioteka PLplot - pliki programistyczne wiązania dla Qt4.
446 Summary: PLplot library - wxWidgets binding
447 Summary(pl.UTF-8): Biblioteka PLplot - wiązanie dla wxWidgets
449 Requires: %{name} = %{version}-%{release}
450 Requires: wxGTK2-unicode >= 2.6.0
452 %description wxwidgets
453 PLplot library - wxwidgets binding.
455 %description wxwidgets -l pl.UTF-8
456 Biblioteka PLplot - wiązanie dla wxWidgets.
458 %package wxwidgets-devel
459 Summary: PLplot library - wxWidgets binding development files
460 Summary(pl.UTF-8): Biblioteka PLplot - pliki programistyczne wiązania dla wxWidgets
461 Group: Development/Libraries
462 Requires: %{name}-wxwidgets = %{version}-%{release}
463 Requires: %{name}-devel = %{version}-%{release}
464 Requires: wxGTK2-unicode-devel >= 2.6.0
466 %description wxwidgets-devel
467 PLplot library - wxWidgets binding development files.
469 %description wxwidgets-devel -l pl.UTF-8
470 Biblioteka PLplot - pliki programistyczne wiązania dla wxWidgets.
473 Summary: PLplot library - Octave binding
474 Summary(pl.UTF-8): Biblioteka PLplot - wiązanie dla języka Octave
476 Requires: %{name} = %{version}-%{release}
479 PLplot library - Octave binding.
481 %description octave -l pl.UTF-8
482 Biblioteka PLplot - wiązanie dla języka Octave.
484 %package octave-examples
485 Summary: PLplot library - examples for Octave binding
486 Summary(pl.UTF-8): Biblioteka PLplot - przykłady do wiązania dla języka Octave
487 Group: Development/Libraries
488 Requires: %{name}-devel = %{version}-%{release}
489 Requires: %{name}-octave = %{version}-%{release}
491 %description octave-examples
492 PLplot library - examples for Octave binding.
494 %description octave-examples -l pl.UTF-8
495 Biblioteka PLplot - przykłady do wiązania dla języka Octave.
497 %package -n lua-plplot
498 Summary: Lua binding for PLplot library
499 Summary(pl.UTF-8): Wiązanie języka Lua do biblioteki PLplot
500 Group: Development/Languages
501 Requires: %{name} = %{version}-%{release}
502 Requires: lua51-libs >= 5.1
504 %description -n lua-plplot
505 Lua binding for PLplot library.
507 %description -n lua-plplot -l pl.UTF-8
508 Wiązanie języka Lua do biblioteki PLplot.
510 %package -n ocaml-plplot
511 Summary: OCaml binding for PLplot library
512 Summary(pl.UTF-8): Wiązanie języka OCaml do biblioteki PLplot
514 Requires: %{name} = %{version}-%{release}
515 %requires_eq ocaml-runtime
517 %description -n ocaml-plplot
518 OCaml binding for PLplot library.
520 %description -n ocaml-plplot -l pl.UTF-8
521 Wiązanie języka OCaml do biblioteki PLplot.
523 %package -n ocaml-plplot-devel
524 Summary: Development files for OCaml binding for PLplot library
525 Summary(pl.UTF-8): Wiązanie języka OCaml do biblioteki PLplot - pliki programistyczne
526 Group: Development/Libraries
527 Requires: ocaml-plplot = %{version}-%{release}
530 %description -n ocaml-plplot-devel
531 Development files for OCaml binding for PLplot library.
533 %description -n ocaml-plplot-devel -l pl.UTF-8
534 Wiązanie języka OCaml do biblioteki PLplot - pliki programistyczne.
536 %package -n ocaml-plcairo
537 Summary: PLcairo - Cairo extras for OCaml binding for PLplot library
538 Summary(pl.UTF-8): PLcairo - dodatki Cairo do wiązania języka OCaml do biblioteki PLplot
540 Requires: ocaml-plplot = %{version}-%{release}
541 Requires: ocaml-cairo
542 %requires_eq ocaml-runtime
544 %description -n ocaml-plcairo
545 PLcairo - Cairo extras for OCaml binding for PLplot library.
547 %description -n ocaml-plcairo -l pl.UTF-8
548 PLcairo - dodatki Cairo do wiązania języka OCaml do biblioteki PLplot.
550 %package -n ocaml-plcairo-devel
551 Summary: Development files for PLcairo OCaml library
552 Summary(pl.UTF-8): Pliki programistyczne biblioteki OCamla PLcairo
553 Group: Development/Libraries
554 Requires: ocaml-cairo-devel
555 Requires: ocaml-plcairo = %{version}-%{release}
556 Requires: ocaml-plplot-devel = %{version}-%{release}
559 %description -n ocaml-plcairo-devel
560 Development files for PLcairo OCaml library.
562 %description -n ocaml-plcairo-devel -l pl.UTF-8
563 Pliki programistyczne biblioteki OCamla PLcairo.
565 %package -n python-plplot
566 Summary: PLplot library - Python binding
567 Summary(pl.UTF-8): Biblioteka PLplot - wiązanie dla Pythona
568 Group: Libraries/Python
569 Requires: %{name} = %{version}-%{release}
570 Requires: %{name}-tcl = %{version}-%{release}
571 %pyrequires_eq python-libs
572 Requires: python-numpy
574 %description -n python-plplot
575 PLplot library - Python binding.
577 %description -n python-plplot -l pl.UTF-8
578 Biblioteka PLplot - wiązanie dla Pythona.
580 %package -n python-plplot-qt4
581 Summary: PLplot library - PyQt4 binding
582 Summary(pl.UTF-8): Biblioteka PLplot - wiązanie dla PyQt4
583 Group: Libraries/Python
584 Requires: python-plplot = %{version}-%{release}
585 %pyrequires_eq python-libs
586 Requires: python-numpy
588 %description -n python-plplot-qt4
589 PLplot library - Python/PyQt4 binding.
591 %description -n python-plplot-qt4 -l pl.UTF-8
592 Biblioteka PLplot - wiązanie dla Pythona/PyQt4.
594 %package -n python-plplot-examples
595 Summary: PLplot library - Python binding examples
596 Summary(pl.UTF-8): Biblioteka PLplot - przykłady do wiązania dla Pythona
597 Group: Libraries/Python
598 Requires: %{name}-devel = %{version}-%{release}
599 Requires: python-plplot = %{version}-%{release}
601 %description -n python-plplot-examples
602 PLplot library - Python binding examples.
604 %description -n python-plplot-examples -l pl.UTF-8
605 Biblioteka PLplot - przykłady do wiązania dla Pythona.
617 # "Posix" is reserved and can be set only automatically
618 #%{__sed} -i -e 's/-version=Posix //' cmake/modules/language_support/cmake/Platform/Linux-dmd.cmake
623 # required for cmake to find JNI headers/libs when lib64 is in use
624 %{?with_java:export JAVA_HOME=%{_jvmlibdir}/java}
625 # NOTE: no %{_libdir}/jni in PLD, use plain %{_libdir}
629 -DADA_INCLUDE_PATH=%{ada_incdir} \
630 -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 -DF95_MOD_DIR=%{_includedir}/plplot \
655 -DOCTAVE_INCLUDE_PATH=%{_includedir}/octave \
656 -DOCTAVE_OCT_DIR=%{octave_oct_sitedir} \
657 -DOCTAVE_M_DIR=%{octave_m_sitedir} \
660 -DENABLE_ocaml=%{?with_ocaml:ON}%{!?with_ocaml:OFF} \
661 -DENABLE_itcl=%{?with_itcl:ON}%{!?with_itcl:OFF} \
662 -DENABLE_itk=%{?with_itcl:ON}%{!?with_itcl:OFF} \
668 -DPL_FREETYPE_FONT_PATH=/usr/share/fonts/TTF \
669 -DwxWidgets_CONFIG_EXECUTABLE=/usr/bin/wx-gtk2-unicode-config \
670 -DwxWidgets_USE_UNICODE=ON \
671 -DPython_ADDITIONAL_VERSIONS=2.7 \
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 f95 -p /sbin/ldconfig
703 %postun f95 -p /sbin/ldconfig
705 %post ada -p /sbin/ldconfig
706 %postun ada -p /sbin/ldconfig
708 %post tcl -p /sbin/ldconfig
709 %postun tcl -p /sbin/ldconfig
711 %post qt4 -p /sbin/ldconfig
712 %postun qt4 -p /sbin/ldconfig
714 %post wxwidgets -p /sbin/ldconfig
715 %postun wxwidgets -p /sbin/ldconfig
718 %defattr(644,root,root,755)
719 %doc ABOUT AUTHORS ChangeLog.release Copyright FAQ NEWS PROBLEMS README README.release SERVICE ToDo
720 %doc installed-docs/README.{1st.csa,1st.nn,csa,nn,drivers}
721 %attr(755,root,root) %{_bindir}/plm2gif
722 %attr(755,root,root) %{_bindir}/plpr
723 %attr(755,root,root) %{_bindir}/plrender
724 %attr(755,root,root) %{_bindir}/pltek
725 %attr(755,root,root) %{_bindir}/pstex2eps
726 %attr(755,root,root) %{_libdir}/libcsirocsa.so.*.*.*
727 %attr(755,root,root) %ghost %{_libdir}/libcsirocsa.so.0
728 %attr(755,root,root) %{_libdir}/libcsironn.so.*.*.*
729 %attr(755,root,root) %ghost %{_libdir}/libcsironn.so.0
730 %attr(755,root,root) %{_libdir}/libnistcd.so.*.*.*
731 %attr(755,root,root) %ghost %{_libdir}/libnistcd.so.0
732 %attr(755,root,root) %{_libdir}/libqsastime.so.*.*.*
733 %attr(755,root,root) %ghost %{_libdir}/libqsastime.so.0
734 %attr(755,root,root) %{_libdir}/libplplotd.so.*.*.*
735 %attr(755,root,root) %ghost %{_libdir}/libplplotd.so.12
736 %{_mandir}/man1/plm2gif.1*
737 %{_mandir}/man1/plpr.1*
738 %{_mandir}/man1/plrender.1*
739 %{_mandir}/man1/pltek.1*
740 %{_mandir}/man1/pstex2eps.1*
741 %dir %{_libdir}/plplot%{version}
742 %dir %{_libdir}/plplot%{version}/driversd
743 %attr(755,root,root) %{_libdir}/plplot%{version}/driversd/cgm.so
744 %{_libdir}/plplot%{version}/driversd/cgm.driver_info
745 %attr(755,root,root) %{_libdir}/plplot%{version}/driversd/mem.so
746 %{_libdir}/plplot%{version}/driversd/mem.driver_info
747 %attr(755,root,root) %{_libdir}/plplot%{version}/driversd/null.so
748 %{_libdir}/plplot%{version}/driversd/null.driver_info
749 %attr(755,root,root) %{_libdir}/plplot%{version}/driversd/plmeta.so
750 %{_libdir}/plplot%{version}/driversd/plmeta.driver_info
751 %attr(755,root,root) %{_libdir}/plplot%{version}/driversd/ps.so
752 %{_libdir}/plplot%{version}/driversd/ps.driver_info
753 %attr(755,root,root) %{_libdir}/plplot%{version}/driversd/pstex.so
754 %{_libdir}/plplot%{version}/driversd/pstex.driver_info
755 %attr(755,root,root) %{_libdir}/plplot%{version}/driversd/svg.so
756 %{_libdir}/plplot%{version}/driversd/svg.driver_info
757 %attr(755,root,root) %{_libdir}/plplot%{version}/driversd/xfig.so
758 %{_libdir}/plplot%{version}/driversd/xfig.driver_info
759 %dir %{_datadir}/plplot%{version}
760 %{_datadir}/plplot%{version}/*.map
761 %{_datadir}/plplot%{version}/*.pal
762 %{_datadir}/plplot%{version}/*.fnt
765 %defattr(644,root,root,755)
766 %attr(755,root,root) %{_libdir}/plplot%{version}/driversd/cairo.so
767 %{_libdir}/plplot%{version}/driversd/cairo.driver_info
770 %defattr(644,root,root,755)
771 %attr(755,root,root) %{_libdir}/plplot%{version}/driversd/ntk.so
772 %{_libdir}/plplot%{version}/driversd/ntk.driver_info
775 %defattr(644,root,root,755)
776 %attr(755,root,root) %{_libdir}/plplot%{version}/driversd/pdf.so
777 %{_libdir}/plplot%{version}/driversd/pdf.driver_info
780 %defattr(644,root,root,755)
781 %attr(755,root,root) %{_libdir}/plplot%{version}/driversd/psttf.so
782 %{_libdir}/plplot%{version}/driversd/psttf.driver_info
785 %defattr(644,root,root,755)
786 %attr(755,root,root) %{_libdir}/plplot%{version}/driversd/tk.so
787 %{_libdir}/plplot%{version}/driversd/tk.driver_info
788 %attr(755,root,root) %{_libdir}/plplot%{version}/driversd/tkwin.so
789 %{_libdir}/plplot%{version}/driversd/tkwin.driver_info
792 %defattr(644,root,root,755)
793 %attr(755,root,root) %{_libdir}/plplot%{version}/driversd/qt.so
794 %{_libdir}/plplot%{version}/driversd/qt.driver_info
796 %files driver-wxwidgets
797 %defattr(644,root,root,755)
798 %attr(755,root,root) %{_libdir}/plplot%{version}/driversd/wxwidgets.so
799 %{_libdir}/plplot%{version}/driversd/wxwidgets.driver_info
802 %defattr(644,root,root,755)
803 %attr(755,root,root) %{_libdir}/plplot%{version}/driversd/xwin.so
804 %{_libdir}/plplot%{version}/driversd/xwin.driver_info
807 %defattr(644,root,root,755)
808 %attr(755,root,root) %{_libdir}/libcsirocsa.so
809 %attr(755,root,root) %{_libdir}/libcsironn.so
810 %attr(755,root,root) %{_libdir}/libnistcd.so
811 %attr(755,root,root) %{_libdir}/libplplotd.so
812 %attr(755,root,root) %{_libdir}/libqsastime.so
813 %dir %{_includedir}/plplot
814 %{_includedir}/plplot/cd.h
815 %{_includedir}/plplot/defines.h
816 %{_includedir}/plplot/disptab.h
817 %{_includedir}/plplot/drivers.h
818 %{_includedir}/plplot/pdf.h
819 %{_includedir}/plplot/plConfig.h
820 %{_includedir}/plplot/plDevs.h
821 %{_includedir}/plplot/pldebug.h
822 %{_includedir}/plplot/pldll.h
823 %{_includedir}/plplot/plevent.h
824 %{_includedir}/plplot/plplot.h
825 %{_includedir}/plplot/plplotP.h
826 %{_includedir}/plplot/plstrm.h
827 %{_includedir}/plplot/qsastime.h
828 %{_includedir}/plplot/qsastimedll.h
829 # xwin driver (uses X11 headers)
830 %{_includedir}/plplot/plxwd.h
832 %{_includedir}/plplot/gcw.h
833 %{_includedir}/plplot/plplotcanvas.h
834 %{_pkgconfigdir}/plplotd.pc
835 %dir %{_examplesdir}/%{name}-%{version}
836 %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/plplot-test.sh
837 %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/test_c.sh
838 %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/plplot-test-interactive.sh
839 %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/test_c_interactive.sh
840 %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/test_diff.sh
841 %{_examplesdir}/%{name}-%{version}/c
842 %{_examplesdir}/%{name}-%{version}/cmake
843 %{_examplesdir}/%{name}-%{version}/CMakeLists.txt
844 %{_examplesdir}/%{name}-%{version}/lena.*
845 %{_examplesdir}/%{name}-%{version}/Makefile
847 # perl examples use PDL::Graphics::PLplot module found in perl-PDL
848 %{_examplesdir}/%{name}-%{version}/perl
852 %defattr(644,root,root,755)
853 %attr(755,root,root) %{_libdir}/libplplotcxxd.so.*.*.*
854 %attr(755,root,root) %ghost %{_libdir}/libplplotcxxd.so.11
857 %defattr(644,root,root,755)
858 %attr(755,root,root) %{_libdir}/libplplotcxxd.so
859 %{_includedir}/plplot/plstream.h
860 %{_pkgconfigdir}/plplotd-c++.pc
861 %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/test_cxx.sh
862 %{_examplesdir}/%{name}-%{version}/c++
866 %defattr(644,root,root,755)
867 %{_libdir}/libplplotdmdd.a
868 %{_includedir}/plplot/plplot.d
869 %{_pkgconfigdir}/plplotd-d.pc
870 %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/test_d.sh
871 %{_examplesdir}/%{name}-%{version}/d
875 %defattr(644,root,root,755)
876 %doc bindings/f95/readme_f95.txt
877 %attr(755,root,root) %{_libdir}/libplplotf95cd.so.*.*.*
878 %attr(755,root,root) %ghost %{_libdir}/libplplotf95cd.so.11
879 %attr(755,root,root) %{_libdir}/libplplotf95d.so.*.*.*
880 %attr(755,root,root) %ghost %{_libdir}/libplplotf95d.so.11
883 %defattr(644,root,root,755)
884 %attr(755,root,root) %{_libdir}/libplplotf95cd.so
885 %attr(755,root,root) %{_libdir}/libplplotf95d.so
886 %{_includedir}/plplot/plplot.mod
887 %{_includedir}/plplot/plplot_flt.mod
888 %{_includedir}/plplot/plplotp.mod
889 %{_pkgconfigdir}/plplotd-f95.pc
890 %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/test_f95.sh
891 %{_examplesdir}/%{name}-%{version}/f95
895 %defattr(644,root,root,755)
896 %attr(755,root,root) %{_libdir}/libplplotadad.so.*.*.*
897 %attr(755,root,root) %ghost %{_libdir}/libplplotadad.so.1
900 %defattr(644,root,root,755)
901 %attr(755,root,root) %{_libdir}/libplplotadad.so
902 %{ada_objdir}/plplotadad
903 %{ada_incdir}/plplotadad
904 %{_pkgconfigdir}/plplotd-ada.pc
905 %{_examplesdir}/%{name}-%{version}/ada
906 %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/test_ada.sh
911 %defattr(644,root,root,755)
912 %attr(755,root,root) %{_libdir}/plplotjavac_wrap.so
913 %{_javadir}/plplot.jar
916 %defattr(644,root,root,755)
917 %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/test_java.sh
918 %{_examplesdir}/%{name}-%{version}/java
922 %defattr(644,root,root,755)
923 %attr(755,root,root) %{_bindir}/pltcl
924 %attr(755,root,root) %{_bindir}/plserver
925 %attr(755,root,root) %{_libdir}/libplplottcltkd.so.*.*.*
926 %attr(755,root,root) %ghost %{_libdir}/libplplottcltkd.so.11
927 %attr(755,root,root) %{_libdir}/libtclmatrixd.so.*.*.*
928 %attr(755,root,root) %ghost %{_libdir}/libtclmatrixd.so.9
929 %attr(755,root,root) %{_libdir}/libplplottcltk_Maind.so.*.*.*
930 %attr(755,root,root) %ghost %{_libdir}/libplplottcltk_Maind.so.0
931 %{_datadir}/plplot%{version}/*.tcl
932 %{_datadir}/plplot%{version}/tcl
933 %{_mandir}/man1/pltcl.1*
934 %{_mandir}/man1/plserver.1*
937 %defattr(644,root,root,755)
938 %attr(755,root,root) %{_libdir}/libplplottcltkd.so
939 %attr(755,root,root) %{_libdir}/libtclmatrixd.so
940 %attr(755,root,root) %{_libdir}/libplplottcltk_Maind.so
941 %{_includedir}/plplot/pltcl.h
942 %{_includedir}/plplot/pltk.h
943 %{_includedir}/plplot/tclMatrix.h
944 %{_pkgconfigdir}/plplotd-tcl.pc
945 %{_pkgconfigdir}/plplotd-tcl_Main.pc
946 %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/test_tcl.sh
947 %{_examplesdir}/%{name}-%{version}/tcl
948 %{_examplesdir}/%{name}-%{version}/tk
951 %defattr(644,root,root,755)
952 %attr(755,root,root) %ghost %{_libdir}/libplplotqtd.so.1
953 %attr(755,root,root) %{_libdir}/libplplotqtd.so.1.0.0
956 %defattr(644,root,root,755)
957 %attr(755,root,root) %{_libdir}/libplplotqtd.so
958 %{_includedir}/plplot/qt.h
959 %{_pkgconfigdir}/plplotd-qt.pc
962 %defattr(644,root,root,755)
963 %attr(755,root,root) %{_libdir}/libplplotwxwidgetsd.so.*.*.*
964 %attr(755,root,root) %ghost %{_libdir}/libplplotwxwidgetsd.so.0
966 %files wxwidgets-devel
967 %defattr(644,root,root,755)
968 %attr(755,root,root) %{_libdir}/libplplotwxwidgetsd.so
969 %{_includedir}/plplot/wxPLplot*.h
970 %{_pkgconfigdir}/plplotd-wxwidgets.pc
973 %defattr(644,root,root,755)
974 %doc bindings/octave/{BUGS,FGA,README,ToDo,USAGE}
975 %attr(755,root,root) %{octave_oct_sitedir}/plplot_octave.oct
976 %{octave_m_sitedir}/PLplot
977 %{_datadir}/plplot_octave
978 %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/test_octave_interactive.sh
980 %files octave-examples
981 %defattr(644,root,root,755)
982 %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/test_octave.sh
983 %{_examplesdir}/%{name}-%{version}/octave
987 %defattr(644,root,root,755)
988 %dir %{_libdir}/lua/5.1/plplot
989 %attr(755,root,root) %{_libdir}/lua/5.1/plplot/plplotluac.so
990 %{_examplesdir}/%{name}-%{version}/lua
991 %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/test_lua.sh
995 %files -n ocaml-plplot
996 %defattr(644,root,root,755)
997 %attr(755,root,root) %{_libdir}/ocaml/stublibs/dllplplot_stubs.so
999 %files -n ocaml-plplot-devel
1000 %dir %{_libdir}/ocaml/plplot
1001 %{_libdir}/ocaml/plplot/META
1002 %{_libdir}/ocaml/plplot/libplplot_stubs.a
1003 %{_libdir}/ocaml/plplot/plplot.a
1004 %{_libdir}/ocaml/plplot/plplot.cm*
1005 %{_libdir}/ocaml/plplot/plplot.mli
1006 %{_pkgconfigdir}/plplotd-ocaml.pc
1007 %{_examplesdir}/%{name}-%{version}/ocaml
1008 %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/test_ocaml.sh
1010 %files -n ocaml-plcairo
1011 %defattr(644,root,root,755)
1012 %attr(755,root,root) %{_libdir}/ocaml/stublibs/dllplcairo_stubs.so
1014 %files -n ocaml-plcairo-devel
1015 %dir %{_libdir}/ocaml/plcairo
1016 %{_libdir}/ocaml/plcairo/META
1017 %{_libdir}/ocaml/plcairo/libplcairo_stubs.a
1018 %{_libdir}/ocaml/plcairo/plcairo.a
1019 %{_libdir}/ocaml/plcairo/plcairo.cm*
1020 %{_libdir}/ocaml/plcairo/plcairo.mli
1023 %files -n python-plplot
1024 %defattr(644,root,root,755)
1025 %attr(755,root,root) %{py_sitedir}/_plplotcmodule.so
1026 %attr(755,root,root) %{py_sitedir}/plplot_widgetmodule.so
1027 %{py_sitedir}/Plframe.py[co]
1028 %{py_sitedir}/plplotc.py[co]
1029 %{py_sitedir}/plplot.py[co]
1030 %{py_sitedir}/TclSup.py[co]
1032 %files -n python-plplot-qt4
1033 %defattr(644,root,root,755)
1034 %attr(755,root,root) %{py_sitedir}/plplot_pyqt4.so
1036 %files -n python-plplot-examples
1037 %defattr(644,root,root,755)
1038 %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/test_python.sh
1039 %{_examplesdir}/%{name}-%{version}/python