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