SHA256
1
0
forked from pool/vtk

new version 5.2.1

OBS-URL: https://build.opensuse.org/package/show/science/vtk?expand=0&rev=6
This commit is contained in:
Werner Hoch 2009-01-03 17:37:43 +00:00 committed by Git OBS Bridge
parent fdc9b5fa0b
commit 1b65c825f0
6 changed files with 74 additions and 104 deletions

View File

@ -1,33 +0,0 @@
--- VTK-5.0.4/Utilities/DICOMParser/DICOMAppHelper.cxx.gcc43 2007-05-03 11:12:13.000000000 -0600
+++ VTK-5.0.4/Utilities/DICOMParser/DICOMAppHelper.cxx 2008-04-11 13:52:05.000000000 -0600
@@ -31,7 +31,7 @@
#include <stdlib.h>
#include <stdio.h>
-#include <string>
+#include <cstring>
#include <math.h>
#include <algorithm>
#if defined(__BORLANDC__)
--- VTK-5.0.4/Utilities/DICOMParser/DICOMFile.cxx.gcc43 2007-11-07 13:51:57.000000000 -0700
+++ VTK-5.0.4/Utilities/DICOMParser/DICOMFile.cxx 2008-02-18 10:31:08.000000000 -0700
@@ -26,7 +26,7 @@
#include "DICOMFile.h"
#include <stdio.h>
-#include <string>
+#include <cstring>
DICOMFile::DICOMFile() : InputStream()
{
--- VTK-5.0.4/Utilities/DICOMParser/DICOMParser.cxx.gcc43 2007-11-07 13:51:57.000000000 -0700
+++ VTK-5.0.4/Utilities/DICOMParser/DICOMParser.cxx 2008-02-18 10:33:07.000000000 -0700
@@ -39,7 +39,7 @@
#include <sys/types.h>
#endif
-#include <string>
+#include <cstring>
// Define DEBUG_DICOM to get debug messages sent to dicom_stream::cerr
// #define DEBUG_DICOM

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:603c704734c73acde08565c2b2f3d92e3caf5b4f0e85bff55cbb281270ce6db1
size 6319860

View File

@ -1,11 +1,12 @@
--- VTK/Wrapping/Python/CMakeLists.txt~ 2005-08-25 21:31:14.000000000 +0200 diff -uNr VTK/Wrapping/Python/CMakeLists.txt new-VTK/Wrapping/Python/CMakeLists.txt
+++ VTK/Wrapping/Python/CMakeLists.txt 2006-05-27 13:32:40.000000000 +0200 --- VTK/Wrapping/Python/CMakeLists.txt 2008-05-03 21:34:42.000000000 +0200
@@ -299,7 +299,7 @@ +++ new-VTK/Wrapping/Python/CMakeLists.txt 2008-12-31 10:19:27.000000000 +0100
@@ -348,8 +348,8 @@
# Create default python setup arguments if they are not set. # Create default python setup arguments if they are not set.
IF(DEFINED VTK_PYTHON_SETUP_ARGS) IF(NOT 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 "--prefix=\"${DOLLAR}{CMAKE_INSTALL_PREFIX}\""
+ SET(VTK_PYTHON_SETUP_ARGS "--root=\"${DOLLAR}{CMAKE_INSTALL_PREFIX}\" -O1" + SET(VTK_PYTHON_SETUP_ARGS "--root=\"${DOLLAR}{CMAKE_INSTALL_PREFIX}\" -O1"
CACHE STRING "Arguments passed to \"python setup.py install ...\" during installation.") CACHE STRING "Arguments passed to \"python setup.py install ...\" during installation.")
MARK_AS_ADVANCED(VTK_PYTHON_SETUP_ARGS) MARK_AS_ADVANCED(VTK_PYTHON_SETUP_ARGS)
ENDIF(DEFINED VTK_PYTHON_SETUP_ARGS) ENDIF(NOT DEFINED VTK_PYTHON_SETUP_ARGS)

3
vtk-5.2.1.tar.bz2 Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:714c0dea68f65c65c02319ca495f5c367c64a52fb787aa13b1fe0f3fcfa6dfe2
size 13953658

123
vtk.spec
View File

@ -1,27 +1,30 @@
%define lib_ver 5.0 %define lib_ver 5.2
%define qtdir %{_libdir}/qt3 %define qtdir %{_libdir}/qt3
Name: vtk Name: vtk
Summary: The Visualization Toolkit - A high level 3D visualization library Summary: The Visualization Toolkit - A high level 3D visualization library
Version: %{lib_ver}.4 Version: %{lib_ver}.1
Release: 2 Release: 1
Packager: Werner Hoch <werner.ho@gmx.de> Packager: Werner Hoch <werner.ho@gmx.de>
License: BSD License: BSD
Group: System Environment/Libraries Group: System Environment/Libraries
Source: http://www.vtk.org/files/release/5.0/vtk-%{version}.tar.bz2
Source1: http://www.vtk.org/files/release/5.0/vtkdata-%{version}.tar.bz2
Patch0: vtk-5.0.0-pythondestdir.patch
Patch1: vtk-5.0.4-gcc43.patch
URL: http://www.vtk.org URL: http://www.vtk.org
Source: vtk-%{version}.tar.bz2
Patch0: vtk-5.2.1-pythondestdir.patch
Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root
BuildRequires: cmake, tcl-devel, tk-devel, qt3-devel, python-devel BuildRequires: cmake, tcl-devel, tk-devel, qt3-devel, python-devel
BuildRequires: expat, libjpeg-devel, libpng-devel, freetype2-devel BuildRequires: libexpat-devel, libjpeg-devel, libpng-devel, freetype2-devel
BuildRequires: libtiff-devel, zlib-devel, doxygen, graphviz BuildRequires: libtiff-devel, zlib-devel
BuildRequires: doxygen, graphviz, gnuplot
# tar-1.14.90+ uses --strip-components option # tar-1.14.90+ uses --strip-components option
BuildRequires: tar > 1.14.90 BuildRequires: tar > 1.14.90
BuildRequires: chrpath BuildRequires: chrpath
%if 0%{?suse_version} >= 1110
BuildRequires: freeglut-devel
%endif
%description %description
VTK is an open-source software system for image processing, 3D VTK is an open-source software system for image processing, 3D
@ -102,7 +105,7 @@ source
%prep %prep
%setup -n VTK -q %setup -n VTK -q
%patch0 -p1 %patch0 -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 \
@ -122,7 +125,7 @@ cmake . \
-DVTK_WRAP_TCL:BOOL=ON \ -DVTK_WRAP_TCL:BOOL=ON \
-DVTK_USE_PARALLEL:BOOL=ON \ -DVTK_USE_PARALLEL:BOOL=ON \
-DVTK_USE_RENDERING:BOOL=ON \ -DVTK_USE_RENDERING:BOOL=ON \
-DBUILD_DOCUMENTATION:BOOL=ON \ -DBUILD_DOCUMENTATION:BOOL=OFF \
-DBUILD_EXAMPLES:BOOL=ON \ -DBUILD_EXAMPLES:BOOL=ON \
-DBUILD_SHARED_LIBS:BOOL=ON \ -DBUILD_SHARED_LIBS:BOOL=ON \
-DBUILD_TESTING:BOOL=ON \ -DBUILD_TESTING:BOOL=ON \
@ -142,35 +145,22 @@ cmake . \
make %{_smp_mflags} make %{_smp_mflags}
cd Utilities/Doxygen
make DoxygenDoc
%install %install
rm -rf $RPM_BUILD_ROOT
make install make install
if [ "%{_lib}" != lib -a "`ls $RPM_BUILD_ROOT%{_prefix}/lib/*`" != "" ]; then
mkdir -p $RPM_BUILD_ROOT%{_libdir}
mv $RPM_BUILD_ROOT%{_prefix}/%{_lib}/* $RPM_BUILD_ROOT%{_libdir}/
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
# install testing-progs and examples # install testing-progs and examples
find bin -type f | egrep -v '\.' > bin-progs-list find bin -type f | egrep -v '\.' > bin-progs-list
install -d $RPM_BUILD_ROOT%{_bindir} install -d $RPM_BUILD_ROOT%{_bindir}
install -m 755 `cat bin-progs-list` $RPM_BUILD_ROOT%{_bindir} install -m 755 `cat bin-progs-list` $RPM_BUILD_ROOT%{_bindir}
# install data # generate the package testing-progs lists and store them in file-lists
install -d $RPM_BUILD_ROOT%{_datadir}/%{name}-data echo "%defattr (-, root, root)" > testing-progs-list
tar -xjvf %{SOURCE1} --strip-components 1 \ find $RPM_BUILD_ROOT%{_bindir} -type f | \
-C $RPM_BUILD_ROOT%{_datadir}/%{name}-data sed -e "s#^$RPM_BUILD_ROOT##" | \
# fix permissions and wrong eol encoding egrep -v '^%{_bindir}/(qt.*|vtk|pvtk|vtkWrap.*|vtkpython|pvtkpython)$'\
find $RPM_BUILD_ROOT%{_datadir}/%{name}-data -type f | xargs chmod 644 >> testing-progs-list
sed -i 's/\r//' $RPM_BUILD_ROOT%{_datadir}/%{name}-data/Data/usa.vtk
# examples and testing files
for d in Common Filtering GenericFiltering Graphics Hybrid IO \ for d in Common Filtering GenericFiltering Graphics Hybrid IO \
Imaging Parallel Rendering VolumeRendering Widgets Imaging Parallel Rendering VolumeRendering Widgets
do do
@ -196,21 +186,23 @@ find $RPM_BUILD_ROOT%{_datadir}/%{name}-examples \
find $RPM_BUILD_ROOT%{_datadir}/%{name}-examples \ find $RPM_BUILD_ROOT%{_datadir}/%{name}-examples \
-name "CMake*" | xargs rm -rf -name "CMake*" | xargs rm -rf
# generate the package testing-progs lists and store them in file-lists # cmake, testing
echo "%defattr (-, root, root)" > testing-progs-list install -d $RPM_BUILD_ROOT/%{_libdir}/vtk-%{lib_ver}/CMake
find $RPM_BUILD_ROOT%{_bindir} -type f | \ install -d $RPM_BUILD_ROOT/%{_libdir}/vtk-%{lib_ver}/testing
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 mv $RPM_BUILD_ROOT/%{_libdir}/*.cmake $RPM_BUILD_ROOT/%{_libdir}/vtk-%{lib_ver}
# find-debuginfo mv $RPM_BUILD_ROOT/%{_libdir}/CMake/* $RPM_BUILD_ROOT/%{_libdir}/vtk-%{lib_ver}/CMake
find $RPM_BUILD_ROOT%{_libdir} -type f -name \*.so\* | xargs chmod +x mv $RPM_BUILD_ROOT/%{_libdir}/hints $RPM_BUILD_ROOT/%{_libdir}/vtk-%{lib_ver}
mv $RPM_BUILD_ROOT/%{_libdir}/pkgIndex.tcl $RPM_BUILD_ROOT/%{_libdir}/vtk-%{lib_ver}
mv $RPM_BUILD_ROOT/%{_libdir}/testing $RPM_BUILD_ROOT/%{_libdir}/vtk-%{lib_ver}
mv $RPM_BUILD_ROOT/%{_libdir}/tcl $RPM_BUILD_ROOT/%{_libdir}/vtk-%{lib_ver}
# Make shared libs and scripts executable # remove doxygen scripts and
chmod a+x $RPM_BUILD_ROOT%{_libdir}/lib*.so.* rm -rf $RPM_BUILD_ROOT/%{_libdir}/doxygen
chmod a+x $RPM_BUILD_ROOT%{_libdir}/vtk-5.0/doxygen/*.pl rm -rf $RPM_BUILD_ROOT/%{_libdir}/doc
chmod a+x $RPM_BUILD_ROOT%{_libdir}/vtk-5.0/testing/*.{py,tcl}
# make scripts executable
chmod a+x $RPM_BUILD_ROOT%{_libdir}/vtk-%{lib_ver}/testing/*.{py,tcl}
# Remove exec bit from not-scripts # Remove exec bit from not-scripts
for file in `find $RPM_BUILD_ROOT Utilities/Upgrading -type f -perm 0755 | xargs -r file | grep ASCII | awk -F: '{print $1}'`; do for file in `find $RPM_BUILD_ROOT Utilities/Upgrading -type f -perm 0755 | xargs -r file | grep ASCII | awk -F: '{print $1}'`; do
@ -224,6 +216,14 @@ find $RPM_BUILD_ROOT -size 0 | xargs rm -f
# Remove any remnants of rpaths # Remove any remnants of rpaths
chrpath -d $RPM_BUILD_ROOT%{_bindir}/* chrpath -d $RPM_BUILD_ROOT%{_bindir}/*
# make doc-dirs
for dir in vtk vtk-devel vtk-tcl vtk-testing-progs ; do
install -d $RPM_BUILD_ROOT/%{_docdir}/"$dir"
done
%clean
rm -rf $RPM_BUILD_ROOT
%post -p /sbin/ldconfig %post -p /sbin/ldconfig
%post tcl -p /sbin/ldconfig %post tcl -p /sbin/ldconfig
@ -258,6 +258,12 @@ chrpath -d $RPM_BUILD_ROOT%{_bindir}/*
%{_libdir}/libvtkWidgets.so.* %{_libdir}/libvtkWidgets.so.*
%{_libdir}/libvtkNetCDF.so.* %{_libdir}/libvtkNetCDF.so.*
%{_libdir}/libvtkexoIIc.so.* %{_libdir}/libvtkexoIIc.so.*
%{_libdir}/libvtkInfovis.so.*
%{_libdir}/libvtkViews.so.*
%{_libdir}/libvtklibxml2.so.*
%{_libdir}/libvtkmetaio.so.*
%{_libdir}/libvtksqlite.so.*
%{_libdir}/libvtkverdict.so.*
%doc README.html %doc README.html
%doc vtkLogo.jpg %doc vtkLogo.jpg
@ -266,7 +272,6 @@ chrpath -d $RPM_BUILD_ROOT%{_bindir}/*
%files devel %files devel
%defattr(-,root,root,-) %defattr(-,root,root,-)
%dir %{_libdir}/vtk-%{lib_ver}/CMake %dir %{_libdir}/vtk-%{lib_ver}/CMake
%dir %{_libdir}/vtk-%{lib_ver}/doxygen
%{_includedir}/* %{_includedir}/*
%{_libdir}/vtk-%{lib_ver}/CMake/* %{_libdir}/vtk-%{lib_ver}/CMake/*
%{_libdir}/vtk-%{lib_ver}/*.cmake %{_libdir}/vtk-%{lib_ver}/*.cmake
@ -290,13 +295,18 @@ chrpath -d $RPM_BUILD_ROOT%{_bindir}/*
%{_libdir}/libvtk*TCL.so %{_libdir}/libvtk*TCL.so
%{_libdir}/libvtk*Python*.so %{_libdir}/libvtk*Python*.so
%{_libdir}/libQVTK.so %{_libdir}/libQVTK.so
%{_libdir}/libvtkInfovis.so
%{_libdir}/libvtkViews.so
%{_libdir}/libvtklibxml2.so
%{_libdir}/libvtkmetaio.so
%{_libdir}/libvtksqlite.so
%{_libdir}/libvtkverdict.so
%doc README.html %doc README.html
%doc vtkLogo.jpg %doc vtkLogo.jpg
%defattr(0644,root,root,-) %defattr(0644,root,root,-)
%doc Utilities/Upgrading/*.txt %doc Utilities/Upgrading/*.txt
%doc Utilities/Upgrading/*.pdf %doc Utilities/Upgrading/*.pdf
%doc Utilities/Upgrading/*.cmake %doc Utilities/Upgrading/*.cmake
%doc %{_libdir}/vtk-%{lib_ver}/doxygen/*
%files testing-progs -f testing-progs-list %files testing-progs -f testing-progs-list
%defattr(-,root,root,-) %defattr(-,root,root,-)
@ -319,12 +329,13 @@ chrpath -d $RPM_BUILD_ROOT%{_bindir}/*
%files python %files python
%defattr(-,root,root,-) %defattr(-,root,root,-)
%dir %{_libdir}/vtk-%{lib_ver}/testing
%{_bindir}/vtkWrapPython %{_bindir}/vtkWrapPython
%{_bindir}/vtkWrapPythonInit %{_bindir}/vtkWrapPythonInit
%{_bindir}/vtkpython %{_bindir}/vtkpython
%{_libdir}/libvtk*Python*.so.* %{_libdir}/libvtk*Python*.so.*
%{_libdir}/python*/site-packages/* %{py_sitedir}/*
%{_libdir}/vtk-%{lib_ver}/testing/*.py* %{_libdir}/vtk-%{lib_ver}/testing/*.py
%files qt %files qt
@ -339,23 +350,17 @@ chrpath -d $RPM_BUILD_ROOT%{_bindir}/*
%defattr(-,root,root,-) %defattr(-,root,root,-)
%{_datadir}/%{name}-examples %{_datadir}/%{name}-examples
%files data
%defattr(-,root,root,-)
%{_datadir}/%{name}-data
%files doc
%defattr(-,root,root,-)
%{_datadir}/%{name}-docs
%clean
rm -rf $RPM_BUILD_ROOT
%changelog %changelog
* Sat Jan 03 2009 Werner Hoch <werner.ho@gmx.de> - 5.2.1
- removed vtk-data
- removed vtk-doc (doxygen)
- new version 5.2.1
- build fixes for openSUSE 11.1
* Sat Aug 09 2008 Werner Hoch <werner.ho@gmx.de> - 5.0.4 * Sat Aug 09 2008 Werner Hoch <werner.ho@gmx.de> - 5.0.4
- switched to the specfile from Jaroslaw Zachwieja - switched to the specfile from Jaroslaw Zachwieja
http://www2.warwick.ac.uk/fac/sci/csc/people/computingstaff/jaroslaw_zachwieja/vtk/ http://www2.warwick.ac.uk/fac/sci/csc/people/computingstaff/jaroslaw_zachwieja/vtk/
- use qt3 instead of qt4 - 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

View File

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