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