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