X-Git-Url: http://git.pld-linux.org/?a=blobdiff_plain;f=ParaView.spec;h=fb4af0dc7799e761f74356125e10b0eeae0e5970;hb=9a84e8aa1e40caf2ee2d7af589abb7359921bca4;hp=b2e25f33875434b0942fc9cb7901a4ac379509b3;hpb=bfdc8784013e7f6df5d0d5af534ef6541f4c58aa;p=packages%2FParaView.git diff --git a/ParaView.spec b/ParaView.spec index b2e25f3..fb4af0d 100644 --- a/ParaView.spec +++ b/ParaView.spec @@ -1,7 +1,11 @@ +# +# Conditional build: +%bcond_with system_protobuf # build with system protobuf library +# Summary: Parallel visualization application Name: ParaView Version: 4.0.1 -Release: 3 +Release: 13 License: BSD Group: Applications/Engineering URL: http://www.paraview.org/ @@ -14,6 +18,8 @@ Patch1: %{name}-install.patch Patch2: %{name}-system-Protobuf.patch Patch3: %{name}-system-netcdf.patch Patch4: disable-broken-tests.patch +Patch5: protobuf.patch +Patch6: freetype.patch BuildRequires: Mesa-libOSMesa-devel BuildRequires: QtDesigner-devel BuildRequires: QtHelp-devel @@ -39,7 +45,7 @@ BuildRequires: libtiff-devel BuildRequires: netcdf-devel BuildRequires: netcdf-cxx-devel BuildRequires: openssl-devel -BuildRequires: protobuf-devel +%{?with_system_protobuf:BuildRequires: protobuf-devel} BuildRequires: python-devel BuildRequires: qt4-build BuildRequires: readline-devel @@ -54,6 +60,10 @@ BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %define skip_post_check_so lib.*Python.*\.so.* +# avoid provide clash with vtk.spec +%define _noautoprov libvtk.*\.so.* vtk.*\.so.* +%define _noautoreq libvtk.*\.so.* vtk.*\.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 @@ -87,13 +97,19 @@ developing applications that use %{name}. %setup -q -n %{name}-v%{version}-source %patch0 -p0 %patch1 -p1 -%patch2 -p1 %patch3 -p0 %patch4 -p1 +%patch6 -p1 + +%if %{with system_protobuf} +%patch2 -p1 +%patch5 -p1 #Remove included thirdparty sources just to be sure for x in protobuf ; do rm -r ThirdParty/$x/vtk$x done +%endif + for x in expat freetype gl2ps hdf5 jpeg libxml2 netcdf oggtheora png sqlite tiff zlib ; do rm -r VTK/ThirdParty/$x/vtk$x done @@ -129,6 +145,7 @@ cd build -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 \ @@ -137,6 +154,7 @@ cd build -DVTK_USE_SYSTEM_LIBRARIES:BOOL=ON \ -DVTK_USE_SYSTEM_LIBRARIES=ON \ -DVTK_USE_SYSTEM_PNG:BOOL=ON \ + -DVTK_USE_SYSTEM_PROTOBUF:BOOL=%{?with_system_protobuf:ON}%{!?with_system_protobuf:OFF} \ -DVTK_USE_SYSTEM_TIFF:BOOL=ON \ -DVTK_USE_SYSTEM_ZLIB:BOOL=ON \ -DVTK_CUSTOM_LIBRARY_SUFFIX="" \