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