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