]>
Commit | Line | Data |
---|---|---|
e33b075c JB |
1 | # TODO: |
2 | # - handle VTK_USE_MPEG2_ENCODER (see CMakeLists.txt) | |
022c8c20 | 3 | # - handle MPI and VTK_USE_PARALLEL_BGL (Parallel Boost Graph Library, BR: boost >= 1.40) |
e33b075c | 4 | # - more system libraries? (check for VTK_THIRD_PARTY_SUBDIR in Utilities/CMakeLists.txt) |
82b69c28 JB |
5 | # - CUDA for Accelerators/Piston (on bcond) |
6 | # - NVCtrlLib for Rendering/OpenGL (on bcond) | |
921811aa | 7 | # - VTK_USE_SYSTEM_XDMF2=ON ? (but our xdmf-devel seems not compatible) |
98c8aeec | 8 | # - python bcond? |
b4f8e64d | 9 | # |
e3358d84 | 10 | # Conditional build |
bdd17b88 | 11 | %bcond_without java # Java wrappers |
bdd17b88 | 12 | %bcond_without ffmpeg # FFMPEG .avi saving support |
bdd17b88 | 13 | %bcond_with OSMesa # build with OSMesa (https://bugzilla.redhat.com/show_bug.cgi?id=744434) |
20fc82eb | 14 | %bcond_with system_proj # use system PROJ.4 (needs 4.3 with exposed internals, not ready for 4.4+) |
24f1bf2f | 15 | |
3b8bf081 | 16 | Summary: Toolkit for 3D computer graphics, image processing, and visualization |
06b6c677 | 17 | Summary(pl.UTF-8): Zestaw narzędzi do trójwymiarowej grafiki, przetwarzania obrazu i wizualizacji |
3b8bf081 | 18 | Name: vtk |
c296ef55 | 19 | Version: 6.3.0 |
5810ef45 | 20 | Release: 7 |
3b8bf081 | 21 | License: BSD |
0b356dc9 | 22 | Group: Libraries |
c296ef55 JR |
23 | Source0: http://www.vtk.org/files/release/6.3/VTK-%{version}.tar.gz |
24 | # Source0-md5: 0231ca4840408e9dd60af48b314c5b6d | |
25 | Source1: http://www.vtk.org/files/release/6.3/VTKData-%{version}.tar.gz | |
26 | # Source1-md5: b164200226805aeb741703a8168afdda | |
27 | Patch0: %{name}-chemistry.patch | |
8aed1503 | 28 | Patch1: gdal2.patch |
3639b6bc | 29 | Patch2: ffmpeg3.patch |
cd9b4dcf | 30 | Patch3: cmake.patch |
280d7190 | 31 | URL: http://www.vtk.org/ |
bb64b81a | 32 | %{?with_OSMesa:BuildRequires: Mesa-libOSMesa-devel} |
24d31977 | 33 | BuildRequires: OpenGL-GLX-devel |
bb64b81a | 34 | BuildRequires: OpenGL-devel |
e33b075c | 35 | BuildRequires: QtCore-devel >= 4.5.0 |
24f1bf2f | 36 | BuildRequires: QtDesigner-devel >= 4.5.0 |
e33b075c JB |
37 | BuildRequires: QtGui-devel >= 4.5.0 |
38 | BuildRequires: QtNetwork-devel >= 4.5.0 | |
c3b50c93 | 39 | BuildRequires: QtOpenGL-devel >= 4.5.0 |
e33b075c JB |
40 | BuildRequires: QtSql-devel >= 4.5.0 |
41 | BuildRequires: QtWebKit-devel >= 4.5.0 | |
ed317954 | 42 | BuildRequires: QtXmlPatterns-devel >= 4.5.0 |
ea1804c3 | 43 | BuildRequires: R |
e33b075c | 44 | BuildRequires: boost-devel >= 1.39 |
1d4198f2 | 45 | BuildRequires: cmake >= 2.8.8 |
c8393523 | 46 | BuildRequires: doxygen |
bb64b81a | 47 | BuildRequires: expat-devel |
e33b075c | 48 | %{?with_ffmpeg:BuildRequires: ffmpeg-devel} |
24d31977 | 49 | BuildRequires: fontconfig-devel |
e33b075c | 50 | BuildRequires: freetype-devel >= 2 |
58c51e05 | 51 | BuildRequires: gdal-devel |
ed317954 | 52 | BuildRequires: gl2ps-devel >= 1.3.8 |
bb64b81a JR |
53 | BuildRequires: gnuplot |
54 | BuildRequires: graphviz | |
55 | BuildRequires: hdf5-devel | |
ff176195 | 56 | %if %{with java} |
e33b075c | 57 | BuildRequires: jdk >= 1.5 |
24f1bf2f | 58 | BuildRequires: jpackage-utils |
ff176195 | 59 | %endif |
1d4198f2 | 60 | BuildRequires: jsoncpp-devel |
bb64b81a | 61 | BuildRequires: libjpeg-devel |
e33b075c | 62 | BuildRequires: libogg-devel |
bb64b81a | 63 | BuildRequires: libpng-devel |
e33b075c | 64 | BuildRequires: libstdc++-devel |
bb64b81a JR |
65 | BuildRequires: libtheora-devel |
66 | BuildRequires: libtiff-devel | |
e33b075c | 67 | BuildRequires: libxml2-devel >= 2 |
82b69c28 | 68 | BuildRequires: motif-devel |
bb64b81a | 69 | BuildRequires: mysql-devel |
df99c936 | 70 | BuildRequires: netcdf-cxx-devel >= 4 |
58c51e05 JB |
71 | # some code using it exists (Domains/Chemistry), but is not included in cmakefiles |
72 | #BuildRequires: openqube-devel | |
73 | BuildRequires: perl-base | |
bb64b81a | 74 | BuildRequires: postgresql-devel |
bdd17b88 | 75 | %{?with_system_proj:BuildRequires: proj-devel >= 4.3, proj-devel < 4.4} |
58c51e05 | 76 | BuildRequires: python-devel >= 2 |
2822e3c0 | 77 | BuildRequires: python-sip-devel |
e33b075c | 78 | BuildRequires: qt4-build >= 4.5.0 |
58c51e05 | 79 | BuildRequires: qt4-qmake >= 4.5.0 |
e33b075c | 80 | BuildRequires: rpmbuild(macros) >= 1.605 |
ed317954 | 81 | BuildRequires: sip |
bf32bb86 | 82 | BuildRequires: sip-PyQt4 |
bb64b81a JR |
83 | BuildRequires: tcl-devel |
84 | BuildRequires: tk-devel | |
58c51e05 | 85 | BuildRequires: unixODBC-devel |
bb64b81a JR |
86 | BuildRequires: wget |
87 | BuildRequires: xorg-lib-libICE-devel | |
24d31977 | 88 | BuildRequires: xorg-lib-libSM-devel |
bb64b81a | 89 | BuildRequires: xorg-lib-libX11-devel |
24d31977 | 90 | BuildRequires: xorg-lib-libXScrnSaver-devel |
bb64b81a | 91 | BuildRequires: xorg-lib-libXext-devel |
24d31977 | 92 | BuildRequires: xorg-lib-libXft-devel |
bb64b81a JR |
93 | BuildRequires: xorg-lib-libXt-devel |
94 | BuildRequires: zlib-devel | |
344d681b | 95 | BuildConflicts: libXNVCtrl-devel |
c3b50c93 | 96 | Requires: gl2ps >= 1.3.8 |
0b356dc9 | 97 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
52d6c353 | 98 | |
bb64b81a JR |
99 | %define skip_post_check_so lib.*Python.*\.so.* |
100 | ||
52d6c353 | 101 | %description |
3b8bf081 | 102 | The Visualization ToolKit (VTK) is an object oriented software system |
103 | for 3D computer graphics, image processing, and visualization. VTK | |
104 | includes a textbook, a C++ class library, and several interpreted | |
105 | interface layers including Tcl/Tk, Java, and Python. VTK supports a | |
106 | wide variety of visualization algorithms including scalar, vector, | |
107 | tensor, texture, and volumetric methods. It also supports advanced | |
108 | modeling techniques like implicit modeling, polygon reduction, mesh | |
0b356dc9 | 109 | smoothing, cutting, contouring, and Delaunay triangulation. Moreover, |
3b8bf081 | 110 | dozens of imaging algorithms have been integrated into the system. |
111 | This allows mixing 2D imaging / 3D graphics algorithms and data. | |
112 | ||
eb1fe26e | 113 | %description -l pl.UTF-8 |
c8393523 | 114 | Visualization TookKit (VTK) to obiektowo zorientowany system |
eb1fe26e JR |
115 | oprogramowania do trójwymiarowej grafiki komputerowej, przetwarzania |
116 | obrazu i wizualizacji. VTK zawiera książkę, bibliotekę klas C++ oraz | |
117 | kilka interpretowanych warstw interfejsów, w tym dla Tcl/Tk, Javy i | |
118 | Pythona. VTK obsługuje szeroki zakres algorytmów wizualizacji, w tym | |
c8393523 | 119 | metody skalarne, wektorowe, tensorowe, teksturowe i wolumetryczne. |
eb1fe26e JR |
120 | Obsługuje także zaawansowane techniki modelowania, takie jak |
121 | modelowanie implicite, redukcja wielokątów, wygładzanie siatki, | |
122 | przycinanie, konturowanie i triangulacja Delaunaya. Co więcej, wiele | |
123 | algorytmów obrazowania zostało zintegrowanych z systemem. Pozwala to | |
124 | na mieszanie algorytmów obrazowania 2D i grafiki 3D. | |
c8393523 | 125 | |
52d6c353 | 126 | %package devel |
3b8bf081 | 127 | Summary: VTK header files for building C++ code |
06b6c677 | 128 | Summary(pl.UTF-8): Pliki nagłówkowe VTK dla C++ |
0b356dc9 | 129 | Group: Development |
c8393523 | 130 | Requires: %{name} = %{version}-%{release} |
e33b075c | 131 | Requires: libstdc++-devel |
52d6c353 | 132 | |
0b356dc9 AG |
133 | %description devel |
134 | This provides the VTK header files required to compile C++ programs | |
135 | that use VTK to do 3D visualisation. | |
52d6c353 | 136 | |
eb1fe26e JR |
137 | %description devel -l pl.UTF-8 |
138 | Ten pakiet dostarcza pliki nagłówkowe VTK do kompilowania programów | |
139 | C++ używających VTK do wizualizacji 3D. | |
c8393523 | 140 | |
e33b075c | 141 | %package qt |
c3b50c93 JB |
142 | Summary: Qt bindings and Qt Designer plugin for VTK |
143 | Summary(pl.UTF-8): Wiązania Qt oraz wtyczka Qt Designera do VTK | |
e33b075c JB |
144 | Group: X11/Libraries |
145 | Requires: %{name} = %{version}-%{release} | |
c3b50c93 JB |
146 | Requires: QtCore >= 4.5.0 |
147 | Requires: QtGui >= 4.5.0 | |
148 | Requires: QtNetwork >= 4.5.0 | |
149 | Requires: QtOpenGL >= 4.5.0 | |
150 | Requires: QtSql >= 4.5.0 | |
151 | Requires: QtWebKit >= 4.5.0 | |
e33b075c JB |
152 | |
153 | %description qt | |
c3b50c93 | 154 | Qt bindings and Qt Designer plugin for VTK. |
e33b075c JB |
155 | |
156 | %description qt -l pl.UTF-8 | |
c3b50c93 JB |
157 | Wiązania Qt oraz wtyczka Qt Designera do VTK. |
158 | ||
159 | %package qt-devel | |
160 | Summary: Header files for VTK Qt bindings | |
161 | Summary(pl.UTF-8): Pliki nagłówkowe wiązań Qt do VTK | |
162 | Group: X11/Development/Libraries | |
163 | Requires: %{name}-devel = %{version}-%{release} | |
164 | Requires: %{name}-qt = %{version}-%{release} | |
165 | Requires: QtCore-devel >= 4.5.0 | |
166 | Requires: QtGui-devel >= 4.5.0 | |
167 | Requires: QtOpenGL-devel >= 4.5.0 | |
168 | Requires: QtSql-devel >= 4.5.0 | |
169 | ||
170 | %description qt-devel | |
171 | Header files for VTK Qt bindings. | |
172 | ||
173 | %description qt-devel -l pl.UTF-8 | |
174 | Pliki nagłówkowe wiązań Qt do VTK. | |
e33b075c | 175 | |
c9112da2 JB |
176 | %package java |
177 | Summary: Java bindings for VTK | |
178 | Summary(pl.UTF-8): Wiązania Javy do VTK | |
179 | Group: Development/Languages/Java | |
c8393523 | 180 | Requires: %{name} = %{version}-%{release} |
c3b50c93 JB |
181 | # or separate qt parts? |
182 | Requires: %{name}-qt = %{version}-%{release} | |
52d6c353 | 183 | |
c9112da2 JB |
184 | %description java |
185 | This package contains Java bindings for VTK. | |
52d6c353 | 186 | |
c9112da2 JB |
187 | %description java -l pl.UTF-8 |
188 | Ten pakiet zawiera wiązania Javy do VTK. | |
189 | ||
190 | %package java-devel | |
191 | Summary: Header files for Java VTK binding | |
192 | Summary(pl.UTF-8): Pliki nagłówkowe wiązania Javy do VTK | |
193 | Group: Development/Libraries | |
194 | Requires: %{name}-devel = %{version}-%{release} | |
195 | Requires: %{name}-java = %{version}-%{release} | |
196 | # <jni.h> | |
197 | Requires: jdk | |
198 | ||
199 | %description java-devel | |
200 | Header files for Java VTK binding. | |
201 | ||
202 | %description java-devel -l pl.UTF-8 | |
203 | Pliki nagłówkowe wiązania Javy do VTK. | |
52d6c353 AG |
204 | |
205 | %package python | |
3b8bf081 | 206 | Summary: Python bindings for VTK |
52118dd8 | 207 | Summary(pl.UTF-8): Wiązania Pythona do VTK |
0b356dc9 | 208 | Group: Libraries |
c8393523 | 209 | Requires: %{name} = %{version}-%{release} |
c3b50c93 JB |
210 | # or separate qt parts again? |
211 | Requires: %{name}-qt = %{version}-%{release} | |
ed317954 JR |
212 | Obsoletes: vtk-python-qt < 6.0.0-1 |
213 | Obsoletes: vtk-python-sip < 6.0.0-1 | |
52d6c353 | 214 | |
0b356dc9 | 215 | %description python |
c8393523 | 216 | This package contains Python bindings for VTK. |
52d6c353 | 217 | |
eb1fe26e | 218 | %description python -l pl.UTF-8 |
52118dd8 | 219 | Ten pakiet zawiera wiązania Pythona do VTK. |
52d6c353 | 220 | |
c9112da2 JB |
221 | %package python-devel |
222 | Summary: Header files for Python VTK binding | |
223 | Summary(pl.UTF-8): Pliki nagłówkowe wiązania Pythona do VTK | |
224 | Group: Development/Libraries | |
225 | Requires: %{name}-devel = %{version}-%{release} | |
226 | Requires: %{name}-python = %{version}-%{release} | |
227 | Requires: python-devel | |
52d6c353 | 228 | |
c9112da2 JB |
229 | %description python-devel |
230 | Header files for Python VTK binding. | |
52d6c353 | 231 | |
c9112da2 JB |
232 | %description python-devel -l pl.UTF-8 |
233 | Pliki nagłówkowe wiązania Pythona do VTK. | |
52d6c353 | 234 | |
c9112da2 JB |
235 | %package tcl |
236 | Summary: Tcl bindings for VTK | |
237 | Summary(pl.UTF-8): Wiązania języka Tcl do VTK | |
238 | Group: Libraries | |
239 | Requires: %{name} = %{version}-%{release} | |
c3b50c93 JB |
240 | # or separate qt parts? |
241 | Requires: %{name}-qt = %{version}-%{release} | |
c9112da2 JB |
242 | |
243 | %description tcl | |
244 | This package contains Tcl bindings for VTK. | |
245 | ||
246 | %description tcl -l pl.UTF-8 | |
247 | Ten pakiet zawiera wiązania języka Tcl do VTK. | |
248 | ||
249 | %package tcl-devel | |
250 | Summary: Header files for Tcl VTK bindings | |
251 | Summary(pl.UTF-8): Pliki nagłówkowe wiązania języka Tcl do VTK | |
252 | Group: Development/Libraries | |
253 | Requires: %{name}-devel = %{version}-%{release} | |
254 | Requires: %{name}-tcl = %{version}-%{release} | |
255 | Requires: tcl-devel | |
256 | Requires: tk-devel | |
257 | ||
258 | %description tcl-devel | |
259 | Header files for Tcl VTK bindings. | |
260 | ||
261 | %description tcl-devel -l pl.UTF-8 | |
262 | Pliki nagłówkowe wiązania języka Tcl do VTK. | |
263 | ||
52d6c353 | 264 | %package examples |
3b8bf081 | 265 | Summary: C++, Tcl and Python example programs/scripts for VTK |
06b6c677 | 266 | Summary(pl.UTF-8): Przykładowe programy/skrypty w C++, Tcl-u i Pythonie dla VTK |
0b356dc9 | 267 | Group: Development/Libraries |
c8393523 JB |
268 | Requires: %{name} = %{version}-%{release} |
269 | Requires: %{name}-data = %{version}-%{release} | |
52d6c353 AG |
270 | |
271 | %description examples | |
0b356dc9 AG |
272 | This package contains all the examples from the VTK source. To compile |
273 | the C++ examples you will need to install the vtk-devel package as | |
274 | well. The Python and Tcl examples can be run with the corresponding | |
275 | packages (vtk-python, vtk-tcl). | |
52d6c353 | 276 | |
eb1fe26e JR |
277 | %description examples -l pl.UTF-8 |
278 | Ten pakiet zawiera wszystkie przykłady ze źródeł VTK. Do skompilowania | |
279 | przykładów w C++ trzeba doinstalować pakiet vtk-devel. Przykłady w | |
280 | Pythonie i Tcl-u można uruchamiać przy użyciu odpowiednich pakietów | |
c8393523 JB |
281 | (vtk-python, vtk-tcl). |
282 | ||
52d6c353 | 283 | %package test-suite |
3b8bf081 | 284 | Summary: Test programs for VTK |
06b6c677 | 285 | Summary(pl.UTF-8): Programy testowe dla VTK |
0b356dc9 | 286 | Group: Development/Libraries |
c8393523 JB |
287 | Requires: %{name} = %{version}-%{release} |
288 | Requires: %{name}-data = %{version}-%{release} | |
52d6c353 AG |
289 | |
290 | %description test-suite | |
3b8bf081 | 291 | This package contains all testing programs from the VTK source. The |
292 | source code of these programs can be found in the vtk-examples | |
293 | package. | |
52d6c353 | 294 | |
eb1fe26e JR |
295 | %description test-suite -l pl.UTF-8 |
296 | Ten pakiet zawiera wszystkie programy testowe ze źródeł VTK. Kod | |
297 | źródłowy tych programów można znaleźć w pakiecie vtk-examples. | |
c8393523 | 298 | |
52d6c353 | 299 | %package data |
3b8bf081 | 300 | Summary: Data files for VTK |
06b6c677 | 301 | Summary(pl.UTF-8): Pliki danych dla VTK |
3b8bf081 | 302 | Group: Development/Libraries |
f421933b | 303 | %if "%{_rpmversion}" >= "5" |
11477b92 | 304 | BuildArch: noarch |
f421933b | 305 | %endif |
52d6c353 | 306 | |
0b356dc9 | 307 | %description data |
3b8bf081 | 308 | This package contains all the data from the VTKData repository. These |
c8393523 JB |
309 | data are required to run various examples from the vtk-examples |
310 | package. | |
311 | ||
eb1fe26e JR |
312 | %description data -l pl.UTF-8 |
313 | Ten pakiet zawiera wszystkie dane z repozytorium VTKData. Dane te są | |
314 | potrzebne do uruchamiania różnych przykładów z pakietu vtk-examples. | |
52d6c353 AG |
315 | |
316 | %prep | |
1d4198f2 | 317 | %setup -q -n VTK-%{version} -b 1 |
bb64b81a | 318 | %patch0 -p1 |
8aed1503 | 319 | %patch1 -p1 |
3639b6bc | 320 | %patch2 -p1 |
cd9b4dcf | 321 | %patch3 -p1 |
bb64b81a | 322 | |
1d4198f2 JB |
323 | # Replace relative path ../../../VTKData with destination filesystem path |
324 | grep -Erl '(\.\./)+VTKData' Examples | xargs \ | |
c296ef55 | 325 | perl -pi -e 's,(\.\./)+VTKData,%{_datadir}/vtk-6.3,g' |
bb64b81a JR |
326 | |
327 | # Save an unbuilt copy of the Example's sources for %doc | |
328 | mkdir vtk-examples | |
329 | cp -a Examples vtk-examples | |
330 | # Don't ship Win32 examples | |
331 | %{__rm} -r vtk-examples/Examples/GUI/Win32 | |
332 | find vtk-examples -type f | xargs chmod -R a-x | |
52d6c353 AG |
333 | |
334 | %build | |
e33b075c JB |
335 | export CFLAGS="%{rpmcflags} -D_UNICODE" |
336 | export CXXFLAGS="%{rpmcxxflags} -D_UNICODE" | |
bb64b81a | 337 | %if %{with java} |
ff176195 | 338 | export JAVA_HOME=%{java_home} |
bb64b81a JR |
339 | %endif |
340 | ||
e21de9ad ER |
341 | # handle cmake & ccache |
342 | # http://stackoverflow.com/questions/1815688/how-to-use-ccache-with-cmake | |
343 | # ASM fix: http://lists.busybox.net/pipermail/buildroot/2013-March/069436.html | |
344 | if [[ "%{__cc}" = *ccache* ]]; then | |
345 | cc="%{__cc}" | |
346 | cxx="%{__cxx}" | |
347 | ccache=" | |
348 | -DCMAKE_C_COMPILER="ccache" -DCMAKE_C_COMPILER_ARG1="${cc#ccache }" \ | |
349 | -DCMAKE_CXX_COMPILER="ccache" -DCMAKE_CXX_COMPILER_ARG1="${cxx#ccache }" \ | |
350 | -DCMAKE_ASM_COMPILER="${cc#ccache }" \ | |
351 | " | |
352 | else | |
353 | ccache=" | |
354 | -DCMAKE_C_COMPILER="%{__cc}" \ | |
355 | -DCMAKE_CXX_COMPILER="%{__cxx}" \ | |
356 | -DCMAKE_ASM_COMPILER="%{__cc}" \ | |
357 | " | |
358 | fi | |
359 | ||
df99c936 | 360 | mkdir -p build |
bb64b81a | 361 | cd build |
e33b075c | 362 | %cmake .. \ |
e21de9ad | 363 | $ccache \ |
9cf01b51 | 364 | -Wno-dev \ |
e33b075c | 365 | -DBUILD_DOCUMENTATION:BOOL=ON \ |
ed317954 | 366 | -DBUILD_EXAMPLES:BOOL=ON \ |
52d6c353 | 367 | -DBUILD_SHARED_LIBS:BOOL=ON \ |
52d6c353 | 368 | -DBUILD_TESTING:BOOL=ON \ |
e33b075c | 369 | -DCMAKE_SKIP_RPATH:BOOL=ON \ |
bb64b81a | 370 | -DOPENGL_INCLUDE_PATH:PATH=%{_includedir}/GL \ |
280d7190 | 371 | -DPYTHON_INCLUDE_PATH:PATH=%{py_incdir} \ |
7a081b91 | 372 | -DPYTHON_LIBRARY:FILEPATH=%{_libdir}/libpython%{py_ver}.so \ |
0b356dc9 | 373 | -DPYTHON_UTIL_LIBRARY:PATH=%{_libdir}/libutil.so \ |
52d6c353 AG |
374 | -DTCL_INCLUDE_PATH:PATH=%{_includedir} \ |
375 | -DTCL_LIBRARY:PATH=%{_libdir}/libtcl.so \ | |
376 | -DTK_INCLUDE_PATH:PATH=%{_includedir} \ | |
377 | -DTK_LIBRARY:PATH=%{_libdir}/libtk.so \ | |
c296ef55 | 378 | -DVTK_DATA_ROOT:PATH=%{_datadir}/vtk-6.3 \ |
ed317954 JR |
379 | -DVTK_CUSTOM_LIBRARY_SUFFIX="" \ |
380 | -DVTK_INSTALL_ARCHIVE_DIR:PATH=%{_lib}/vtk \ | |
381 | -DVTK_INSTALL_INCLUDE_DIR:PATH=include/vtk \ | |
382 | -DVTK_INSTALL_LIBRARY_DIR:PATH=%{_lib}/vtk \ | |
383 | -DVTK_INSTALL_PACKAGE_DIR:PATH=%{_lib}/cmake/vtk \ | |
384 | -DVTK_INSTALL_TCL_DIR:PATH=share/tcl%{tcl_version}/vtk \ | |
1d4198f2 | 385 | -DVTK_INSTALL_PYTHON_MODULE_DIR:PATH=%{py_sitedir} \ |
e33b075c | 386 | -DVTK_INSTALL_QT_DIR=/%{_lib}/qt4/plugins/designer \ |
58c51e05 | 387 | -DVTK_FFMPEG_HAS_OLD_HEADER:BOOL=OFF \ |
e33b075c | 388 | %{?with_OSMesa:-DVTK_OPENGL_HAS_OSMESA:BOOL=ON} \ |
ed317954 | 389 | -DVTK_WRAP_PYTHON:BOOL=ON \ |
e33b075c | 390 | -DVTK_PYTHON_SETUP_ARGS="--prefix=/usr --root=$RPM_BUILD_ROOT" \ |
bdd17b88 | 391 | -DVTK_USE_SYSTEM_LIBRARIES:BOOL=ON \ |
bdd17b88 | 392 | -DVTK_USE_OGGTHEORA_ENCODER:BOOL=ON \ |
e33b075c | 393 | -DVTK_USE_RENDERING:BOOL=ON \ |
bf9cff64 | 394 | -DVTK_USE_SYSTEM_HDF5:BOOL=ON \ |
921811aa | 395 | -DVTK_USE_SYSTEM_XDMF2:BOOL=OFF \ |
bdd17b88 | 396 | %{!?with_system_proj:-DVTK_USE_SYSTEM_LIBPROJ4:BOOL=OFF} \ |
e33b075c JB |
397 | %if %{with java} |
398 | -DVTK_WRAP_JAVA:BOOL=ON \ | |
399 | -DJAVA_INCLUDE_PATH:PATH=$JAVA_HOME/include \ | |
400 | -DJAVA_INCLUDE_PATH2:PATH=$JAVA_HOME/include/linux \ | |
401 | -DJAVA_AWT_INCLUDE_PATH:PATH=$JAVA_HOME/include \ | |
402 | %else | |
403 | -DVTK_WRAP_JAVA:BOOL=OFF \ | |
404 | %endif | |
52d6c353 | 405 | -DVTK_WRAP_PYTHON:BOOL=ON \ |
e33b075c | 406 | %{?with_sip:-DVTK_WRAP_PYTHON_SIP:BOOL=ON} \ |
ed317954 JR |
407 | -DVTK_WRAP_TCL:BOOL=ON \ |
408 | -DVTK_Group_Imaging:BOOL=ON \ | |
409 | -DVTK_Group_Qt:BOOL=ON \ | |
410 | -DVTK_Group_Rendering:BOOL=ON \ | |
411 | -DVTK_Group_StandAlone:BOOL=ON \ | |
412 | -DVTK_Group_Tk:BOOL=ON \ | |
413 | -DVTK_Group_Views:BOOL=ON \ | |
58c51e05 JB |
414 | -DModule_vtkFiltersReebGraph:BOOL=ON \ |
415 | -DModule_vtkFiltersStatisticsGnuR:BOOL=ON \ | |
416 | %{?with_ffmpeg:-DModule_vtkIOFFMPEG:BOOL=ON} \ | |
417 | -DModule_vtkIOGDAL:BOOL=ON \ | |
418 | -DModule_vtkIOGeoJSON:BOOL=ON \ | |
419 | -DModule_vtkIOMySQL:BOOL=ON \ | |
420 | -DModule_vtkIOODBC:BOOL=ON \ | |
421 | -DModule_vtkIOParallelExodus:BOOL=ON \ | |
422 | -DModule_vtkIOParallelLSDyna:BOOL=ON \ | |
423 | -DModule_vtkIOPostgreSQL:BOOL=ON \ | |
424 | -DModule_vtkIOVPIC:BOOL=ON \ | |
921811aa | 425 | -DModule_vtkIOXdmf2:BOOL=ON \ |
58c51e05 JB |
426 | -DModule_vtkInfovisBoost:BOOL=ON \ |
427 | -DModule_vtkInfovisBoostGraphAlgorithms:BOOL=ON \ | |
428 | -DModule_vtkRenderingFreeTypeFontConfig:BOOL=ON \ | |
429 | -DModule_vtkRenderingMatplotlib:BOOL=ON \ | |
430 | -DModule_vtkRenderingParallel:BOOL=ON | |
431 | # TODO: -DModule_vtkAcceleratorsDax:BOOL=ON (BR: FindDax.cmake, maybe http://www.daxtoolkit.org/ ?) | |
432 | # TODO: -DModule_vtkAcceleratorsPiston:BOOL=ON (on bcond, BR: CUDA) | |
433 | # TODO: -DModule_vtkFiltersParallelFlowPaths:BOOL=ON (BR: MPI) | |
434 | # TODO: -DModule_vtkFiltersParallelStatistics:BOOL=ON (BR: MPI) | |
58c51e05 JB |
435 | # TODO: -DModule_vtkInfovisParallel:BOOL=ON (BR: MPI) |
436 | # TODO: -DModule_vtkRenderingParallelLIC:BOOL=ON (BR: MPI) | |
52d6c353 | 437 | |
52d6c353 AG |
438 | %{__make} |
439 | ||
440 | %install | |
441 | rm -rf $RPM_BUILD_ROOT | |
1d4198f2 | 442 | install -d $RPM_BUILD_ROOT{%{_sysconfdir}/ld.so.conf.d,%{_examplesdir}/%{name}-%{version}} |
52d6c353 | 443 | |
bb64b81a | 444 | %{__make} -C build install \ |
52d6c353 AG |
445 | DESTDIR=$RPM_BUILD_ROOT |
446 | ||
bb64b81a JR |
447 | # ld config |
448 | echo %{_libdir}/vtk > $RPM_BUILD_ROOT%{_sysconfdir}/ld.so.conf.d/vtk-%{_arch}.conf | |
449 | ||
1d4198f2 | 450 | for f in $(cd build/ExternalData/Testing ; find Data -type l); do |
c296ef55 | 451 | install -Dp build/ExternalData/Testing/$f $RPM_BUILD_ROOT%{_datadir}/vtk-6.3/$f |
1d4198f2 | 452 | done |
bb64b81a JR |
453 | |
454 | # Install utilities | |
455 | install build/bin/lproj $RPM_BUILD_ROOT%{_bindir} | |
456 | ||
457 | # Install examples | |
458 | for f in \ | |
bb64b81a | 459 | AmbientSpheres \ |
ed317954 JR |
460 | Arrays \ |
461 | BalloonWidget \ | |
462 | BandedContours \ | |
bb64b81a JR |
463 | Cone \ |
464 | Cone2 \ | |
465 | Cone3 \ | |
466 | Cone4 \ | |
467 | Cone5 \ | |
ed317954 JR |
468 | Cone6 \ |
469 | Cube \ | |
470 | Cylinder \ | |
471 | Delaunay3D \ | |
472 | Delaunay3DAlpha \ | |
473 | DiffuseSpheres \ | |
474 | DumpXMLFile \ | |
475 | FilledContours \ | |
476 | FixedPointVolumeRayCastMapperCT \ | |
477 | GPURenderDemo \ | |
478 | Generate2DAMRDataSetWithPulse \ | |
479 | Generate3DAMRDataSetWithPulse \ | |
480 | GenerateCubesFromLabels \ | |
481 | GenerateModelsFromLabels \ | |
482 | HierarchicalBoxPipeline \ | |
483 | ImageDataLIC2DDemo \ | |
484 | ImageSlicing \ | |
485 | LabeledMesh \ | |
ed317954 JR |
486 | Medical1 \ |
487 | Medical2 \ | |
488 | Medical3 \ | |
1d4198f2 | 489 | Medical4 \ |
ed317954 JR |
490 | MultiBlock \ |
491 | ParticleReader \ | |
492 | RGrid \ | |
493 | SGrid \ | |
1d4198f2 | 494 | SimpleView \ |
ed317954 JR |
495 | Slider \ |
496 | Slider2D \ | |
497 | SpecularSpheres \ | |
498 | StructuredGridLIC2DDemo \ | |
499 | SurfaceLICDemo \ | |
500 | TimeRenderer \ | |
501 | TimeRenderer2 \ | |
502 | TubesWithVaryingRadiusAndColors \ | |
503 | finance ; do | |
bb64b81a | 504 | install build/bin/$f $RPM_BUILD_ROOT%{_bindir} |
52d6c353 AG |
505 | done |
506 | ||
bb64b81a | 507 | # Install test binaries |
98c8aeec | 508 | for f in build/bin/*Tests build/bin/Test* build/bin/VTKBenchMark; do |
ed317954 | 509 | install $f $RPM_BUILD_ROOT%{_bindir} |
bb64b81a | 510 | done |
52d6c353 | 511 | |
98c8aeec ER |
512 | %if %{with java} |
513 | install -p build/bin/VTKJavaExecutable $RPM_BUILD_ROOT%{_bindir} | |
514 | %endif | |
515 | install -p build/bin/vtkpython $RPM_BUILD_ROOT%{_bindir} | |
52d6c353 | 516 | |
3c34ea90 | 517 | # unwanted doxygen files and misplaced verdict docs |
c296ef55 | 518 | %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/vtk-6.3/{doxygen,verdict} |
52d6c353 | 519 | |
c3b50c93 JB |
520 | # only *.pyc are built by default, add *.pyo |
521 | %py_ocomp $RPM_BUILD_ROOT%{py_sitedir}/vtk | |
24d31977 JB |
522 | %py_postclean |
523 | ||
0b356dc9 AG |
524 | %clean |
525 | rm -rf $RPM_BUILD_ROOT | |
526 | ||
c8393523 | 527 | %post -p /sbin/ldconfig |
52d6c353 | 528 | %postun -p /sbin/ldconfig |
c8393523 | 529 | |
c3b50c93 JB |
530 | %post qt -p /sbin/ldconfig |
531 | %postun qt -p /sbin/ldconfig | |
532 | ||
e33b075c JB |
533 | %post java -p /sbin/ldconfig |
534 | %postun java -p /sbin/ldconfig | |
c8393523 JB |
535 | |
536 | %post python -p /sbin/ldconfig | |
537 | %postun python -p /sbin/ldconfig | |
538 | ||
e33b075c JB |
539 | %post tcl -p /sbin/ldconfig |
540 | %postun tcl -p /sbin/ldconfig | |
bb64b81a | 541 | |
52d6c353 | 542 | %files |
0b356dc9 | 543 | %defattr(644,root,root,755) |
ec0cb404 | 544 | %doc README.md vtkLogo.jpg vtkBanner.gif Wrapping/Tools/README* |
bb64b81a | 545 | %config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/ld.so.conf.d/vtk-%{_arch}.conf |
52d6c353 | 546 | %dir %{_libdir}/vtk |
c3b50c93 JB |
547 | %attr(755,root,root) %{_libdir}/vtk/libvtkChartsCore.so.1 |
548 | %attr(755,root,root) %{_libdir}/vtk/libvtkCommon*.so.1 | |
549 | %attr(755,root,root) %{_libdir}/vtk/libvtkDICOMParser.so.1 | |
550 | %attr(755,root,root) %{_libdir}/vtk/libvtkDomainsChemistry.so.1 | |
551 | %attr(755,root,root) %{_libdir}/vtk/libvtkFilters*.so.1 | |
552 | %attr(755,root,root) %{_libdir}/vtk/libvtkGeovisCore.so.1 | |
553 | %attr(755,root,root) %{_libdir}/vtk/libvtkIO*.so.1 | |
554 | %attr(755,root,root) %{_libdir}/vtk/libvtkImaging*.so.1 | |
555 | %attr(755,root,root) %{_libdir}/vtk/libvtkInfovis*.so.1 | |
556 | %attr(755,root,root) %{_libdir}/vtk/libvtkInteraction*.so.1 | |
557 | %attr(755,root,root) %{_libdir}/vtk/libvtkLocalExample.so.1 | |
c3b50c93 JB |
558 | %attr(755,root,root) %{_libdir}/vtk/libvtkParallelCore.so.1 |
559 | %attr(755,root,root) %{_libdir}/vtk/libvtkRenderingAnnotation.so.1 | |
560 | %attr(755,root,root) %{_libdir}/vtk/libvtkRenderingContext2D.so.1 | |
ec0cb404 | 561 | %attr(755,root,root) %{_libdir}/vtk/libvtkRenderingContextOpenGL.so.1 |
c3b50c93 JB |
562 | %attr(755,root,root) %{_libdir}/vtk/libvtkRenderingCore.so.1 |
563 | %attr(755,root,root) %{_libdir}/vtk/libvtkRenderingFreeType.so.1 | |
58c51e05 | 564 | %attr(755,root,root) %{_libdir}/vtk/libvtkRenderingFreeTypeFontConfig.so.1 |
c3b50c93 | 565 | %attr(755,root,root) %{_libdir}/vtk/libvtkRenderingGL2PS.so.1 |
c3b50c93 | 566 | %attr(755,root,root) %{_libdir}/vtk/libvtkRenderingImage.so.1 |
1d4198f2 | 567 | %attr(755,root,root) %{_libdir}/vtk/libvtkRenderingLIC.so.1 |
c3b50c93 JB |
568 | %attr(755,root,root) %{_libdir}/vtk/libvtkRenderingLOD.so.1 |
569 | %attr(755,root,root) %{_libdir}/vtk/libvtkRenderingLabel.so.1 | |
570 | %attr(755,root,root) %{_libdir}/vtk/libvtkRenderingOpenGL.so.1 | |
58c51e05 | 571 | %attr(755,root,root) %{_libdir}/vtk/libvtkRenderingParallel.so.1 |
c3b50c93 | 572 | %attr(755,root,root) %{_libdir}/vtk/libvtkRenderingVolume.so.1 |
c3b50c93 JB |
573 | %attr(755,root,root) %{_libdir}/vtk/libvtkRenderingVolumeOpenGL.so.1 |
574 | %attr(755,root,root) %{_libdir}/vtk/libvtkTesting*.so.1 | |
58c51e05 | 575 | %attr(755,root,root) %{_libdir}/vtk/libvtkVPIC.so.1 |
c3b50c93 JB |
576 | %attr(755,root,root) %{_libdir}/vtk/libvtkViewsContext2D.so.1 |
577 | %attr(755,root,root) %{_libdir}/vtk/libvtkViewsCore.so.1 | |
578 | %attr(755,root,root) %{_libdir}/vtk/libvtkViewsGeovis.so.1 | |
579 | %attr(755,root,root) %{_libdir}/vtk/libvtkViewsInfovis.so.1 | |
580 | %attr(755,root,root) %{_libdir}/vtk/libvtkalglib.so.1 | |
581 | %attr(755,root,root) %{_libdir}/vtk/libvtkexoIIc.so.1 | |
582 | %attr(755,root,root) %{_libdir}/vtk/libvtkftgl.so.1 | |
c3b50c93 JB |
583 | %attr(755,root,root) %{_libdir}/vtk/libvtkmetaio.so.1 |
584 | %attr(755,root,root) %{_libdir}/vtk/libvtkproj4.so.1 | |
585 | %attr(755,root,root) %{_libdir}/vtk/libvtksqlite.so.1 | |
586 | %attr(755,root,root) %{_libdir}/vtk/libvtksys.so.1 | |
587 | %attr(755,root,root) %{_libdir}/vtk/libvtkverdict.so.1 | |
921811aa | 588 | %attr(755,root,root) %{_libdir}/vtk/libvtkxdmf2.so.1 |
ed317954 | 589 | %exclude %{_libdir}/vtk/libvtk*Java.so.1 |
c3b50c93 JB |
590 | %exclude %{_libdir}/vtk/libvtk*Python2?D.so.1 |
591 | %exclude %{_libdir}/vtk/libvtkWrappingPython2?Core.so.1 | |
ed317954 | 592 | %exclude %{_libdir}/vtk/libvtk*TCL.so.1 |
52d6c353 AG |
593 | |
594 | %files devel | |
0b356dc9 | 595 | %defattr(644,root,root,755) |
0b356dc9 | 596 | %doc Utilities/Upgrading/* |
bb64b81a JR |
597 | %attr(755,root,root) %{_bindir}/lproj |
598 | %attr(755,root,root) %{_bindir}/vtkEncodeString | |
ed317954 JR |
599 | %attr(755,root,root) %{_bindir}/vtkHashSource |
600 | %attr(755,root,root) %{_bindir}/vtkParseOGLExt | |
24d31977 | 601 | %attr(755,root,root) %{_bindir}/vtkWrapHierarchy |
c3b50c93 JB |
602 | %attr(755,root,root) %{_libdir}/vtk/libvtkChartsCore.so |
603 | %attr(755,root,root) %{_libdir}/vtk/libvtkCommon*.so | |
604 | %attr(755,root,root) %{_libdir}/vtk/libvtkDICOMParser.so | |
605 | %attr(755,root,root) %{_libdir}/vtk/libvtkDomainsChemistry.so | |
606 | %attr(755,root,root) %{_libdir}/vtk/libvtkFilters*.so | |
607 | %attr(755,root,root) %{_libdir}/vtk/libvtkGeovisCore.so | |
608 | %attr(755,root,root) %{_libdir}/vtk/libvtkIO*.so | |
609 | %attr(755,root,root) %{_libdir}/vtk/libvtkImaging*.so | |
610 | %attr(755,root,root) %{_libdir}/vtk/libvtkInfovis*.so | |
611 | %attr(755,root,root) %{_libdir}/vtk/libvtkInteraction*.so | |
612 | %attr(755,root,root) %{_libdir}/vtk/libvtkLocalExample.so | |
c3b50c93 JB |
613 | %attr(755,root,root) %{_libdir}/vtk/libvtkParallelCore.so |
614 | %attr(755,root,root) %{_libdir}/vtk/libvtkRenderingAnnotation.so | |
615 | %attr(755,root,root) %{_libdir}/vtk/libvtkRenderingContext2D.so | |
ec0cb404 | 616 | %attr(755,root,root) %{_libdir}/vtk/libvtkRenderingContextOpenGL.so |
c3b50c93 JB |
617 | %attr(755,root,root) %{_libdir}/vtk/libvtkRenderingCore.so |
618 | %attr(755,root,root) %{_libdir}/vtk/libvtkRenderingFreeType.so | |
58c51e05 | 619 | %attr(755,root,root) %{_libdir}/vtk/libvtkRenderingFreeTypeFontConfig.so |
c3b50c93 | 620 | %attr(755,root,root) %{_libdir}/vtk/libvtkRenderingGL2PS.so |
c3b50c93 | 621 | %attr(755,root,root) %{_libdir}/vtk/libvtkRenderingImage.so |
1d4198f2 | 622 | %attr(755,root,root) %{_libdir}/vtk/libvtkRenderingLIC.so |
c3b50c93 JB |
623 | %attr(755,root,root) %{_libdir}/vtk/libvtkRenderingLOD.so |
624 | %attr(755,root,root) %{_libdir}/vtk/libvtkRenderingLabel.so | |
625 | %attr(755,root,root) %{_libdir}/vtk/libvtkRenderingOpenGL.so | |
58c51e05 | 626 | %attr(755,root,root) %{_libdir}/vtk/libvtkRenderingParallel.so |
c3b50c93 | 627 | %attr(755,root,root) %{_libdir}/vtk/libvtkRenderingVolume.so |
c3b50c93 JB |
628 | %attr(755,root,root) %{_libdir}/vtk/libvtkRenderingVolumeOpenGL.so |
629 | %attr(755,root,root) %{_libdir}/vtk/libvtkTesting*.so | |
58c51e05 | 630 | %attr(755,root,root) %{_libdir}/vtk/libvtkVPIC.so |
c3b50c93 JB |
631 | %attr(755,root,root) %{_libdir}/vtk/libvtkViewsContext2D.so |
632 | %attr(755,root,root) %{_libdir}/vtk/libvtkViewsCore.so | |
633 | %attr(755,root,root) %{_libdir}/vtk/libvtkViewsGeovis.so | |
634 | %attr(755,root,root) %{_libdir}/vtk/libvtkViewsInfovis.so | |
635 | %attr(755,root,root) %{_libdir}/vtk/libvtkalglib.so | |
636 | %attr(755,root,root) %{_libdir}/vtk/libvtkexoIIc.so | |
637 | %attr(755,root,root) %{_libdir}/vtk/libvtkftgl.so | |
c3b50c93 JB |
638 | %attr(755,root,root) %{_libdir}/vtk/libvtkmetaio.so |
639 | %attr(755,root,root) %{_libdir}/vtk/libvtkproj4.so | |
640 | %attr(755,root,root) %{_libdir}/vtk/libvtksqlite.so | |
641 | %attr(755,root,root) %{_libdir}/vtk/libvtksys.so | |
642 | %attr(755,root,root) %{_libdir}/vtk/libvtkverdict.so | |
921811aa | 643 | %attr(755,root,root) %{_libdir}/vtk/libvtkxdmf2.so |
ed317954 | 644 | %exclude %{_libdir}/vtk/libvtk*Java.so |
c3b50c93 JB |
645 | %exclude %{_libdir}/vtk/libvtk*Python2?D.so |
646 | %exclude %{_libdir}/vtk/libvtkWrappingPython2?Core.so | |
ed317954 | 647 | %exclude %{_libdir}/vtk/libvtk*TCL.so |
c3b50c93 | 648 | %{_libdir}/vtk/libvtkWrappingTools.a |
c9112da2 | 649 | %dir %{_includedir}/vtk |
58c51e05 | 650 | %{_includedir}/vtk/VPIC |
ed317954 JR |
651 | %{_includedir}/vtk/DICOM*.h |
652 | %{_includedir}/vtk/DatabaseSchemaWith2Tables.h | |
c9112da2 | 653 | %{_includedir}/vtk/alglib |
c9112da2 JB |
654 | %{_includedir}/vtk/vtklibproj4 |
655 | %{_includedir}/vtk/vtkmetaio | |
3c34ea90 | 656 | %{_includedir}/vtk/vtkverdict |
c9112da2 | 657 | %{_includedir}/vtk/vtksqlite |
c9112da2 | 658 | %{_includedir}/vtk/vtksys |
921811aa | 659 | %{_includedir}/vtk/vtkxdmf2 |
c9112da2 JB |
660 | %{_includedir}/vtk/vtk*.h |
661 | %{_includedir}/vtk/vtk*.txx | |
c3b50c93 JB |
662 | %exclude %{_includedir}/vtk/vtkEventQtSlotConnect.h |
663 | %exclude %{_includedir}/vtk/vtkGUISupportQt*.h | |
ed317954 JR |
664 | %exclude %{_includedir}/vtk/vtkJavaUtil.h |
665 | %exclude %{_includedir}/vtk/vtkWrappingJavaModule.h | |
c9112da2 | 666 | %exclude %{_includedir}/vtk/vtkPython*.h |
c3b50c93 JB |
667 | %exclude %{_includedir}/vtk/vtkQImageToImageSource.h |
668 | %exclude %{_includedir}/vtk/vtkQt*.h | |
669 | %exclude %{_includedir}/vtk/vtkRenderingQtModule.h | |
c9112da2 JB |
670 | %exclude %{_includedir}/vtk/vtkTcl*.h |
671 | %exclude %{_includedir}/vtk/vtkTk*.h | |
c3b50c93 | 672 | %exclude %{_includedir}/vtk/vtkViewsQtModule.h |
ed317954 | 673 | %{_libdir}/cmake/vtk |
52d6c353 | 674 | |
e33b075c JB |
675 | %files qt |
676 | %defattr(644,root,root,755) | |
c3b50c93 JB |
677 | %attr(755,root,root) %{_libdir}/vtk/libvtkGUISupportQt.so.1 |
678 | %attr(755,root,root) %{_libdir}/vtk/libvtkGUISupportQtOpenGL.so.1 | |
679 | %attr(755,root,root) %{_libdir}/vtk/libvtkGUISupportQtSQL.so.1 | |
680 | %attr(755,root,root) %{_libdir}/vtk/libvtkGUISupportQtWebkit.so.1 | |
681 | %attr(755,root,root) %{_libdir}/vtk/libvtkRenderingQt.so.1 | |
682 | %attr(755,root,root) %{_libdir}/vtk/libvtkViewsQt.so.1 | |
e33b075c JB |
683 | %attr(755,root,root) %{_libdir}/qt4/plugins/designer/libQVTKWidgetPlugin.so |
684 | ||
c3b50c93 JB |
685 | %files qt-devel |
686 | %defattr(644,root,root,755) | |
687 | %attr(755,root,root) %{_libdir}/vtk/libvtkGUISupportQt.so | |
688 | %attr(755,root,root) %{_libdir}/vtk/libvtkGUISupportQtOpenGL.so | |
689 | %attr(755,root,root) %{_libdir}/vtk/libvtkGUISupportQtSQL.so | |
690 | %attr(755,root,root) %{_libdir}/vtk/libvtkGUISupportQtWebkit.so | |
691 | %attr(755,root,root) %{_libdir}/vtk/libvtkRenderingQt.so | |
692 | %attr(755,root,root) %{_libdir}/vtk/libvtkViewsQt.so | |
693 | %{_includedir}/vtk/QFilterTreeProxyModel.h | |
694 | %{_includedir}/vtk/QVTK*.h | |
695 | %{_includedir}/vtk/vtkEventQtSlotConnect.h | |
696 | %{_includedir}/vtk/vtkGUISupportQt*.h | |
697 | %{_includedir}/vtk/vtkQImageToImageSource.h | |
698 | %{_includedir}/vtk/vtkQt*.h | |
699 | %{_includedir}/vtk/vtkRenderingQtModule.h | |
700 | %{_includedir}/vtk/vtkViewsQtModule.h | |
701 | ||
c9112da2 JB |
702 | %if %{with java} |
703 | %files java | |
0b356dc9 | 704 | %defattr(644,root,root,755) |
ed317954 | 705 | %attr(755,root,root) %{_bindir}/VTKJavaExecutable |
c9112da2 JB |
706 | %attr(755,root,root) %{_bindir}/vtkParseJava |
707 | %attr(755,root,root) %{_bindir}/vtkWrapJava | |
c3b50c93 JB |
708 | # common library |
709 | %attr(755,root,root) %{_libdir}/vtk/libvtkWrappingJava.so.1 | |
710 | # java modules | |
711 | %attr(755,root,root) %{_libdir}/vtk/libvtkChartsCoreJava.so | |
712 | %attr(755,root,root) %{_libdir}/vtk/libvtkCommon*Java.so | |
713 | %attr(755,root,root) %{_libdir}/vtk/libvtkDomainsChemistryJava.so | |
714 | %attr(755,root,root) %{_libdir}/vtk/libvtkFilters*Java.so | |
715 | %attr(755,root,root) %{_libdir}/vtk/libvtkGeovisCoreJava.so | |
716 | %attr(755,root,root) %{_libdir}/vtk/libvtkIO*Java.so | |
717 | %attr(755,root,root) %{_libdir}/vtk/libvtkImaging*Java.so | |
718 | %attr(755,root,root) %{_libdir}/vtk/libvtkInfovis*Java.so | |
719 | %attr(755,root,root) %{_libdir}/vtk/libvtkInteraction*Java.so | |
720 | %attr(755,root,root) %{_libdir}/vtk/libvtkLocalExampleJava.so | |
721 | %attr(755,root,root) %{_libdir}/vtk/libvtkParallelCoreJava.so | |
58c51e05 | 722 | %attr(755,root,root) %{_libdir}/vtk/libvtkPythonInterpreterJava.so |
c3b50c93 JB |
723 | %attr(755,root,root) %{_libdir}/vtk/libvtkRendering*Java.so |
724 | %attr(755,root,root) %{_libdir}/vtk/libvtkTestingRenderingJava.so | |
725 | %attr(755,root,root) %{_libdir}/vtk/libvtkViews*Java.so | |
ed317954 | 726 | %{_libdir}/vtk/vtk.jar |
c9112da2 JB |
727 | |
728 | %files java-devel | |
729 | %defattr(644,root,root,755) | |
c3b50c93 | 730 | %attr(755,root,root) %{_libdir}/vtk/libvtkWrappingJava.so |
ed317954 JR |
731 | %{_includedir}/vtk/vtkJavaUtil.h |
732 | %{_includedir}/vtk/vtkWrappingJavaModule.h | |
c9112da2 | 733 | %endif |
52d6c353 AG |
734 | |
735 | %files python | |
0b356dc9 | 736 | %defattr(644,root,root,755) |
ed317954 | 737 | %doc Wrapping/Python/README* |
0b356dc9 | 738 | %attr(755,root,root) %{_bindir}/vtkWrapPython |
bb64b81a | 739 | %attr(755,root,root) %{_bindir}/vtkWrapPythonInit |
0b356dc9 | 740 | %attr(755,root,root) %{_bindir}/vtkpython |
c3b50c93 | 741 | %attr(755,root,root) %{_libdir}/vtk/libvtk*Python2?D.so.1 |
58c51e05 JB |
742 | %attr(755,root,root) %{_libdir}/vtk/libvtkPythonInterpreter.so.1 |
743 | # RenderingMatplotlib requires PythonInterpreter | |
744 | %attr(755,root,root) %{_libdir}/vtk/libvtkRenderingMatplotlib.so.1 | |
c296ef55 | 745 | %attr(755,root,root) %{_libdir}/vtk/libvtkRenderingPythonTkWidgets-6.3.so |
c3b50c93 | 746 | %attr(755,root,root) %{_libdir}/vtk/libvtkWrappingPython2?Core.so.1 |
bb64b81a | 747 | %dir %{py_sitedir}/vtk |
24d31977 | 748 | %{py_sitedir}/vtk/*.py[co] |
bb64b81a | 749 | %dir %{py_sitedir}/vtk/gtk |
24d31977 | 750 | %{py_sitedir}/vtk/gtk/*.py[co] |
911add35 JB |
751 | %dir %{py_sitedir}/vtk/numpy_interface |
752 | %{py_sitedir}/vtk/numpy_interface/*.py[co] | |
bb64b81a | 753 | %dir %{py_sitedir}/vtk/qt4 |
ed317954 | 754 | %{py_sitedir}/vtk/qt4/*.py[co] |
bb64b81a | 755 | %dir %{py_sitedir}/vtk/test |
24d31977 | 756 | %{py_sitedir}/vtk/test/*.py[co] |
bb64b81a | 757 | %dir %{py_sitedir}/vtk/tk |
24d31977 | 758 | %{py_sitedir}/vtk/tk/*.py[co] |
bb64b81a | 759 | %dir %{py_sitedir}/vtk/util |
24d31977 | 760 | %{py_sitedir}/vtk/util/*.py[co] |
bb64b81a | 761 | %dir %{py_sitedir}/vtk/wx |
24d31977 | 762 | %{py_sitedir}/vtk/wx/*.py[co] |
ed317954 | 763 | %attr(755,root,root) %{py_sitedir}/vtk/vtk*Python.so |
52d6c353 | 764 | |
c9112da2 | 765 | %files python-devel |
0b356dc9 | 766 | %defattr(644,root,root,755) |
c3b50c93 | 767 | %attr(755,root,root) %{_libdir}/vtk/libvtk*Python2?D.so |
58c51e05 JB |
768 | %attr(755,root,root) %{_libdir}/vtk/libvtkPythonInterpreter.so |
769 | %attr(755,root,root) %{_libdir}/vtk/libvtkRenderingMatplotlib.so | |
c3b50c93 | 770 | %attr(755,root,root) %{_libdir}/vtk/libvtkWrappingPython2?Core.so |
c9112da2 JB |
771 | %{_includedir}/vtk/PyVTK*.h |
772 | %{_includedir}/vtk/vtkPython*.h | |
52d6c353 | 773 | |
c9112da2 JB |
774 | %files tcl |
775 | %defattr(644,root,root,755) | |
ed317954 | 776 | %doc Wrapping/Tcl/README* |
c9112da2 JB |
777 | %attr(755,root,root) %{_bindir}/vtkWrapTcl |
778 | %attr(755,root,root) %{_bindir}/vtkWrapTclInit | |
779 | %attr(755,root,root) %{_bindir}/vtk | |
3c0e51b3 | 780 | %{_datadir}/tcl%{tcl_version}/vtk |
ed317954 | 781 | %attr(755,root,root) %{_libdir}/vtk/libvtk*TCL.so.1 |
c9112da2 JB |
782 | |
783 | %files tcl-devel | |
784 | %defattr(644,root,root,755) | |
ed317954 | 785 | %attr(755,root,root) %{_libdir}/vtk/libvtk*TCL.so |
c9112da2 JB |
786 | %{_includedir}/vtk/vtkTcl*.h |
787 | %{_includedir}/vtk/vtkTk*.h | |
788 | ||
bb64b81a JR |
789 | %files test-suite |
790 | %defattr(644,root,root,755) | |
ed317954 JR |
791 | %attr(755,root,root) %{_bindir}/*Tests |
792 | %attr(755,root,root) %{_bindir}/Test* | |
bb64b81a | 793 | %attr(755,root,root) %{_bindir}/VTKBenchMark |
bb64b81a | 794 | |
52d6c353 | 795 | %files examples |
0b356dc9 | 796 | %defattr(644,root,root,755) |
bb64b81a | 797 | %attr(755,root,root) %{_bindir}/AmbientSpheres |
24d31977 | 798 | %attr(755,root,root) %{_bindir}/Arrays |
bb64b81a JR |
799 | %attr(755,root,root) %{_bindir}/Cone |
800 | %attr(755,root,root) %{_bindir}/Cone2 | |
801 | %attr(755,root,root) %{_bindir}/Cone3 | |
802 | %attr(755,root,root) %{_bindir}/Cone4 | |
803 | %attr(755,root,root) %{_bindir}/Cone5 | |
804 | %attr(755,root,root) %{_bindir}/Cone6 | |
24d31977 JB |
805 | %attr(755,root,root) %{_bindir}/Cube |
806 | %attr(755,root,root) %{_bindir}/Cylinder | |
807 | %attr(755,root,root) %{_bindir}/DiffuseSpheres | |
808 | %attr(755,root,root) %{_bindir}/HierarchicalBoxPipeline | |
809 | %attr(755,root,root) %{_bindir}/Medical1 | |
810 | %attr(755,root,root) %{_bindir}/Medical2 | |
811 | %attr(755,root,root) %{_bindir}/Medical3 | |
1d4198f2 | 812 | %attr(755,root,root) %{_bindir}/Medical4 |
24d31977 JB |
813 | %attr(755,root,root) %{_bindir}/MultiBlock |
814 | %attr(755,root,root) %{_bindir}/RGrid | |
815 | %attr(755,root,root) %{_bindir}/SGrid | |
1d4198f2 | 816 | %attr(755,root,root) %{_bindir}/SimpleView |
24d31977 JB |
817 | %attr(755,root,root) %{_bindir}/SpecularSpheres |
818 | %attr(755,root,root) %{_bindir}/finance | |
ed317954 JR |
819 | %attr(755,root,root) %{_bindir}/BalloonWidget |
820 | %attr(755,root,root) %{_bindir}/BandedContours | |
821 | %attr(755,root,root) %{_bindir}/Delaunay3D | |
822 | %attr(755,root,root) %{_bindir}/Delaunay3DAlpha | |
823 | %attr(755,root,root) %{_bindir}/DumpXMLFile | |
824 | %attr(755,root,root) %{_bindir}/FilledContours | |
825 | %attr(755,root,root) %{_bindir}/FixedPointVolumeRayCastMapperCT | |
826 | %attr(755,root,root) %{_bindir}/GPURenderDemo | |
827 | %attr(755,root,root) %{_bindir}/Generate2DAMRDataSetWithPulse | |
828 | %attr(755,root,root) %{_bindir}/Generate3DAMRDataSetWithPulse | |
829 | %attr(755,root,root) %{_bindir}/GenerateCubesFromLabels | |
830 | %attr(755,root,root) %{_bindir}/GenerateModelsFromLabels | |
831 | %attr(755,root,root) %{_bindir}/ImageDataLIC2DDemo | |
832 | %attr(755,root,root) %{_bindir}/ImageSlicing | |
833 | %attr(755,root,root) %{_bindir}/LabeledMesh | |
ed317954 JR |
834 | %attr(755,root,root) %{_bindir}/ParticleReader |
835 | %attr(755,root,root) %{_bindir}/Slider | |
836 | %attr(755,root,root) %{_bindir}/Slider2D | |
837 | %attr(755,root,root) %{_bindir}/StructuredGridLIC2DDemo | |
838 | %attr(755,root,root) %{_bindir}/SurfaceLICDemo | |
839 | %attr(755,root,root) %{_bindir}/TimeRenderer | |
840 | %attr(755,root,root) %{_bindir}/TimeRenderer2 | |
841 | %attr(755,root,root) %{_bindir}/TubesWithVaryingRadiusAndColors | |
bb64b81a | 842 | %{_examplesdir}/%{name}-%{version} |
52d6c353 AG |
843 | |
844 | %files data | |
0b356dc9 | 845 | %defattr(644,root,root,755) |
c296ef55 JR |
846 | %dir %{_datadir}/vtk-6.3 |
847 | %{_datadir}/vtk-6.3/Data | |
848 | %{_datadir}/vtk-6.3/vtkDomainsChemistry |