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