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