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