switched to a different spec file

OBS-URL: https://build.opensuse.org/package/show/science/vtk?expand=0&rev=3
This commit is contained in:
Werner Hoch 2008-08-09 13:10:45 +00:00 committed by Git OBS Bridge
parent ce4474e7f9
commit 65ffb40669
3 changed files with 274 additions and 353 deletions

View File

@ -0,0 +1,11 @@
--- VTK/Wrapping/Python/CMakeLists.txt~ 2005-08-25 21:31:14.000000000 +0200
+++ VTK/Wrapping/Python/CMakeLists.txt 2006-05-27 13:32:40.000000000 +0200
@@ -299,7 +299,7 @@
# Create default python setup arguments if they are not set.
IF(DEFINED VTK_PYTHON_SETUP_ARGS)
ELSE(DEFINED VTK_PYTHON_SETUP_ARGS)
- SET(VTK_PYTHON_SETUP_ARGS "--prefix=\"${DOLLAR}{CMAKE_INSTALL_PREFIX}\""
+ SET(VTK_PYTHON_SETUP_ARGS "--root=\"${DOLLAR}{CMAKE_INSTALL_PREFIX}\" -O1"
CACHE STRING "Arguments passed to \"python setup.py install ...\" during installation.")
MARK_AS_ADVANCED(VTK_PYTHON_SETUP_ARGS)
ENDIF(DEFINED VTK_PYTHON_SETUP_ARGS)

613
vtk.spec
View File

@ -1,455 +1,362 @@
%bcond_without OSMesa %define lib_ver 5.0
%bcond_with qt4
%bcond_with java %define qtdir %{_libdir}/qt3
Summary: The Visualization Toolkit - A high level 3D visualization library
Name: vtk Name: vtk
Version: 5.0.4 Summary: The Visualization Toolkit - A high level 3D visualization library
Release: 1 Version: %{lib_ver}.4
License: BSD-like Release: 2
Group: System Environment/Libraries
Packager: Werner Hoch <werner.ho@gmx.de> Packager: Werner Hoch <werner.ho@gmx.de>
License: BSD
Group: System Environment/Libraries
Source: http://www.vtk.org/files/release/5.0/%{name}-%{version}.tar.bz2 Source: http://www.vtk.org/files/release/5.0/vtk-%{version}.tar.bz2
#Patch0: vtk-5.0.0-pythondestdir.patch Source1: http://www.vtk.org/files/release/5.0/vtkdata-%{version}.tar.bz2
Patch1: vtk-5.0.4-gcc43.patch Patch0: vtk-5.0.0-pythondestdir.patch
URL: http://vtk.org/ Patch1: vtk-5.0.4-gcc43.patch
URL: http://www.vtk.org
Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root
BuildRequires: cmake, tcl-devel, tk-devel, qt3-devel, python-devel
BuildRequires: expat, libjpeg-devel, libpng-devel, freetype2-devel
BuildRequires: libtiff-devel, zlib-devel, doxygen, graphviz
# tar-1.14.90+ uses --strip-components option
BuildRequires: tar > 1.14.90
BuildRequires: chrpath
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root %description
BuildRequires: cmake >= 2.0.4
BuildRequires: gcc-c++
%{?with_java:BuildRequires: java-devel}
BuildRequires: xorg-x11-libX11-devel, xorg-x11-libXt-devel,
BuildRequires: xorg-x11-libXext-devel
BuildRequires: xorg-x11-libICE-devel
#, libGL-devel
%{?with_OSMesa:BuildRequires:Mesa-devel}
BuildRequires: tk-devel, tcl-devel
BuildRequires: python-devel
BuildRequires: libexpat-devel, freetype2-devel, libjpeg-devel, libpng-devel
BuildRequires: libtiff-devel, zlib-devel
BuildRequires: qt3-devel
%{?with_qt4:BuildRequires: qt4-devel}
BuildRequires: chrpath
BuildRequires: doxygen, graphviz
%description
VTK is an open-source software system for image processing, 3D VTK is an open-source software system for image processing, 3D
graphics, volume rendering and visualization. VTK includes many graphics, volume rendering and visualization. VTK includes many
advanced algorithms (e.g., surface reconstruction, implicit modelling, advanced algorithms (e.g., surface reconstruction, implicit modelling,
decimation) and rendering techniques (e.g., hardware-accelerated decimation) and rendering techniques (e.g., hardware-accelerated
volume rendering, LOD control). volume rendering, LOD control)
%package devel %package devel
Summary: VTK header files for building C++ code Summary: VTK header files for building C++ code
Requires: vtk = %{version}-%{release} Requires: vtk = %{version}
Group: Development/Libraries Group: Development/Libraries
%description devel %description devel
This provides the VTK header files required to compile C++ programs that This provides the VTK header files required to compile C++ programs that
use VTK to do 3D visualisation. use VTK to do 3D visualisation
%package tcl %package tcl
Summary: Tcl bindings for VTK Summary: Tcl bindings for VTK
Requires: vtk = %{version}-%{release} Requires: vtk = %{version}
Group: System Environment/Libraries Group: System Environment/Libraries
%description tcl %description tcl
tcl bindings for VTK tcl bindings for VTK
%package python %package python
Summary: Python bindings for VTK Summary: Python bindings for VTK
Requires: vtk = %{version}-%{release} Requires: vtk = %{version}
Group: System Environment/Libraries Group: System Environment/Libraries
%description python %description python
python bindings for VTK python bindings for VTK
%if %{with java}
%package java
Summary: Java bindings for VTK
Requires: vtk = %{version}-%{release}
Group: System Environment/Libraries
%description java
Java bindings for VTK
%endif
%package qt %package qt
Summary: Qt bindings for VTK Summary: QT VTK widget
Requires: vtk = %{version}-%{release} Requires: vtk = %{version}
Group: System Environment/Libraries Requires: libqt
Group: Development/Libraries
%description qt %description qt
Qt bindings for VTK Qt VTK widget
%package testing
Summary: Testing programs for VTK
Requires: vtk = %{version}-%{release}, vtkdata = %{version}
Group: Applications/Engineering
%description testing
Testing programs for VTK
%package examples %package examples
Summary: Examples for VTK Summary: Examples for VTK
Requires: vtk = %{version}-%{release}, vtkdata = %{version} Requires: vtk = %{version}, vtk-data = %{version}
Group: Applications/Engineering Group: Applications/Engineering
%description examples %description examples
This package contains many well-commented examples showing how to use This package contains many well-commented examples showing how to use
VTK. Examples are available in the C++, Tcl, Python and Java VTK. Examples are available in the C++, Tcl, Python and Java
programming languages. programming languages
%package testing-progs
Summary: Testing programs for VTK
Requires: %{name} = %{version}, vtk-data = %{version}
Group: Applications/Engineering
%description testing-progs
Testing programs for VTK
%package data
Summary: Data for VTK
Requires: vtk = %{version}
Group: Development/Libraries
%description data
Example data file for VTK
%package doc
Summary: Documentation for VTK
Requires: vtk = %{version}
Group: Development/Libraries
%description doc
This package contains the doxygen-generated documentation from the VTK
source
%prep %prep
%setup -q -n VTK %setup -n VTK -q
#%patch0 -p1 %patch0 -p1
%patch1 -p1 %patch1 -p1
# Replace relative path ../../../VTKData with %{_datadir}/vtkdata-%{version} # Replace relative path ../../../VTKData with %{_datadir}/vtkdata-%{version}
# otherwise it will break on symlinks. # otherwise it will break on symlinks.
grep -rl '\.\./\.\./\.\./\.\./VTKData' . | xargs \ grep -rl '\.\./\.\./\.\./\.\./VTKData' . | xargs \
perl -pi -e's,\.\./\.\./\.\./\.\./VTKData,%{_datadir}/vtkdata-%{version},g' perl -pi -e's,\.\./\.\./\.\./\.\./VTKData,%{_datadir}/%{name}-data,g'
# Remove executable bits from sources
find . -name \*.c -or -name \*.cxx -or -name \*.h | xargs chmod -x
# Save an unbuilt copy of the Example's sources for %doc
mkdir vtk-examples-5.0
cp -a Examples vtk-examples-5.0
find vtk-examples-5.0 -type f | xargs chmod -R a-x
%build %build
export CFLAGS="%{optflags} -D_UNICODE" cmake . \
export CXXFLAGS="%{optflags} -D_UNICODE" -DDESIRED_QT_VERSION=3 \
%if %{with java} -DCMAKE_C_FLAGS:STRING="$RPM_OPT_FLAGS" \
export JAVA_HOME=/usr/lib/jvm/java -DCMAKE_CXX_FLAGS:STRING="$RPM_OPT_FLAGS" \
%endif -DCMAKE_INSTALL_PREFIX:PATH=$RPM_BUILD_ROOT \
%if %{with qt4} -DVTK_INSTALL_BIN_DIR:PATH=%{_bindir} \
unset QTINC QTLIB QTPATH_LRELEASE QMAKESPEC -DVTK_INSTALL_INCLUDE_DIR:PATH=%{_includedir} \
export QTDIR=%{_libdir}/qt4 -DVTK_INSTALL_LIB_DIR:PATH=%{_libdir} \
%endif -DVTK_DATA_ROOT:PATH=%{_datadir}/%{name}-data \
-DVTK_WRAP_PYTHON:BOOL=ON \
-DVTK_WRAP_TCL:BOOL=ON \
-DVTK_USE_PARALLEL:BOOL=ON \
-DVTK_USE_RENDERING:BOOL=ON \
-DBUILD_DOCUMENTATION:BOOL=ON \
-DBUILD_EXAMPLES:BOOL=ON \
-DBUILD_SHARED_LIBS:BOOL=ON \
-DBUILD_TESTING:BOOL=ON \
-DVTK_USE_GUISUPPORT:BOOL=ON \
-DVTK_USE_QVTK:BOOL=ON \
-DVTK_INSTALL_QT_DIR:STRING=%{qtdir}/plugins/designer \
-DVTK_LEGACY_REMOVE:BOOL=ON \
-DVTK_USE_GL2PS:BOOL=ON \
-DVTK_USE_SYSTEM_EXPAT:BOOL=ON \
-DVTK_USE_SYSTEM_JPEG:BOOL=ON \
-DVTK_USE_SYSTEM_PNG:BOOL=ON \
-DVTK_USE_SYSTEM_TIFF:BOOL=ON \
-DVTK_USE_SYSTEM_ZLIB:BOOL=ON \
-DVTK_USE_SYSTEM_EXPAT:BOOL=ON \
-DVTK_USE_SYSTEM_FREETYPE:BOOL=ON \
-DVTK_HAVE_GETSOCKNAME_WITH_SOCKLEN_T:INTERNAL=1
tmpinstall=`pwd`/tmpinstall make %{_smp_mflags}
cmake_command="cmake . \ cd Utilities/Doxygen
-DBUILD_SHARED_LIBS:BOOL=ON \ make DoxygenDoc
-DBUILD_DOCUMENTATION:BOOL=ON \
-DBUILD_EXAMPLES:BOOL=ON \
-DBUILD_TESTING:BOOL=ON \
-DCMAKE_INSTALL_PREFIX:PATH=$tmpinstall \
-DVTK_INSTALL_BIN_DIR:PATH=%{_bindir} \
-DVTK_INSTALL_INCLUDE_DIR:PATH=%{_includedir}/vtk \
-DVTK_INSTALL_LIB_DIR:PATH=%{_libdir} \
-DVTK_DATA_ROOT:PATH=%{_datadir}/vtkdata-%{version} \
-DTK_INTERNAL_PATH:PATH=/usr/include/tk-private/generic \
%if %{with OSMesa}
-DVTK_OPENGL_HAS_OSMESA:BOOL=ON \
%endif
-DVTK_WRAP_PYTHON:BOOL=ON \
%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
-DVTK_WRAP_TCL:BOOL=ON \
-DVTK_USE_GL2PS:BOOL=ON \
-DVTK_USE_GUISUPPORT:BOOL=ON \
-DVTK_USE_PARALLEL:BOOL=ON \
-DVTK_USE_SYSTEM_EXPAT=ON \
-DVTK_USE_SYSTEM_FREETYPE=ON \
-DVTK_USE_SYSTEM_JPEG=ON \
-DVTK_USE_SYSTEM_PNG=ON \
-DVTK_USE_SYSTEM_TIFF=ON \
-DVTK_USE_SYSTEM_ZLIB=ON \
-DVTK_USE_QVTK=ON \
%if %{with qt4}
-DDESIRED_QT_VERSION=4 \
-DQT_MOC_EXECUTABLE=%{_libdir}/qt4/bin/moc \
-DVTK_INSTALL_QT_DIR=`qmake-qt4 -query QT_INSTALL_PREFIX`/plugins/designer \
%else
-DVTK_INSTALL_QT_DIR=`qmake -query QT_INSTALL_PREFIX`/plugins/designer \
%endif
"
# Second cmake is neccessary for vtk
eval $cmake_command
eval $cmake_command
# Commented old flags in case we'd like to reactive some of them
# -DVTK_USE_DISPLAY:BOOL=OFF \ # This prevents building of graphics tests
# -DVTK_USE_HYBRID:BOOL=ON \
# -DVTK_USE_PATENTED:BOOL=ON \
# -DVTK_USE_RENDERING:BOOL=ON \
# -DVTK_USE_MPI:BOOL=OFF \
# -DVTK_USE_X:BOOL=ON \
# -DOPENGL_INCLUDE_DIR:PATH=/usr/include/GL \
make
%install %install
rm -rf %{buildroot} rm -rf $RPM_BUILD_ROOT
mkdir -p %{buildroot}
make install make install
mv tmpinstall/* %{buildroot}/
#mkdir -p %{py_sitedir}
#mv %{buildroot}/lib*/python2.5/site_packages/* %{buildroot}/%{py_sitedir}/
if [ "%{_lib}" != lib -a "`ls %{buildroot}%{_prefix}/lib/*`" != "" ]; then if [ "%{_lib}" != lib -a "`ls $RPM_BUILD_ROOT%{_prefix}/lib/*`" != "" ]; then
mkdir -p %{buildroot}%{_libdir} mkdir -p $RPM_BUILD_ROOT%{_libdir}
mv %{buildroot}%{_prefix}/lib/* %{buildroot}%{_libdir}/ mv $RPM_BUILD_ROOT%{_prefix}/%{_lib}/* $RPM_BUILD_ROOT%{_libdir}/
fi fi
mv $RPM_BUILD_ROOT%{_prefix}/local/%{_lib}/python* $RPM_BUILD_ROOT%{_libdir}/
# install doc
install -d -m 755 $RPM_BUILD_ROOT%{_datadir}/%{name}-docs
cp -a Utilities/Doxygen/doc/html $RPM_BUILD_ROOT%{_datadir}/%{name}-docs/api
# Gather list of non-python/tcl libraries # install testing-progs and examples
ls %{buildroot}%{_libdir}/*.so.* \ find bin -type f | egrep -v '\.' > bin-progs-list
| grep -Ev '(Java|QVTK|PythonD|TCL)' | sed -e's,^%{buildroot},,' > libs.list install -d $RPM_BUILD_ROOT%{_bindir}
install -m 755 `cat bin-progs-list` $RPM_BUILD_ROOT%{_bindir}
mkdir -p %{buildroot}%{_libdir}/vtk-examples-5.0 \ # install data
%{buildroot}%{_libdir}/vtk-testing-5.0 install -d $RPM_BUILD_ROOT%{_datadir}/%{name}-data
tar -xjvf %{SOURCE1} --strip-components 1 \
-C $RPM_BUILD_ROOT%{_datadir}/%{name}-data
# fix permissions and wrong eol encoding
find $RPM_BUILD_ROOT%{_datadir}/%{name}-data -type f | xargs chmod 644
sed -i 's/\r//' $RPM_BUILD_ROOT%{_datadir}/%{name}-data/Data/usa.vtk
# List of executable utilities for d in Common Filtering GenericFiltering Graphics Hybrid IO \
cat > utils.list << EOF Imaging Parallel Rendering VolumeRendering Widgets
vtkParseOGLExt do
vtkVREncodeString install -d $RPM_BUILD_ROOT%{_datadir}/%{name}-examples/Testing/$d
EOF cp -a $d/Testing/* \
$RPM_BUILD_ROOT%{_datadir}/%{name}-examples/Testing/$d
# List of executable examples
cat > examples.list << EOF
HierarchicalBoxPipeline
MultiBlock
Arrays
Cube
RGrid
SGrid
Medical1
Medical2
Medical3
finance
AmbientSpheres
Cylinder
DiffuseSpheres
SpecularSpheres
Cone
Cone2
Cone3
Cone4
Cone5
Cone6
EOF
# List of executable test binaries
cat > testing.list << EOF
CommonCxxTests
TestCxxFeatures
TestInstantiator
FilteringCxxTests
GraphicsCxxTests
GenericFilteringCxxTests
ImagingCxxTests
IOCxxTests
RenderingCxxTests
VTKBenchMark
VolumeRenderingCxxTests
WidgetsCxxTests
SocketClient
SocketServer
EOF
# Install utils/examples/testing, too
for filelist in utils.list examples.list testing.list; do
for file in `cat $filelist`; do
install -p bin/$file %{buildroot}%{_bindir}
done
perl -pi -e's,^,%{_bindir}/,' $filelist
done done
cp -a Examples $RPM_BUILD_ROOT%{_datadir}/%{name}-examples
# Remove any remnants of rpaths # get rid of unwanted files
for file in `cat examples.list`; do find $RPM_BUILD_ROOT%{_datadir}/%{name}-examples \
chrpath -d %{buildroot}$file -name "*.o" -exec rm {} ';' -o \
done -name CMakeCache.txt -exec rm {} ';' -o \
-name Makefile -exec rm {} ';' -o \
-name DartTestfile.txt -exec rm {} ';' -o \
-name .NoDartCoverage -exec rm {} ';' -o \
-name "cmake.*" -exec rm {} ';' -o \
-name "cmake_install.*" -exec rm {} ';' -o \
-name "*.pyc" -exec rm {} ';' -o \
-name "*.pyo" -exec rm {} ';'
find $RPM_BUILD_ROOT%{_datadir}/%{name}-examples \
-type d -name CVS | xargs rm -rf
find $RPM_BUILD_ROOT%{_datadir}/%{name}-examples \
-name "CMake*" | xargs rm -rf
# Main package contains utils and core libs # generate the package testing-progs lists and store them in file-lists
cat libs.list utils.list > main.list echo "%defattr (-, root, root)" > testing-progs-list
find $RPM_BUILD_ROOT%{_bindir} -type f | \
sed -e "s#^$RPM_BUILD_ROOT##" | \
egrep -v '^%{_bindir}/(qt.*|vtk|pvtk|vtkWrap.*|vtkpython|pvtkpython)$'\
>> testing-progs-list
# set correct execution bit on libs, so they are processed by
# find-debuginfo
find $RPM_BUILD_ROOT%{_libdir} -type f -name \*.so\* | xargs chmod +x
# Make shared libs and scripts executable # Make shared libs and scripts executable
chmod a+x %{buildroot}%{_libdir}/lib*.so.* chmod a+x $RPM_BUILD_ROOT%{_libdir}/lib*.so.*
chmod a+x %{buildroot}%{_libdir}/vtk-5.0/doxygen/*.pl chmod a+x $RPM_BUILD_ROOT%{_libdir}/vtk-5.0/doxygen/*.pl
chmod a+x %{buildroot}%{_libdir}/vtk-5.0/testing/*.{py,tcl} chmod a+x $RPM_BUILD_ROOT%{_libdir}/vtk-5.0/testing/*.{py,tcl}
# Remove exec bit from non-scripts and %%doc # Remove exec bit from not-scripts
for file in `find %{buildroot} -type f -perm 0755 \ for file in `find $RPM_BUILD_ROOT Utilities/Upgrading -type f -perm 0755 | xargs -r file | grep ASCII | awk -F: '{print $1}'`; do
| xargs -r file | grep ASCII | awk -F: '{print $1}'`; do
head -1 $file | grep '^#!' > /dev/null && continue head -1 $file | grep '^#!' > /dev/null && continue
chmod 0644 $file chmod 0644 $file
done done
find Utilities/Upgrading -type f | xargs chmod -x
# Add exec bits to shared libs ... # drop empty files
chmod 0755 %{buildroot}%{_libdir}/vtk-5.0/CMake/*.so find $RPM_BUILD_ROOT -size 0 | xargs rm -f
%check || : # Remove any remnants of rpaths
#LD_LIBARARY_PATH=`pwd`/bin ctest -V chrpath -d $RPM_BUILD_ROOT%{_bindir}/*
%clean
rm -rf %{buildroot}
%post -p /sbin/ldconfig %post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%post tcl -p /sbin/ldconfig %post tcl -p /sbin/ldconfig
%postun tcl -p /sbin/ldconfig
%post python -p /sbin/ldconfig %post python -p /sbin/ldconfig
%postun python -p /sbin/ldconfig
%if %{with java}
%post java -p /sbin/ldconfig
%postun java -p /sbin/ldconfig
%endif
%post qt -p /sbin/ldconfig %post qt -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%postun tcl -p /sbin/ldconfig
%postun python -p /sbin/ldconfig
%postun qt -p /sbin/ldconfig %postun qt -p /sbin/ldconfig
%files -f main.list %files
%defattr(-,root,root,-) %defattr(-,root,root)
%doc --parents Copyright.txt README.html vtkLogo.jpg vtkBanner.gif Wrapping/*/README* %{_libdir}/libvtkCommon.so.*
%{_libdir}/libvtkFiltering.so.*
%{_libdir}/libvtkGenericFiltering.so.*
%{_libdir}/libvtkGraphics.so.*
%{_libdir}/libvtkHybrid.so.*
%{_libdir}/libvtkImaging.so.*
%{_libdir}/libvtkIO.so.*
%{_libdir}/libvtkParallel.so.*
%{_libdir}/libvtkRendering.so.*
%{_libdir}/libvtkftgl.so.*
%{_libdir}/libvtkDICOMParser.so.*
%{_libdir}/libvtkVolumeRendering.so.*
%{_libdir}/libvtksys.so.*
%{_libdir}/libvtkWidgets.so.*
%{_libdir}/libvtkNetCDF.so.*
%{_libdir}/libvtkexoIIc.so.*
%doc README.html
%doc vtkLogo.jpg
%doc Copyright.txt
%files devel %files devel
%defattr(-,root,root)
%dir %{_libdir}/vtk-%{lib_ver}/CMake
%dir %{_libdir}/vtk-%{lib_ver}/doxygen
%{_includedir}/*
%{_libdir}/vtk-%{lib_ver}/CMake/*
%{_libdir}/vtk-%{lib_ver}/*.cmake
%{_libdir}/vtk-%{lib_ver}/hints
%{_libdir}/libvtkCommon.so
%{_libdir}/libvtkFiltering.so
%{_libdir}/libvtkGenericFiltering.so
%{_libdir}/libvtkGraphics.so
%{_libdir}/libvtkHybrid.so
%{_libdir}/libvtkImaging.so
%{_libdir}/libvtkIO.so
%{_libdir}/libvtkParallel.so
%{_libdir}/libvtkRendering.so
%{_libdir}/libvtkftgl.so
%{_libdir}/libvtkDICOMParser.so
%{_libdir}/libvtkVolumeRendering.so
%{_libdir}/libvtksys.so
%{_libdir}/libvtkWidgets.so
%{_libdir}/libvtkNetCDF.so
%{_libdir}/libvtkexoIIc.so
%{_libdir}/libvtk*TCL.so
%{_libdir}/libvtk*Python*.so
%{_libdir}/libQVTK.so
%doc README.html
%doc vtkLogo.jpg
%doc Utilities/Upgrading/*.txt
%doc Utilities/Upgrading/*.pdf
%doc Utilities/Upgrading/*.cmake
%doc %{_libdir}/vtk-%{lib_ver}/doxygen/*
%files testing-progs -f testing-progs-list
%defattr(-,root,root,-) %defattr(-,root,root,-)
%doc Utilities/Upgrading %doc README.html
%{_libdir}/vtk-5.0/doxygen %doc vtkLogo.jpg
%{_includedir}/vtk
%{_libdir}/*.so
%{_libdir}/vtk-5.0/CMake
%{_libdir}/vtk-5.0/*.cmake
%{_libdir}/vtk-5.0/hints
%files tcl %files tcl
%defattr(-,root,root,-) %defattr(-,root,root,-)
%{_libdir}/*TCL.so.* %dir %{_libdir}/vtk-%{lib_ver}/testing
%{_bindir}/vtk
%{_bindir}/vtkWrapTcl %{_bindir}/vtkWrapTcl
%{_bindir}/vtkWrapTclInit %{_bindir}/vtkWrapTclInit
%{_libdir}/vtk-5.0/pkgIndex.tcl %{_libdir}/libvtk*TCL.so.*
%{_libdir}/vtk-5.0/tcl %{_bindir}/vtk
%{_libdir}/vtk-%{lib_ver}/tcl
%{_libdir}/vtk-%{lib_ver}/testing/*.tcl
%{_libdir}/vtk-%{lib_ver}/pkgIndex.tcl
%doc README.html
%doc vtkLogo.jpg
%files python %files python
%defattr(-,root,root,-) %defattr(-,root,root,-)
%{py_sitedir}/*
%{_libdir}/*PythonD.so.*
%{_bindir}/vtkpython
%{_bindir}/vtkWrapPython %{_bindir}/vtkWrapPython
%{_bindir}/vtkWrapPythonInit %{_bindir}/vtkWrapPythonInit
%{_bindir}/vtkpython
%{_libdir}/libvtk*Python*.so.*
%{_libdir}/python*/site-packages/*
%{_libdir}/vtk-%{lib_ver}/testing/*.py*
%if %{with java}
%files java
%defattr(-,root,root,-)
%{_libdir}/*Java.so.*
%{_bindir}/vtkParseJava
%{_bindir}/vtkWrapJava
%endif
%files qt %files qt
%defattr(-,root,root,-) %defattr(-,root,root,-)
%{_libdir}/libQVTK.so.* %{_libdir}/libQVTK.so.*
%{_libdir}/qt*/plugins/designer/libQVTKWidgetPlugin.so %{_bindir}/qtevents
%{_bindir}/qtimageviewer
%{_bindir}/qtsimpleview
%{qtdir}/plugins/designer/libQVTKWidgetPlugin.so
%files testing -f testing.list %files examples
%defattr(-,root,root,-) %defattr(-,root,root,-)
%{_libdir}/vtk-5.0/testing %{_datadir}/%{name}-examples
%{_libdir}/vtk-testing-5.0
%files examples -f examples.list %files data
%defattr(-,root,root,-) %defattr(-,root,root,-)
%doc vtk-examples-5.0/Examples %{_datadir}/%{name}-data
%{_libdir}/vtk-examples-5.0
%files doc
%defattr(-,root,root,-)
%{_datadir}/%{name}-docs
%clean
rm -rf $RPM_BUILD_ROOT
%changelog %changelog
* Sat Aug 09 2008 Werner Hoch <werner.ho@gmx.de> - 5.0.4
- switched to the specfile from Jaroslaw Zachwieja
http://www2.warwick.ac.uk/fac/sci/csc/people/computingstaff/jaroslaw_zachwieja/vtk/
- use qt3 instead of qt4
* Thu Jul 18 2008 Werner Hoch <werner.ho@gmx.de> - 5.0.4 * Thu Jul 18 2008 Werner Hoch <werner.ho@gmx.de> - 5.0.4
- specfile taken from fedora core 9 and adapted to opensuse - specfile taken from fedora core 9 and adapted to opensuse
* Sat Apr 12 2008 Axel Thimm <Axel.Thimm@ATrpms.net> - 5.0.4-21
- Fixes for gcc 4.3 by Orion Poplawski.
* Sat Apr 5 2008 Axel Thimm <Axel.Thimm@ATrpms.net> - 5.0.4-20
- Change BR to qt-devel to qt3-devel.
* Sat Feb 23 2008 Axel Thimm <Axel.Thimm@ATrpms.net> - 5.0.4-19
- Update to 5.0.4.
* Mon May 28 2007 Axel Thimm <Axel.Thimm@ATrpms.net> - 5.0.3-18
- Move headers to %%{_includedir}/vtk.
- Remove executable bit from sources.
* Mon Apr 16 2007 Axel Thimm <Axel.Thimm@ATrpms.net> - 5.0.3-17
- Make java build conditional.
- Add ldconfig %%post/%%postun for java/qt subpackages.
* Sun Apr 15 2007 Axel Thimm <Axel.Thimm@ATrpms.net> - 5.0.3-16
- Remove %%ghosting pyc/pyo.
* Wed Apr 04 2007 Paulo Roma <roma@lcg.ufrj.br> - 5.0.3-15
- Update to 5.0.4.
- Added support for qt4 plugin.
* Wed Feb 7 2007 Orion Poplawski <orion@cora.nwra.com> - 5.0.2-14
- Enable Java, Qt, GL2PS, OSMESA
* Mon Sep 11 2006 Axel Thimm <Axel.Thimm@ATrpms.net> - 5.0.2-13
- Update to 5.0.2.
* Sun Aug 6 2006 Axel Thimm <Axel.Thimm@ATrpms.net> - 5.0.1-12
- cmake needs to be >= 2.0.4.
* Fri Aug 4 2006 Axel Thimm <Axel.Thimm@ATrpms.net> - 5.0.1-11
- Fix some python issues including pyo management.
* Sun Jul 23 2006 Axel Thimm <Axel.Thimm@ATrpms.net> - 5.0.1-10
- Embed feedback from bug 199405 comment 5.
- Fix some Group entries.
- Remove redundant dependencies.
- Use system libs.
- Comment specfile more.
- Change buildroot handling with CMAKE_INSTALL_PREFIX.
- Enable qt designer plugin.
* Wed Jul 19 2006 Axel Thimm <Axel.Thimm@ATrpms.net> - 5.0.1-7
- Fix some permissions for rpmlint and debuginfo.
* Sun Jul 16 2006 Axel Thimm <Axel.Thimm@ATrpms.net> - 5.0.1-7
- Remove rpath and some further rpmlint warnings.
* Thu Jul 13 2006 Axel Thimm <Axel.Thimm@ATrpms.net> - 5.0.1-6
- Update to 5.0.1.
* Wed May 31 2006 Axel Thimm <Axel.Thimm@ATrpms.net>
- Update to 5.0.
* Mon Apr 04 2004 Intrinsic Spin <spin@freakbait.com> 2.mr
- built on a machine with a stock libGL.so
* Sun Apr 04 2004 Intrinsic Spin <spin@freakbait.com>
- little cleanups
- Built for FC1
* Sun Jan 11 2004 Intrinsic Spin <spin@freakbait.com>
- Built against a reasonably good (according to dashboard) CVS version so-as
to get GL2PS support.
- Rearranged. Cleaned up. Added some comments.
* Sat Jan 10 2004 Intrinsic Spin <spin@freakbait.com>
- Blatently stole this spec file for my own nefarious purposes.
- Removed Java (for now). Merged the Python and Tcl stuff into
the main rpm.
* Fri Dec 05 2003 Fabrice Bellet <Fabrice.Bellet@creatis.insa-lyon.fr>
- (See Fabrice's RPMs for any more comments --Spin)

3
vtkdata-5.0.4.tar.bz2 Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:6d57aa7a143abde4175aa0159d788f9902fa462200b58132f70cb5812d8be30b
size 22177718