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