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