X-Git-Url: http://git.pld-linux.org/?a=blobdiff_plain;f=ParaView.spec;h=cfede1671b872418b7be466efba5d023ce3426fc;hb=6107e20e0c5c47df218ef4b75df9df936c5b2bc7;hp=56f750f4f28378aba1ce44e37ce341bb2debacc7;hpb=72d81c284a13c6dcd4b12650410f414655fce310;p=packages%2FParaView.git diff --git a/ParaView.spec b/ParaView.spec index 56f750f..cfede16 100644 --- a/ParaView.spec +++ b/ParaView.spec @@ -1,24 +1,34 @@ Summary: Parallel visualization application Name: ParaView -Version: 3.12.0 -Release: 0.1 +Version: 4.0.1 +Release: 5 License: BSD Group: Applications/Engineering URL: http://www.paraview.org/ -Source0: http://www.paraview.org/files/v3.12/%{name}-%{version}.tar.gz -# Source0-md5: 8feabc6261e2060648eaac593d85b1de +Source0: http://www.paraview.org/files/v4.0/%{name}-v%{version}-source.tgz +# Source0-md5: 6a300744eaf32676a3a7e1b42eb642c7 Source1: %{name}_22x22.png Source2: %{name}.xml -Patch0: %{name}-3.8.0-include.patch -Patch1: %{name}-3.12.0-boost-1.48.0-bfs.patch -Patch2: %{name}-gcc47.patch -Patch3: %{name}-3.2.2-hdf5.patch +Patch0: %{name}-vtk-use-system-libs.patch +Patch1: %{name}-install.patch +Patch2: %{name}-system-Protobuf.patch +Patch3: %{name}-system-netcdf.patch +Patch4: disable-broken-tests.patch +BuildRequires: Mesa-libOSMesa-devel +BuildRequires: QtDesigner-devel +BuildRequires: QtHelp-devel +BuildRequires: QtSql-devel +BuildRequires: QtSql-sqlite3 +BuildRequires: QtUiTools-devel +BuildRequires: QtXmlPatterns-devel +BuildRequires: QtWebKit-devel BuildRequires: boost-devel BuildRequires: cmake BuildRequires: desktop-file-utils BuildRequires: doxygen BuildRequires: expat-devel BuildRequires: freetype-devel +BuildRequires: gl2ps-devel BuildRequires: gnuplot BuildRequires: graphviz BuildRequires: hdf5-devel @@ -26,35 +36,33 @@ BuildRequires: libjpeg-devel BuildRequires: libpng-devel BuildRequires: libtheora-devel BuildRequires: libtiff-devel -BuildRequires: Mesa-libOSMesa-devel +BuildRequires: netcdf-devel +BuildRequires: netcdf-cxx-devel BuildRequires: openssl-devel +BuildRequires: protobuf-devel BuildRequires: python-devel BuildRequires: qt4-build -BuildRequires: QtWebKit-devel -BuildRequires: QtSql-devel -BuildRequires: QtSql-sqlite -BuildRequires: QtUiTools-devel -BuildRequires: QtHelp-devel -BuildRequires: QtDesigner-devel BuildRequires: readline-devel BuildRequires: tk-devel BuildRequires: wget BuildRequires: zlib-devel -Requires: %{name}-data = %{version}-%{release} -Requires: %{name}-doc = %{version}-%{release} Requires(post): desktop-file-utils Requires(postun): desktop-file-utils +Requires: QtSql-sqlite3 +%requires_eq_to hdf5 hdf5-devel BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) +%define skip_post_check_so lib.*Python.*\.so.* + %description ParaView is an application designed with the need to visualize large data sets in mind. The goals of the ParaView project include the following: - - Develop an open-source, multi-platform visualization application. - - Support distributed computation models to process large data sets. - - Create an open, flexible, and intuitive user interface. - - Develop an extensible architecture based on open standards. +- Develop an open-source, multi-platform visualization application. +- Support distributed computation models to process large data sets. +- Create an open, flexible, and intuitive user interface. +- Develop an extensible architecture based on open standards. ParaView runs on distributed and shared memory parallel as well as single processor systems and has been successfully tested on Windows, @@ -66,48 +74,42 @@ of Tcl/Tk and C++. NOTE: The version in this package has NOT been compiled with MPI support. -%package data -Summary: Data files for ParaView -Group: Applications/Engineering -Requires: %{name} = %{version}-%{release} -BuildArch: noarch - -%description data -Data files for ParaView. - -%package devel +%package devel Summary: Development files for %{name} Group: Development/Libraries -Requires: %{name}%{?_isa} = %{version}-%{release} +Requires: %{name} = %{version}-%{release} -%description devel +%description devel The %{name}-devel package contains libraries and header files for developing applications that use %{name}. -%package doc -Summary: Documentation files for ParaView -Group: Applications/Engineering -Requires: %{name} = %{version}-%{release} -BuildArch: noarch - -%description doc -Documentation files for ParaView. - %prep -%setup -q -%patch0 -p1 +%setup -q -n %{name}-v%{version}-source +%patch0 -p0 %patch1 -p1 %patch2 -p1 -%patch3 -p1 -#Remove included hdf5 just to be sure -rm -r VTK/Utilities/vtkhdf5 +%patch3 -p0 +%patch4 -p1 +#Remove included thirdparty sources just to be sure +for x in protobuf ; do + rm -r ThirdParty/$x/vtk$x +done +for x in expat freetype gl2ps hdf5 jpeg libxml2 netcdf oggtheora png sqlite tiff zlib ; do + rm -r VTK/ThirdParty/$x/vtk$x +done + +%{__rm} -r ParaViewCore/ServerImplementation/Default/Testing %build +rm -rf build mkdir build cd build %cmake .. \ + -DCMAKE_BUILD_TYPE=RelWithDebInfo \ + -DCMAKE_CXX_COMPILER:FILEPATH=%{__cxx} \ + -DCMAKE_C_COMPILER:FILEPATH=%{__cc} \ -DPV_INSTALL_INCLUDE_DIR:PATH=include/paraview \ - -DPV_INSTALL_LIB_DIR:PATH=%{_lib}/paraview \ + -DPV_INSTALL_LIBRARY_DIR:PATH=%{_lib}/paraview \ -DTCL_LIBRARY:PATH=tcl \ -DTK_LIBRARY:PATH=tk \ -DPARAVIEW_BUILD_PLUGIN_AdiosReader:BOOL=ON \ @@ -116,39 +118,55 @@ cd build -DPARAVIEW_BUILD_PLUGIN_ForceTime:BOOL=ON \ -DPARAVIEW_ENABLE_PYTHON:BOOL=ON \ -DPARAVIEW_INSTALL_THIRD_PARTY_LIBRARIES:BOOL=OFF \ - -DPARAVIEW_INSTALL_DEVELOPMENT:BOOL=ON \ - -DVTK_OPENGL_HAS_OSMESA:BOOL=ON \ + -DPARAVIEW_INSTALL_DEVELOPMENT_FILES:BOOL=ON \ + -DVTK_INSTALL_ARCHIVE_DIR:PATH=%{_lib}/paraview \ + -DVTK_INSTALL_INCLUDE_DIR:PATH=include/paraview \ + -DVTK_INSTALL_LIBRARY_DIR:PATH=%{_lib}/paraview \ + -DVTK_INSTALL_PACKAGE_DIR=share/cmake/paraview \ -DVTK_USE_BOOST:BOOL=ON \ -DVTK_USE_INFOVIS:BOOL=OFF \ -DVTK_USE_N_WAY_ARRAYS:BOOL=ON \ -DVTK_USE_OGGTHEORA_ENCODER:BOOL=ON \ -DVTK_USE_SYSTEM_EXPAT:BOOL=ON \ -DVTK_USE_SYSTEM_FREETYPE:BOOL=ON \ + -DFREETYPE_INCLUDE_DIRS=%{_includedir}/freetype2 \ -DVTK_USE_SYSTEM_HDF5:BOOL=ON \ + -DVTK_USE_SYSTEM_HDF5=ON \ + -DHDF5_HL_LIBRARY:FILEPATH=%{_libdir}/libhdf5_hl.so \ -DVTK_USE_SYSTEM_JPEG:BOOL=ON \ + -DVTK_USE_SYSTEM_LIBPROJ4=OFF \ + -DVTK_USE_SYSTEM_LIBRARIES:BOOL=ON \ + -DVTK_USE_SYSTEM_LIBRARIES=ON \ -DVTK_USE_SYSTEM_PNG:BOOL=ON \ -DVTK_USE_SYSTEM_TIFF:BOOL=ON \ -DVTK_USE_SYSTEM_ZLIB:BOOL=ON \ + -DVTK_CUSTOM_LIBRARY_SUFFIX="" \ + -DVTK_USE_INFOVIS:BOOL=OFF \ + -DVTK_USE_SYSTEM_ICET=OFF \ + -DVTK_USE_SYSTEM_NETCDF=ON \ + -DVTK_USE_SYSTEM_QTTESTING=OFF \ + -DVTK_USE_SYSTEM_XDMF2=OFF \ -DXDMF_WRAP_PYTHON:BOOL=ON \ -DBUILD_DOCUMENTATION:BOOL=ON \ -DBUILD_EXAMPLES:BOOL=ON +# -DVTK_PYTHON_SETUP_ARGS="--prefix=/usr --root=$RPM_BUILD_ROOT" \ + %{__make} VERBOSE=1 %install rm -rf $RPM_BUILD_ROOT -install -d $RPM_BUILD_ROOT%{_desktopdir} -install -d $RPM_BUILD_ROOT%{_pixmapsdir} -install -d $RPM_BUILD_ROOT%{_datadir}/mime/packages +install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir},%{_datadir}/mime/packages} -install %SOURCE1 $RPM_BUILD_ROOT%{_pixmapsdir} -install %SOURCE2 $RPM_BUILD_ROOT%{_datadir}/mime/packages +install %{SOURCE1} $RPM_BUILD_ROOT%{_pixmapsdir} +install %{SOURCE2} $RPM_BUILD_ROOT%{_datadir}/mime/packages cd build -%{__make} install DESTDIR=$RPM_BUILD_ROOT +%{__make} install \ + DESTDIR=$RPM_BUILD_ROOT #Create desktop file -cat > $RPM_BUILD_ROOT%{_desktopdir}/paraview.desktop < $RPM_BUILD_ROOT%{_desktopdir}/%{name}.desktop <