Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Podeiko:KDE:Release:49
vtk
vtk.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File vtk.spec of Package vtk
# # spec file for package vtk # # Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # Name: vtk Version: 6.0.0 Release: 4.1 %define series 6.0 # This is a variant BSD license, a cross between BSD and ZLIB. # For all intents, it has the same rights and restrictions as BSD. # http://fedoraproject.org/wiki/Licensing/BSD#VTKBSDVariant Summary: The Visualization Toolkit - A high level 3D visualization library License: BSD-3-Clause Group: Productivity/Scientific/Other Url: http://vtk.org/ Source: http://www.vtk.org/files/release/%{series}/%{name}-%{version}.tar.gz # PATCH-FIX-UPSTREAM vtk-system.patch badshah400@gmail.com -- Use system libraries, http://public.kitware.com/Bug/view.php?id=11823 Patch0: vtk-system.patch # PATCH-FIX-UPSTREAM vtk-fix-file-contains-date-time.patch badshah400@gmail.com -- Fix file containing DATE and TIME Patch1: vtk-fix-file-contains-date-time.patch # PATCH-FIX-UPSTREAM vtk-install-missing-modules.patch badshah400@gmail.com -- Install some cmake modules missed in upstream packaging (will be required if in future we can get paraview to use system installed vtk) Patch2: vtk-install-missing-modules.patch %if 0%{?suse_version} > 1210 BuildRequires: Mesa-libGL-devel %else BuildRequires: Mesa-devel %endif BuildRequires: boost-devel BuildRequires: chrpath BuildRequires: cmake BuildRequires: doxygen BuildRequires: fdupes BuildRequires: freetype2-devel BuildRequires: gcc-c++ %if 0%{?suse_version} > 1210 BuildRequires: gl2ps-devel %endif BuildRequires: gnuplot BuildRequires: graphviz %if 0%{?suse_version} > 1210 BuildRequires: hdf5-devel %endif BuildRequires: java-devel BuildRequires: libQtWebKit-devel %if 0%{?suse_version} > 1210 BuildRequires: libX11-devel BuildRequires: libXt-devel %else BuildRequires: xorg-x11-devel %endif %if 0%{?suse_version} <= 1230 BuildRequires: R-base-devel %endif BuildRequires: libexpat-devel BuildRequires: libiodbc-devel BuildRequires: libjpeg-devel BuildRequires: libmysqlclient-devel BuildRequires: libpng-devel BuildRequires: libqt4-devel BuildRequires: libtheora-devel BuildRequires: libtiff-devel BuildRequires: python-devel BuildRequires: python-qt4-devel BuildRequires: tcl-devel BuildRequires: tk-devel BuildRequires: wget BuildRequires: zlib-devel %if %{?sles_version} BuildRequires: libxml2-devel %else BuildRequires: pkgconfig(libxml-2.0) %endif BuildRoot: %{_tmppath}/%{name}-%{version}-build %define qtdir %{_lib}/qt4 %description VTK is an open-source software system for image processing, 3D graphics, volume rendering and visualization. VTK includes many advanced algorithms (e.g., surface reconstruction, implicit modelling, decimation) and rendering techniques (e.g., hardware-accelerated volume rendering, LOD control). %package devel Summary: VTK header files for building C++ code Group: Development/Libraries/Other Requires: %{name} = %{version} %if 0%{?suse_version} >= 1130 Requires: %{name}-java = %{version} %endif Requires: %{name}-qt = %{version} Requires: %{name}-tcl = %{version} %if 0%{?suse_version} > 1210 Requires: Mesa-libGL-devel %else Requires: Mesa-devel %endif %if 0%{?suse_version} > 1210 Requires: gl2ps-devel Requires: hdf5-devel %endif %if 0%{?suse_version} <= 1230 Requires: R-base-devel %endif Requires: libexpat-devel Requires: libjpeg-devel Requires: libmysqlclient-devel Requires: libogg-devel Requires: libpng-devel Requires: libqt4-devel Requires: libtheora-devel Requires: libtiff-devel Requires: python-%{name} = %{version} %if 0%{?suse_version} >= 1130 Requires: python-%{name}-qt = %{version} %endif %description devel VTK is an open-source software system for image processing, 3D graphics, volume rendering and visualization. VTK includes many advanced algorithms (e.g., surface reconstruction, implicit modelling, decimation) and rendering techniques (e.g., hardware-accelerated volume rendering, LOD control). This provides the VTK header files required to compile C++ programs that use VTK to do 3D visualisation. %if 0%{?suse_version} >= 1130 %package java Summary: Java bindings for VTK Group: Development/Libraries/Java Requires: %{name} = %{version} %description java VTK is an open-source software system for image processing, 3D graphics, volume rendering and visualization. VTK includes many advanced algorithms (e.g., surface reconstruction, implicit modelling, decimation) and rendering techniques (e.g., hardware-accelerated volume rendering, LOD control). This package provides java bindings for VTK. %endif %package -n python-%{name} Summary: Python bindings for VTK Group: System/Libraries Requires: %{name} = %{version} %{py_requires} %description -n python-%{name} VTK is an open-source software system for image processing, 3D graphics, volume rendering and visualization. VTK includes many advanced algorithms (e.g., surface reconstruction, implicit modelling, decimation) and rendering techniques (e.g., hardware-accelerated volume rendering, LOD control). This package provides python bindings for VTK. %if 0%{?suse_version} >=1130 %package -n python-%{name}-qt Summary: Qt Python VTK widget Group: System/Libraries Requires: %{name} = %{version} Requires: %{name}-qt = %{version} Requires: python-%{name} = %{version} Requires: python-qt4 %{py_requires} %description -n python-%{name}-qt VTK is an open-source software system for image processing, 3D graphics, volume rendering and visualization. VTK includes many advanced algorithms (e.g., surface reconstruction, implicit modelling, decimation) and rendering techniques (e.g., hardware-accelerated volume rendering, LOD control). This package provides python-qt bindings for VTK. %endif %package qt Summary: Qt VTK widget Group: Development/Libraries/C and C++ Requires: %{name} = %{version} %description qt VTK is an open-source software system for image processing, 3D graphics, volume rendering and visualization. VTK includes many advanced algorithms (e.g., surface reconstruction, implicit modelling, decimation) and rendering techniques (e.g., hardware-accelerated volume rendering, LOD control). This package provides Qt bindings for VTK. %package tcl Summary: Tcl bindings for VTK Group: System/Libraries Requires: %{name} = %{version} %description tcl VTK is an open-source software system for image processing, 3D graphics, volume rendering and visualization. VTK includes many advanced algorithms (e.g., surface reconstruction, implicit modelling, decimation) and rendering techniques (e.g., hardware-accelerated volume rendering, LOD control). This package provides tcl bindings for VTK. %package examples Summary: Examples for VTK Group: Productivity/Scientific/Other Requires: %{name} = %{version} Requires: %{name}data = %{version} %description examples VTK is an open-source software system for image processing, 3D graphics, volume rendering and visualization. VTK includes many advanced algorithms (e.g., surface reconstruction, implicit modelling, decimation) and rendering techniques (e.g., hardware-accelerated volume rendering, LOD control). This package contains many well-commented examples showing how to use VTK. Examples are available in the C++, Tcl, Python and Java programming languages. %package testing Summary: Testing programs for VTK Group: Productivity/Scientific/Other Requires: %{name} = %{version} Requires: %{name}data = %{version} %description testing VTK is an open-source software system for image processing, 3D graphics, volume rendering and visualization. VTK includes many advanced algorithms (e.g., surface reconstruction, implicit modelling, decimation) and rendering techniques (e.g., hardware-accelerated volume rendering, LOD control). This package provides a few testing programs for VTK. %prep %setup -q -n VTK%{version} %patch0 -p1 %patch1 -p1 %patch2 -p1 # Replace relative path ../../../VTKData with %%{_datadir}/%%{name}data-%%{version} # otherwise it will break on symlinks. grep -rl '\.\./\.\./\.\./\.\./VTKData' . | xargs perl -pi -e's,\.\./\.\./\.\./\.\./VTKData,%{_datadir}/%{name},g' %build export CFLAGS="%{optflags}" export CXXFLAGS="%{optflags}" mkdir build pushd build cmake .. \ -DBUILD_DOCUMENTATION:BOOL=ON \ -DBUILD_EXAMPLES:BOOL=ON \ -DBUILD_SHARED_LIBS:BOOL=ON \ -DBUILD_TESTING:BOOL=ON \ -DVTK_CUSTOM_LIBRARY_SUFFIX="" \ -DCMAKE_INSTALL_PREFIX:PATH=%{_prefix} \ -DSIP_INCLUDE_DIR:Path=%{py_incdir} \ -DVTK_INSTALL_ARCHIVE_DIR:PATH=%{_lib}/%{name} \ -DVTK_INSTALL_LIBRARY_DIR:PATH=%{_lib}/%{name}\ -DVTK_INSTALL_PACKAGE_DIR:PATH=%{_lib}/cmake/%{name} \ -DVTK_INSTALL_TCL_DIR:PATH=share/tcl/%{name} \ -DVTK_INSTALL_QT_DIR:STRING=/%{qtdir}/plugins/designer \ -DVTK_USE_OGGTHEORA_ENCODER:BOOL=ON \ -DVTK_USE_RENDERING:BOOL=ON \ -DVTK_USE_SYSTEM_LIBRARIES:BOOL=ON \ -DVTK_USE_SYSTEM_LIBPROJ4:BOOL=OFF \ %if 0%{?suse_version} <= 1230 -DVTK_USE_SYSTEM_GL2PS:BOOL=OFF \ %endif %if 0%{?suse_version} <= 1210 -DVTK_USE_SYSTEM_HDF5:BOOL=OFF \ %endif -DVTK_PYTHON_SETUP_ARGS="--prefix=%{_prefix} --root=%{buildroot}" \ -DVTK_WRAP_PYTHON:BOOL=ON \ %if 0%{?suse_version} >= 1130 -DVTK_WRAP_JAVA:BOOL=ON \ -DVTK_WRAP_PYTHON_SIP:BOOL=ON \ %else -DVTK_WRAP_JAVA:BOOL=OFF \ -DVTK_WRAP_PYTHON_SIP:BOOL=OFF \ %endif -DVTK_WRAP_TCL:BOOL=ON \ -DVTK_Group_Imaging:BOOL=ON \ -DVTK_Group_Qt:BOOL=ON \ -DVTK_Group_Rendering:BOOL=ON \ -DVTK_Group_StandAlone:BOOL=ON \ -DVTK_Group_Tk:BOOL=ON \ -DVTK_Group_Views:BOOL=ON \ %if 0%{?suse_version} <= 1230 -DModule_vtkFiltersStatisticsGnuR:BOOL=ON \ %else -DModule_vtkFiltersStatisticsGnuR:BOOL=OFF \ %endif -DVTK_WRAP_TCL:BOOL=ON make %{?_smp_mflags} VERBOSE=1 # Remove executable bits from sources (some of which are generated) find . -name \*.c -or -name \*.cxx -or -name \*.h -or -name \*.hxx -or -name \*.gif | xargs chmod -x popd %install pushd build %makeinstall # Install conf file to enable vtk to find its libraries mkdir -p %{buildroot}/%{_sysconfdir}/ld.so.conf.d echo %{_libdir}/%{name} > %{buildroot}/%{_sysconfdir}/ld.so.conf.d/%{name}.conf # http://vtk.org/Bug/view.php?id=14125 chrpath -d %{buildroot}%{python_sitelib}/%{name}/*.so # Gather list of non-binding libraries ls %{buildroot}%{_libdir}/%{name}/lib*.so.* | grep -Ev '(Java|QVTK|Qt|Python|TCL)' | sed -e's,^%{buildroot},,' > libs.list # List of executable examples cat > examples.list << EOF Generate2DAMRDataSetWithPulse Generate3DAMRDataSetWithPulse HierarchicalBoxPipeline LabeledMesh MultiBlock Arrays Cube RGrid SGrid ImageDataLIC2DDemo StructuredGridLIC2DDemo ImageProcessingExamplesCxxTests ImageSlicing DumpXMLFile IOExamplesCxxTests ParticleReader GenerateCubesFromLabels GenerateModelsFromLabels Medical1 Medical2 Medical3 Medical4 MedicalExamplesCxxTests Delaunay3D Delaunay3DAlpha ModellingExamplesCxxTests finance AmbientSpheres Cylinder DiffuseSpheres MaterialObjects SpecularSpheres SurfaceLICDemo Cone Cone2 Cone3 Cone4 Cone5 Cone6 BandedContours FilledContours TubesWithVaryingRadiusAndColors VisualizationAlgorithmsExamplesCxxTests FixedPointVolumeRayCastMapperCT GPURenderDemo BalloonWidget Slider Slider2D WidgetsExamplesCxxTests EOF # Install examples for file in `cat examples.list`; do install -p bin/$file %{buildroot}%{_bindir} done perl -pi -e's,^,%{_bindir}/,' examples.list # vtkpython does not get installed by script, install manually cp -p bin/vtkpython %{buildroot}%{_bindir}/ # Remove rpaths from installed binaries chrpath -d %{buildroot}%{_bindir}/* %fdupes -s %{buildroot} %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %if 0%{?suse_version} >= 1130 %post java -p /sbin/ldconfig %postun java -p /sbin/ldconfig %endif %post -n python-%{name} -p /sbin/ldconfig %postun -n python-%{name} -p /sbin/ldconfig %if 0%{?suse_version} >=1130 %post -n python-%{name}-qt -p /sbin/ldconfig %postun -n python-%{name}-qt -p /sbin/ldconfig %endif %post qt -p /sbin/ldconfig %postun qt -p /sbin/ldconfig %post tcl -p /sbin/ldconfig %postun tcl -p /sbin/ldconfig %files -f build/libs.list %defattr(-,root,root,-) %config %{_sysconfdir}/ld.so.conf.d/%{name}.conf %doc Copyright.txt %dir %{_libdir}/%{name}/ %files devel %defattr(-,root,root,-) %{_bindir}/%{name}EncodeString %{_bindir}/%{name}HashSource %{_bindir}/%{name}ParseOGLExt %{_bindir}/%{name}ProcessShader %{_bindir}/%{name}WrapHierarchy %{_datadir}/doc/%{name}-%{series}/ %{_libdir}/%{name}/*.so %{_libdir}/cmake/%{name}/ %{_libdir}/%{name}/libvtkWrappingTools.a %{_includedir}/%{name}-%{series}/ %{_datadir}/tcl/vtk/vtktcl.c %if 0%{?suse_version} >= 1130 %files java %defattr(-,root,root,-) %{_bindir}/%{name}ParseJava %{_bindir}/%{name}WrapJava %{_libdir}/%{name}/%{name}.jar %{_libdir}/%{name}/*Java.so.* %endif %files -n python-%{name} %defattr(-,root,root,-) %{_bindir}/%{name}python %{_bindir}/%{name}WrapPython %{_bindir}/%{name}WrapPythonInit %{_libdir}/%{name}/*Python*.so.* %{python_sitelib}/VTK-%{series}-py%{py_ver}.egg-info %{python_sitelib}/%{name}/ %exclude %{_libdir}/%{name}/*QtPython27D.so.* %files tcl %defattr(-,root,root,-) %{_bindir}/%{name} %{_bindir}/%{name}WrapTcl %{_bindir}/%{name}WrapTclInit %{_datadir}/tcl/%{name}/ %{_libdir}/%{name}/lib%{name}*TCL.so.* %exclude %{_libdir}/%{name}/*QtTCL.so.* %exclude %{_datadir}/tcl/vtk/vtktcl.c %files qt %defattr(-,root,root,-) %{_libdir}/%{name}/lib*Qt*.so.* %dir %{_prefix}/%{qtdir}/plugins/designer %{_prefix}/%{qtdir}/plugins/designer/libQVTKWidgetPlugin.so %exclude %{_libdir}/%{name}/*Python27D.so.* %files -n python-%{name}-qt %defattr(-,root,root,-) %{_libdir}/%{name}/*QtPython27D.so.* %files examples -f build/examples.list %defattr(-,root,root,-) %changelog * Fri Jul 19 2013 badshah400@gmail.com - Disable R bindings for Factory, since it causes weird build failures in openSUSE:Factory, (strangely no failures in devel project) until the reason behind the failure is found and fixed. * Fri Jun 28 2013 badshah400@gmail.com - Update to version 6.0.0: + Lengthy list of changes, see http://www.kitware.com/blog/home/post/515 for a summary - Also build R language bindings, introduces dependency on R-base - Drop patches for already being incorporated upstream: + vtk-pythondestdir.patch + vtk-sqldatabaseschema.patch + vtk-soversion2.patch - Rebase patches for updated version: + vtk-fix-file-contains-date-time.patch + vtk-system.patch - Add vtk-install-missing-modules.patch to install cmake modules missed by the upstream packaging, will be required esp. when we will be able to use the system installed vtk to build paraview in the future; patch taken from Fedora - Remove unused cmake variables during configuration - Install all examples (several more added in current version) - Install vtk.conf file in /etc/ld.so.conf.d to enable vtk find its libraries - Testing binaries are no longer installed separately. * Fri Oct 26 2012 badshah400@gmail.com - Update to version 5.10.1: + Fix netCDF symbol mangling, which allows applications to use an external netCDF library and VTK's internal copy simultaneously + Fixes for STL and SLC readers that prevent crashes and file handle resource exhaustion + Fix compilation on FreeBSD operating system + A handful of fixes in VTK's Qt interface kit + Fixes for interpreted language wrapping including a bug which prevented java wrapping of VTK on power PC macs, and compatibility with Tcl 8.6 - Add vtk-fix-file-contains-date-time.patch to fix rpmlint warning about a packaged file containing DATE and TIME. * Mon Jun 25 2012 scorot@free.fr - build python-qt and java binding for openSUSE version higher than 11.2 which fixes build on SLE 11 * Fri May 18 2012 badshah400@gmail.com - Update to version 5.10.0: See http://www.kitware.com/news/home/browse/408 for a detailed list of changes - Dropped patches: + vtk-boost149.patch: implemented upstream - Patch vtk-sqldatabaseschema.patch now only required for openSUSE 11.4 - Minor rebasing of existing patches so they apply cleanly - No longer use verbose make. * Thu May 10 2012 idonmez@suse.com - Remove openmotif dependency * Sun Apr 22 2012 asterios.dramis@gmail.com - Use the gl2ps and hdf5 system libraries for building in openSUSE > 12.1. - Updated Mesa and XOrg dependencies for openSUSE > 12.1. - Removed the following dependencies which are not needed: MesaGLw-devel, freeglut-devel, gcc-java, libgcj-devel and sqlite3-devel. - Removed postgresql-devel dependency (wasn't enabled and fails to compile anyway - added a note about it). - Removed build time references so build-compare can do its work. - Compile the package out-of-source. - Use the generic "VTK_USE_SYSTEM_LIBRARIES" cmake variable for enabling the use of system libraries instead of doing it with a per package variable. * Sun Apr 8 2012 idonmez@suse.com - Fix compilation with boost 1.49 and enable boost again * Tue Mar 27 2012 toddrme2178@gmail.com - Cleaned up spec file formatting - Build and package python-qt (python-sip) bindings - Link libraries to library directory instead of moving them to avoid breaking the find vtk cmake macro - Force enable of various additional optional components - Removed redundant packages (readme and logo) from backends - Make the devel package depend on the backends, since it does not work properly without them - Disable boost building on factory due to an icompatibility with boosswt 1.4.9+. See http://vtk.org/Bug/view.php?id=12988 * Thu Feb 2 2012 toddrme2178@gmail.com - Reverted the source file change since it didn't work - Changed the license text a little * Wed Feb 1 2012 toddrme2178@gmail.com - Switched to approved license text (fix for RPMLINT warning) - Escaped some macros in comments (fix for RPMLINT warnings) - Made the source file a tiny bit easier to use * Wed Oct 12 2011 prusnak@opensuse.org - updated to 5.8.0 - removed patches: * vtk-Balloon-Representation.patch (applied in upstream) * vtk-gcc43.patch (applied in upstream) * vtk-gcc46.patch (applied in upstream) * vtk-libpng14.patch (applied in upstream) * vtk-python27-compat.patch (applied in upstream) * vtk-soversion.patch (applied in upstream) * vtk-string-length.patch (not needed anymore) * vtk-testcxxjavaremove.patch (applied in upstream) * Sat May 28 2011 badshah400@gmail.com - Add explicit libQtWebKit-devel BuildRequires to fix build failures on openSUSE 11.3 - Make description of sub-package vtk-qt more detailed - Spec file clean up * Sat May 28 2011 alinm.elena@gmail.com - fix the missing soname for libVTKnetcdf_cxx * Sun May 22 2011 stecue@gmail.com - Fix the broken vtk-qt package * Thu Apr 14 2011 badshah400@gmail.com - Fix dependencies for openSUSE 11.2 and SLE 11 - Fix build problems with openSUSE 11.4 * Thu Apr 14 2011 badshah400@gmail.com - Restored vtk-string-length.patch to solve buffer overflow errors during string copy operations * Wed Mar 30 2011 badshah400@gmail.com - Added vtk-sqldatabaseschema.patch (from upstream) to fix compilation errors with python enabled * Wed Mar 23 2011 badshah400@gmail.com - Update to version 5.6.1, rebase existing patches and remove unnecessary ones * Wed Mar 23 2011 badshah400@gmail.com - Add vtk-python2.7-compat.patch to fix build problems with python 2.7 - Add vtk-gcc4.3.patch to fix building issues with gcc 4.3 * Thu Mar 25 2010 boris@steki.net - Extended buffer size in VTK/Utilities/kwsys/SystemInformation.cxx to fix buffer overflow report from rpmlint
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor