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