SHA256
1
0
forked from pool/vtk

Accepting request 128510 from science

fix build on SLE 11 by disabling python-vtk-qt an java wrapper. (forwarded request 128509 from scorot)

OBS-URL: https://build.opensuse.org/request/show/128510
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/vtk?expand=0&rev=6
This commit is contained in:
Ismail Dönmez 2012-07-21 10:32:21 +00:00 committed by Git OBS Bridge
commit a0f9e6ebc8
2 changed files with 34 additions and 1 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Mon Jun 25 20:46:30 UTC 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 21:20:14 UTC 2012 - badshah400@gmail.com Fri May 18 21:20:14 UTC 2012 - badshah400@gmail.com

View File

@ -78,7 +78,11 @@ BuildRequires: tcl-devel
BuildRequires: tk-devel BuildRequires: tk-devel
BuildRequires: wget BuildRequires: wget
BuildRequires: zlib-devel BuildRequires: zlib-devel
%if %{?sles_version}
BuildRequires: libxml2-devel
%else
BuildRequires: pkgconfig(libxml-2.0) BuildRequires: pkgconfig(libxml-2.0)
%endif
BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRoot: %{_tmppath}/%{name}-%{version}-build
%define qtdir %{_lib}/qt4 %define qtdir %{_lib}/qt4
@ -93,7 +97,9 @@ volume rendering, LOD control).
Summary: VTK header files for building C++ code Summary: VTK header files for building C++ code
Group: Development/Libraries/Other Group: Development/Libraries/Other
Requires: %{name} = %{version} Requires: %{name} = %{version}
%if 0%{?suse_version} >= 1130
Requires: %{name}-java = %{version} Requires: %{name}-java = %{version}
%endif
Requires: %{name}-qt = %{version} Requires: %{name}-qt = %{version}
Requires: %{name}-tcl = %{version} Requires: %{name}-tcl = %{version}
%if 0%{?suse_version} > 1210 %if 0%{?suse_version} > 1210
@ -114,7 +120,9 @@ Requires: libqt4-devel
Requires: libtheora-devel Requires: libtheora-devel
Requires: libtiff-devel Requires: libtiff-devel
Requires: python-%{name} = %{version} Requires: python-%{name} = %{version}
%if 0%{?suse_version} >= 1130
Requires: python-%{name}-qt = %{version} Requires: python-%{name}-qt = %{version}
%endif
%description devel %description devel
VTK is an open-source software system for image processing, 3D VTK is an open-source software system for image processing, 3D
@ -126,6 +134,7 @@ volume rendering, LOD control).
This provides the VTK header files required to compile C++ programs that This provides the VTK header files required to compile C++ programs that
use VTK to do 3D visualisation. use VTK to do 3D visualisation.
%if 0%{?suse_version} >= 1130
%package java %package java
Summary: Java bindings for VTK Summary: Java bindings for VTK
Group: Development/Libraries/Java Group: Development/Libraries/Java
@ -139,6 +148,7 @@ decimation) and rendering techniques (e.g., hardware-accelerated
volume rendering, LOD control). volume rendering, LOD control).
This package provides java bindings for VTK. This package provides java bindings for VTK.
%endif
%package -n python-%{name} %package -n python-%{name}
Summary: Python bindings for VTK Summary: Python bindings for VTK
@ -155,6 +165,7 @@ volume rendering, LOD control).
This package provides python bindings for VTK. This package provides python bindings for VTK.
%if 0%{?suse_version} >=1130
%package -n python-%{name}-qt %package -n python-%{name}-qt
Summary: Qt Python VTK widget Summary: Qt Python VTK widget
Group: System/Libraries Group: System/Libraries
@ -172,6 +183,7 @@ decimation) and rendering techniques (e.g., hardware-accelerated
volume rendering, LOD control). volume rendering, LOD control).
This package provides python-qt bindings for VTK. This package provides python-qt bindings for VTK.
%endif
%package qt %package qt
Summary: Qt VTK widget Summary: Qt VTK widget
@ -285,9 +297,14 @@ cmake .. \
-DVTK_USE_SYSTEM_GL2PS:BOOL=OFF \ -DVTK_USE_SYSTEM_GL2PS:BOOL=OFF \
-DVTK_USE_SYSTEM_HDF5:BOOL=OFF \ -DVTK_USE_SYSTEM_HDF5:BOOL=OFF \
%endif %endif
-DVTK_WRAP_JAVA:BOOL=ON \
-DVTK_WRAP_PYTHON:BOOL=ON \ -DVTK_WRAP_PYTHON:BOOL=ON \
%if 0%{?suse_version} >= 1130
-DVTK_WRAP_JAVA:BOOL=ON \
-DVTK_WRAP_PYTHON_SIP: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_WRAP_TCL:BOOL=ON
# Package fails to compile with the following option (Note: postgresql-devel and libpqxx-devel are needed as dependencies) # Package fails to compile with the following option (Note: postgresql-devel and libpqxx-devel are needed as dependencies)
@ -412,14 +429,18 @@ mv %{buildroot}%{_libdir}/%{name}/*.tcl %{buildroot}%{_datadir}/tcl/%{name}/
%post -p /sbin/ldconfig %post -p /sbin/ldconfig
%postun -p /sbin/ldconfig %postun -p /sbin/ldconfig
%if 0%{?suse_version} >= 1130
%post java -p /sbin/ldconfig %post java -p /sbin/ldconfig
%postun java -p /sbin/ldconfig %postun java -p /sbin/ldconfig
%endif
%post -n python-%{name} -p /sbin/ldconfig %post -n python-%{name} -p /sbin/ldconfig
%postun -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 %post -n python-%{name}-qt -p /sbin/ldconfig
%postun -n python-%{name}-qt -p /sbin/ldconfig %postun -n python-%{name}-qt -p /sbin/ldconfig
%endif
%post qt -p /sbin/ldconfig %post qt -p /sbin/ldconfig
%postun qt -p /sbin/ldconfig %postun qt -p /sbin/ldconfig
@ -441,6 +462,7 @@ mv %{buildroot}%{_libdir}/%{name}/*.tcl %{buildroot}%{_datadir}/tcl/%{name}/
%{_libdir}/%{name}/hints/ %{_libdir}/%{name}/hints/
%{_includedir}/%{name}-%{series}/ %{_includedir}/%{name}-%{series}/
%if 0%{?suse_version} >= 1130
%files java %files java
%defattr(-,root,root,-) %defattr(-,root,root,-)
%{_bindir}/%{name}ParseJava %{_bindir}/%{name}ParseJava
@ -448,6 +470,7 @@ mv %{buildroot}%{_libdir}/%{name}/*.tcl %{buildroot}%{_datadir}/tcl/%{name}/
%{_libdir}/*Java.so.* %{_libdir}/*Java.so.*
%{_libdir}/%{name}/*Java.so.* %{_libdir}/%{name}/*Java.so.*
%{_libdir}/%{name}/java/ %{_libdir}/%{name}/java/
%endif
%files -n python-%{name} %files -n python-%{name}
%defattr(-,root,root,-) %defattr(-,root,root,-)
@ -462,13 +485,17 @@ mv %{buildroot}%{_libdir}/%{name}/*.tcl %{buildroot}%{_datadir}/tcl/%{name}/
%{_libdir}/%{name}/*PythonD.so.* %{_libdir}/%{name}/*PythonD.so.*
%{python_sitelib}/VTK-%{version}-py%{py_ver}.egg-info %{python_sitelib}/VTK-%{version}-py%{py_ver}.egg-info
%{python_sitelib}/%{name}/ %{python_sitelib}/%{name}/
%if 0%{?suse_version} >= 1130
%exclude %{python_sitelib}/%{name}/QVTKPython.so %exclude %{python_sitelib}/%{name}/QVTKPython.so
%exclude %{python_sitelib}/%{name}/*PythonSIP.so %exclude %{python_sitelib}/%{name}/*PythonSIP.so
%endif
%if 0%{?suse_version} >= 1130
%files -n python-%{name}-qt %files -n python-%{name}-qt
%defattr(-,root,root,-) %defattr(-,root,root,-)
%{python_sitelib}/%{name}/QVTKPython.so %{python_sitelib}/%{name}/QVTKPython.so
%{python_sitelib}/%{name}/*PythonSIP.so %{python_sitelib}/%{name}/*PythonSIP.so
%endif
%files qt %files qt
%defattr(-,root,root,-) %defattr(-,root,root,-)