Accepting request 292498 from home:badshah400:branches:science
Update to verson 6.2.0; build with system packages for > 13.2; rpmlintrc against devel file warnings OBS-URL: https://build.opensuse.org/request/show/292498 OBS-URL: https://build.opensuse.org/package/show/science/vtk?expand=0&rev=52
This commit is contained in:
committed by
Git OBS Bridge
parent
7c6b312611
commit
2d40326ab9
35
vtk.spec
35
vtk.spec
@@ -17,9 +17,9 @@
|
||||
|
||||
|
||||
Name: vtk
|
||||
Version: 6.1.0
|
||||
Version: 6.2.0
|
||||
Release: 0
|
||||
%define series 6.1
|
||||
%define series 6.2
|
||||
# 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
|
||||
@@ -28,14 +28,10 @@ License: BSD-3-Clause
|
||||
Group: Productivity/Scientific/Other
|
||||
Url: http://vtk.org/
|
||||
Source: http://www.vtk.org/files/release/%{series}/VTK-%{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
|
||||
# FIXME See if packaging can be tweaked to accommodate python-vtk's devel files in a devel package later
|
||||
Source1: vtk-rpmlintrc
|
||||
# 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
|
||||
# PATCH-FIX-UPSTREAM vtk-Mesa10.3-build-failures.patch badshah400@gmail.com -- Actually define GLX_GLXEXT_LEGACY to prevent the system glext.h include; fixes buld failures with Mesa >= 10.3; fix taken from upstream git and rebased
|
||||
Patch3: vtk-Mesa10.3-build-failures.patch
|
||||
BuildRequires: Mesa-libGL-devel
|
||||
BuildRequires: R-base-devel
|
||||
BuildRequires: boost-devel
|
||||
@@ -57,10 +53,12 @@ BuildRequires: libexpat-devel
|
||||
BuildRequires: libiodbc-devel
|
||||
BuildRequires: libjpeg-devel
|
||||
BuildRequires: libmysqlclient-devel
|
||||
BuildRequires: libnetcdf_c++-devel
|
||||
BuildRequires: libpng-devel
|
||||
BuildRequires: libqt4-devel
|
||||
BuildRequires: libtheora-devel
|
||||
BuildRequires: libtiff-devel
|
||||
BuildRequires: netcdf-devel
|
||||
BuildRequires: openmpi-devel
|
||||
BuildRequires: python-devel
|
||||
BuildRequires: python-qt4-devel
|
||||
@@ -73,6 +71,10 @@ BuildRequires: libxml2-devel
|
||||
%else
|
||||
BuildRequires: pkgconfig(libxml-2.0)
|
||||
%endif
|
||||
# jsoncpp available for openSUSE > 13.2
|
||||
%if 0%{?suse_version} > 1320
|
||||
BuildRequires: jsoncpp-devel
|
||||
%endif
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
%define qtdir %{_lib}/qt4
|
||||
|
||||
@@ -225,12 +227,7 @@ This package provides a few testing programs for VTK.
|
||||
|
||||
%prep
|
||||
%setup -q -n VTK-%{version}
|
||||
%patch0 -p1
|
||||
%patch1 -p1
|
||||
%patch2 -p1
|
||||
%if 0%{?suse_version} > 1310
|
||||
%patch3 -p1
|
||||
%endif
|
||||
|
||||
# Replace relative path ../../../VTKData with %%{_datadir}/%%{name}data-%%{version}
|
||||
# otherwise it will break on symlinks.
|
||||
@@ -259,7 +256,11 @@ cmake .. \
|
||||
-DVTK_INSTALL_QT_DIR:STRING=/%{qtdir}/plugins/designer \
|
||||
-DVTK_USE_OGGTHEORA_ENCODER:BOOL=ON \
|
||||
-DVTK_USE_RENDERING:BOOL=ON \
|
||||
%if 0%{?suse_version} > 1320
|
||||
-DVTK_USE_SYSTEM_LIBRARIES:BOOL=ON \
|
||||
%else
|
||||
-DVTK_USE_SYSTEM_LIBRARIES:BOOL=OFF \
|
||||
%endif
|
||||
-DVTK_USE_SYSTEM_LIBPROJ4:BOOL=OFF \
|
||||
%if 0%{?suse_version} <= 1230
|
||||
-DVTK_USE_SYSTEM_GL2PS:BOOL=OFF \
|
||||
@@ -279,7 +280,9 @@ cmake .. \
|
||||
-DVTK_Group_Tk:BOOL=ON \
|
||||
-DVTK_Group_Views:BOOL=ON \
|
||||
-DModule_vtkFiltersStatisticsGnuR:BOOL=ON \
|
||||
-DVTK_WRAP_TCL:BOOL=ON
|
||||
-DVTK_WRAP_TCL:BOOL=ON \
|
||||
-DVTK_USE_SYSTEM_HDF5:BOOL=ON \
|
||||
-DVTK_USE_SYSTEM_NETCDF:BOOL=ON
|
||||
|
||||
make %{?_smp_mflags} VERBOSE=1
|
||||
|
||||
@@ -385,7 +388,9 @@ chrpath -d %{buildroot}%{_bindir}/*
|
||||
%{_bindir}/%{name}HashSource
|
||||
%{_bindir}/%{name}ParseOGLExt
|
||||
%{_bindir}/%{name}WrapHierarchy
|
||||
%if 0%{?suse_version} <= 1320
|
||||
%{_bindir}/%{name}mkg3states
|
||||
%endif
|
||||
%{_datadir}/doc/%{name}-%{series}/
|
||||
%{_libdir}/%{name}/*.so
|
||||
%{_libdir}/cmake/%{name}/
|
||||
@@ -409,6 +414,8 @@ chrpath -d %{buildroot}%{_bindir}/*
|
||||
%{_bindir}/%{name}WrapPythonInit
|
||||
%{_libdir}/%{name}/*Python*.so.*
|
||||
%{python_sitearch}/%{name}/
|
||||
%dir %{_libdir}/%{name}/site-packages
|
||||
%{_libdir}/%{name}/site-packages/mpi4py/
|
||||
%exclude %{_libdir}/%{name}/*QtPython27D.so.*
|
||||
|
||||
%files tcl
|
||||
|
Reference in New Issue
Block a user