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