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