SHA256
1
0
forked from pool/vtk

Accepting request 25239 from Education:Salome:Factory

Copy from Education:Salome:Factory/vtk via accept of submit request 25239 revision 9.
Request was accepted with message:

OBS-URL: https://build.opensuse.org/request/show/25239
OBS-URL: https://build.opensuse.org/package/show/science/vtk?expand=0&rev=16
This commit is contained in:
andrea florio 2009-11-29 10:58:48 +00:00 committed by Git OBS Bridge
parent 98449f6da7
commit 4b90eb1530

View File

@ -31,6 +31,9 @@ volume rendering, LOD control)
%package devel %package devel
Summary: VTK header files for building C++ code Summary: VTK header files for building C++ code
Requires: vtk = %{version} Requires: vtk = %{version}
Requires: python-vtk
Requires: vtk-qt
Requires: vtk-tcl
Group: Development/Libraries Group: Development/Libraries
%description devel %description devel
@ -45,12 +48,14 @@ Group: System/Libraries
%description tcl %description tcl
tcl bindings for VTK tcl bindings for VTK
%package python %package -n python-vtk
Summary: Python bindings for VTK Summary: Python bindings for VTK
Requires: vtk = %{version} Requires: vtk = %{version}
Group: System/Libraries Group: System/Libraries
Provides: vtk-python
%description python
%description -n python-vtk
python bindings for VTK python bindings for VTK
%package qt %package qt
@ -81,6 +86,7 @@ Group: Productivity/Scientific/Other
%description testing-progs %description testing-progs
Testing programs for VTK Testing programs for VTK
%debug_package
%prep %prep
%setup -n VTK -q %setup -n VTK -q
%patch0 -p1 %patch0 -p1
@ -131,11 +137,8 @@ make install
# python stuff is installed in the wrong directory /usr/local # python stuff is installed in the wrong directory /usr/local
# http://www.vtk.org/Bug/view.php?id=4010 # http://www.vtk.org/Bug/view.php?id=4010
%if %suse_version <= 1110 mkdir -p %buildroot/%python_sitelib
mv $RPM_BUILD_ROOT%{_prefix}/local/%{_lib}/python* $RPM_BUILD_ROOT%{_libdir}/ mv $RPM_BUILD_ROOT%{_prefix}/local/lib/python%{py_ver}/site-packages/* $RPM_BUILD_ROOT/%python_sitelib/
%else
mv $RPM_BUILD_ROOT%{_prefix}/local/lib/python* $RPM_BUILD_ROOT/%_prefix/lib
%endif
# install testing-progs and examples # install testing-progs and examples
find bin -type f | egrep -v '\.' > bin-progs-list find bin -type f | egrep -v '\.' > bin-progs-list
@ -230,7 +233,7 @@ rm -rf $RPM_BUILD_ROOT
%post tcl -p /sbin/ldconfig %post tcl -p /sbin/ldconfig
%post python -p /sbin/ldconfig %post -n python-vtk -p /sbin/ldconfig
%post qt -p /sbin/ldconfig %post qt -p /sbin/ldconfig
@ -238,7 +241,7 @@ rm -rf $RPM_BUILD_ROOT
%postun tcl -p /sbin/ldconfig %postun tcl -p /sbin/ldconfig
%postun python -p /sbin/ldconfig %postun -n python-vtk -p /sbin/ldconfig
%postun qt -p /sbin/ldconfig %postun qt -p /sbin/ldconfig
@ -332,13 +335,17 @@ rm -rf $RPM_BUILD_ROOT
%doc README.html %doc README.html
%doc vtkLogo.jpg %doc vtkLogo.jpg
%files python %files -n python-vtk
%defattr(-,root,root,-) %defattr(-,root,root,-)
%{_bindir}/vtkWrapPython %{_bindir}/vtkWrapPython
%{_bindir}/vtkWrapPythonInit %{_bindir}/vtkWrapPythonInit
%{_bindir}/vtkpython %{_bindir}/vtkpython
%{_libdir}/libvtk*Python*.so.* %{_libdir}/libvtk*Python*.so.*
%if %suse_version <= 1110
%{py_sitedir}/* %{py_sitedir}/*
%else
%{python_sitelib}/*
%endif
%doc README.html %doc README.html
%doc vtkLogo.jpg %doc vtkLogo.jpg