|
@@ -2,40 +2,36 @@
|
|
%define version %{vtkver}.2
|
|
%define version %{vtkver}.2
|
|
%define vtkdata_dir %{_datadir}/vtk-data-%{version}
|
|
%define vtkdata_dir %{_datadir}/vtk-data-%{version}
|
|
%define qt_designer_plugins_dir %(qmake -query QT_INSTALL_PREFIX)/plugins/designer
|
|
%define qt_designer_plugins_dir %(qmake -query QT_INSTALL_PREFIX)/plugins/designer
|
|
-
|
|
|
|
|
|
+%define tcl_ver %(echo "puts [info tclversion]" | %{_bindir}/tclsh)
|
|
Summary: The Visualization Toolkit - A high level 3D visualization library
|
|
Summary: The Visualization Toolkit - A high level 3D visualization library
|
|
Summary: The Visualization Toolkit - ハイレベル3D可視化ライブラリ
|
|
Summary: The Visualization Toolkit - ハイレベル3D可視化ライブラリ
|
|
Group: System Environment/Libraries
|
|
Group: System Environment/Libraries
|
|
Name: vtk
|
|
Name: vtk
|
|
Version: %{version}
|
|
Version: %{version}
|
|
-Release: 1%{?_dist_release}
|
|
|
|
|
|
+Release: 2%{?_dist_release}
|
|
Source0: vtk-%{version}.tar.gz
|
|
Source0: vtk-%{version}.tar.gz
|
|
Source1: vtkdata-%{version}.tar.gz
|
|
Source1: vtkdata-%{version}.tar.gz
|
|
-
|
|
|
|
-Patch0: vtk-5.0-getsockname.patch
|
|
|
|
-Patch1: http://www.gfd-dennou.org/arch/ruby/products/ruby-vtk/vtk-ruby-060915.patch
|
|
|
|
Patch2: vtk-5.2.1-boost-1.42.patch
|
|
Patch2: vtk-5.2.1-boost-1.42.patch
|
|
-
|
|
|
|
License: BSD style
|
|
License: BSD style
|
|
URL: http://www.vtk.org/
|
|
URL: http://www.vtk.org/
|
|
-
|
|
|
|
BuildRequires: cmake >= 2.0.0
|
|
BuildRequires: cmake >= 2.0.0
|
|
BuildRequires: xorg-x11-devel, mesa-libGL-devel
|
|
BuildRequires: xorg-x11-devel, mesa-libGL-devel
|
|
BuildRequires: expat-devel, zlib-devel
|
|
BuildRequires: expat-devel, zlib-devel
|
|
BuildRequires: netcdf
|
|
BuildRequires: netcdf
|
|
BuildRequires: libjpeg-devel, libpng-devel, libtiff-devel, freetype2-devel
|
|
BuildRequires: libjpeg-devel, libpng-devel, libtiff-devel, freetype2-devel
|
|
BuildRequires: tcl, tk, python, python-devel
|
|
BuildRequires: tcl, tk, python, python-devel
|
|
-#BuildRequires: ruby, ruby-devel
|
|
|
|
BuildRequires: qt-devel
|
|
BuildRequires: qt-devel
|
|
BuildRequires: libboost-devel
|
|
BuildRequires: libboost-devel
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
-
|
|
|
|
Requires: cmake
|
|
Requires: cmake
|
|
Requires: xorg-x11-libs, mesa-libGL
|
|
Requires: xorg-x11-libs, mesa-libGL
|
|
Requires: expat, zlib
|
|
Requires: expat, zlib
|
|
Requires: netcdf
|
|
Requires: netcdf
|
|
Requires: libjpeg, libpng, libtiff, freetype2
|
|
Requires: libjpeg, libpng, libtiff, freetype2
|
|
Obsoletes: %{name}-ruby < %{version}
|
|
Obsoletes: %{name}-ruby < %{version}
|
|
|
|
+Distribution: Project Vine
|
|
|
|
+Vendor: Vine Linux
|
|
|
|
+Packager: owa
|
|
|
|
|
|
%description
|
|
%description
|
|
VTK - the Visualization Toolkit is an object oriented, high
|
|
VTK - the Visualization Toolkit is an object oriented, high
|
|
@@ -95,15 +91,6 @@ python scripts. You will need python and vtk installed to use this.
|
|
Remember to set your PYTHONPATH variable properly before running your
|
|
Remember to set your PYTHONPATH variable properly before running your
|
|
scripts.
|
|
scripts.
|
|
|
|
|
|
-#%package ruby
|
|
|
|
-#Summary: Ruby bindings for VTK.
|
|
|
|
-#Group: Applications/Engineering
|
|
|
|
-#Requires: %{name} = %{version}-%{release}
|
|
|
|
-#Requires: ruby
|
|
|
|
-#
|
|
|
|
-#%description ruby
|
|
|
|
-#This provides the shared libraries that enable one to use VTK from
|
|
|
|
-#ruby scripts. You will need ruby and vtk installed to use this.
|
|
|
|
|
|
|
|
%package qt
|
|
%package qt
|
|
Summary: QT VTK widget
|
|
Summary: QT VTK widget
|
|
@@ -151,13 +138,12 @@ These data are required to run various examples from the examples package.
|
|
|
|
|
|
%prep
|
|
%prep
|
|
%setup -q -n VTK
|
|
%setup -q -n VTK
|
|
-#%patch0 -p1 -b .getsockname
|
|
|
|
-#%patch1 -p1 -b .ruby-060915
|
|
|
|
%patch2 -p1 -b .boost-1.42
|
|
%patch2 -p1 -b .boost-1.42
|
|
|
|
|
|
# fix data path
|
|
# fix data path
|
|
find . -type f | xargs sed -i -e 's|../../../../VTKData|%{vtkdata_dir}|g'
|
|
find . -type f | xargs sed -i -e 's|../../../../VTKData|%{vtkdata_dir}|g'
|
|
|
|
|
|
|
|
+
|
|
%build
|
|
%build
|
|
## This section wad fixed reference to Mandriva package
|
|
## This section wad fixed reference to Mandriva package
|
|
# Remove old cmake files
|
|
# Remove old cmake files
|
|
@@ -198,9 +184,13 @@ rm -f CMake/FindBoost*
|
|
-DVTK_USE_SYSTEM_LIBXML2:BOOL=ON \
|
|
-DVTK_USE_SYSTEM_LIBXML2:BOOL=ON \
|
|
-DVTK_USE_QVTK_QTOPENGL:BOOL=ON \
|
|
-DVTK_USE_QVTK_QTOPENGL:BOOL=ON \
|
|
-DVTK_USE_BOOST:BOOL=ON \
|
|
-DVTK_USE_BOOST:BOOL=ON \
|
|
|
|
+ -DTCL_LIBRARY:FILEPATH=%{_libdir}/libtcl%{tcl_ver}.so\
|
|
|
|
+ -DTK_LIBRARY:FILEPATH=%{_libdir}/libtk%{tcl_ver}.so\
|
|
;
|
|
;
|
|
|
|
|
|
-%__make %{?_smp_mflags}
|
|
|
|
|
|
+## don't use _smp_mflags
|
|
|
|
+##%__make %{?_smp_mflags}
|
|
|
|
+%__make
|
|
|
|
|
|
|
|
|
|
%install
|
|
%install
|
|
@@ -294,17 +284,6 @@ rm -rf $RPM_BUILD_ROOT
|
|
%{_libdir}/vtk-%{vtkver}/testing/*py
|
|
%{_libdir}/vtk-%{vtkver}/testing/*py
|
|
|
|
|
|
|
|
|
|
-#%files ruby
|
|
|
|
-#%defattr(-,root,root)
|
|
|
|
-#%{_bindir}/vtkruby
|
|
|
|
-#%{_bindir}/vtkWrapRuby
|
|
|
|
-#%{_bindir}/vtkWrapRubyInit
|
|
|
|
-#%{_libdir}/libvtk*Ruby*.so*
|
|
|
|
-#%{rlibdir}/vtk.rb
|
|
|
|
-#%{rlibdir}/vtk/
|
|
|
|
-#%{rarchdir}/vtk/
|
|
|
|
-
|
|
|
|
-
|
|
|
|
%files qt
|
|
%files qt
|
|
%defattr(-,root,root)
|
|
%defattr(-,root,root)
|
|
%{_libdir}/libQVTK.so.*
|
|
%{_libdir}/libQVTK.so.*
|
|
@@ -325,6 +304,11 @@ rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
%changelog
|
|
|
|
+* Sun May 08 2011 Shu KONNO <owa@bg.wakwak.com> 5.4.2-2
|
|
|
|
+- remove _smp_mflags
|
|
|
|
+- added tcl_ver macro
|
|
|
|
+- added TCL_LIBRARY, TK_LIBRARY to cmake
|
|
|
|
+
|
|
* Tue May 04 2010 Shu KONNO <owa@bg.wakwak.com> 5.4.2-1
|
|
* Tue May 04 2010 Shu KONNO <owa@bg.wakwak.com> 5.4.2-1
|
|
- updated vtk to 5.4.2
|
|
- updated vtk to 5.4.2
|
|
- updated vtkdata to 5.4.2
|
|
- updated vtkdata to 5.4.2
|