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