]> git.pld-linux.org Git - packages/plplot.git/blame - plplot.spec
- actually use wx* BRs, build wxwidgets binding and driver (also BR: agg-devel)
[packages/plplot.git] / plplot.spec
CommitLineData
24f3ccb3
JB
1# TODO:
2# - java, itcl, perl_pdl - why disabled?
3# - D binding
4# - AQT (AquaTerm/AQTAdapter.h)
5# - svgalib (bcond)?
6# - system libharu/hpdf (libhpdf, hpdf.h)
fbce7ed6
JB
7#
8# Conditional build:
24f3ccb3 9%bcond_without gnome2 # GNOME 2 and pygtk bindings
161f3dd0 10%bcond_with perl_pdl # enable perl examples in tests
fbce7ed6 11%bcond_with java # build Java binding
a7b00b76 12%bcond_with itcl # build iTCL binding
fbce7ed6 13#
fbce7ed6 14Summary: PLplot - a library of functions that are useful for making scientific plots
fbecc96b 15Summary(pl.UTF-8): PLplot - biblioteka funkcji przydatnych do tworzenia wykresów naukowych
fbce7ed6 16Name: plplot
cce322e2
JB
17Version: 5.9.9
18Release: 1
19License: LGPL v2+
fbce7ed6 20Group: Libraries
cce322e2
JB
21Source0: http://downloads.sourceforge.net/plplot/%{name}-%{version}.tar.gz
22# Source0-md5: 9f2c8536a58875d97ab6b29bbed67d26
e575e93b 23Patch0: %{name}-octave.patch
3013bac9 24Patch1: %{name}-qhull.patch
cce322e2
JB
25Patch2: %{name}-link.patch
26Patch3: %{name}-cmake.patch
24f3ccb3 27Patch4: %{name}-nofonts.patch
fbce7ed6 28URL: http://plplot.sourceforge.net/
a7b00b76
JR
29BuildRequires: QtGui-devel
30BuildRequires: QtSvg-devel
31BuildRequires: QtXml-devel
24f3ccb3 32BuildRequires: agg-devel
cce322e2 33BuildRequires: cmake >= 2.6.4
fbce7ed6 34BuildRequires: docbook-style-dsssl
43d4c738 35BuildRequires: fftw3-devel
008b57e3 36BuildRequires: fftw3-single-devel
fbce7ed6 37BuildRequires: freetype-devel >= 2.1.0
a7b00b76
JR
38BuildRequires: gcc-c++
39BuildRequires: gcc-fortran
24f3ccb3 40#BuildRequires: gd-devel
a7b00b76 41%{?with_itcl:BuildRequires: itcl-devel}
fbce7ed6
JB
42BuildRequires: jadetex
43%{?with_java:BuildRequires: jdk}
43d4c738 44BuildRequires: lapack-devel
24f3ccb3
JB
45BuildRequires: libLASi-devel
46%{?with_gnome2:BuildRequires: libgnomeprintui-devel >= 2.2}
fbce7ed6 47BuildRequires: libjpeg-devel
008b57e3 48BuildRequires: libltdl-devel
fbce7ed6
JB
49BuildRequires: libpng-devel
50BuildRequires: libstdc++-devel
3ad31e35 51BuildRequires: octave-devel >= 2:3.4.2
e575e93b 52BuildRequires: pango-devel
a7b00b76 53%{?with_perl_pdl:BuildRequires: perl-PDL}
161f3dd0 54BuildRequires: perl-XML-DOM
008b57e3 55BuildRequires: perl-XML-Parser
56BuildRequires: perl-XML-SAX-Expat
30d0607a 57BuildRequires: pkgconfig
a7b00b76
JR
58BuildRequires: pango-devel
59BuildRequires: python-PyQt4-devel
f448fc80 60BuildRequires: python-numpy-devel >= 15.3
d32d40fb 61BuildRequires: python-devel >= 1:2.3
24f3ccb3 62%{?with_gnome2:BuildRequires: python-pygtk-devel >= 2:2.13.0}
3013bac9 63BuildRequires: qhull-devel >= 2011.1
e575e93b 64BuildRequires: qt4-build
a7b00b76 65BuildRequires: qt4-qmake
008b57e3 66BuildRequires: rpm-pythonprov
598cb4da 67BuildRequires: sed >= 4.0
a7b00b76 68BuildRequires: sip
161f3dd0 69BuildRequires: swig
4b6553b3 70BuildRequires: swig-python
24f3ccb3 71BuildRequires: tcl-devel >= 8.5
fbce7ed6
JB
72BuildRequires: tetex-dvips
73BuildRequires: texinfo
24f3ccb3
JB
74BuildRequires: tk-devel >= 8.5
75BuildRequires: wxGTK2-unicode-devel >= 2.6.0
a7b00b76
JR
76BuildRequires: xorg-lib-libXext-devel
77BuildRequires: xorg-lib-libICE-devel
78BuildRequires: xorg-lib-libX11-devel
fbce7ed6
JB
79BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
80
30d0607a
JB
81%define octave_oct_sitedir %(octave-config --oct-site-dir)
82%define octave_m_sitedir %(octave-config --m-site-dir)
dd2a3e31 83
fbce7ed6
JB
84%description
85PLplot is a library of functions that are useful for making scientific
86plots. It can be used from within compiled languages such as C, C++,
87FORTRAN and Java, and interactively from interpreted languages such as
88Octave, Python, Perl and Tcl.
89
90The PLplot library can be used to create standard X-Y plots, semilog
91plots, log-log plots, contour plots, 3D surface plots, mesh plots, bar
92charts and pie charts. Multiple graphs (of the same or different
93sizes) may be placed on a single page with multiple lines in each
94graph.
95
7fa8ed02
ER
96A variety of output file devices such as PostScript, PNG, JPEG, LaTeX
97and others, as well as interactive devices such as xwin, tk, xterm and
98Tektronics devices are supported. New devices can be easily added by
99writing a small number of device dependent routines.
fbce7ed6 100
4205e3d0
JR
101%description -l pl.UTF-8
102PLplot to biblioteka funkcji przydatnych do tworzenia wykresów
7fa8ed02
ER
103naukowych. Może być używana z poziomu języków kompilowanych takich jak
104C, C++, FORTRAN czy Java, albo interaktywnie z poziomu języków
fbce7ed6
JB
105interpretowanych takich jak Octave, Python, Perl czy Tcl.
106
4205e3d0
JR
107Bibliotekę PLplot można wykorzystać do tworzenia standardowych
108wykresów X-Y, wykresów półlogarytmicznych, wykresów konturowych,
109wykresów powierzchni trójwymiarowych, wykresów siatek, wykresów
110słupkowych i kołowych. Na jednej stronie można umieścić wiele wykresów
111(o tych samych lub różnych rozmiarach), na jednym wykresie może być
fbce7ed6
JB
112wiele linii.
113
4205e3d0
JR
114Obsługiwanych jest wiele urządzeń wyjściowych, w tym PostScript, PNG,
115JPEG, LaTeX i inne, a także urządzenia interaktywne, takie jak xwin,
116tk, xterm i Tektronics. Nowe urządzenia można łatwo dodać pisząc parę
117zależnych od urządzenia funkcji.
fbce7ed6 118
fbce7ed6
JB
119%package driver-ntk
120Summary: ntk driver for PLplot library
fbecc96b 121Summary(pl.UTF-8): Sterownik ntk dla biblioteki PLplot
fbce7ed6
JB
122Group: Libraries
123Requires: %{name} = %{version}-%{release}
124
125%description driver-ntk
126ntk (new tk) driver for PLplot library. It supports Tcl/Tk output.
127
4205e3d0
JR
128%description driver-ntk -l pl.UTF-8
129Sterownik ntk (new tk) dla biblioteki PLplot. Obsługuje wyjście
fbce7ed6
JB
130poprzez Tcl/Tk.
131
24f3ccb3
JB
132%package driver-psttf
133Summary: psttf driver for PLplot library
134Summary(pl.UTF-8): Sterownik psttf dla biblioteki PLplot
135Group: Libraries
136Requires: %{name} = %{version}-%{release}
137
138%description driver-psttf
139psttf driver for PLplot library. It's PostScript driver using LASi to
140provide fonts.
141
142%description driver-psttf -l pl.UTF-8
143Sterownik psttf dla biblioteki PLplot. Jest to sterownik
144postscriptowy, wykorzystujący LASi do obsługi fontów.
145
fbce7ed6
JB
146%package driver-tk
147Summary: Tk drivers for PLplot library
fbecc96b 148Summary(pl.UTF-8): Sterowniki Tk dla biblioteki PLplot
fbce7ed6
JB
149Group: Libraries
150Requires: %{name}-tcl = %{version}-%{release}
151
152%description driver-tk
153Tk and tkwin drivers for PLplot library. They support Tcl/Tk output.
154
e575e93b 155%description driver-tk -l pl.UTF-8
4205e3d0 156Sterownik Tk i tkwin dla biblioteki PLplot. Obsługują wyjście poprzez
fbce7ed6
JB
157Tcl/Tk.
158
e575e93b
JR
159%package driver-cairo
160Summary: Cairo driver for PLplot library
161Summary(pl.UTF-8): Sterownik cairo dla biblioteki PLplot
162Group: Libraries
163Requires: %{name} = %{version}-%{release}
164
165%description driver-cairo
24f3ccb3
JB
166Cairo driver for PLplot library. It supports JPEG and PNG output
167formats.
e575e93b
JR
168
169%description driver-cairo -l pl.UTF-8
24f3ccb3
JB
170Sterownik cairo dla biblioteki PLplot. Obsługuje formaty wyjścia JPEG
171i PNG.
e575e93b
JR
172
173%package driver-qt4
174Summary: Qt4 driver for PLplot library
175Summary(pl.UTF-8): Sterownik Qt4 dla biblioteki PLplot
176Group: Libraries
177Requires: %{name}-qt4 = %{version}-%{release}
178
179%description driver-qt4
24f3ccb3 180Qt4 driver for PLplot library. Supports Qt4 output.
e575e93b
JR
181
182%description driver-qt4 -l pl.UTF-8
183Sterownik Qt4 dla biblioteki PLplot. Obsługuje wyjście poprzez Qt4.
184
24f3ccb3
JB
185%package driver-wxwidgets
186Summary: wxWidgets driver for PLplot library
187Summary(pl.UTF-8): Sterownik wxWidgets dla biblioteki PLplot
188Group: Libraries
189Requires: %{name}-wxWidgets = %{version}-%{release}
190
191%description driver-wxwidgets
192wxWidgets driver for PLplot library. Supports wxWidgets output.
193
194%description driver-wxwidgets -l pl.UTF-8
195Sterownik wxWidgets dla biblioteki PLplot. Obsługuje wyjście poprzez
196wxWidgets.
197
fbce7ed6
JB
198%package driver-xwin
199Summary: xwin driver for PLplot library
fbecc96b 200Summary(pl.UTF-8): Sterownik xwin dla biblioteki PLplot
fbce7ed6
JB
201Group: Libraries
202Requires: %{name} = %{version}-%{release}
203
204%description driver-xwin
205xwin driver for PLplot library. It supports X Window System output.
206
4205e3d0
JR
207%description driver-xwin -l pl.UTF-8
208Sterownik ntk (new tk) dla biblioteki PLplot. Obsługuje wyjście do
fbce7ed6
JB
209okna systemu X Window.
210
211%package devel
212Summary: Header files for PLplot library
fbecc96b 213Summary(pl.UTF-8): Pliki nagłówkowe biblioteki PLplot
fbce7ed6
JB
214Group: Development/Libraries
215Requires: %{name} = %{version}-%{release}
216Requires: freetype-devel >= 2.1
217Requires: qhull-devel
a7b00b76 218Obsoletes: plplot-static
fbce7ed6
JB
219
220%description devel
221Header files for PLplot library.
222
4205e3d0
JR
223%description devel -l pl.UTF-8
224Pliki nagłówkowe biblioteki PLplot.
fbce7ed6 225
fbce7ed6
JB
226%package c++
227Summary: PLplot library - C++ binding
fbecc96b 228Summary(pl.UTF-8): Biblioteka PLplot - wiązanie dla C++
fbce7ed6
JB
229Group: Libraries
230Requires: %{name} = %{version}-%{release}
231
232%description c++
233PLplot library - C++ binding.
234
4205e3d0
JR
235%description c++ -l pl.UTF-8
236Biblioteka PLplot - wiązanie dla C++.
fbce7ed6
JB
237
238%package c++-devel
239Summary: PLplot library - C++ binding development files
fbecc96b 240Summary(pl.UTF-8): Biblioteka PLplot - pliki programistyczne wiązania dla C++
fbce7ed6
JB
241Group: Development/Libraries
242Requires: %{name}-c++ = %{version}-%{release}
243Requires: %{name}-devel = %{version}-%{release}
244Requires: libstdc++-devel
a7b00b76 245Obsoletes: plplot-c++-static
fbce7ed6
JB
246
247%description c++-devel
248PLplot library - C++ binding development files.
249
4205e3d0
JR
250%description c++-devel -l pl.UTF-8
251Biblioteka PLplot - pliki programistyczne wiązania dla C++.
fbce7ed6 252
fbce7ed6
JB
253%package f77
254Summary: PLplot library - FORTRAN 77 binding
fbecc96b 255Summary(pl.UTF-8): Biblioteka PLplot - wiązanie dla języka FORTRAN 77
fbce7ed6
JB
256Group: Libraries
257Requires: %{name} = %{version}-%{release}
258
259%description f77
260PLplot library - FORTRAN 77 binding.
261
4205e3d0
JR
262%description f77 -l pl.UTF-8
263Biblioteka PLplot - wiązanie dla języka FORTRAN 77.
fbce7ed6
JB
264
265%package f77-devel
266Summary: PLplot library - FORTRAN 77 binding development files
fbecc96b 267Summary(pl.UTF-8): Biblioteka PLplot - pliki programistyczne wiązania dla języka FORTRAN 77
fbce7ed6
JB
268Group: Development/Libraries
269Requires: %{name}-devel = %{version}-%{release}
270Requires: %{name}-f77 = %{version}-%{release}
a7b00b76
JR
271Requires: gcc-fortran
272Obsoletes: plplot-f77-static
fbce7ed6
JB
273
274%description f77-devel
275PLplot library - FORTRAN 77 binding development files.
276
4205e3d0
JR
277%description f77-devel -l pl.UTF-8
278Biblioteka PLplot - pliki programistyczne wiązania dla języka FORTRAN
fbce7ed6
JB
27977.
280
e575e93b
JR
281%package f95
282Summary: PLplot library - FORTRAN 95 binding
283Summary(pl.UTF-8): Biblioteka PLplot - wiązanie dla języka FORTRAN 95
284Group: Libraries
285Requires: %{name} = %{version}-%{release}
286
287%description f95
288PLplot library - FORTRAN 95 binding.
289
290%description f95 -l pl.UTF-8
291Biblioteka PLplot - wiązanie dla języka FORTRAN 95.
292
293%package f95-devel
294Summary: PLplot library - FORTRAN 95 binding development files
cce322e2 295Summary(pl.UTF-8): Biblioteka PLplot - pliki programistyczne wiązania dla języka FORTRAN 95
e575e93b
JR
296Group: Development/Libraries
297Requires: %{name}-devel = %{version}-%{release}
298Requires: %{name}-f95 = %{version}-%{release}
299Requires: gcc-fortran
300
301%description f95-devel
302PLplot library - FORTRAN 95 binding development files.
303
304%description f95-devel -l pl.UTF-8
305Biblioteka PLplot - pliki programistyczne wiązania dla języka FORTRAN
30695.
307
fbce7ed6
JB
308%package java
309Summary: PLplot library - Java binding
fbecc96b 310Summary(pl.UTF-8): Biblioteka PLplot - wiązanie dla Javy
fbce7ed6
JB
311Group: Libraries
312Requires: %{name} = %{version}-%{release}
313
314%description java
315PLplot library - Java binding.
316
4205e3d0
JR
317%description java -l pl.UTF-8
318Biblioteka PLplot - wiązanie dla Javy.
fbce7ed6
JB
319
320%package java-devel
321Summary: PLplot library - Java binding development files
fbecc96b 322Summary(pl.UTF-8): Biblioteka PLplot - pliki programistyczne wiązania dla Javy
fbce7ed6
JB
323Group: Development/Libraries
324Requires: %{name}-devel = %{version}-%{release}
325Requires: %{name}-java = %{version}-%{release}
f43eed59 326Obsoletes: plplot-java-static
fbce7ed6
JB
327
328%description java-devel
329PLplot library - Java binding development files.
330
aff6d369 331%description java-devel -l pl.UTF-8
4205e3d0 332Biblioteka PLplot - pliki programistyczne wiązania dla Javy.
fbce7ed6 333
fbce7ed6
JB
334%package tcl
335Summary: PLplot library - Tcl/Tk binding
fbecc96b 336Summary(pl.UTF-8): Biblioteka PLplot - wiązanie dla Tcl/Tk
fbce7ed6
JB
337Group: Libraries
338Requires: %{name} = %{version}-%{release}
339
340%description tcl
341PLplot library - Tcl/Tk binding.
342
4205e3d0
JR
343%description tcl -l pl.UTF-8
344Biblioteka PLplot - wiązanie dla Tcl/Tk.
fbce7ed6
JB
345
346%package tcl-devel
347Summary: PLplot library - Tcl/Tk binding development files
fbecc96b 348Summary(pl.UTF-8): Biblioteka PLplot - pliki programistyczne wiązania dla Tcl/Tk
fbce7ed6
JB
349Group: Development/Libraries
350Requires: %{name}-devel = %{version}-%{release}
351Requires: %{name}-tcl = %{version}-%{release}
a7b00b76
JR
352%{?with_itcl:Requires: itcl-devel}
353Obsoletes: plplot-tcl-static
fbce7ed6
JB
354
355%description tcl-devel
356PLplot library - Tcl/Tk binding development files.
357
4205e3d0
JR
358%description tcl-devel -l pl.UTF-8
359Biblioteka PLplot - pliki programistyczne wiązania dla Tcl/Tk.
fbce7ed6 360
e575e93b
JR
361%package qt4
362Summary: PLplot library - Qt4 binding
363Summary(pl.UTF-8): Biblioteka PLplot - wiązanie dla Qt4
364Group: Libraries
365Requires: %{name} = %{version}-%{release}
366
367%description qt4
368PLplot library - Qt4 binding.
369
aff6d369 370%description qt4 -l pl.UTF-8
e575e93b
JR
371Biblioteka PLplot - wiązanie dla Qt4.
372
373%package qt4-devel
374Summary: PLplot library - Qt4 binding development files
375Summary(pl.UTF-8): Biblioteka PLplot - pliki programistyczne wiązania dla Qt4
376Group: Development/Libraries
377Requires: %{name}-qt4 = %{version}-%{release}
378Requires: %{name}-devel = %{version}-%{release}
379Requires: QtGui-devel
380Requires: QtSvg-devel
381Requires: QtXml-devel
382
383%description qt4-devel
384PLplot library - Qt4 binding development files.
385
386%description qt4-devel -l pl.UTF-8
387Biblioteka PLplot - pliki programistyczne wiązania dla Qt4.
388
24f3ccb3
JB
389%package wxwidgets
390Summary: PLplot library - wxWidgets binding
391Summary(pl.UTF-8): Biblioteka PLplot - wiązanie dla wxWidgets
392Group: Libraries
393Requires: %{name} = %{version}-%{release}
394Requires: wxGTK2-unicode >= 2.6.0
395
396%description wxwidgets
397PLplot library - wxwidgets binding.
398
399%description wxwidgets -l pl.UTF-8
400Biblioteka PLplot - wiązanie dla wxWidgets.
401
402%package wxwidgets-devel
403Summary: PLplot library - wxWidgets binding development files
404Summary(pl.UTF-8): Biblioteka PLplot - pliki programistyczne wiązania dla wxWidgets
405Group: Development/Libraries
406Requires: %{name}-wxwidgets = %{version}-%{release}
407Requires: %{name}-devel = %{version}-%{release}
408Requires: wxGTK2-unicode-devel >= 2.6.0
409
410%description wxwidgets-devel
411PLplot library - wxWidgets binding development files.
412
413%description wxwidgets-devel -l pl.UTF-8
414Biblioteka PLplot - pliki programistyczne wiązania dla wxWidgets.
415
fbce7ed6
JB
416%package octave
417Summary: PLplot library - Octave binding
fbecc96b 418Summary(pl.UTF-8): Biblioteka PLplot - wiązanie dla języka Octave
fbce7ed6
JB
419Group: Libraries
420Requires: %{name} = %{version}-%{release}
421
422%description octave
423PLplot library - Octave binding.
424
4205e3d0
JR
425%description octave -l pl.UTF-8
426Biblioteka PLplot - wiązanie dla języka Octave.
fbce7ed6
JB
427
428%package octave-examples
429Summary: PLplot library - examples for Octave binding
fbecc96b 430Summary(pl.UTF-8): Biblioteka PLplot - przykłady do wiązania dla języka Octave
fbce7ed6
JB
431Group: Development/Libraries
432Requires: %{name}-devel = %{version}-%{release}
433Requires: %{name}-octave = %{version}-%{release}
434
435%description octave-examples
436PLplot library - examples for Octave binding.
437
4205e3d0
JR
438%description octave-examples -l pl.UTF-8
439Biblioteka PLplot - przykłady do wiązania dla języka Octave.
fbce7ed6
JB
440
441%package -n python-plplot
442Summary: PLplot library - Python binding
fbecc96b 443Summary(pl.UTF-8): Biblioteka PLplot - wiązanie dla Pythona
fbce7ed6
JB
444Group: Libraries/Python
445Requires: %{name} = %{version}-%{release}
24f3ccb3 446Requires: %{name}-tcl = %{version}-%{release}
5a3910de 447%pyrequires_eq python-libs
f448fc80 448Requires: python-numpy
fbce7ed6
JB
449
450%description -n python-plplot
451PLplot library - Python binding.
452
4205e3d0
JR
453%description -n python-plplot -l pl.UTF-8
454Biblioteka PLplot - wiązanie dla Pythona.
fbce7ed6 455
e575e93b 456%package -n python-plplot-qt4
cce322e2
JB
457Summary: PLplot library - PyQt4 binding
458Summary(pl.UTF-8): Biblioteka PLplot - wiązanie dla PyQt4
e575e93b
JR
459Group: Libraries/Python
460Requires: python-plplot = %{version}-%{release}
461%pyrequires_eq python-libs
462Requires: python-numpy
463
464%description -n python-plplot-qt4
cce322e2 465PLplot library - Python/PyQt4 binding.
e575e93b
JR
466
467%description -n python-plplot-qt4 -l pl.UTF-8
cce322e2 468Biblioteka PLplot - wiązanie dla Pythona/PyQt4.
e575e93b 469
fbce7ed6
JB
470%package -n python-plplot-examples
471Summary: PLplot library - Python binding examples
fbecc96b 472Summary(pl.UTF-8): Biblioteka PLplot - przykłady do wiązania dla Pythona
fbce7ed6
JB
473Group: Libraries/Python
474Requires: %{name}-devel = %{version}-%{release}
475Requires: python-plplot = %{version}-%{release}
476
477%description -n python-plplot-examples
478PLplot library - Python binding examples.
479
4205e3d0
JR
480%description -n python-plplot-examples -l pl.UTF-8
481Biblioteka PLplot - przykłady do wiązania dla Pythona.
fbce7ed6
JB
482
483%prep
484%setup -q
e575e93b 485%patch0 -p1
3013bac9 486%patch1 -p1
cce322e2
JB
487%patch2 -p1
488%patch3 -p1
24f3ccb3 489%patch4 -p1
04165737 490
fbce7ed6 491%build
a7b00b76
JR
492mkdir build
493cd build
cce322e2 494%cmake .. \
a7b00b76
JR
495%if %{with java}
496 -DJAVA_HOME=/usr/%{_lib}/java \
a7b00b76
JR
497%else
498 -DENABLE_java=OFF \
499%endif
cce322e2
JB
500 -DF77_INCLUDE_DIR=%{_includedir}/plplot \
501 -DF95_MOD_DIR=%{_includedir}/plplot \
a7b00b76 502 -DOCTAVE_INCLUDE_PATH=%{_includedir}/octave \
e575e93b
JR
503 -DOCTAVE_OCT_DIR=%{octave_oct_sitedir} \
504 -DOCTAVE_M_DIR=%{octave_m_sitedir} \
a7b00b76
JR
505 -DUSE_RPATH=OFF \
506 -DENABLE_tk=ON \
507 -DENABLE_ocaml=OFF \
508 -DENABLE_lua=OFF \
e575e93b 509 -DENABLE_ada=OFF \
a7b00b76 510 -DENABLE_itcl=%{!?with_itcl:OFF}%{?with_itcl:ON} \
e575e93b 511 -DENABLE_itk=%{!?with_itcl:OFF}%{?with_itcl:ON} \
cce322e2 512 -DHAVE_PTHREAD=ON \
a7b00b76
JR
513 -DPLD_ntk=ON \
514 -DPLD_plmeta=ON \
515 -DPLD_cgm=ON \
516 -DPLD_pstex=ON \
24f3ccb3
JB
517 -DPL_FREETYPE_FONT_PATH=/usr/share/fonts/TTF \
518 -DwxWidgets_CONFIG_EXECUTABLE=/usr/bin/wx-gtk2-unicode-config \
a7b00b76 519 -DwxWidgets_USE_UNICODE=ON \
cce322e2
JB
520 %{!?with_perl_pdl:-DENABLE_pdl=OFF}
521
522# -DCMAKE_Java_RUNTIME=$(JAVA_HOME)/bin/java \
523# -DCMAKE_Java_COMPILER=$(JAVA_HOME)/bin/javac \
524# -DCMAKE_Java_ARCHIVE=$(JAVA_HOME)/bin/jar
a7b00b76
JR
525
526%{__make}
fbce7ed6
JB
527
528%install
529rm -rf $RPM_BUILD_ROOT
161f3dd0 530install -d $RPM_BUILD_ROOT%{_examplesdir}
fbce7ed6 531
cce322e2 532%{__make} -C build install \
a7b00b76 533 DESTDIR=$RPM_BUILD_ROOT
fbce7ed6 534
e575e93b 535mv $RPM_BUILD_ROOT%{_datadir}/plplot%{version}/examples \
fbce7ed6 536 $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
161f3dd0 537
b1710f88 538rm -rf installed-docs
e575e93b 539mv $RPM_BUILD_ROOT%{_docdir}/plplot installed-docs
161f3dd0 540
fbce7ed6 541%if %{with java}
f43eed59 542# java must stay in libdir - JNI wrapper included
e575e93b 543mv $RPM_BUILD_ROOT%{_libdir}/java/plplot/examples \
fbce7ed6 544 $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}/java
e575e93b 545mv $RPM_BUILD_ROOT%{_libdir}/java/plplot/core/README.javaAPI installed-docs
fbce7ed6 546%endif
fbce7ed6
JB
547
548%clean
549rm -rf $RPM_BUILD_ROOT
550
551%post -p /sbin/ldconfig
552%postun -p /sbin/ldconfig
553
554%post c++ -p /sbin/ldconfig
555%postun c++ -p /sbin/ldconfig
556
557%post f77 -p /sbin/ldconfig
558%postun f77 -p /sbin/ldconfig
559
e575e93b
JR
560%post f95 -p /sbin/ldconfig
561%postun f95 -p /sbin/ldconfig
562
fbce7ed6
JB
563%post tcl -p /sbin/ldconfig
564%postun tcl -p /sbin/ldconfig
565
e575e93b
JR
566%post qt4 -p /sbin/ldconfig
567%postun qt4 -p /sbin/ldconfig
568
24f3ccb3
JB
569%post wxwidgets -p /sbin/ldconfig
570%postun wxwidgets -p /sbin/ldconfig
571
fbce7ed6
JB
572%files
573%defattr(644,root,root,755)
cce322e2
JB
574%doc ABOUT AUTHORS ChangeLog.release Copyright FAQ NEWS PROBLEMS README README.release SERVICE ToDo
575%doc installed-docs/README.{1st.csa,1st.nn,csa,nn,drivers}
fbce7ed6
JB
576%attr(755,root,root) %{_bindir}/plm2gif
577%attr(755,root,root) %{_bindir}/plpr
578%attr(755,root,root) %{_bindir}/plrender
579%attr(755,root,root) %{_bindir}/pltek
580%attr(755,root,root) %{_bindir}/pstex2eps
f43eed59 581%attr(755,root,root) %{_libdir}/libcsirocsa.so.*.*.*
7fa8ed02 582%attr(755,root,root) %ghost %{_libdir}/libcsirocsa.so.0
f43eed59 583%attr(755,root,root) %{_libdir}/libcsironn.so.*.*.*
7fa8ed02 584%attr(755,root,root) %ghost %{_libdir}/libcsironn.so.0
e575e93b
JR
585%attr(755,root,root) %{_libdir}/libnistcd.so.*.*.*
586%attr(755,root,root) %ghost %{_libdir}/libnistcd.so.0
587%attr(755,root,root) %{_libdir}/libqsastime.so.*.*.*
588%attr(755,root,root) %ghost %{_libdir}/libqsastime.so.0
fbce7ed6 589%attr(755,root,root) %{_libdir}/libplplotd.so.*.*.*
cce322e2 590%attr(755,root,root) %ghost %{_libdir}/libplplotd.so.11
fbce7ed6
JB
591%{_mandir}/man1/plm2gif.1*
592%{_mandir}/man1/plpr.1*
593%{_mandir}/man1/plrender.1*
594%{_mandir}/man1/pltek.1*
595%{_mandir}/man1/pstex2eps.1*
596%dir %{_libdir}/plplot%{version}
fbce7ed6 597%dir %{_libdir}/plplot%{version}/driversd
fbce7ed6 598%attr(755,root,root) %{_libdir}/plplot%{version}/driversd/cgm.so
cce322e2 599%{_libdir}/plplot%{version}/driversd/cgm.driver_info
fbce7ed6 600%attr(755,root,root) %{_libdir}/plplot%{version}/driversd/mem.so
cce322e2 601%{_libdir}/plplot%{version}/driversd/mem.driver_info
fbce7ed6 602%attr(755,root,root) %{_libdir}/plplot%{version}/driversd/null.so
cce322e2 603%{_libdir}/plplot%{version}/driversd/null.driver_info
fbce7ed6 604%attr(755,root,root) %{_libdir}/plplot%{version}/driversd/plmeta.so
cce322e2 605%{_libdir}/plplot%{version}/driversd/plmeta.driver_info
fbce7ed6 606%attr(755,root,root) %{_libdir}/plplot%{version}/driversd/ps.so
cce322e2 607%{_libdir}/plplot%{version}/driversd/ps.driver_info
a7b00b76 608%attr(755,root,root) %{_libdir}/plplot%{version}/driversd/pstex.so
cce322e2 609%{_libdir}/plplot%{version}/driversd/pstex.driver_info
e575e93b 610%attr(755,root,root) %{_libdir}/plplot%{version}/driversd/svg.so
cce322e2 611%{_libdir}/plplot%{version}/driversd/svg.driver_info
fbce7ed6 612%attr(755,root,root) %{_libdir}/plplot%{version}/driversd/xfig.so
cce322e2 613%{_libdir}/plplot%{version}/driversd/xfig.driver_info
e575e93b
JR
614%dir %{_datadir}/plplot%{version}
615%{_datadir}/plplot%{version}/*.map
616%{_datadir}/plplot%{version}/*.pal
617%{_datadir}/plplot%{version}/*.fnt
618
619%files driver-cairo
620%defattr(644,root,root,755)
621%attr(755,root,root) %{_libdir}/plplot%{version}/driversd/cairo.so
cce322e2 622%{_libdir}/plplot%{version}/driversd/cairo.driver_info
fbce7ed6 623
fbce7ed6
JB
624%files driver-ntk
625%defattr(644,root,root,755)
626%attr(755,root,root) %{_libdir}/plplot%{version}/driversd/ntk.so
cce322e2 627%{_libdir}/plplot%{version}/driversd/ntk.driver_info
fbce7ed6 628
24f3ccb3
JB
629%files driver-psttf
630%defattr(644,root,root,755)
631%attr(755,root,root) %{_libdir}/plplot%{version}/driversd/psttf.so
632%{_libdir}/plplot%{version}/driversd/psttf.driver_info
633
fbce7ed6
JB
634%files driver-tk
635%defattr(644,root,root,755)
636%attr(755,root,root) %{_libdir}/plplot%{version}/driversd/tk.so
cce322e2 637%{_libdir}/plplot%{version}/driversd/tk.driver_info
fbce7ed6 638%attr(755,root,root) %{_libdir}/plplot%{version}/driversd/tkwin.so
cce322e2 639%{_libdir}/plplot%{version}/driversd/tkwin.driver_info
fbce7ed6 640
e575e93b
JR
641%files driver-qt4
642%defattr(644,root,root,755)
643%attr(755,root,root) %{_libdir}/plplot%{version}/driversd/qt.so
cce322e2 644%{_libdir}/plplot%{version}/driversd/qt.driver_info
e575e93b 645
24f3ccb3
JB
646%files driver-wxwidgets
647%defattr(644,root,root,755)
648%attr(755,root,root) %{_libdir}/plplot%{version}/driversd/wxwidgets.so
649%{_libdir}/plplot%{version}/driversd/wxwidgets.driver_info
650
fbce7ed6
JB
651%files driver-xwin
652%defattr(644,root,root,755)
653%attr(755,root,root) %{_libdir}/plplot%{version}/driversd/xwin.so
cce322e2 654%{_libdir}/plplot%{version}/driversd/xwin.driver_info
fbce7ed6
JB
655
656%files devel
657%defattr(644,root,root,755)
f43eed59
JB
658%attr(755,root,root) %{_libdir}/libcsirocsa.so
659%attr(755,root,root) %{_libdir}/libcsironn.so
e575e93b 660%attr(755,root,root) %{_libdir}/libnistcd.so
fbce7ed6 661%attr(755,root,root) %{_libdir}/libplplotd.so
e575e93b 662%attr(755,root,root) %{_libdir}/libqsastime.so
cce322e2
JB
663%dir %{_includedir}/plplot
664%{_includedir}/plplot/cd.h
665%{_includedir}/plplot/defines.h
666%{_includedir}/plplot/disptab.h
667%{_includedir}/plplot/drivers.h
668%{_includedir}/plplot/pdf.h
669%{_includedir}/plplot/plConfig.h
670%{_includedir}/plplot/plDevs.h
671%{_includedir}/plplot/pldebug.h
672%{_includedir}/plplot/pldll.h
673%{_includedir}/plplot/plevent.h
674%{_includedir}/plplot/plplot.h
675%{_includedir}/plplot/plplotP.h
676%{_includedir}/plplot/plstrm.h
677%{_includedir}/plplot/qsastime.h
678%{_includedir}/plplot/qsastimedll.h
679# xwin driver (uses X11 headers)
680%{_includedir}/plplot/plxwd.h
681# -gnome
682%{_includedir}/plplot/gcw.h
683%{_includedir}/plplot/plplotcanvas.h
f43eed59 684%{_pkgconfigdir}/plplotd.pc
fbce7ed6
JB
685%dir %{_examplesdir}/%{name}-%{version}
686%attr(755,root,root) %{_examplesdir}/%{name}-%{version}/plplot-test.sh
687%attr(755,root,root) %{_examplesdir}/%{name}-%{version}/test_c.sh
e575e93b
JR
688%attr(755,root,root) %{_examplesdir}/%{name}-%{version}/plplot-test-interactive.sh
689%attr(755,root,root) %{_examplesdir}/%{name}-%{version}/test_c_interactive.sh
690%attr(755,root,root) %{_examplesdir}/%{name}-%{version}/test_diff.sh
fbce7ed6 691%{_examplesdir}/%{name}-%{version}/c
e575e93b
JR
692%{_examplesdir}/%{name}-%{version}/cmake
693%{_examplesdir}/%{name}-%{version}/CMakeLists.txt
694%{_examplesdir}/%{name}-%{version}/lena.*
695%{_examplesdir}/%{name}-%{version}/Makefile
161f3dd0 696%if %{with perl_pdl}
f43eed59
JB
697# perl examples use PDL::Graphics::PLplot module found in perl-PDL
698%{_examplesdir}/%{name}-%{version}/perl
161f3dd0 699%endif
fbce7ed6 700
fbce7ed6
JB
701%files c++
702%defattr(644,root,root,755)
703%attr(755,root,root) %{_libdir}/libplplotcxxd.so.*.*.*
cce322e2 704%attr(755,root,root) %ghost %{_libdir}/libplplotcxxd.so.10
fbce7ed6
JB
705
706%files c++-devel
707%defattr(644,root,root,755)
708%attr(755,root,root) %{_libdir}/libplplotcxxd.so
cce322e2 709%{_includedir}/plplot/plstream.h
f43eed59 710%{_pkgconfigdir}/plplotd-c++.pc
fbce7ed6
JB
711%attr(755,root,root) %{_examplesdir}/%{name}-%{version}/test_cxx.sh
712%{_examplesdir}/%{name}-%{version}/c++
713
fbce7ed6
JB
714%files f77
715%defattr(644,root,root,755)
792520d0 716%attr(755,root,root) %{_libdir}/libplplotf77cd.so.*.*.*
7fa8ed02 717%attr(755,root,root) %ghost %{_libdir}/libplplotf77cd.so.9
fbce7ed6 718%attr(755,root,root) %{_libdir}/libplplotf77d.so.*.*.*
7fa8ed02 719%attr(755,root,root) %ghost %{_libdir}/libplplotf77d.so.9
fbce7ed6
JB
720
721%files f77-devel
722%defattr(644,root,root,755)
792520d0 723%attr(755,root,root) %{_libdir}/libplplotf77cd.so
fbce7ed6 724%attr(755,root,root) %{_libdir}/libplplotf77d.so
cce322e2 725%{_includedir}/plplot/plplot_parameters.h
f43eed59 726%{_pkgconfigdir}/plplotd-f77.pc
fbce7ed6
JB
727%attr(755,root,root) %{_examplesdir}/%{name}-%{version}/test_f77.sh
728%{_examplesdir}/%{name}-%{version}/f77
729
e575e93b
JR
730%files f95
731%defattr(644,root,root,755)
cce322e2 732%doc bindings/f95/readme_f95.txt
e575e93b
JR
733%attr(755,root,root) %{_libdir}/libplplotf95cd.so.*.*.*
734%attr(755,root,root) %ghost %{_libdir}/libplplotf95cd.so.9
735%attr(755,root,root) %{_libdir}/libplplotf95d.so.*.*.*
736%attr(755,root,root) %ghost %{_libdir}/libplplotf95d.so.9
737
738%files f95-devel
739%defattr(644,root,root,755)
740%attr(755,root,root) %{_libdir}/libplplotf95cd.so
741%attr(755,root,root) %{_libdir}/libplplotf95d.so
cce322e2
JB
742%{_includedir}/plplot/plplot.mod
743%{_includedir}/plplot/plplot_flt.mod
744%{_includedir}/plplot/plplotp.mod
e575e93b
JR
745%{_pkgconfigdir}/plplotd-f95.pc
746%attr(755,root,root) %{_examplesdir}/%{name}-%{version}/test_f95.sh
747%{_examplesdir}/%{name}-%{version}/f95
748
fbce7ed6
JB
749%if %{with java}
750%files java
751%defattr(644,root,root,755)
f43eed59
JB
752%dir %{_libdir}/java/plplot
753%dir %{_libdir}/java/plplot/core
754%attr(755,root,root) %{_libdir}/java/plplot/core/*.so
755%{_libdir}/java/plplot/core/*.class
756%{_libdir}/java/plplot/core/*.java
fbce7ed6
JB
757
758%files java-devel
759%defattr(644,root,root,755)
fbce7ed6
JB
760%attr(755,root,root) %{_examplesdir}/%{name}-%{version}/test_java.sh
761%{_examplesdir}/%{name}-%{version}/java
fbce7ed6
JB
762%endif
763
764%files tcl
765%defattr(644,root,root,755)
766%attr(755,root,root) %{_bindir}/pltcl
767%attr(755,root,root) %{_bindir}/plserver
768%attr(755,root,root) %{_libdir}/libplplottcltkd.so.*.*.*
a7b00b76 769%attr(755,root,root) %ghost %{_libdir}/libplplottcltkd.so.9
fbce7ed6 770%attr(755,root,root) %{_libdir}/libtclmatrixd.so.*.*.*
a7b00b76 771%attr(755,root,root) %ghost %{_libdir}/libtclmatrixd.so.9
e575e93b
JR
772%{_datadir}/plplot%{version}/*.tcl
773%{_datadir}/plplot%{version}/tcl
fbce7ed6
JB
774%{_mandir}/man1/pltcl.1*
775%{_mandir}/man1/plserver.1*
776
777%files tcl-devel
778%defattr(644,root,root,755)
779%attr(755,root,root) %{_libdir}/libplplottcltkd.so
780%attr(755,root,root) %{_libdir}/libtclmatrixd.so
fbce7ed6
JB
781%{_includedir}/plplot/pltcl.h
782%{_includedir}/plplot/pltk.h
783%{_includedir}/plplot/tclMatrix.h
f43eed59 784%{_pkgconfigdir}/plplotd-tcl.pc
fbce7ed6
JB
785%attr(755,root,root) %{_examplesdir}/%{name}-%{version}/test_tcl.sh
786%{_examplesdir}/%{name}-%{version}/tcl
787%{_examplesdir}/%{name}-%{version}/tk
788
e575e93b
JR
789%files qt4
790%defattr(644,root,root,755)
791%attr(755,root,root) %ghost %{_libdir}/libplplotqtd.so.0
792%attr(755,root,root) %{_libdir}/libplplotqtd.so.0.0.1
793
794%files qt4-devel
795%defattr(644,root,root,755)
796%attr(755,root,root) %{_libdir}/libplplotqtd.so
cce322e2 797%{_includedir}/plplot/qt.h
e575e93b
JR
798%{_pkgconfigdir}/plplotd-qt.pc
799
24f3ccb3
JB
800%files wxwidgets
801%defattr(644,root,root,755)
802%attr(755,root,root) %{_libdir}/libplplotwxwidgetsd.so.*.*.*
803%attr(755,root,root) %ghost %{_libdir}/libplplotwxwidgetsd.so.0
804
805%files wxwidgets-devel
806%defattr(644,root,root,755)
807%attr(755,root,root) %{_libdir}/libplplotwxwidgetsd.so
808%{_includedir}/plplot/wxPLplot*.h
809%{_pkgconfigdir}/plplotd-wxwidgets.pc
810
fbce7ed6
JB
811%files octave
812%defattr(644,root,root,755)
cce322e2 813%doc bindings/octave/{BUGS,FGA,README,ToDo,USAGE}
30d0607a
JB
814%attr(755,root,root) %{octave_oct_sitedir}/plplot_octave.oct
815%{octave_m_sitedir}/PLplot
fbce7ed6 816%{_datadir}/plplot_octave
e575e93b 817%attr(755,root,root) %{_examplesdir}/%{name}-%{version}/test_octave_interactive.sh
fbce7ed6
JB
818
819%files octave-examples
820%defattr(644,root,root,755)
821%attr(755,root,root) %{_examplesdir}/%{name}-%{version}/test_octave.sh
822%{_examplesdir}/%{name}-%{version}/octave
823
824%files -n python-plplot
825%defattr(644,root,root,755)
826%attr(755,root,root) %{py_sitedir}/_plplotcmodule.so
827%attr(755,root,root) %{py_sitedir}/plplot_widgetmodule.so
e575e93b 828%{py_sitedir}/Plframe.py
fbce7ed6 829%{py_sitedir}/plplotc.py
e575e93b
JR
830%{py_sitedir}/plplot.py
831%{py_sitedir}/TclSup.py
832
833%files -n python-plplot-qt4
834%defattr(644,root,root,755)
835%attr(755,root,root) %{py_sitedir}/plplot_pyqt4.so
fbce7ed6
JB
836
837%files -n python-plplot-examples
838%defattr(644,root,root,755)
839%attr(755,root,root) %{_examplesdir}/%{name}-%{version}/test_python.sh
840%{_examplesdir}/%{name}-%{version}/python
This page took 0.17295 seconds and 4 git commands to generate.