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