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