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