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