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