]> git.pld-linux.org Git - packages/vtk.git/blobdiff - vtk.spec
- noarch subpackages only when building with rpm5
[packages/vtk.git] / vtk.spec
index 4db1c23189ff4a8b15ebb63c13462732470a62d4..d30e887e63dcfdd7ea87dd9137bacc25007105cc 100644 (file)
--- a/vtk.spec
+++ b/vtk.spec
@@ -1,29 +1,56 @@
-#
-# ToDo:
-# - make it all work 
-#
 # Conditional build
 # Conditional build
-%bcond_with    java    # build with Java support (not yet done)
+%bcond_without java    # build without Java support
+%bcond_with    OSMesa  # build with OSMesa (https://bugzilla.redhat.com/show_bug.cgi?id=744434)
 #
 #
-
 Summary:       Toolkit for 3D computer graphics, image processing, and visualization
 Summary:       Toolkit for 3D computer graphics, image processing, and visualization
-Summary(pl):   Zestaw narzêdzi do trójwymiarowej grafiki, przetwarzania obrazu i wizualizacji
+Summary(pl.UTF-8):     Zestaw narzędzi do trójwymiarowej grafiki, przetwarzania obrazu i wizualizacji
 Name:          vtk
 Name:          vtk
-Version:       4.2.2
+Version:       5.10.1
 Release:       0.1
 License:       BSD
 Release:       0.1
 License:       BSD
-Group:         Graphics
-Source0:       %{name}42Src.tar.bz2
-Source1:       http://dl.sourceforge.net/vtk/VTKData-4.2.tar.gz
-# Source1-md5: 2bbd1a62884906eac4f279441cbb9cfa
-Patch0:                %{name}-cmakefiles.patch
-URL:           http://public.kitware.com/VTK/
-BuildRequires:         cmake 
-BuildRequires: python-devel 
-BuildRequires: tcl 
-BuildRequires: XFree86-devel 
+Group:         Libraries
+Source0:       http://www.vtk.org/files/release/5.10/%{name}-%{version}.tar.gz
+# Source0-md5: 264b0052e65bd6571a84727113508789
+Source1:       http://www.vtk.org/files/release/5.10/%{name}data-%{version}.tar.gz
+# Source1-md5: b6355063264cd56bcd1396c92f6ca59a
+Patch0:                vtk-system-libs.patch
+Patch1:                vtk-vtkNetCDF_cxx-soname.patch
+Patch2:                vtk-vtknetcdf-lm.patch
+URL:           http://www.vtk.org/
+%{?with_OSMesa:BuildRequires: Mesa-libOSMesa-devel}
+BuildRequires: OpenGL-devel
+BuildRequires: QtWebKit-devel
+BuildRequires: boost-devel
+BuildRequires: cmake
 BuildRequires: doxygen
 BuildRequires: doxygen
-BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+BuildRequires: expat-devel
+BuildRequires: freetype-devel
+BuildRequires: gl2ps-devel
+BuildRequires: gnuplot
+BuildRequires: graphviz
+BuildRequires: hdf5-devel
+%{?with_java:BuildRequires: jdk}
+BuildRequires: libjpeg-devel
+BuildRequires: libpng-devel
+BuildRequires: libtheora-devel
+BuildRequires: libtiff-devel
+BuildRequires: libxml2-devel
+BuildRequires: mysql-devel
+BuildRequires: openmotif-devel
+BuildRequires: postgresql-devel
+BuildRequires: python-devel
+BuildRequires: qt4-build
+BuildRequires: tcl-devel
+BuildRequires: tk-devel
+BuildRequires: wget
+BuildRequires: xorg-lib-libICE-devel
+BuildRequires: xorg-lib-libX11-devel
+BuildRequires: xorg-lib-libXext-devel
+BuildRequires: xorg-lib-libXt-devel
+BuildRequires: zlib-devel
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%define                skip_post_check_so      lib.*Python.*\.so.*
 
 %description
 The Visualization ToolKit (VTK) is an object oriented software system
 
 %description
 The Visualization ToolKit (VTK) is an object oriented software system
@@ -33,390 +60,525 @@ interface layers including Tcl/Tk, Java, and Python. VTK supports a
 wide variety of visualization algorithms including scalar, vector,
 tensor, texture, and volumetric methods. It also supports advanced
 modeling techniques like implicit modeling, polygon reduction, mesh
 wide variety of visualization algorithms including scalar, vector,
 tensor, texture, and volumetric methods. It also supports advanced
 modeling techniques like implicit modeling, polygon reduction, mesh
-smoothing, cutting, contouring, and Delaunay triangulation.  Moreover,
+smoothing, cutting, contouring, and Delaunay triangulation. Moreover,
 dozens of imaging algorithms have been integrated into the system.
 This allows mixing 2D imaging / 3D graphics algorithms and data.
 
 dozens of imaging algorithms have been integrated into the system.
 This allows mixing 2D imaging / 3D graphics algorithms and data.
 
-NOTE: The java wrapper is not included by default.  You may rebuild
+NOTE: The Java wrapper is not included by default. You may rebuild
       the srpm using "--with java" with JDK installed.
 
 NOTE: All patented routines which are part of the package have been
       removed in this version.
 
       the srpm using "--with java" with JDK installed.
 
 NOTE: All patented routines which are part of the package have been
       removed in this version.
 
+%description -l pl.UTF-8
+Visualization TookKit (VTK) to obiektowo zorientowany system
+oprogramowania do trójwymiarowej grafiki komputerowej, przetwarzania
+obrazu i wizualizacji. VTK zawiera książkę, bibliotekę klas C++ oraz
+kilka interpretowanych warstw interfejsów, w tym dla Tcl/Tk, Javy i
+Pythona. VTK obsługuje szeroki zakres algorytmów wizualizacji, w tym
+metody skalarne, wektorowe, tensorowe, teksturowe i wolumetryczne.
+Obsługuje także zaawansowane techniki modelowania, takie jak
+modelowanie implicite, redukcja wielokątów, wygładzanie siatki,
+przycinanie, konturowanie i triangulacja Delaunaya. Co więcej, wiele
+algorytmów obrazowania zostało zintegrowanych z systemem. Pozwala to
+na mieszanie algorytmów obrazowania 2D i grafiki 3D.
+
+UWAGA: wrapper Javy nie został włączony domyślnie. Można przebudować
+       srpm-a z opcją "--with java" przy zainstalowanym JDK.
+
+UWAGA: wszystkie opatentowane procedury będące częścią tego pakietu
+       zostały usunięte w tej wersji.
+
 %package devel
 Summary:       VTK header files for building C++ code
 %package devel
 Summary:       VTK header files for building C++ code
-Summary(pl):   Pliki nag³ówkowe VTK dla C++
-Group:         Development/C++
-Requires:      vtk
+Summary(pl.UTF-8):     Pliki nagłówkowe VTK dla C++
+Group:         Development
+Requires:      %{name} = %{version}-%{release}
+
+%description devel
+This provides the VTK header files required to compile C++ programs
+that use VTK to do 3D visualisation.
 
 
-%description devel 
-This provides the VTK header files required to compile C++
-programs that use VTK to do 3D visualisation.
+%description devel -l pl.UTF-8
+Ten pakiet dostarcza pliki nagłówkowe VTK do kompilowania programów
+C++ używających VTK do wizualizacji 3D.
 
 %package tcl
 Summary:       Tcl bindings for VTK
 
 %package tcl
 Summary:       Tcl bindings for VTK
-Summary(pl):   Dowi±zania Tcl do VTK
-Group:         System/Libraries
-Requires:      vtk
+Summary(pl.UTF-8):     Dowiązania Tcl do VTK
+Group:         Libraries
+Requires:      %{name} = %{version}-%{release}
 
 %description tcl
 
 %description tcl
-The Visualization ToolKit (VTK) is an object oriented software system
-for 3D computer graphics, image processing, and visualization. VTK
-includes a textbook, a C++ class library, and several interpreted
-interface layers including Tcl/Tk, Java, and Python. VTK supports a
-wide variety of visualization algorithms including scalar, vector,
-tensor, texture, and volumetric methods. It also supports advanced
-modeling techniques like implicit modeling, polygon reduction, mesh
-smoothing, cutting, contouring, and Delaunay triangulation.  Moreover,
-dozens of imaging algorithms have been integrated into the system.
-This allows mixing 2D imaging / 3D graphics algorithms and data.
+This package contains Tcl bindings for VTK.
 
 
-This package contains tcl bindings for VTK.
+%description tcl -l pl.UTF-8
+Ten pakiet zawiera dowiązania Tcl dla VTK.
 
 %package python
 Summary:       Python bindings for VTK
 
 %package python
 Summary:       Python bindings for VTK
-Summary(pl):   Dowi±zania Pythona do VTK
-Requires:      vtk
-Provides:      vtk
-Group:         System/Libraries
+Summary(pl.UTF-8):     Dowiązania Pythona do VTK
+Group:         Libraries
+Requires:      %{name} = %{version}-%{release}
 
 
-%description python 
-The Visualization ToolKit (VTK) is an object oriented software system
-for 3D computer graphics, image processing, and visualization. VTK
-includes a textbook, a C++ class library, and several interpreted
-interface layers including Tcl/Tk, Java, and Python. VTK supports a
-wide variety of visualization algorithms including scalar, vector,
-tensor, texture, and volumetric methods. It also supports advanced
-modeling techniques like implicit modeling, polygon reduction, mesh
-smoothing, cutting, contouring, and Delaunay triangulation.  Moreover,
-dozens of imaging algorithms have been integrated into the system.
-This allows mixing 2D imaging / 3D graphics algorithms and data.
+%description python
+This package contains Python bindings for VTK.
 
 
-This package contains python bindings for VTK.
+%description python -l pl.UTF-8
+Ten pakiet zawiera dowiązania Pythona dla VTK.
 
 %package java
 Summary:       Java bindings for VTK
 
 %package java
 Summary:       Java bindings for VTK
-Summary(pl):   Dowi±zania Javy do VTK
-Group:         Development/Java
-Requires:      vtk
+Summary(pl.UTF-8):     Dowiązania Javy do VTK
+Group:         Development/Languages/Java
+Requires:      %{name} = %{version}-%{release}
 
 %description java
 
 %description java
-The Visualization ToolKit (VTK) is an object oriented software system
-for 3D computer graphics, image processing, and visualization. VTK
-includes a textbook, a C++ class library, and several interpreted
-interface layers including Tcl/Tk, Java, and Python. VTK supports a
-wide variety of visualization algorithms including scalar, vector,
-tensor, texture, and volumetric methods. It also supports advanced
-modeling techniques like implicit modeling, polygon reduction, mesh
-smoothing, cutting, contouring, and Delaunay triangulation.  Moreover,
-dozens of imaging algorithms have been integrated into the system.
-This allows mixing 2D imaging / 3D graphics algorithms and data.
+This package contains Java bindings for VTK.
+
+%description java -l pl.UTF-8
+Ten pakiet zawiera dowiązania Javy dla VTK.
 
 
-This package contains java bindings for VTK.
+%package qt
+Summary:       Qt bindings for VTK
+Requires:      vtk = %{version}-%{release}
+Group:         System Environment/Libraries
+
+%description qt
+Qt bindings for VTK
 
 %package examples
 Summary:       C++, Tcl and Python example programs/scripts for VTK
 
 %package examples
 Summary:       C++, Tcl and Python example programs/scripts for VTK
-Summary(pl):   Przyk³adowe programy/skrypty w C++, Tcl-u i Pythonie dla VTK
-Group:         Development/Other
-Requires:      vtk
-Requires:      vtk-data
+Summary(pl.UTF-8):     Przykładowe programy/skrypty w C++, Tcl-u i Pythonie dla VTK
+Group:         Development/Libraries
+Requires:      %{name} = %{version}-%{release}
+Requires:      %{name}-data = %{version}-%{release}
 
 %description examples
 
 %description examples
-This package contains all the examples from the VTK source.
-To compile the C++ examples you will need to install the vtk-devel
-package as well. The Python and Tcl examples can be run with the
-corresponding packages (vtk-python, vtk-tcl).
+This package contains all the examples from the VTK source. To compile
+the C++ examples you will need to install the vtk-devel package as
+well. The Python and Tcl examples can be run with the corresponding
+packages (vtk-python, vtk-tcl).
+
+%description examples -l pl.UTF-8
+Ten pakiet zawiera wszystkie przykłady ze źródeł VTK. Do skompilowania
+przykładów w C++ trzeba doinstalować pakiet vtk-devel. Przykłady w
+Pythonie i Tcl-u można uruchamiać przy użyciu odpowiednich pakietów
+(vtk-python, vtk-tcl).
 
 %package test-suite
 Summary:       Test programs for VTK
 
 %package test-suite
 Summary:       Test programs for VTK
-Summary(pl):   Programy testowe dla VTK
-Group:         Development/Other
-Requires:      vtk
-Requires:      vtk-data
+Summary(pl.UTF-8):     Programy testowe dla VTK
+Group:         Development/Libraries
+Requires:      %{name} = %{version}-%{release}
+Requires:      %{name}-data = %{version}-%{release}
 
 %description test-suite
 This package contains all testing programs from the VTK source. The
 source code of these programs can be found in the vtk-examples
 package.
 
 
 %description test-suite
 This package contains all testing programs from the VTK source. The
 source code of these programs can be found in the vtk-examples
 package.
 
+%description test-suite -l pl.UTF-8
+Ten pakiet zawiera wszystkie programy testowe ze źródeł VTK. Kod
+źródłowy tych programów można znaleźć w pakiecie vtk-examples.
+
 %package data
 Summary:       Data files for VTK
 %package data
 Summary:       Data files for VTK
-Summary(pl):   Pliki danych dla VTK
+Summary(pl.UTF-8):     Pliki danych dla VTK
 Group:         Development/Libraries
 Group:         Development/Libraries
+%if "%{_rpmversion}" >= "5"
+BuildArch:     noarch
+%endif
 
 
-%description data 
+%description data
 This package contains all the data from the VTKData repository. These
 This package contains all the data from the VTKData repository. These
-data are required to run various examples from the examples package.
+data are required to run various examples from the vtk-examples
+package.
+
+%description data -l pl.UTF-8
+Ten pakiet zawiera wszystkie dane z repozytorium VTKData. Dane te są
+potrzebne do uruchamiania różnych przykładów z pakietu vtk-examples.
 
 %prep
 
 %prep
-%setup -q -a 1 -n VTK-%version
-cd Hybrid
+%setup -q -n VTK%{version} -a 1
 %patch0 -p1
 %patch0 -p1
+%patch1 -p1
+%patch2 -p1
+
+# Replace relative path ../../../VTKData with %{_datadir}/vtkdata-%{version}
+# otherwise it will break on symlinks.
+grep -rl '\.\./\.\./\.\./\.\./VTKData' . | xargs \
+  perl -pi -e's,\.\./\.\./\.\./\.\./VTKData,%{_datadir}/vtkdata-%{version},g'
+
+# Save an unbuilt copy of the Example's sources for %doc
+mkdir vtk-examples
+cp -a Examples vtk-examples
+# Don't ship Win32 examples
+%{__rm} -r vtk-examples/Examples/GUI/Win32
+find vtk-examples -type f | xargs chmod -R a-x
 
 %build
 
 %build
-#%if %build_java
-#cmake         -DCMAKE_INSTALL_PREFIX:PATH=/usr \
-#      -DLIBRARY_OUTPUT_PATH:PATH=$RPM_BUILD_DIR/VTK-%version/lib \
-#      -DEXECUTABLE_OUTPUT_PATH:PATH=$RPM_BUILD_DIR/VTK-%version/bin \
-#      -DCMAKE_INSTALL_PREFIX:PATH=/usr \
-#      -DCMAKE_SKIP_RPATH:BOOL=ON \
-#      -DCMAKE_CXX_FLAGS:STRING="$RPM_OPT_FLAGS" \
-#      -DCMAKE_C_FLAGS:STRING="$RPM_OPT_FLAGS" \
-#      -DJAVA_INCLUDE_PATH:PATH=$JAVA_HOME/include
-#      -DJAVA_INCLUDE_PATH2:PATH=$JAVA_HOME/include/linux \
-#      -DJAVE_AWT_INCLUDE_PATH:PATH=$JAVA_HOME/include \
-#      -DPYTHON_INCLUDE_PATH:PATH=$(python -c"import os,sys; print os.path.join(sys.exec_prefix, 'include', 'python' + sys.version[:3])") \
-#      -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')") \
-#      -DVTK_DATA_ROOT:PATH=%{_docdir}/vtk-data-%{version} \
-#      -DVTK_WRAP_PYTHON:BOOL=ON \
-#      -DVTK_WRAP_JAVA:BOOL=ON \
-#      -DVTK_WRAP_TCL:BOOL=ON \
-#      -DVTK_USE_HYBRID:BOOL=ON \
-#      -DVTK_USE_PARALLEL:BOOL=ON \
-#      -DVTK_USE_RENDERING:BOOL=ON \
-#      -DVTK_USE_X:BOOL=ON \
-#      -DBUILD_DOCUMENTATION:BOOL=ON \
-#      -DBUILD_EXAMPLES:BOOL=ON \
-#      -DBUILD_SHARED_LIBS:BOOL=ON \
-#      -DBUILD_TESTING:BOOL=ON \
-#      -DOPENGL_INCLUDE_PATH:FILEPATH=/usr/X11R6/include/GL
-##     -DOPENGL_LIBRARY:FILEPATH=/usr/X11R6/lib/libGL.so.1.0
-#
-#%else
-#cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr \
-#      -DLIBRARY_OUTPUT_PATH:PATH=$RPM_BUILD_DIR/VTK-%version/lib \
-#      -DEXECUTABLE_OUTPUT_PATH:PATH=$RPM_BUILD_DIR/VTK-%version/bin \
-#      -DCMAKE_INSTALL_PREFIX:PATH=/usr \
-#      -DCMAKE_SKIP_RPATH:BOOL=ON \
-#      -DCMAKE_CXX_FLAGS:STRING="$RPM_OPT_FLAGS" \
-#      -DCMAKE_C_FLAGS:STRING="$RPM_OPT_FLAGS" \
-#      -DPYTHON_INCLUDE_PATH:PATH=$(python -c"import os,sys; print os.path.join(sys.exec_prefix, 'include', 'python' + sys.version[:3])") \
-#      -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')") \
-#      -DVTK_DATA_ROOT:PATH=%{_datadir}/vtk-data-%{version} \
-#      -DVTK_WRAP_PYTHON:BOOL=ON \
-#      -DVTK_WRAP_JAVA:BOOL=off \
-#      -DVTK_WRAP_TCL:BOOL=ON \
-#      -DVTK_USE_HYBRID:BOOL=ON \
-#      -DVTK_USE_PARALLEL:BOOL=ON \
-#      -DVTK_USE_RENDERING:BOOL=ON \
-#      -DVTK_USE_X:BOOL=ON \
-#      -DBUILD_DOCUMENTATION:BOOL=ON \
-#      -DBUILD_EXAMPLES:BOOL=ON \
-#      -DBUILD_SHARED_LIBS:BOOL=ON \
-#      -DBUILD_TESTING:BOOL=ON \
-#      -DOPENGL_INCLUDE_PATH:FILEPATH=/usr/X11R6/include/GL
-##     -DOPENGL_LIBRARY:FILEPATH=/usr/X11R6/lib/libGL.so.1.0
-#
-#%endif
-cmake \
+export CFLAGS="%{optflags} -D_UNICODE"
+export CXXFLAGS="%{optflags} -D_UNICODE"
+%if %{with java}
+export JAVA_HOME=/usr/lib/jvm/java
+%endif
+
+mkdir build
+cd build
+%{cmake} .. \
        -DCMAKE_INSTALL_PREFIX:PATH=%{_prefix} \
        -DCMAKE_INSTALL_PREFIX:PATH=%{_prefix} \
-        -DLIBRARY_OUTPUT_PATH:PATH=$RPM_BUILD_DIR/VTK-%version/lib \
-        -DEXECUTABLE_OUTPUT_PATH:PATH=$RPM_BUILD_DIR/VTK-%version/bin  \
+       -DVTK_INSTALL_INCLUDE_DIR:PATH=/include/vtk \
+       -DVTK_INSTALL_LIB_DIR:PATH=/%{_lib}/vtk \
+       -DVTK_INSTALL_QT_DIR=/%{_lib}/qt4/plugins/designer \
        -DCMAKE_SKIP_RPATH:BOOL=ON \
        -DBUILD_EXAMPLES:BOOL=ON \
        -DBUILD_SHARED_LIBS:BOOL=ON \
        -DBUILD_DOCUMENTATION:BOOL=ON \
        -DBUILD_TESTING:BOOL=ON \
        -DCMAKE_SKIP_RPATH:BOOL=ON \
        -DBUILD_EXAMPLES:BOOL=ON \
        -DBUILD_SHARED_LIBS:BOOL=ON \
        -DBUILD_DOCUMENTATION:BOOL=ON \
        -DBUILD_TESTING:BOOL=ON \
-       -DCMAKE_BACKWARDS_COMPATIBILITY=1.8 \
-       -DOPENGL_INCLUDE_PATH:PATH=/usr/X11R6/include/GL \
-       -DPYTHON_INCLUDE_PATH:PATH=%{_includedir}/python2.3 \
-       -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')") \
-       -DPYTHON_UTIL_LIBRARY:PATH=/usr/lib/libutil.so \
+%if %{with OSMesa}
+       -DVTK_OPENGL_HAS_OSMESA:BOOL=ON \
+%endif
+%if %{with java}
+       -DVTK_WRAP_JAVA:BOOL=ON \
+       -DJAVA_INCLUDE_PATH:PATH=$JAVA_HOME/include \
+       -DJAVA_INCLUDE_PATH2:PATH=$JAVA_HOME/include/linux \
+       -DJAVA_AWT_INCLUDE_PATH:PATH=$JAVA_HOME/include \
+%else
+       -DVTK_WRAP_JAVA:BOOL=OFF \
+%endif
+       -DOPENGL_INCLUDE_PATH:PATH=%{_includedir}/GL \
+       -DPYTHON_INCLUDE_PATH:PATH=%{py_incdir} \
+       -DPYTHON_LIBRARY:FILEPATH=%{_libdir}/libpython%{py_ver}.so \
+       -DPYTHON_UTIL_LIBRARY:PATH=%{_libdir}/libutil.so \
        -DTCL_INCLUDE_PATH:PATH=%{_includedir} \
        -DTCL_LIBRARY:PATH=%{_libdir}/libtcl.so \
        -DTK_INCLUDE_PATH:PATH=%{_includedir} \
        -DTK_LIBRARY:PATH=%{_libdir}/libtk.so \
        -DVTK_DATA_ROOT:PATH=%{_datadir}/vtk \
        -DTCL_INCLUDE_PATH:PATH=%{_includedir} \
        -DTCL_LIBRARY:PATH=%{_libdir}/libtcl.so \
        -DTK_INCLUDE_PATH:PATH=%{_includedir} \
        -DTK_LIBRARY:PATH=%{_libdir}/libtk.so \
        -DVTK_DATA_ROOT:PATH=%{_datadir}/vtk \
+       -DVTK_USE_SYSTEM_LIBRARIES=ON \
+       -DVTK_USE_BOOST:BOOL=ON \
+       -DVTK_USE_GL2PS:BOOL=ON \
+       -DVTK_USE_GUISUPPORT:BOOL=ON \
+       -DVTK_USE_MYSQL=ON \
+       -DVTK_USE_OGGTHEORA_ENCODER=ON \
+       -DVTK_USE_POSTGRES=ON \
+       -DVTK_USE_SYSTEM_LIBPROJ4=OFF \
+       -DVTK_USE_QVTK=ON \
+       -DVTK_USE_QT=ON \
        -DVTK_USE_HYBRID:BOOL=ON \
        -DVTK_USE_PARALLEL:BOOL=ON \
        -DVTK_USE_PATENTED:BOOL=off \
        -DVTK_USE_RENDERING:BOOL=ON \
        -DVTK_USE_HYBRID:BOOL=ON \
        -DVTK_USE_PARALLEL:BOOL=ON \
        -DVTK_USE_PATENTED:BOOL=off \
        -DVTK_USE_RENDERING:BOOL=ON \
-       -DVTK_WRAP_JAVA:BOOL=OFF \
+       -DVTK_WRAP_JAVA:BOOL=%{?with_java:ON}%{!?with_java:OFF} \
+       -DVTK_PYTHON_SETUP_ARGS="--prefix=/usr --root=$RPM_BUILD_ROOT" \
        -DVTK_WRAP_PYTHON:BOOL=ON \
        -DVTK_WRAP_TCL:BOOL=ON \
        -DBUILD_SHARED_LIBS:BOOL=ON \
        -DCMAKE_CXX_COMPILER:PATH="%{__cxx}" \
        -DCMAKE_C_COMPILER:PATH="%{__cc}" \
        -DCMAKE_LINKER_FLAGS:STRING="%{rpmldflags}" \
        -DVTK_WRAP_PYTHON:BOOL=ON \
        -DVTK_WRAP_TCL:BOOL=ON \
        -DBUILD_SHARED_LIBS:BOOL=ON \
        -DCMAKE_CXX_COMPILER:PATH="%{__cxx}" \
        -DCMAKE_C_COMPILER:PATH="%{__cc}" \
        -DCMAKE_LINKER_FLAGS:STRING="%{rpmldflags}" \
-       -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON \
-
+       -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON
 
 %{__make}
 
 %install
 rm -rf $RPM_BUILD_ROOT
 
 %{__make}
 
 %install
 rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT{%{_sysconfdir}/ld.so.conf.d,%{_examplesdir}/%{name}-%{version},%{_datadir}/vtk-data} \
+       $RPM_BUILD_ROOT%{py_sitedir}
 
 
-#setup python
-export VTKPYTHONPATH=%(python -c"import os,sys; print os.path.join(sys.exec_prefix, 'lib', 'python' + sys.version[:3],'site-packages')")
-
-#install directories
-install -d -m 755 $RPM_BUILD_ROOT%{_bindir}
-install -d -m 755 $RPM_BUILD_ROOT%{_libdir}/vtk/python/vtk
-install -d -m 755 $RPM_BUILD_ROOT%{_libdir}/vtk/python/vtk/gtk
-install -d -m 755 $RPM_BUILD_ROOT%{_libdir}/vtk/python/vtk/qt
-install -d -m 755 $RPM_BUILD_ROOT%{_libdir}/vtk/python/vtk/testing
-install -d -m 755 $RPM_BUILD_ROOT%{_libdir}/vtk/python/vtk/tk
-install -d -m 755 $RPM_BUILD_ROOT%{_libdir}/vtk/python/vtk/util
-install -d -m 755 $RPM_BUILD_ROOT%{_libdir}/vtk/python/vtk/wx
-install -d -m 755 $RPM_BUILD_ROOT/$VTKPYTHONPATH
-install -d -m 755 $RPM_BUILD_ROOT/usr/include/vtk
-
-#install libs and tcl
-#%makeinstall_std
-%{__make} install \
+%{__make} -C build install \
        DESTDIR=$RPM_BUILD_ROOT
 
        DESTDIR=$RPM_BUILD_ROOT
 
-chmod 755 $RPM_BUILD_ROOT%{_libdir}/vtk/*.so
-for f in $RPM_BUILD_ROOT%{_libdir}/vtk/libvtk*Python*.so
-do
-  ln -s ../`basename $f` $RPM_BUILD_ROOT%{_libdir}/vtk/python/
+# ld config
+echo %{_libdir}/vtk > $RPM_BUILD_ROOT%{_sysconfdir}/ld.so.conf.d/vtk-%{_arch}.conf
+
+# fix python install path
+mv $RPM_BUILD_ROOT%{py_sitescriptdir}/* $RPM_BUILD_ROOT%{py_sitedir}
+
+cp -a VTKData%{version}/* $RPM_BUILD_ROOT%{_datadir}/vtk-data
+cp -a vtk-examples/Examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+
+# Install utilities
+install build/bin/lproj $RPM_BUILD_ROOT%{_bindir}
+
+# Install examples
+for f in \
+HierarchicalBoxPipeline \
+MultiBlock \
+Arrays \
+Cube \
+RGrid \
+SGrid \
+Medical1 \
+Medical2 \
+Medical3 \
+finance \
+AmbientSpheres \
+Cylinder \
+DiffuseSpheres \
+SpecularSpheres \
+Cone \
+Cone2 \
+Cone3 \
+Cone4 \
+Cone5 \
+Cone6 ; do
+       install build/bin/$f $RPM_BUILD_ROOT%{_bindir}
 done
 
 done
 
-#install binaries
-install  -m 755 bin/* $RPM_BUILD_ROOT%{_bindir}
-
-#install python
-install  -m 644 Wrapping/Python/*.py $RPM_BUILD_ROOT%{_libdir}/vtk/python
-install  -m 644 Wrapping/Python/vtk/*.py $RPM_BUILD_ROOT%{_libdir}/vtk/python/vtk
-install  -m 644 Wrapping/Python/vtk/gtk/*.py $RPM_BUILD_ROOT/usr/lib/vtk/python/vtk/gtk
-install  -m 644 Wrapping/Python/vtk/qt/*.py $RPM_BUILD_ROOT/usr/lib/vtk/python/vtk/qt
-install  -m 644 Wrapping/Python/vtk/tk/*.py $RPM_BUILD_ROOT/usr/lib/vtk/python/vtk/tk
-install  -m 644 Wrapping/Python/vtk/util/*.py $RPM_BUILD_ROOT/usr/lib/vtk/python/vtk/util
-install  -m 644 Wrapping/Python/vtk/wx/*.py $RPM_BUILD_ROOT/usr/lib/vtk/python/vtk/wx
-cat > $RPM_BUILD_ROOT/$VTKPYTHONPATH/vtkpython.pth <<_EOF
-%{_libdir}/vtk/python
-_EOF
-
-%if %build_java
-#install java
-install -d -m 755 $RPM_BUILD_ROOT%{_libdir}/vtk/java
-install  -m 644 lib/vtk.jar     $RPM_BUILD_ROOT/usr/lib/vtk/java
-install  -m 644 java/vtk/*.java $RPM_BUILD_ROOT%{_libdir}/vtk/java
-%endif
+# Install test binaries
+for f in \
+CommonCxxTests \
+TestCxxFeatures \
+TestInstantiator \
+FilteringCxxTests \
+GraphicsCxxTests \
+GenericFilteringCxxTests \
+ImagingCxxTests \
+IOCxxTests \
+RenderingCxxTests \
+VTKBenchMark \
+VolumeRenderingCxxTests \
+WidgetsCxxTests \
+SocketClient \
+SocketServer ; do
+       install build/bin/$f $RPM_BUILD_ROOT%{_bindir}
+done
 
 
-#install data
-mkdir -p $RPM_BUILD_ROOT/%_datadir/%name-data
-cp -r VTKData-release-4-2/* $RPM_BUILD_ROOT/%_datadir/%name-data
-rm -fr $RPM_BUILD_ROOT/%_datadir/%name-data/CVS
+# Add exec bits to shared libs ...
+#chmod 0755 %{buildroot}%{_libdir}/python*/site-packages/vtk/*.so
 
 
-#install test-suite and examples
-for d in Common Filtering Graphics Hybrid IO Imaging Parallel Patented Rendering
-do
-       mkdir -p $RPM_BUILD_ROOT/%_datadir/vtk-examples/Testing/$d
-       cp -a $d/Testing/* $RPM_BUILD_ROOT/%_datadir/vtk-examples/Testing/$d
-done
-cp -a Examples $RPM_BUILD_ROOT/%_datadir/vtk-examples
-
-# get rid of unwanted files
-find $RPM_BUILD_ROOT/%_datadir/vtk-examples -name "*.o" -exec rm {} \;
-find $RPM_BUILD_ROOT/%_datadir/vtk-examples -name CMakeCache.txt -exec rm {} \;
-find $RPM_BUILD_ROOT/%_datadir/vtk-examples -name Makefile -exec rm {} \;
-find $RPM_BUILD_ROOT/%_datadir/vtk-examples -name DartTestfile.txt -exec rm {} \;
-find $RPM_BUILD_ROOT/%_datadir/vtk-examples -name .NoDartCoverage -exec rm {} \;
-find $RPM_BUILD_ROOT/%_datadir/vtk-examples -name "CMake*" -exec rm {} \;
-find $RPM_BUILD_ROOT/%_datadir/vtk-examples -name "cmake.*" -exec rm {} \;
-
-# Generate the package testing-progs lists and store them in file-lists
-echo "%defattr (-, root, root)" > testing-progs-list
-%if %build_java
-find ${RPM_BUILD_ROOT}/usr/bin -type f | \
-       sed -e "s#^${RPM_BUILD_ROOT}##g" | \
-       egrep -v '^/usr/bin/(vtk|pvtk|vtkWrap.*|vtkParse.*|VTKJavaExecutable|vtkpython|pvtkpython)$' \
-       >> testing-progs-list
-%else
-find ${RPM_BUILD_ROOT}/usr/bin -type f | \
-       sed -e "s#^${RPM_BUILD_ROOT}##g" | \
-       egrep -v '^/usr/bin/(vtk|pvtk|vtkWrap.*|vtkParse.*|vtkpython|pvtkpython)$' \
-       >> testing-progs-list
-%endif
+# Verdict places the docs in the false folder
+%{__rm} -r $RPM_BUILD_ROOT%{_libdir}/vtk/doc
 
 
-%post -p /sbin/ldconfig
-%post tcl -p /sbin/ldconfig
-%post python -p /sbin/ldconfig
-%if %build_java
-%post java -p /sbin/ldconfig
-%endif
+%clean
+rm -rf $RPM_BUILD_ROOT
 
 
+%post  -p /sbin/ldconfig
 %postun -p /sbin/ldconfig
 %postun -p /sbin/ldconfig
-%postun tcl -p /sbin/ldconfig
-%postun python -p /sbin/ldconfig 
-%if %build_java
-%postun java -p /sbin/ldconfig
-%endif
+
+%post  tcl -p /sbin/ldconfig
+%postun        tcl -p /sbin/ldconfig
+
+%post  python -p /sbin/ldconfig
+%postun        python -p /sbin/ldconfig
+
+%post  java -p /sbin/ldconfig
+%postun        java -p /sbin/ldconfig
+
+%post  qt -p /sbin/ldconfig
+%postun        qt -p /sbin/ldconfig
 
 %files
 
 %files
-%defattr(-,root,root)
-%doc README.html vtkLogo.jpg
+%defattr(644,root,root,755)
+%doc README.html vtkLogo.jpg vtkBanner.gif Wrapping/*/README*
+%config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/ld.so.conf.d/vtk-%{_arch}.conf
 %dir %{_libdir}/vtk
 %dir %{_libdir}/vtk
-%{_libdir}/vtk/libvtkCommon.so 
-%{_libdir}/vtk/libvtkFiltering.so 
-%{_libdir}/vtk/libvtkGraphics.so
-%{_libdir}/vtk/libvtkHybrid.so
-%{_libdir}/vtk/libvtkImaging.so
-%{_libdir}/vtk/libvtkIO.so
-%{_libdir}/vtk/libvtkParallel.so
-%{_libdir}/vtk/libvtkRendering.so
-%{_libdir}/vtk/libvtkjpeg.so 
-%{_libdir}/vtk/libvtkpng.so 
-%{_libdir}/vtk/libvtkzlib.so
-%{_libdir}/vtk/libvtkexpat.so
-%{_libdir}/vtk/libvtkfreetype.so
-%{_libdir}/vtk/libvtkftgl.so
-%{_libdir}/vtk/libvtktiff.so
+%attr(755,root,root) %ghost %{_libdir}/vtk/libCosmo.so.5.10
+%attr(755,root,root) %{_libdir}/vtk/libCosmo.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/vtk/libLSDyna.so.5.10
+%attr(755,root,root) %{_libdir}/vtk/libLSDyna.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/vtk/libMapReduceMPI.so.5.10
+%attr(755,root,root) %{_libdir}/vtk/libMapReduceMPI.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/vtk/libmpistubs.so.5.10
+%attr(755,root,root) %{_libdir}/vtk/libmpistubs.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/vtk/libVPIC.so.5.10
+%attr(755,root,root) %{_libdir}/vtk/libVPIC.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/vtk/libvtkalglib.so.5.10
+%attr(755,root,root) %{_libdir}/vtk/libvtkalglib.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/vtk/libvtkCharts.so.5.10
+%attr(755,root,root) %{_libdir}/vtk/libvtkCharts.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/vtk/libvtkCommon.so.5.10
+%attr(755,root,root) %{_libdir}/vtk/libvtkCommon.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/vtk/libvtkDICOMParser.so.5.10
+%attr(755,root,root) %{_libdir}/vtk/libvtkDICOMParser.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/vtk/libvtkexoIIc.so.5.10
+%attr(755,root,root) %{_libdir}/vtk/libvtkexoIIc.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/vtk/libvtkFiltering.so.5.10
+%attr(755,root,root) %{_libdir}/vtk/libvtkFiltering.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/vtk/libvtkftgl.so.5.10
+%attr(755,root,root) %{_libdir}/vtk/libvtkftgl.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/vtk/libvtkGenericFiltering.so.5.10
+%attr(755,root,root) %{_libdir}/vtk/libvtkGenericFiltering.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/vtk/libvtkGeovis.so.5.10
+%attr(755,root,root) %{_libdir}/vtk/libvtkGeovis.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/vtk/libvtkGraphics.so.5.10
+%attr(755,root,root) %{_libdir}/vtk/libvtkGraphics.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/vtk/libvtkHybrid.so.5.10
+%attr(755,root,root) %{_libdir}/vtk/libvtkHybrid.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/vtk/libvtkImaging.so.5.10
+%attr(755,root,root) %{_libdir}/vtk/libvtkImaging.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/vtk/libvtkInfovis.so.5.10
+%attr(755,root,root) %{_libdir}/vtk/libvtkInfovis.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/vtk/libvtkIO.so.5.10
+%attr(755,root,root) %{_libdir}/vtk/libvtkIO.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/vtk/libvtkmetaio.so.5.10
+%attr(755,root,root) %{_libdir}/vtk/libvtkmetaio.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/vtk/libvtkNetCDF_cxx.so.5.10
+%attr(755,root,root) %{_libdir}/vtk/libvtkNetCDF_cxx.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/vtk/libvtkNetCDF.so.5.10
+%attr(755,root,root) %{_libdir}/vtk/libvtkNetCDF.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/vtk/libvtkParallel.so.5.10
+%attr(755,root,root) %{_libdir}/vtk/libvtkParallel.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/vtk/libvtkproj4.so.5.10
+%attr(755,root,root) %{_libdir}/vtk/libvtkproj4.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/vtk/libvtkRendering.so.5.10
+%attr(755,root,root) %{_libdir}/vtk/libvtkRendering.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/vtk/libvtksqlite.so.5.10
+%attr(755,root,root) %{_libdir}/vtk/libvtksqlite.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/vtk/libvtksys.so.5.10
+%attr(755,root,root) %{_libdir}/vtk/libvtksys.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/vtk/libvtkverdict.so.5.10
+%attr(755,root,root) %{_libdir}/vtk/libvtkverdict.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/vtk/libvtkViews.so.5.10
+%attr(755,root,root) %{_libdir}/vtk/libvtkViews.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/vtk/libvtkVolumeRendering.so.5.10
+%attr(755,root,root) %{_libdir}/vtk/libvtkVolumeRendering.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/vtk/libvtkWidgets.so.5.10
+%attr(755,root,root) %{_libdir}/vtk/libvtkWidgets.so.*.*.*
 
 %files devel
 
 %files devel
-%defattr(-,root,root)
+%defattr(644,root,root,755)
 %doc %{_libdir}/vtk/doxygen
 %doc %{_libdir}/vtk/doxygen
+%doc Utilities/Upgrading/*
+%attr(755,root,root) %{_bindir}/vtkWrapHierarchy
+%attr(755,root,root) %{_bindir}/lproj
+%attr(755,root,root) %{_bindir}/vtkEncodeString
 %{_includedir}/vtk
 %{_libdir}/vtk/CMake
 %{_libdir}/vtk/*.cmake
 %{_includedir}/vtk
 %{_libdir}/vtk/CMake
 %{_libdir}/vtk/*.cmake
-%doc Utilities/Upgrading/*
-
-%files test-suite -f testing-progs-list
+%{_libdir}/vtk/hints
+%attr(755,root,root) %{_libdir}/vtk/libCosmo.so
+%attr(755,root,root) %{_libdir}/vtk/libLSDyna.so
+%attr(755,root,root) %{_libdir}/vtk/libMapReduceMPI.so
+%attr(755,root,root) %{_libdir}/vtk/libmpistubs.so
+%attr(755,root,root) %{_libdir}/vtk/libVPIC.so
+%attr(755,root,root) %{_libdir}/vtk/libvtkalglib.so
+%attr(755,root,root) %{_libdir}/vtk/libvtkCharts.so
+%attr(755,root,root) %{_libdir}/vtk/libvtkCommon.so
+%attr(755,root,root) %{_libdir}/vtk/libvtkDICOMParser.so
+%attr(755,root,root) %{_libdir}/vtk/libvtkexoIIc.so
+%attr(755,root,root) %{_libdir}/vtk/libvtkFiltering.so
+%attr(755,root,root) %{_libdir}/vtk/libvtkftgl.so
+%attr(755,root,root) %{_libdir}/vtk/libvtkGenericFiltering.so
+%attr(755,root,root) %{_libdir}/vtk/libvtkGeovis.so
+%attr(755,root,root) %{_libdir}/vtk/libvtkGraphics.so
+%attr(755,root,root) %{_libdir}/vtk/libvtkHybrid.so
+%attr(755,root,root) %{_libdir}/vtk/libvtkImaging.so
+%attr(755,root,root) %{_libdir}/vtk/libvtkInfovis.so
+%attr(755,root,root) %{_libdir}/vtk/libvtkIO.so
+%attr(755,root,root) %{_libdir}/vtk/libvtkmetaio.so
+%attr(755,root,root) %{_libdir}/vtk/libvtkNetCDF_cxx.so
+%attr(755,root,root) %{_libdir}/vtk/libvtkNetCDF.so
+%attr(755,root,root) %{_libdir}/vtk/libvtkParallel.so
+%attr(755,root,root) %{_libdir}/vtk/libvtkproj4.so
+%attr(755,root,root) %{_libdir}/vtk/libvtkRendering.so
+%attr(755,root,root) %{_libdir}/vtk/libvtksqlite.so
+%attr(755,root,root) %{_libdir}/vtk/libvtksys.so
+%attr(755,root,root) %{_libdir}/vtk/libvtkverdict.so
+%attr(755,root,root) %{_libdir}/vtk/libvtkViews.so
+%attr(755,root,root) %{_libdir}/vtk/libvtkVolumeRendering.so
+%attr(755,root,root) %{_libdir}/vtk/libvtkWidgets.so
 
 %files tcl
 
 %files tcl
-%defattr(-,root,root)
-%{_bindir}/vtkWrapTcl
-%{_libdir}/vtk/libvtk*TCL.so 
-%{_bindir}/vtk
+%defattr(644,root,root,755)
+%doc README.html vtkLogo.jpg
+%attr(755,root,root) %{_bindir}/vtkWrapTcl
+%attr(755,root,root) %{_bindir}/vtkWrapTclInit
+%attr(755,root,root) %{_bindir}/vtk
 %{_libdir}/vtk/tcl
 %{_libdir}/vtk/tcl
-%dir %{_libdir}/vtk/testing
-%{_libdir}/vtk/testing/*.tcl
-%doc README.html 
-%doc vtkLogo.jpg
+%{_libdir}/vtk/pkgIndex.tcl
+%attr(755,root,root) %ghost %{_libdir}/vtk/libvtk*TCL.so.5.10
+%attr(755,root,root) %{_libdir}/vtk/libvtk*TCL.so.*.*.*
 
 %files python
 
 %files python
-%defattr(-,root,root)
-%_bindir/vtkWrapPython
-%_bindir/vtkpython
-%_libdir/vtk/libvtk*Python*.so 
-%_libdir/vtk/python
-%dir %_libdir/vtk/testing
-%_libdir/vtk/testing/*.py
-%(python -c"import os,sys; print os.path.join(sys.exec_prefix, 'lib', 'python' + sys.version[:3],'site-packages', 'vtkpython.pth')")
-
-%if %build_java
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_bindir}/vtkWrapPython
+%attr(755,root,root) %{_bindir}/vtkWrapPythonInit
+%attr(755,root,root) %{_bindir}/vtkpython
+%attr(755,root,root) %ghost %{_libdir}/vtk/libvtk*Python*.so.5.10
+%attr(755,root,root) %{_libdir}/vtk/libvtk*Python*.so.*.*.*
+
+%dir %{py_sitedir}/vtk
+%{py_sitedir}/vtk/*.py*
+%dir %{py_sitedir}/vtk/gtk
+%{py_sitedir}/vtk/gtk/*.py*
+%dir %{py_sitedir}/vtk/qt
+%dir %{py_sitedir}/vtk/qt4
+%{py_sitedir}/vtk/qt*/*.py*
+%dir %{py_sitedir}/vtk/test
+%{py_sitedir}/vtk/test/*.py*
+%dir %{py_sitedir}/vtk/tk
+%{py_sitedir}/vtk/tk/*.py*
+%dir %{py_sitedir}/vtk/util
+%{py_sitedir}/vtk/util/*.py*
+%dir %{py_sitedir}/vtk/wx
+%{py_sitedir}/vtk/wx/*.py*
+%attr(755,root,root) %{py_sitedir}/vtk/vtk*.so
+%{py_sitedir}/VTK-%{version}-*.egg-info
+
+%if %{with java}
 %files java
 %files java
-%defattr(-,root,root)
-%{_bindir}/vtkParseJava
-%{_bindir}/vtkWrapJava
-%{_bindir}/VTKJavaExecutable
-%{_libdir}/vtk/libvtk*Java.so 
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_bindir}/vtkParseJava
+%attr(755,root,root) %{_bindir}/vtkWrapJava
+%attr(755,root,root) %ghost %{_libdir}/vtk/libvtk*Java.so.5.10
+%attr(755,root,root) %{_libdir}/vtk/libvtk*Java.so.*.*.*
 %{_libdir}/vtk/java
 %endif
 
 %{_libdir}/vtk/java
 %endif
 
+%files qt
+%defattr(644,root,root,755)
+%attr(755,root,root) %ghost %{_libdir}/vtk/libQVTK.so.5.10
+%attr(755,root,root) %{_libdir}/vtk/libQVTK.so.*.*.*
+%attr(755,root,root) %{_libdir}/qt4/plugins/designer/libQVTKWidgetPlugin.so
+
+%files test-suite
+%defattr(644,root,root,755)
+%{_libdir}/vtk/testing
+%attr(755,root,root) %{_bindir}/CommonCxxTests
+%attr(755,root,root) %{_bindir}/TestCxxFeatures
+%attr(755,root,root) %{_bindir}/TestInstantiator
+%attr(755,root,root) %{_bindir}/FilteringCxxTests
+%attr(755,root,root) %{_bindir}/GraphicsCxxTests
+%attr(755,root,root) %{_bindir}/GenericFilteringCxxTests
+%attr(755,root,root) %{_bindir}/ImagingCxxTests
+%attr(755,root,root) %{_bindir}/IOCxxTests
+%attr(755,root,root) %{_bindir}/RenderingCxxTests
+%attr(755,root,root) %{_bindir}/VTKBenchMark
+%attr(755,root,root) %{_bindir}/VolumeRenderingCxxTests
+%attr(755,root,root) %{_bindir}/WidgetsCxxTests
+%attr(755,root,root) %{_bindir}/SocketClient
+%attr(755,root,root) %{_bindir}/SocketServer
+
 %files examples
 %files examples
-%defattr(-,root,root)
-%dir %_datadir/vtk-examples
-%_datadir/vtk-examples/Examples
-%_datadir/vtk-examples/Testing
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_bindir}/HierarchicalBoxPipeline
+%attr(755,root,root) %{_bindir}/MultiBlock
+%attr(755,root,root) %{_bindir}/Arrays
+%attr(755,root,root) %{_bindir}/Cube
+%attr(755,root,root) %{_bindir}/RGrid
+%attr(755,root,root) %{_bindir}/SGrid
+%attr(755,root,root) %{_bindir}/Medical1
+%attr(755,root,root) %{_bindir}/Medical2
+%attr(755,root,root) %{_bindir}/Medical3
+%attr(755,root,root) %{_bindir}/finance
+%attr(755,root,root) %{_bindir}/AmbientSpheres
+%attr(755,root,root) %{_bindir}/Cylinder
+%attr(755,root,root) %{_bindir}/DiffuseSpheres
+%attr(755,root,root) %{_bindir}/SpecularSpheres
+%attr(755,root,root) %{_bindir}/Cone
+%attr(755,root,root) %{_bindir}/Cone2
+%attr(755,root,root) %{_bindir}/Cone3
+%attr(755,root,root) %{_bindir}/Cone4
+%attr(755,root,root) %{_bindir}/Cone5
+%attr(755,root,root) %{_bindir}/Cone6
+%{_examplesdir}/%{name}-%{version}
 
 %files data
 
 %files data
-%defattr(-,root,root)
-%dir %_datadir/vtk-data
-%_datadir/vtk-data/Baseline
-%_datadir/vtk-data/Data
-%_datadir/vtk-data/VTKData.readme
-
-%clean 
-rm -rf $RPM_BUILD_ROOT
+%defattr(644,root,root,755)
+%dir %{_datadir}/vtk-data
+%{_datadir}/vtk-data/Baseline
+%{_datadir}/vtk-data/Data
+%{_datadir}/vtk-data/VTKData.readme
This page took 0.057899 seconds and 4 git commands to generate.