]> git.pld-linux.org Git - packages/vtk.git/blob - vtk.spec
- boost 1.61 rebuild
[packages/vtk.git] / vtk.spec
1 # TODO:
2 # - handle VTK_USE_MPEG2_ENCODER (see CMakeLists.txt)
3 # - handle MPI and VTK_USE_PARALLEL_BGL (Parallel Boost Graph Library, BR: boost >= 1.40)
4 # - more system libraries? (check for VTK_THIRD_PARTY_SUBDIR in Utilities/CMakeLists.txt)
5 # - CUDA for Accelerators/Piston (on bcond)
6 # - NVCtrlLib for Rendering/OpenGL (on bcond)
7 # - VTK_USE_SYSTEM_XDMF2=ON ? (but our xdmf-devel seems not compatible)
8 # - python bcond?
9 #
10 # Conditional build
11 %bcond_without  java            # Java wrappers
12 %bcond_without  ffmpeg          # FFMPEG .avi saving support
13 %bcond_with     OSMesa          # build with OSMesa (https://bugzilla.redhat.com/show_bug.cgi?id=744434)
14 %bcond_with     system_proj     # use system PROJ.4 (needs 4.3 with exposed internals, not ready for 4.4+)
15
16 Summary:        Toolkit for 3D computer graphics, image processing, and visualization
17 Summary(pl.UTF-8):      Zestaw narzędzi do trójwymiarowej grafiki, przetwarzania obrazu i wizualizacji
18 Name:           vtk
19 Version:        6.3.0
20 Release:        5
21 License:        BSD
22 Group:          Libraries
23 Source0:        http://www.vtk.org/files/release/6.3/VTK-%{version}.tar.gz
24 # Source0-md5:  0231ca4840408e9dd60af48b314c5b6d
25 Source1:        http://www.vtk.org/files/release/6.3/VTKData-%{version}.tar.gz
26 # Source1-md5:  b164200226805aeb741703a8168afdda
27 Patch0:         %{name}-chemistry.patch
28 Patch1:         gdal2.patch
29 Patch2:         ffmpeg3.patch
30 URL:            http://www.vtk.org/
31 %{?with_OSMesa:BuildRequires: Mesa-libOSMesa-devel}
32 BuildRequires:  OpenGL-GLX-devel
33 BuildRequires:  OpenGL-devel
34 BuildRequires:  QtCore-devel >= 4.5.0
35 BuildRequires:  QtDesigner-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
321 # Replace relative path ../../../VTKData with destination filesystem path
322 grep -Erl '(\.\./)+VTKData' Examples | xargs \
323   perl -pi -e 's,(\.\./)+VTKData,%{_datadir}/vtk-6.3,g'
324
325 # Save an unbuilt copy of the Example's sources for %doc
326 mkdir vtk-examples
327 cp -a Examples vtk-examples
328 # Don't ship Win32 examples
329 %{__rm} -r vtk-examples/Examples/GUI/Win32
330 find vtk-examples -type f | xargs chmod -R a-x
331
332 %build
333 export CFLAGS="%{rpmcflags} -D_UNICODE"
334 export CXXFLAGS="%{rpmcxxflags} -D_UNICODE"
335 %if %{with java}
336 export JAVA_HOME=%{java_home}
337 %endif
338
339 # handle cmake & ccache
340 # http://stackoverflow.com/questions/1815688/how-to-use-ccache-with-cmake
341 # ASM fix: http://lists.busybox.net/pipermail/buildroot/2013-March/069436.html
342 if [[ "%{__cc}" = *ccache* ]]; then
343         cc="%{__cc}"
344         cxx="%{__cxx}"
345         ccache="
346         -DCMAKE_C_COMPILER="ccache" -DCMAKE_C_COMPILER_ARG1="${cc#ccache }" \
347         -DCMAKE_CXX_COMPILER="ccache" -DCMAKE_CXX_COMPILER_ARG1="${cxx#ccache }" \
348         -DCMAKE_ASM_COMPILER="${cc#ccache }" \
349         "
350 else
351         ccache="
352         -DCMAKE_C_COMPILER="%{__cc}" \
353         -DCMAKE_CXX_COMPILER="%{__cxx}" \
354         -DCMAKE_ASM_COMPILER="%{__cc}" \
355         "
356 fi
357
358 mkdir -p build
359 cd build
360 %cmake .. \
361         $ccache \
362         -Wno-dev \
363         -DBUILD_DOCUMENTATION:BOOL=ON \
364         -DBUILD_EXAMPLES:BOOL=ON \
365         -DBUILD_SHARED_LIBS:BOOL=ON \
366         -DBUILD_TESTING:BOOL=ON \
367         -DCMAKE_SKIP_RPATH:BOOL=ON \
368         -DOPENGL_INCLUDE_PATH:PATH=%{_includedir}/GL \
369         -DPYTHON_INCLUDE_PATH:PATH=%{py_incdir} \
370         -DPYTHON_LIBRARY:FILEPATH=%{_libdir}/libpython%{py_ver}.so \
371         -DPYTHON_UTIL_LIBRARY:PATH=%{_libdir}/libutil.so \
372         -DTCL_INCLUDE_PATH:PATH=%{_includedir} \
373         -DTCL_LIBRARY:PATH=%{_libdir}/libtcl.so \
374         -DTK_INCLUDE_PATH:PATH=%{_includedir} \
375         -DTK_LIBRARY:PATH=%{_libdir}/libtk.so \
376         -DVTK_DATA_ROOT:PATH=%{_datadir}/vtk-6.3 \
377         -DVTK_CUSTOM_LIBRARY_SUFFIX="" \
378         -DVTK_INSTALL_ARCHIVE_DIR:PATH=%{_lib}/vtk \
379         -DVTK_INSTALL_INCLUDE_DIR:PATH=include/vtk \
380         -DVTK_INSTALL_LIBRARY_DIR:PATH=%{_lib}/vtk \
381         -DVTK_INSTALL_PACKAGE_DIR:PATH=%{_lib}/cmake/vtk \
382         -DVTK_INSTALL_TCL_DIR:PATH=share/tcl%{tcl_version}/vtk \
383         -DVTK_INSTALL_PYTHON_MODULE_DIR:PATH=%{py_sitedir} \
384         -DVTK_INSTALL_QT_DIR=/%{_lib}/qt4/plugins/designer \
385         -DVTK_FFMPEG_HAS_OLD_HEADER:BOOL=OFF \
386         %{?with_OSMesa:-DVTK_OPENGL_HAS_OSMESA:BOOL=ON} \
387         -DVTK_WRAP_PYTHON:BOOL=ON \
388         -DVTK_PYTHON_SETUP_ARGS="--prefix=/usr --root=$RPM_BUILD_ROOT" \
389         -DVTK_USE_SYSTEM_LIBRARIES:BOOL=ON \
390         -DVTK_USE_OGGTHEORA_ENCODER:BOOL=ON \
391         -DVTK_USE_RENDERING:BOOL=ON \
392         -DVTK_USE_SYSTEM_HDF5:BOOL=ON \
393         -DVTK_USE_SYSTEM_XDMF2:BOOL=OFF \
394         %{!?with_system_proj:-DVTK_USE_SYSTEM_LIBPROJ4:BOOL=OFF} \
395 %if %{with java}
396         -DVTK_WRAP_JAVA:BOOL=ON \
397         -DJAVA_INCLUDE_PATH:PATH=$JAVA_HOME/include \
398         -DJAVA_INCLUDE_PATH2:PATH=$JAVA_HOME/include/linux \
399         -DJAVA_AWT_INCLUDE_PATH:PATH=$JAVA_HOME/include \
400 %else
401         -DVTK_WRAP_JAVA:BOOL=OFF \
402 %endif
403         -DVTK_WRAP_PYTHON:BOOL=ON \
404         %{?with_sip:-DVTK_WRAP_PYTHON_SIP:BOOL=ON} \
405         -DVTK_WRAP_TCL:BOOL=ON \
406         -DVTK_Group_Imaging:BOOL=ON \
407         -DVTK_Group_Qt:BOOL=ON \
408         -DVTK_Group_Rendering:BOOL=ON \
409         -DVTK_Group_StandAlone:BOOL=ON \
410         -DVTK_Group_Tk:BOOL=ON \
411         -DVTK_Group_Views:BOOL=ON \
412         -DModule_vtkFiltersReebGraph:BOOL=ON \
413         -DModule_vtkFiltersStatisticsGnuR:BOOL=ON \
414         %{?with_ffmpeg:-DModule_vtkIOFFMPEG:BOOL=ON} \
415         -DModule_vtkIOGDAL:BOOL=ON \
416         -DModule_vtkIOGeoJSON:BOOL=ON \
417         -DModule_vtkIOMySQL:BOOL=ON \
418         -DModule_vtkIOODBC:BOOL=ON \
419         -DModule_vtkIOParallelExodus:BOOL=ON \
420         -DModule_vtkIOParallelLSDyna:BOOL=ON \
421         -DModule_vtkIOPostgreSQL:BOOL=ON \
422         -DModule_vtkIOVPIC:BOOL=ON \
423         -DModule_vtkIOXdmf2:BOOL=ON \
424         -DModule_vtkInfovisBoost:BOOL=ON \
425         -DModule_vtkInfovisBoostGraphAlgorithms:BOOL=ON \
426         -DModule_vtkRenderingFreeTypeFontConfig:BOOL=ON \
427         -DModule_vtkRenderingMatplotlib:BOOL=ON \
428         -DModule_vtkRenderingParallel:BOOL=ON
429 # TODO: -DModule_vtkAcceleratorsDax:BOOL=ON (BR: FindDax.cmake, maybe http://www.daxtoolkit.org/ ?)
430 # TODO: -DModule_vtkAcceleratorsPiston:BOOL=ON (on bcond, BR: CUDA)
431 # TODO: -DModule_vtkFiltersParallelFlowPaths:BOOL=ON (BR: MPI)
432 # TODO: -DModule_vtkFiltersParallelStatistics:BOOL=ON (BR: MPI)
433 # TODO: -DModule_vtkInfovisParallel:BOOL=ON (BR: MPI)
434 # TODO: -DModule_vtkRenderingParallelLIC:BOOL=ON (BR: MPI)
435
436 %{__make}
437
438 %install
439 rm -rf $RPM_BUILD_ROOT
440 install -d $RPM_BUILD_ROOT{%{_sysconfdir}/ld.so.conf.d,%{_examplesdir}/%{name}-%{version}}
441
442 %{__make} -C build install \
443         DESTDIR=$RPM_BUILD_ROOT
444
445 # ld config
446 echo %{_libdir}/vtk > $RPM_BUILD_ROOT%{_sysconfdir}/ld.so.conf.d/vtk-%{_arch}.conf
447
448 for f in $(cd build/ExternalData/Testing ; find Data -type l); do
449         install -Dp build/ExternalData/Testing/$f $RPM_BUILD_ROOT%{_datadir}/vtk-6.3/$f
450 done
451
452 # Install utilities
453 install build/bin/lproj $RPM_BUILD_ROOT%{_bindir}
454
455 # Install examples
456 for f in \
457 AmbientSpheres \
458 Arrays \
459 BalloonWidget \
460 BandedContours \
461 Cone \
462 Cone2 \
463 Cone3 \
464 Cone4 \
465 Cone5 \
466 Cone6 \
467 Cube \
468 Cylinder \
469 Delaunay3D \
470 Delaunay3DAlpha \
471 DiffuseSpheres \
472 DumpXMLFile \
473 FilledContours \
474 FixedPointVolumeRayCastMapperCT \
475 GPURenderDemo \
476 Generate2DAMRDataSetWithPulse \
477 Generate3DAMRDataSetWithPulse \
478 GenerateCubesFromLabels \
479 GenerateModelsFromLabels \
480 HierarchicalBoxPipeline \
481 ImageDataLIC2DDemo \
482 ImageSlicing \
483 LabeledMesh \
484 Medical1 \
485 Medical2 \
486 Medical3 \
487 Medical4 \
488 MultiBlock \
489 ParticleReader \
490 RGrid \
491 SGrid \
492 SimpleView \
493 Slider \
494 Slider2D \
495 SpecularSpheres \
496 StructuredGridLIC2DDemo \
497 SurfaceLICDemo \
498 TimeRenderer \
499 TimeRenderer2 \
500 TubesWithVaryingRadiusAndColors \
501 finance ; do
502         install build/bin/$f $RPM_BUILD_ROOT%{_bindir}
503 done
504
505 # Install test binaries
506 for f in build/bin/*Tests build/bin/Test* build/bin/VTKBenchMark; do
507         install $f $RPM_BUILD_ROOT%{_bindir}
508 done
509
510 %if %{with java}
511 install -p build/bin/VTKJavaExecutable $RPM_BUILD_ROOT%{_bindir}
512 %endif
513 install -p build/bin/vtkpython $RPM_BUILD_ROOT%{_bindir}
514
515 # unwanted doxygen files and misplaced verdict docs
516 %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/vtk-6.3/{doxygen,verdict}
517
518 # only *.pyc are built by default, add *.pyo
519 %py_ocomp $RPM_BUILD_ROOT%{py_sitedir}/vtk
520 %py_postclean
521
522 %clean
523 rm -rf $RPM_BUILD_ROOT
524
525 %post   -p /sbin/ldconfig
526 %postun -p /sbin/ldconfig
527
528 %post   qt -p /sbin/ldconfig
529 %postun qt -p /sbin/ldconfig
530
531 %post   java -p /sbin/ldconfig
532 %postun java -p /sbin/ldconfig
533
534 %post   python -p /sbin/ldconfig
535 %postun python -p /sbin/ldconfig
536
537 %post   tcl -p /sbin/ldconfig
538 %postun tcl -p /sbin/ldconfig
539
540 %files
541 %defattr(644,root,root,755)
542 %doc README.md vtkLogo.jpg vtkBanner.gif Wrapping/Tools/README*
543 %config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/ld.so.conf.d/vtk-%{_arch}.conf
544 %dir %{_libdir}/vtk
545 %attr(755,root,root) %{_libdir}/vtk/libvtkChartsCore.so.1
546 %attr(755,root,root) %{_libdir}/vtk/libvtkCommon*.so.1
547 %attr(755,root,root) %{_libdir}/vtk/libvtkDICOMParser.so.1
548 %attr(755,root,root) %{_libdir}/vtk/libvtkDomainsChemistry.so.1
549 %attr(755,root,root) %{_libdir}/vtk/libvtkFilters*.so.1
550 %attr(755,root,root) %{_libdir}/vtk/libvtkGeovisCore.so.1
551 %attr(755,root,root) %{_libdir}/vtk/libvtkIO*.so.1
552 %attr(755,root,root) %{_libdir}/vtk/libvtkImaging*.so.1
553 %attr(755,root,root) %{_libdir}/vtk/libvtkInfovis*.so.1
554 %attr(755,root,root) %{_libdir}/vtk/libvtkInteraction*.so.1
555 %attr(755,root,root) %{_libdir}/vtk/libvtkLocalExample.so.1
556 %attr(755,root,root) %{_libdir}/vtk/libvtkParallelCore.so.1
557 %attr(755,root,root) %{_libdir}/vtk/libvtkRenderingAnnotation.so.1
558 %attr(755,root,root) %{_libdir}/vtk/libvtkRenderingContext2D.so.1
559 %attr(755,root,root) %{_libdir}/vtk/libvtkRenderingContextOpenGL.so.1
560 %attr(755,root,root) %{_libdir}/vtk/libvtkRenderingCore.so.1
561 %attr(755,root,root) %{_libdir}/vtk/libvtkRenderingFreeType.so.1
562 %attr(755,root,root) %{_libdir}/vtk/libvtkRenderingFreeTypeFontConfig.so.1
563 %attr(755,root,root) %{_libdir}/vtk/libvtkRenderingGL2PS.so.1
564 %attr(755,root,root) %{_libdir}/vtk/libvtkRenderingImage.so.1
565 %attr(755,root,root) %{_libdir}/vtk/libvtkRenderingLIC.so.1
566 %attr(755,root,root) %{_libdir}/vtk/libvtkRenderingLOD.so.1
567 %attr(755,root,root) %{_libdir}/vtk/libvtkRenderingLabel.so.1
568 %attr(755,root,root) %{_libdir}/vtk/libvtkRenderingOpenGL.so.1
569 %attr(755,root,root) %{_libdir}/vtk/libvtkRenderingParallel.so.1
570 %attr(755,root,root) %{_libdir}/vtk/libvtkRenderingVolume.so.1
571 %attr(755,root,root) %{_libdir}/vtk/libvtkRenderingVolumeOpenGL.so.1
572 %attr(755,root,root) %{_libdir}/vtk/libvtkTesting*.so.1
573 %attr(755,root,root) %{_libdir}/vtk/libvtkVPIC.so.1
574 %attr(755,root,root) %{_libdir}/vtk/libvtkViewsContext2D.so.1
575 %attr(755,root,root) %{_libdir}/vtk/libvtkViewsCore.so.1
576 %attr(755,root,root) %{_libdir}/vtk/libvtkViewsGeovis.so.1
577 %attr(755,root,root) %{_libdir}/vtk/libvtkViewsInfovis.so.1
578 %attr(755,root,root) %{_libdir}/vtk/libvtkalglib.so.1
579 %attr(755,root,root) %{_libdir}/vtk/libvtkexoIIc.so.1
580 %attr(755,root,root) %{_libdir}/vtk/libvtkftgl.so.1
581 %attr(755,root,root) %{_libdir}/vtk/libvtkmetaio.so.1
582 %attr(755,root,root) %{_libdir}/vtk/libvtkproj4.so.1
583 %attr(755,root,root) %{_libdir}/vtk/libvtksqlite.so.1
584 %attr(755,root,root) %{_libdir}/vtk/libvtksys.so.1
585 %attr(755,root,root) %{_libdir}/vtk/libvtkverdict.so.1
586 %attr(755,root,root) %{_libdir}/vtk/libvtkxdmf2.so.1
587 %exclude %{_libdir}/vtk/libvtk*Java.so.1
588 %exclude %{_libdir}/vtk/libvtk*Python2?D.so.1
589 %exclude %{_libdir}/vtk/libvtkWrappingPython2?Core.so.1
590 %exclude %{_libdir}/vtk/libvtk*TCL.so.1
591
592 %files devel
593 %defattr(644,root,root,755)
594 %doc Utilities/Upgrading/*
595 %attr(755,root,root) %{_bindir}/lproj
596 %attr(755,root,root) %{_bindir}/vtkEncodeString
597 %attr(755,root,root) %{_bindir}/vtkHashSource
598 %attr(755,root,root) %{_bindir}/vtkParseOGLExt
599 %attr(755,root,root) %{_bindir}/vtkWrapHierarchy
600 %attr(755,root,root) %{_libdir}/vtk/libvtkChartsCore.so
601 %attr(755,root,root) %{_libdir}/vtk/libvtkCommon*.so
602 %attr(755,root,root) %{_libdir}/vtk/libvtkDICOMParser.so
603 %attr(755,root,root) %{_libdir}/vtk/libvtkDomainsChemistry.so
604 %attr(755,root,root) %{_libdir}/vtk/libvtkFilters*.so
605 %attr(755,root,root) %{_libdir}/vtk/libvtkGeovisCore.so
606 %attr(755,root,root) %{_libdir}/vtk/libvtkIO*.so
607 %attr(755,root,root) %{_libdir}/vtk/libvtkImaging*.so
608 %attr(755,root,root) %{_libdir}/vtk/libvtkInfovis*.so
609 %attr(755,root,root) %{_libdir}/vtk/libvtkInteraction*.so
610 %attr(755,root,root) %{_libdir}/vtk/libvtkLocalExample.so
611 %attr(755,root,root) %{_libdir}/vtk/libvtkParallelCore.so
612 %attr(755,root,root) %{_libdir}/vtk/libvtkRenderingAnnotation.so
613 %attr(755,root,root) %{_libdir}/vtk/libvtkRenderingContext2D.so
614 %attr(755,root,root) %{_libdir}/vtk/libvtkRenderingContextOpenGL.so
615 %attr(755,root,root) %{_libdir}/vtk/libvtkRenderingCore.so
616 %attr(755,root,root) %{_libdir}/vtk/libvtkRenderingFreeType.so
617 %attr(755,root,root) %{_libdir}/vtk/libvtkRenderingFreeTypeFontConfig.so
618 %attr(755,root,root) %{_libdir}/vtk/libvtkRenderingGL2PS.so
619 %attr(755,root,root) %{_libdir}/vtk/libvtkRenderingImage.so
620 %attr(755,root,root) %{_libdir}/vtk/libvtkRenderingLIC.so
621 %attr(755,root,root) %{_libdir}/vtk/libvtkRenderingLOD.so
622 %attr(755,root,root) %{_libdir}/vtk/libvtkRenderingLabel.so
623 %attr(755,root,root) %{_libdir}/vtk/libvtkRenderingOpenGL.so
624 %attr(755,root,root) %{_libdir}/vtk/libvtkRenderingParallel.so
625 %attr(755,root,root) %{_libdir}/vtk/libvtkRenderingVolume.so
626 %attr(755,root,root) %{_libdir}/vtk/libvtkRenderingVolumeOpenGL.so
627 %attr(755,root,root) %{_libdir}/vtk/libvtkTesting*.so
628 %attr(755,root,root) %{_libdir}/vtk/libvtkVPIC.so
629 %attr(755,root,root) %{_libdir}/vtk/libvtkViewsContext2D.so
630 %attr(755,root,root) %{_libdir}/vtk/libvtkViewsCore.so
631 %attr(755,root,root) %{_libdir}/vtk/libvtkViewsGeovis.so
632 %attr(755,root,root) %{_libdir}/vtk/libvtkViewsInfovis.so
633 %attr(755,root,root) %{_libdir}/vtk/libvtkalglib.so
634 %attr(755,root,root) %{_libdir}/vtk/libvtkexoIIc.so
635 %attr(755,root,root) %{_libdir}/vtk/libvtkftgl.so
636 %attr(755,root,root) %{_libdir}/vtk/libvtkmetaio.so
637 %attr(755,root,root) %{_libdir}/vtk/libvtkproj4.so
638 %attr(755,root,root) %{_libdir}/vtk/libvtksqlite.so
639 %attr(755,root,root) %{_libdir}/vtk/libvtksys.so
640 %attr(755,root,root) %{_libdir}/vtk/libvtkverdict.so
641 %attr(755,root,root) %{_libdir}/vtk/libvtkxdmf2.so
642 %exclude %{_libdir}/vtk/libvtk*Java.so
643 %exclude %{_libdir}/vtk/libvtk*Python2?D.so
644 %exclude %{_libdir}/vtk/libvtkWrappingPython2?Core.so
645 %exclude %{_libdir}/vtk/libvtk*TCL.so
646 %{_libdir}/vtk/libvtkWrappingTools.a
647 %dir %{_includedir}/vtk
648 %{_includedir}/vtk/VPIC
649 %{_includedir}/vtk/DICOM*.h
650 %{_includedir}/vtk/DatabaseSchemaWith2Tables.h
651 %{_includedir}/vtk/alglib
652 %{_includedir}/vtk/vtklibproj4
653 %{_includedir}/vtk/vtkmetaio
654 %{_includedir}/vtk/vtkverdict
655 %{_includedir}/vtk/vtksqlite
656 %{_includedir}/vtk/vtksys
657 %{_includedir}/vtk/vtkxdmf2
658 %{_includedir}/vtk/vtk*.h
659 %{_includedir}/vtk/vtk*.txx
660 %exclude %{_includedir}/vtk/vtkEventQtSlotConnect.h
661 %exclude %{_includedir}/vtk/vtkGUISupportQt*.h
662 %exclude %{_includedir}/vtk/vtkJavaUtil.h
663 %exclude %{_includedir}/vtk/vtkWrappingJavaModule.h
664 %exclude %{_includedir}/vtk/vtkPython*.h
665 %exclude %{_includedir}/vtk/vtkQImageToImageSource.h
666 %exclude %{_includedir}/vtk/vtkQt*.h
667 %exclude %{_includedir}/vtk/vtkRenderingQtModule.h
668 %exclude %{_includedir}/vtk/vtkTcl*.h
669 %exclude %{_includedir}/vtk/vtkTk*.h
670 %exclude %{_includedir}/vtk/vtkViewsQtModule.h
671 %{_libdir}/cmake/vtk
672
673 %files qt
674 %defattr(644,root,root,755)
675 %attr(755,root,root) %{_libdir}/vtk/libvtkGUISupportQt.so.1
676 %attr(755,root,root) %{_libdir}/vtk/libvtkGUISupportQtOpenGL.so.1
677 %attr(755,root,root) %{_libdir}/vtk/libvtkGUISupportQtSQL.so.1
678 %attr(755,root,root) %{_libdir}/vtk/libvtkGUISupportQtWebkit.so.1
679 %attr(755,root,root) %{_libdir}/vtk/libvtkRenderingQt.so.1
680 %attr(755,root,root) %{_libdir}/vtk/libvtkViewsQt.so.1
681 %attr(755,root,root) %{_libdir}/qt4/plugins/designer/libQVTKWidgetPlugin.so
682
683 %files qt-devel
684 %defattr(644,root,root,755)
685 %attr(755,root,root) %{_libdir}/vtk/libvtkGUISupportQt.so
686 %attr(755,root,root) %{_libdir}/vtk/libvtkGUISupportQtOpenGL.so
687 %attr(755,root,root) %{_libdir}/vtk/libvtkGUISupportQtSQL.so
688 %attr(755,root,root) %{_libdir}/vtk/libvtkGUISupportQtWebkit.so
689 %attr(755,root,root) %{_libdir}/vtk/libvtkRenderingQt.so
690 %attr(755,root,root) %{_libdir}/vtk/libvtkViewsQt.so
691 %{_includedir}/vtk/QFilterTreeProxyModel.h
692 %{_includedir}/vtk/QVTK*.h
693 %{_includedir}/vtk/vtkEventQtSlotConnect.h
694 %{_includedir}/vtk/vtkGUISupportQt*.h
695 %{_includedir}/vtk/vtkQImageToImageSource.h
696 %{_includedir}/vtk/vtkQt*.h
697 %{_includedir}/vtk/vtkRenderingQtModule.h
698 %{_includedir}/vtk/vtkViewsQtModule.h
699
700 %if %{with java}
701 %files java
702 %defattr(644,root,root,755)
703 %attr(755,root,root) %{_bindir}/VTKJavaExecutable
704 %attr(755,root,root) %{_bindir}/vtkParseJava
705 %attr(755,root,root) %{_bindir}/vtkWrapJava
706 # common library
707 %attr(755,root,root) %{_libdir}/vtk/libvtkWrappingJava.so.1
708 # java modules
709 %attr(755,root,root) %{_libdir}/vtk/libvtkChartsCoreJava.so
710 %attr(755,root,root) %{_libdir}/vtk/libvtkCommon*Java.so
711 %attr(755,root,root) %{_libdir}/vtk/libvtkDomainsChemistryJava.so
712 %attr(755,root,root) %{_libdir}/vtk/libvtkFilters*Java.so
713 %attr(755,root,root) %{_libdir}/vtk/libvtkGeovisCoreJava.so
714 %attr(755,root,root) %{_libdir}/vtk/libvtkIO*Java.so
715 %attr(755,root,root) %{_libdir}/vtk/libvtkImaging*Java.so
716 %attr(755,root,root) %{_libdir}/vtk/libvtkInfovis*Java.so
717 %attr(755,root,root) %{_libdir}/vtk/libvtkInteraction*Java.so
718 %attr(755,root,root) %{_libdir}/vtk/libvtkLocalExampleJava.so
719 %attr(755,root,root) %{_libdir}/vtk/libvtkParallelCoreJava.so
720 %attr(755,root,root) %{_libdir}/vtk/libvtkPythonInterpreterJava.so
721 %attr(755,root,root) %{_libdir}/vtk/libvtkRendering*Java.so
722 %attr(755,root,root) %{_libdir}/vtk/libvtkTestingRenderingJava.so
723 %attr(755,root,root) %{_libdir}/vtk/libvtkViews*Java.so
724 %{_libdir}/vtk/vtk.jar
725
726 %files java-devel
727 %defattr(644,root,root,755)
728 %attr(755,root,root) %{_libdir}/vtk/libvtkWrappingJava.so
729 %{_includedir}/vtk/vtkJavaUtil.h
730 %{_includedir}/vtk/vtkWrappingJavaModule.h
731 %endif
732
733 %files python
734 %defattr(644,root,root,755)
735 %doc Wrapping/Python/README*
736 %attr(755,root,root) %{_bindir}/vtkWrapPython
737 %attr(755,root,root) %{_bindir}/vtkWrapPythonInit
738 %attr(755,root,root) %{_bindir}/vtkpython
739 %attr(755,root,root) %{_libdir}/vtk/libvtk*Python2?D.so.1
740 %attr(755,root,root) %{_libdir}/vtk/libvtkPythonInterpreter.so.1
741 # RenderingMatplotlib requires PythonInterpreter
742 %attr(755,root,root) %{_libdir}/vtk/libvtkRenderingMatplotlib.so.1
743 %attr(755,root,root) %{_libdir}/vtk/libvtkRenderingPythonTkWidgets-6.3.so
744 %attr(755,root,root) %{_libdir}/vtk/libvtkWrappingPython2?Core.so.1
745 %dir %{py_sitedir}/vtk
746 %{py_sitedir}/vtk/*.py[co]
747 %dir %{py_sitedir}/vtk/gtk
748 %{py_sitedir}/vtk/gtk/*.py[co]
749 %dir %{py_sitedir}/vtk/numpy_interface
750 %{py_sitedir}/vtk/numpy_interface/*.py[co]
751 %dir %{py_sitedir}/vtk/qt4
752 %{py_sitedir}/vtk/qt4/*.py[co]
753 %dir %{py_sitedir}/vtk/test
754 %{py_sitedir}/vtk/test/*.py[co]
755 %dir %{py_sitedir}/vtk/tk
756 %{py_sitedir}/vtk/tk/*.py[co]
757 %dir %{py_sitedir}/vtk/util
758 %{py_sitedir}/vtk/util/*.py[co]
759 %dir %{py_sitedir}/vtk/wx
760 %{py_sitedir}/vtk/wx/*.py[co]
761 %attr(755,root,root) %{py_sitedir}/vtk/vtk*Python.so
762
763 %files python-devel
764 %defattr(644,root,root,755)
765 %attr(755,root,root) %{_libdir}/vtk/libvtk*Python2?D.so
766 %attr(755,root,root) %{_libdir}/vtk/libvtkPythonInterpreter.so
767 %attr(755,root,root) %{_libdir}/vtk/libvtkRenderingMatplotlib.so
768 %attr(755,root,root) %{_libdir}/vtk/libvtkWrappingPython2?Core.so
769 %{_includedir}/vtk/PyVTK*.h
770 %{_includedir}/vtk/vtkPython*.h
771
772 %files tcl
773 %defattr(644,root,root,755)
774 %doc Wrapping/Tcl/README*
775 %attr(755,root,root) %{_bindir}/vtkWrapTcl
776 %attr(755,root,root) %{_bindir}/vtkWrapTclInit
777 %attr(755,root,root) %{_bindir}/vtk
778 %{_datadir}/tcl%{tcl_version}/vtk
779 %attr(755,root,root) %{_libdir}/vtk/libvtk*TCL.so.1
780
781 %files tcl-devel
782 %defattr(644,root,root,755)
783 %attr(755,root,root) %{_libdir}/vtk/libvtk*TCL.so
784 %{_includedir}/vtk/vtkTcl*.h
785 %{_includedir}/vtk/vtkTk*.h
786
787 %files test-suite
788 %defattr(644,root,root,755)
789 %attr(755,root,root) %{_bindir}/*Tests
790 %attr(755,root,root) %{_bindir}/Test*
791 %attr(755,root,root) %{_bindir}/VTKBenchMark
792
793 %files examples
794 %defattr(644,root,root,755)
795 %attr(755,root,root) %{_bindir}/AmbientSpheres
796 %attr(755,root,root) %{_bindir}/Arrays
797 %attr(755,root,root) %{_bindir}/Cone
798 %attr(755,root,root) %{_bindir}/Cone2
799 %attr(755,root,root) %{_bindir}/Cone3
800 %attr(755,root,root) %{_bindir}/Cone4
801 %attr(755,root,root) %{_bindir}/Cone5
802 %attr(755,root,root) %{_bindir}/Cone6
803 %attr(755,root,root) %{_bindir}/Cube
804 %attr(755,root,root) %{_bindir}/Cylinder
805 %attr(755,root,root) %{_bindir}/DiffuseSpheres
806 %attr(755,root,root) %{_bindir}/HierarchicalBoxPipeline
807 %attr(755,root,root) %{_bindir}/Medical1
808 %attr(755,root,root) %{_bindir}/Medical2
809 %attr(755,root,root) %{_bindir}/Medical3
810 %attr(755,root,root) %{_bindir}/Medical4
811 %attr(755,root,root) %{_bindir}/MultiBlock
812 %attr(755,root,root) %{_bindir}/RGrid
813 %attr(755,root,root) %{_bindir}/SGrid
814 %attr(755,root,root) %{_bindir}/SimpleView
815 %attr(755,root,root) %{_bindir}/SpecularSpheres
816 %attr(755,root,root) %{_bindir}/finance
817 %attr(755,root,root) %{_bindir}/BalloonWidget
818 %attr(755,root,root) %{_bindir}/BandedContours
819 %attr(755,root,root) %{_bindir}/Delaunay3D
820 %attr(755,root,root) %{_bindir}/Delaunay3DAlpha
821 %attr(755,root,root) %{_bindir}/DumpXMLFile
822 %attr(755,root,root) %{_bindir}/FilledContours
823 %attr(755,root,root) %{_bindir}/FixedPointVolumeRayCastMapperCT
824 %attr(755,root,root) %{_bindir}/GPURenderDemo
825 %attr(755,root,root) %{_bindir}/Generate2DAMRDataSetWithPulse
826 %attr(755,root,root) %{_bindir}/Generate3DAMRDataSetWithPulse
827 %attr(755,root,root) %{_bindir}/GenerateCubesFromLabels
828 %attr(755,root,root) %{_bindir}/GenerateModelsFromLabels
829 %attr(755,root,root) %{_bindir}/ImageDataLIC2DDemo
830 %attr(755,root,root) %{_bindir}/ImageSlicing
831 %attr(755,root,root) %{_bindir}/LabeledMesh
832 %attr(755,root,root) %{_bindir}/ParticleReader
833 %attr(755,root,root) %{_bindir}/Slider
834 %attr(755,root,root) %{_bindir}/Slider2D
835 %attr(755,root,root) %{_bindir}/StructuredGridLIC2DDemo
836 %attr(755,root,root) %{_bindir}/SurfaceLICDemo
837 %attr(755,root,root) %{_bindir}/TimeRenderer
838 %attr(755,root,root) %{_bindir}/TimeRenderer2
839 %attr(755,root,root) %{_bindir}/TubesWithVaryingRadiusAndColors
840 %{_examplesdir}/%{name}-%{version}
841
842 %files data
843 %defattr(644,root,root,755)
844 %dir %{_datadir}/vtk-6.3
845 %{_datadir}/vtk-6.3/Data
846 %{_datadir}/vtk-6.3/vtkDomainsChemistry
This page took 0.092346 seconds and 4 git commands to generate.