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