Accepting request 121530 from home:badshah400:branches:science
Update to version 5.10.0 (now builds on openSUSE 11.4 as well); OBS-URL: https://build.opensuse.org/request/show/121530 OBS-URL: https://build.opensuse.org/package/show/science/vtk?expand=0&rev=35
This commit is contained in:
committed by
Git OBS Bridge
parent
9df07c5719
commit
cf48090bfd
28
vtk.spec
28
vtk.spec
@@ -17,8 +17,9 @@
|
||||
|
||||
|
||||
Name: vtk
|
||||
Version: 5.8.0
|
||||
Version: 5.10.0
|
||||
Release: 0
|
||||
%define series 5.10
|
||||
# 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
|
||||
@@ -26,17 +27,15 @@ Summary: The Visualization Toolkit - A high level 3D visualization librar
|
||||
License: BSD-3-Clause
|
||||
Group: Productivity/Scientific/Other
|
||||
Url: http://vtk.org/
|
||||
Source: http://www.vtk.org/files/release/5.8/%{name}-%{version}.tar.gz
|
||||
Source: http://www.vtk.org/files/release/%{series}/%{name}-%{version}.tar.gz
|
||||
# PATCH-FIX-UPSTREAM vtk-pythondestdir.patch badshah400@gmail.com -- Correct installation destination for python libraries
|
||||
Patch0: vtk-pythondestdir.patch
|
||||
# PATCH-FIX-UPSTREAM vtk-system.patch badshah400@gmail.com -- Use system libraries, http://public.kitware.com/Bug/view.php?id=11823
|
||||
Patch1: vtk-system.patch
|
||||
# PATCH-FIX-UPSTREAM vtk-sqldatabaseschema.patch badshah400@gmail.com -- Resolve problems with vtkSQLdatabaseschema.cxx, patch came from upstream
|
||||
Patch2: vtk-sqldatabaseschema.patch
|
||||
# patch to fix the soname for libVTKnetcdf_cxx
|
||||
Patch3: vtk-soversion2.patch
|
||||
# PATCH-FIX-UPSTREAM vtk-boost149.patch idoenmez@suse.de -- Fix compilation with boost 1.49
|
||||
Patch4: vtk-boost149.patch
|
||||
Patch2: vtk-soversion2.patch
|
||||
# PATCH-FIX-UPSTREAM vtk-sqldatabaseschema.patch badshah400@gmail.com -- Fix problems with vtkSQLDatabaseSchema.h
|
||||
Patch3: vtk-sqldatabaseschema.patch
|
||||
%if 0%{?suse_version} > 1210
|
||||
BuildRequires: Mesa-libGL-devel
|
||||
%else
|
||||
@@ -239,14 +238,15 @@ This package provides a few testing programs for VTK.
|
||||
%patch0 -p1
|
||||
%patch1 -p1
|
||||
%patch2 -p1
|
||||
%if 0%{?suse_version} == 1140
|
||||
%patch3 -p1
|
||||
%patch4 -p1
|
||||
%endif
|
||||
|
||||
# Remove build time references so build-compare can do its work
|
||||
FAKE_BUILDDATE=$(LC_ALL=C date -u -r %{_sourcedir}/%{name}.changes '+%%b %%e %%Y')
|
||||
FAKE_BUILDTIME=$(LC_ALL=C date -u -r %{_sourcedir}/%{name}.changes '+%%H:%%M')
|
||||
sed -i "s/__DATE__/\"$FAKE_BUILDDATE\"/" Utilities/vtknetcdf/libvers.c
|
||||
sed -i "s/__TIME__/\"$FAKE_BUILDTIME\"/" Utilities/vtknetcdf/libvers.c
|
||||
#FAKE_BUILDDATE=$(LC_ALL=C date -u -r %{_sourcedir}/%{name}.changes '+%%b %%e %%Y')
|
||||
#FAKE_BUILDTIME=$(LC_ALL=C date -u -r %{_sourcedir}/%{name}.changes '+%%H:%%M')
|
||||
#sed -i "s/__DATE__/\"$FAKE_BUILDDATE\"/" Utilities/vtknetcdf/libvers.c
|
||||
#sed -i "s/__TIME__/\"$FAKE_BUILDTIME\"/" Utilities/vtknetcdf/libvers.c
|
||||
|
||||
# Replace relative path ../../../VTKData with %%{_datadir}/%%{name}data-%%{version}
|
||||
# otherwise it will break on symlinks.
|
||||
@@ -293,7 +293,7 @@ cmake .. \
|
||||
# Package fails to compile with the following option (Note: postgresql-devel and libpqxx-devel are needed as dependencies)
|
||||
# -DVTK_USE_POSTGRES:BOOL=ON \
|
||||
|
||||
make %{?_smp_mflags} VERBOSE=1
|
||||
make %{?_smp_mflags}
|
||||
|
||||
# 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
|
||||
@@ -439,7 +439,7 @@ mv %{buildroot}%{_libdir}/%{name}/*.tcl %{buildroot}%{_datadir}/tcl/%{name}/
|
||||
%{_libdir}/%{name}/doxygen/
|
||||
%{_libdir}/%{name}/CMake/
|
||||
%{_libdir}/%{name}/hints/
|
||||
%{_includedir}/%{name}-5.8/
|
||||
%{_includedir}/%{name}-%{series}/
|
||||
|
||||
%files java
|
||||
%defattr(-,root,root,-)
|
||||
|
Reference in New Issue
Block a user