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