]>
Commit | Line | Data |
---|---|---|
52d6c353 AG |
1 | # |
2 | # ToDo: | |
0b356dc9 | 3 | # - make it all work |
52d6c353 | 4 | # |
e3358d84 | 5 | # Conditional build |
52d6c353 AG |
6 | %bcond_with java # build with Java support (not yet done) |
7 | # | |
3b8bf081 | 8 | Summary: Toolkit for 3D computer graphics, image processing, and visualization |
06b6c677 | 9 | Summary(pl.UTF-8): Zestaw narzędzi do trójwymiarowej grafiki, przetwarzania obrazu i wizualizacji |
3b8bf081 | 10 | Name: vtk |
11 | Version: 4.2.2 | |
12 | Release: 0.1 | |
13 | License: BSD | |
0b356dc9 AG |
14 | Group: Libraries |
15 | Source0: http://dl.sourceforge.net/vtk/VTK-4.2-LatestRelease.tar.gz | |
16 | # Source0-md5: 41382fb3f8d15e76d7464c11045ee7a5 | |
877ece71 AG |
17 | Source1: http://dl.sourceforge.net/vtk/VTKData-4.2.tar.gz |
18 | # Source1-md5: 2bbd1a62884906eac4f279441cbb9cfa | |
52d6c353 | 19 | Patch0: %{name}-cmakefiles.patch |
3b8bf081 | 20 | URL: http://public.kitware.com/VTK/ |
c8393523 | 21 | BuildRequires: XFree86-devel |
0b356dc9 | 22 | BuildRequires: cmake |
c8393523 | 23 | BuildRequires: doxygen |
0b356dc9 AG |
24 | BuildRequires: python-devel |
25 | BuildRequires: tcl | |
0b356dc9 | 26 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
52d6c353 AG |
27 | |
28 | %description | |
3b8bf081 | 29 | The Visualization ToolKit (VTK) is an object oriented software system |
30 | for 3D computer graphics, image processing, and visualization. VTK | |
31 | includes a textbook, a C++ class library, and several interpreted | |
32 | interface layers including Tcl/Tk, Java, and Python. VTK supports a | |
33 | wide variety of visualization algorithms including scalar, vector, | |
34 | tensor, texture, and volumetric methods. It also supports advanced | |
35 | modeling techniques like implicit modeling, polygon reduction, mesh | |
0b356dc9 | 36 | smoothing, cutting, contouring, and Delaunay triangulation. Moreover, |
3b8bf081 | 37 | dozens of imaging algorithms have been integrated into the system. |
38 | This allows mixing 2D imaging / 3D graphics algorithms and data. | |
39 | ||
aec3ea31 | 40 | NOTE: The Java wrapper is not included by default. You may rebuild |
3b8bf081 | 41 | the srpm using "--with java" with JDK installed. |
42 | ||
43 | NOTE: All patented routines which are part of the package have been | |
44 | removed in this version. | |
52d6c353 | 45 | |
eb1fe26e | 46 | %description -l pl.UTF-8 |
c8393523 | 47 | Visualization TookKit (VTK) to obiektowo zorientowany system |
eb1fe26e JR |
48 | oprogramowania do trójwymiarowej grafiki komputerowej, przetwarzania |
49 | obrazu i wizualizacji. VTK zawiera książkę, bibliotekę klas C++ oraz | |
50 | kilka interpretowanych warstw interfejsów, w tym dla Tcl/Tk, Javy i | |
51 | Pythona. VTK obsługuje szeroki zakres algorytmów wizualizacji, w tym | |
c8393523 | 52 | metody skalarne, wektorowe, tensorowe, teksturowe i wolumetryczne. |
eb1fe26e JR |
53 | Obsługuje także zaawansowane techniki modelowania, takie jak |
54 | modelowanie implicite, redukcja wielokątów, wygładzanie siatki, | |
55 | przycinanie, konturowanie i triangulacja Delaunaya. Co więcej, wiele | |
56 | algorytmów obrazowania zostało zintegrowanych z systemem. Pozwala to | |
57 | na mieszanie algorytmów obrazowania 2D i grafiki 3D. | |
c8393523 | 58 | |
eb1fe26e JR |
59 | UWAGA: wrapper Javy nie został włączony domyślnie. Można przebudować |
60 | srpm-a z opcją "--with java" przy zainstalowanym JDK. | |
c8393523 | 61 | |
eb1fe26e JR |
62 | UWAGA: wszystkie opatentowane procedury będące częścią tego pakietu |
63 | zostały usunięte w tej wersji. | |
c8393523 | 64 | |
52d6c353 | 65 | %package devel |
3b8bf081 | 66 | Summary: VTK header files for building C++ code |
06b6c677 | 67 | Summary(pl.UTF-8): Pliki nagłówkowe VTK dla C++ |
0b356dc9 | 68 | Group: Development |
c8393523 | 69 | Requires: %{name} = %{version}-%{release} |
52d6c353 | 70 | |
0b356dc9 AG |
71 | %description devel |
72 | This provides the VTK header files required to compile C++ programs | |
73 | that use VTK to do 3D visualisation. | |
52d6c353 | 74 | |
eb1fe26e JR |
75 | %description devel -l pl.UTF-8 |
76 | Ten pakiet dostarcza pliki nagłówkowe VTK do kompilowania programów | |
77 | C++ używających VTK do wizualizacji 3D. | |
c8393523 | 78 | |
52d6c353 | 79 | %package tcl |
3b8bf081 | 80 | Summary: Tcl bindings for VTK |
06b6c677 | 81 | Summary(pl.UTF-8): Dowiązania Tcl do VTK |
0b356dc9 | 82 | Group: Libraries |
c8393523 | 83 | Requires: %{name} = %{version}-%{release} |
52d6c353 AG |
84 | |
85 | %description tcl | |
c8393523 | 86 | This package contains Tcl bindings for VTK. |
52d6c353 | 87 | |
eb1fe26e JR |
88 | %description tcl -l pl.UTF-8 |
89 | Ten pakiet zawiera dowiązania Tcl dla VTK. | |
52d6c353 AG |
90 | |
91 | %package python | |
3b8bf081 | 92 | Summary: Python bindings for VTK |
06b6c677 | 93 | Summary(pl.UTF-8): Dowiązania Pythona do VTK |
0b356dc9 | 94 | Group: Libraries |
c8393523 | 95 | Requires: %{name} = %{version}-%{release} |
52d6c353 | 96 | |
0b356dc9 | 97 | %description python |
c8393523 | 98 | This package contains Python bindings for VTK. |
52d6c353 | 99 | |
eb1fe26e JR |
100 | %description python -l pl.UTF-8 |
101 | Ten pakiet zawiera dowiązania Pythona dla VTK. | |
52d6c353 | 102 | |
52d6c353 | 103 | %package java |
3b8bf081 | 104 | Summary: Java bindings for VTK |
06b6c677 | 105 | Summary(pl.UTF-8): Dowiązania Javy do VTK |
0b356dc9 | 106 | Group: Development/Languages/Java |
c8393523 | 107 | Requires: %{name} = %{version}-%{release} |
52d6c353 AG |
108 | |
109 | %description java | |
c8393523 | 110 | This package contains Java bindings for VTK. |
52d6c353 | 111 | |
eb1fe26e JR |
112 | %description java -l pl.UTF-8 |
113 | Ten pakiet zawiera dowiązania Javy dla VTK. | |
52d6c353 | 114 | |
52d6c353 | 115 | %package examples |
3b8bf081 | 116 | Summary: C++, Tcl and Python example programs/scripts for VTK |
06b6c677 | 117 | Summary(pl.UTF-8): Przykładowe programy/skrypty w C++, Tcl-u i Pythonie dla VTK |
0b356dc9 | 118 | Group: Development/Libraries |
c8393523 JB |
119 | Requires: %{name} = %{version}-%{release} |
120 | Requires: %{name}-data = %{version}-%{release} | |
52d6c353 AG |
121 | |
122 | %description examples | |
0b356dc9 AG |
123 | This package contains all the examples from the VTK source. To compile |
124 | the C++ examples you will need to install the vtk-devel package as | |
125 | well. The Python and Tcl examples can be run with the corresponding | |
126 | packages (vtk-python, vtk-tcl). | |
52d6c353 | 127 | |
eb1fe26e JR |
128 | %description examples -l pl.UTF-8 |
129 | Ten pakiet zawiera wszystkie przykłady ze źródeł VTK. Do skompilowania | |
130 | przykładów w C++ trzeba doinstalować pakiet vtk-devel. Przykłady w | |
131 | Pythonie i Tcl-u można uruchamiać przy użyciu odpowiednich pakietów | |
c8393523 JB |
132 | (vtk-python, vtk-tcl). |
133 | ||
52d6c353 | 134 | %package test-suite |
3b8bf081 | 135 | Summary: Test programs for VTK |
06b6c677 | 136 | Summary(pl.UTF-8): Programy testowe dla VTK |
0b356dc9 | 137 | Group: Development/Libraries |
c8393523 JB |
138 | Requires: %{name} = %{version}-%{release} |
139 | Requires: %{name}-data = %{version}-%{release} | |
52d6c353 AG |
140 | |
141 | %description test-suite | |
3b8bf081 | 142 | This package contains all testing programs from the VTK source. The |
143 | source code of these programs can be found in the vtk-examples | |
144 | package. | |
52d6c353 | 145 | |
eb1fe26e JR |
146 | %description test-suite -l pl.UTF-8 |
147 | Ten pakiet zawiera wszystkie programy testowe ze źródeł VTK. Kod | |
148 | źródłowy tych programów można znaleźć w pakiecie vtk-examples. | |
c8393523 | 149 | |
52d6c353 | 150 | %package data |
3b8bf081 | 151 | Summary: Data files for VTK |
06b6c677 | 152 | Summary(pl.UTF-8): Pliki danych dla VTK |
3b8bf081 | 153 | Group: Development/Libraries |
52d6c353 | 154 | |
0b356dc9 | 155 | %description data |
3b8bf081 | 156 | This package contains all the data from the VTKData repository. These |
c8393523 JB |
157 | data are required to run various examples from the vtk-examples |
158 | package. | |
159 | ||
eb1fe26e JR |
160 | %description data -l pl.UTF-8 |
161 | Ten pakiet zawiera wszystkie dane z repozytorium VTKData. Dane te są | |
162 | potrzebne do uruchamiania różnych przykładów z pakietu vtk-examples. | |
52d6c353 AG |
163 | |
164 | %prep | |
c8393523 | 165 | %setup -q -n VTK-%{version} -a 1 |
52d6c353 AG |
166 | cd Hybrid |
167 | %patch0 -p1 | |
168 | ||
169 | %build | |
170 | #%if %build_java | |
171 | #cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr \ | |
172 | # -DLIBRARY_OUTPUT_PATH:PATH=$RPM_BUILD_DIR/VTK-%version/lib \ | |
173 | # -DEXECUTABLE_OUTPUT_PATH:PATH=$RPM_BUILD_DIR/VTK-%version/bin \ | |
174 | # -DCMAKE_INSTALL_PREFIX:PATH=/usr \ | |
175 | # -DCMAKE_SKIP_RPATH:BOOL=ON \ | |
176 | # -DCMAKE_CXX_FLAGS:STRING="$RPM_OPT_FLAGS" \ | |
177 | # -DCMAKE_C_FLAGS:STRING="$RPM_OPT_FLAGS" \ | |
178 | # -DJAVA_INCLUDE_PATH:PATH=$JAVA_HOME/include | |
179 | # -DJAVA_INCLUDE_PATH2:PATH=$JAVA_HOME/include/linux \ | |
180 | # -DJAVE_AWT_INCLUDE_PATH:PATH=$JAVA_HOME/include \ | |
181 | # -DPYTHON_INCLUDE_PATH:PATH=$(python -c"import os,sys; print os.path.join(sys.exec_prefix, 'include', 'python' + sys.version[:3])") \ | |
182 | # -DPYTHON_LIBRARY:FILEPATH=$(python -c"import os,sys; print os.path.join(sys.exec_prefix, 'lib', 'python' + sys.version[:3], 'config/libpython' + sys.version[:3] + '.a')") \ | |
183 | # -DVTK_DATA_ROOT:PATH=%{_docdir}/vtk-data-%{version} \ | |
184 | # -DVTK_WRAP_PYTHON:BOOL=ON \ | |
185 | # -DVTK_WRAP_JAVA:BOOL=ON \ | |
186 | # -DVTK_WRAP_TCL:BOOL=ON \ | |
187 | # -DVTK_USE_HYBRID:BOOL=ON \ | |
188 | # -DVTK_USE_PARALLEL:BOOL=ON \ | |
189 | # -DVTK_USE_RENDERING:BOOL=ON \ | |
190 | # -DVTK_USE_X:BOOL=ON \ | |
191 | # -DBUILD_DOCUMENTATION:BOOL=ON \ | |
192 | # -DBUILD_EXAMPLES:BOOL=ON \ | |
193 | # -DBUILD_SHARED_LIBS:BOOL=ON \ | |
194 | # -DBUILD_TESTING:BOOL=ON \ | |
195 | # -DOPENGL_INCLUDE_PATH:FILEPATH=/usr/X11R6/include/GL | |
196 | ## -DOPENGL_LIBRARY:FILEPATH=/usr/X11R6/lib/libGL.so.1.0 | |
197 | # | |
198 | #%else | |
199 | #cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr \ | |
200 | # -DLIBRARY_OUTPUT_PATH:PATH=$RPM_BUILD_DIR/VTK-%version/lib \ | |
201 | # -DEXECUTABLE_OUTPUT_PATH:PATH=$RPM_BUILD_DIR/VTK-%version/bin \ | |
202 | # -DCMAKE_INSTALL_PREFIX:PATH=/usr \ | |
203 | # -DCMAKE_SKIP_RPATH:BOOL=ON \ | |
204 | # -DCMAKE_CXX_FLAGS:STRING="$RPM_OPT_FLAGS" \ | |
205 | # -DCMAKE_C_FLAGS:STRING="$RPM_OPT_FLAGS" \ | |
206 | # -DPYTHON_INCLUDE_PATH:PATH=$(python -c"import os,sys; print os.path.join(sys.exec_prefix, 'include', 'python' + sys.version[:3])") \ | |
207 | # -DPYTHON_LIBRARY:FILEPATH=$(python -c"import os,sys; print os.path.join(sys.exec_prefix, 'lib', 'python' + sys.version[:3], 'config/libpython' + sys.version[:3] + '.a')") \ | |
208 | # -DVTK_DATA_ROOT:PATH=%{_datadir}/vtk-data-%{version} \ | |
209 | # -DVTK_WRAP_PYTHON:BOOL=ON \ | |
210 | # -DVTK_WRAP_JAVA:BOOL=off \ | |
211 | # -DVTK_WRAP_TCL:BOOL=ON \ | |
212 | # -DVTK_USE_HYBRID:BOOL=ON \ | |
213 | # -DVTK_USE_PARALLEL:BOOL=ON \ | |
214 | # -DVTK_USE_RENDERING:BOOL=ON \ | |
215 | # -DVTK_USE_X:BOOL=ON \ | |
216 | # -DBUILD_DOCUMENTATION:BOOL=ON \ | |
217 | # -DBUILD_EXAMPLES:BOOL=ON \ | |
218 | # -DBUILD_SHARED_LIBS:BOOL=ON \ | |
219 | # -DBUILD_TESTING:BOOL=ON \ | |
220 | # -DOPENGL_INCLUDE_PATH:FILEPATH=/usr/X11R6/include/GL | |
221 | ## -DOPENGL_LIBRARY:FILEPATH=/usr/X11R6/lib/libGL.so.1.0 | |
222 | # | |
223 | #%endif | |
224 | cmake \ | |
225 | -DCMAKE_INSTALL_PREFIX:PATH=%{_prefix} \ | |
aec3ea31 | 226 | -DLIBRARY_OUTPUT_PATH:PATH=$RPM_BUILD_DIR/VTK-%{version}/lib \ |
227 | -DEXECUTABLE_OUTPUT_PATH:PATH=$RPM_BUILD_DIR/VTK-%{version}/bin \ | |
52d6c353 AG |
228 | -DCMAKE_SKIP_RPATH:BOOL=ON \ |
229 | -DBUILD_EXAMPLES:BOOL=ON \ | |
230 | -DBUILD_SHARED_LIBS:BOOL=ON \ | |
231 | -DBUILD_DOCUMENTATION:BOOL=ON \ | |
232 | -DBUILD_TESTING:BOOL=ON \ | |
233 | -DCMAKE_BACKWARDS_COMPATIBILITY=1.8 \ | |
0b356dc9 | 234 | -DOPENGL_INCLUDE_PATH:PATH=%{_prefix}/X11R6/include/GL \ |
52d6c353 | 235 | -DPYTHON_INCLUDE_PATH:PATH=%{_includedir}/python2.3 \ |
aec3ea31 | 236 | -DPYTHON_LIBRARY:FILEPATH=$(python -c"import os,sys; print os.path.join(sys.exec_prefix, 'lib', 'python' + sys.version |
237 | [:3], 'config/libpython' + sys.version[:3] + '.a')") \ | |
0b356dc9 | 238 | -DPYTHON_UTIL_LIBRARY:PATH=%{_libdir}/libutil.so \ |
52d6c353 AG |
239 | -DTCL_INCLUDE_PATH:PATH=%{_includedir} \ |
240 | -DTCL_LIBRARY:PATH=%{_libdir}/libtcl.so \ | |
241 | -DTK_INCLUDE_PATH:PATH=%{_includedir} \ | |
242 | -DTK_LIBRARY:PATH=%{_libdir}/libtk.so \ | |
243 | -DVTK_DATA_ROOT:PATH=%{_datadir}/vtk \ | |
244 | -DVTK_USE_HYBRID:BOOL=ON \ | |
245 | -DVTK_USE_PARALLEL:BOOL=ON \ | |
246 | -DVTK_USE_PATENTED:BOOL=off \ | |
247 | -DVTK_USE_RENDERING:BOOL=ON \ | |
248 | -DVTK_WRAP_JAVA:BOOL=OFF \ | |
249 | -DVTK_WRAP_PYTHON:BOOL=ON \ | |
250 | -DVTK_WRAP_TCL:BOOL=ON \ | |
251 | -DBUILD_SHARED_LIBS:BOOL=ON \ | |
252 | -DCMAKE_CXX_COMPILER:PATH="%{__cxx}" \ | |
253 | -DCMAKE_C_COMPILER:PATH="%{__cc}" \ | |
254 | -DCMAKE_LINKER_FLAGS:STRING="%{rpmldflags}" \ | |
255 | -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON \ | |
256 | ||
52d6c353 AG |
257 | %{__make} |
258 | ||
259 | %install | |
260 | rm -rf $RPM_BUILD_ROOT | |
261 | ||
262 | #setup python | |
263 | export VTKPYTHONPATH=%(python -c"import os,sys; print os.path.join(sys.exec_prefix, 'lib', 'python' + sys.version[:3],'site-packages')") | |
264 | ||
265 | #install directories | |
0b356dc9 AG |
266 | install -d $RPM_BUILD_ROOT%{_bindir} |
267 | install -d $RPM_BUILD_ROOT%{_libdir}/vtk/python/vtk | |
268 | install -d $RPM_BUILD_ROOT%{_libdir}/vtk/python/vtk/gtk | |
269 | install -d $RPM_BUILD_ROOT%{_libdir}/vtk/python/vtk/qt | |
270 | install -d $RPM_BUILD_ROOT%{_libdir}/vtk/python/vtk/testing | |
271 | install -d $RPM_BUILD_ROOT%{_libdir}/vtk/python/vtk/tk | |
272 | install -d $RPM_BUILD_ROOT%{_libdir}/vtk/python/vtk/util | |
273 | install -d $RPM_BUILD_ROOT%{_libdir}/vtk/python/vtk/wx | |
274 | install -d $RPM_BUILD_ROOT/$VTKPYTHONPATH | |
275 | install -d $RPM_BUILD_ROOT%{_includedir}/vtk | |
52d6c353 AG |
276 | |
277 | #install libs and tcl | |
c8393523 | 278 | #%%makeinstall_std |
52d6c353 AG |
279 | %{__make} install \ |
280 | DESTDIR=$RPM_BUILD_ROOT | |
281 | ||
282 | chmod 755 $RPM_BUILD_ROOT%{_libdir}/vtk/*.so | |
283 | for f in $RPM_BUILD_ROOT%{_libdir}/vtk/libvtk*Python*.so | |
284 | do | |
aec3ea31 | 285 | ln -s ../`basename $f` $RPM_BUILD_ROOT%{_libdir}/vtk/python/ |
52d6c353 AG |
286 | done |
287 | ||
288 | #install binaries | |
0b356dc9 | 289 | install bin/* $RPM_BUILD_ROOT%{_bindir} |
52d6c353 AG |
290 | |
291 | #install python | |
0b356dc9 AG |
292 | install Wrapping/Python/*.py $RPM_BUILD_ROOT%{_libdir}/vtk/python |
293 | install Wrapping/Python/vtk/*.py $RPM_BUILD_ROOT%{_libdir}/vtk/python/vtk | |
294 | install Wrapping/Python/vtk/gtk/*.py $RPM_BUILD_ROOT%{_libdir}/vtk/python/vtk/gtk | |
295 | install Wrapping/Python/vtk/qt/*.py $RPM_BUILD_ROOT%{_libdir}/vtk/python/vtk/qt | |
296 | install Wrapping/Python/vtk/tk/*.py $RPM_BUILD_ROOT%{_libdir}/vtk/python/vtk/tk | |
297 | install Wrapping/Python/vtk/util/*.py $RPM_BUILD_ROOT%{_libdir}/vtk/python/vtk/util | |
298 | install Wrapping/Python/vtk/wx/*.py $RPM_BUILD_ROOT%{_libdir}/vtk/python/vtk/wx | |
52d6c353 AG |
299 | cat > $RPM_BUILD_ROOT/$VTKPYTHONPATH/vtkpython.pth <<_EOF |
300 | %{_libdir}/vtk/python | |
301 | _EOF | |
302 | ||
303 | %if %build_java | |
304 | #install java | |
0b356dc9 AG |
305 | install -d $RPM_BUILD_ROOT%{_libdir}/vtk/java |
306 | install lib/vtk.jar $RPM_BUILD_ROOT%{_libdir}/vtk/java | |
307 | install java/vtk/*.java $RPM_BUILD_ROOT%{_libdir}/vtk/java | |
52d6c353 AG |
308 | %endif |
309 | ||
310 | #install data | |
d46824ae ER |
311 | install -d $RPM_BUILD_ROOT%{_datadir}/%{name}-data |
312 | cp -r VTKData-release-4-2/* $RPM_BUILD_ROOT%{_datadir}/%{name}-data | |
0b356dc9 | 313 | rm -fr $RPM_BUILD_ROOT%{_datadir}/%{name}-data/CVS |
52d6c353 AG |
314 | |
315 | #install test-suite and examples | |
316 | for d in Common Filtering Graphics Hybrid IO Imaging Parallel Patented Rendering | |
317 | do | |
d46824ae | 318 | install -d $RPM_BUILD_ROOT%{_datadir}/vtk-examples/Testing/$d |
0b356dc9 | 319 | cp -a $d/Testing/* $RPM_BUILD_ROOT%{_datadir}/vtk-examples/Testing/$d |
52d6c353 | 320 | done |
0b356dc9 | 321 | cp -a Examples $RPM_BUILD_ROOT%{_datadir}/vtk-examples |
52d6c353 AG |
322 | |
323 | # get rid of unwanted files | |
0b356dc9 AG |
324 | find $RPM_BUILD_ROOT%{_datadir}/vtk-examples -name "*.o" -exec rm {} \; |
325 | find $RPM_BUILD_ROOT%{_datadir}/vtk-examples -name CMakeCache.txt -exec rm {} \; | |
326 | find $RPM_BUILD_ROOT%{_datadir}/vtk-examples -name Makefile -exec rm {} \; | |
327 | find $RPM_BUILD_ROOT%{_datadir}/vtk-examples -name DartTestfile.txt -exec rm {} \; | |
328 | find $RPM_BUILD_ROOT%{_datadir}/vtk-examples -name .NoDartCoverage -exec rm {} \; | |
329 | find $RPM_BUILD_ROOT%{_datadir}/vtk-examples -name "CMake*" -exec rm {} \; | |
330 | find $RPM_BUILD_ROOT%{_datadir}/vtk-examples -name "cmake.*" -exec rm {} \; | |
52d6c353 AG |
331 | |
332 | # Generate the package testing-progs lists and store them in file-lists | |
0b356dc9 | 333 | echo "%defattr (644,root,root,755)" > testing-progs-list |
52d6c353 AG |
334 | %if %build_java |
335 | find ${RPM_BUILD_ROOT}/usr/bin -type f | \ | |
336 | sed -e "s#^${RPM_BUILD_ROOT}##g" | \ | |
337 | egrep -v '^/usr/bin/(vtk|pvtk|vtkWrap.*|vtkParse.*|VTKJavaExecutable|vtkpython|pvtkpython)$' \ | |
338 | >> testing-progs-list | |
339 | %else | |
340 | find ${RPM_BUILD_ROOT}/usr/bin -type f | \ | |
341 | sed -e "s#^${RPM_BUILD_ROOT}##g" | \ | |
342 | egrep -v '^/usr/bin/(vtk|pvtk|vtkWrap.*|vtkParse.*|vtkpython|pvtkpython)$' \ | |
343 | >> testing-progs-list | |
344 | %endif | |
345 | ||
0b356dc9 AG |
346 | %clean |
347 | rm -rf $RPM_BUILD_ROOT | |
348 | ||
c8393523 | 349 | %post -p /sbin/ldconfig |
52d6c353 | 350 | %postun -p /sbin/ldconfig |
c8393523 JB |
351 | |
352 | %post tcl -p /sbin/ldconfig | |
353 | %postun tcl -p /sbin/ldconfig | |
354 | ||
355 | %post python -p /sbin/ldconfig | |
356 | %postun python -p /sbin/ldconfig | |
357 | ||
358 | %post java -p /sbin/ldconfig | |
359 | %postun java -p /sbin/ldconfig | |
52d6c353 AG |
360 | |
361 | %files | |
0b356dc9 | 362 | %defattr(644,root,root,755) |
52d6c353 AG |
363 | %doc README.html vtkLogo.jpg |
364 | %dir %{_libdir}/vtk | |
c8393523 JB |
365 | %attr(755,root,root) %{_libdir}/vtk/libvtkCommon.so |
366 | %attr(755,root,root) %{_libdir}/vtk/libvtkFiltering.so | |
367 | %attr(755,root,root) %{_libdir}/vtk/libvtkGraphics.so | |
368 | %attr(755,root,root) %{_libdir}/vtk/libvtkHybrid.so | |
369 | %attr(755,root,root) %{_libdir}/vtk/libvtkImaging.so | |
370 | %attr(755,root,root) %{_libdir}/vtk/libvtkIO.so | |
371 | %attr(755,root,root) %{_libdir}/vtk/libvtkParallel.so | |
372 | %attr(755,root,root) %{_libdir}/vtk/libvtkRendering.so | |
373 | %attr(755,root,root) %{_libdir}/vtk/libvtkjpeg.so | |
374 | %attr(755,root,root) %{_libdir}/vtk/libvtkpng.so | |
375 | %attr(755,root,root) %{_libdir}/vtk/libvtkzlib.so | |
376 | %attr(755,root,root) %{_libdir}/vtk/libvtkexpat.so | |
377 | %attr(755,root,root) %{_libdir}/vtk/libvtkfreetype.so | |
378 | %attr(755,root,root) %{_libdir}/vtk/libvtkftgl.so | |
379 | %attr(755,root,root) %{_libdir}/vtk/libvtktiff.so | |
52d6c353 AG |
380 | |
381 | %files devel | |
0b356dc9 | 382 | %defattr(644,root,root,755) |
52d6c353 | 383 | %doc %{_libdir}/vtk/doxygen |
0b356dc9 | 384 | %doc Utilities/Upgrading/* |
52d6c353 AG |
385 | %{_includedir}/vtk |
386 | %{_libdir}/vtk/CMake | |
387 | %{_libdir}/vtk/*.cmake | |
52d6c353 AG |
388 | |
389 | %files test-suite -f testing-progs-list | |
305d7faa | 390 | %defattr(644,root,root,755) |
52d6c353 AG |
391 | |
392 | %files tcl | |
0b356dc9 | 393 | %defattr(644,root,root,755) |
c8393523 | 394 | %doc README.html vtkLogo.jpg |
52d6c353 | 395 | %dir %{_libdir}/vtk/testing |
0b356dc9 AG |
396 | %attr(755,root,root) %{_bindir}/vtkWrapTcl |
397 | %attr(755,root,root) %{_bindir}/vtk | |
c8393523 | 398 | %attr(755,root,root) %{_libdir}/vtk/libvtk*TCL.so |
0b356dc9 | 399 | %{_libdir}/vtk/tcl |
52d6c353 | 400 | %{_libdir}/vtk/testing/*.tcl |
52d6c353 AG |
401 | |
402 | %files python | |
0b356dc9 | 403 | %defattr(644,root,root,755) |
52d6c353 | 404 | %dir %_libdir/vtk/testing |
0b356dc9 AG |
405 | %attr(755,root,root) %{_bindir}/vtkWrapPython |
406 | %attr(755,root,root) %{_bindir}/vtkpython | |
c8393523 | 407 | %attr(755,root,root) %{_libdir}/vtk/libvtk*Python*.so |
0b356dc9 AG |
408 | %{_libdir}/vtk/python |
409 | %{_libdir}/vtk/testing/*.py | |
52d6c353 AG |
410 | %(python -c"import os,sys; print os.path.join(sys.exec_prefix, 'lib', 'python' + sys.version[:3],'site-packages', 'vtkpython.pth')") |
411 | ||
412 | %if %build_java | |
413 | %files java | |
0b356dc9 AG |
414 | %defattr(644,root,root,755) |
415 | %attr(755,root,root) %{_bindir}/vtkParseJava | |
416 | %attr(755,root,root) %{_bindir}/vtkWrapJava | |
417 | %attr(755,root,root) %{_bindir}/VTKJavaExecutable | |
c8393523 | 418 | %attr(755,root,root) %{_libdir}/vtk/libvtk*Java.so |
52d6c353 AG |
419 | %{_libdir}/vtk/java |
420 | %endif | |
421 | ||
422 | %files examples | |
0b356dc9 AG |
423 | %defattr(644,root,root,755) |
424 | %dir %{_datadir}/vtk-examples | |
425 | %{_datadir}/vtk-examples/Examples | |
426 | %{_datadir}/vtk-examples/Testing | |
52d6c353 AG |
427 | |
428 | %files data | |
0b356dc9 AG |
429 | %defattr(644,root,root,755) |
430 | %dir %{_datadir}/vtk-data | |
431 | %{_datadir}/vtk-data/Baseline | |
432 | %{_datadir}/vtk-data/Data | |
433 | %{_datadir}/vtk-data/VTKData.readme |