SHA256
1
0
forked from pool/vtk

fixed tcl brp and moved python testing files to docdir

OBS-URL: https://build.opensuse.org/package/show/science/vtk?expand=0&rev=8
This commit is contained in:
Werner Hoch 2009-01-04 10:52:33 +00:00 committed by Git OBS Bridge
parent 2e1087b785
commit 8209923eb6

View File

@ -174,26 +174,34 @@ find $RPM_BUILD_ROOT%{_datadir}/%{name}-examples \
find $RPM_BUILD_ROOT%{_datadir}/%{name}-examples \ find $RPM_BUILD_ROOT%{_datadir}/%{name}-examples \
-name "CMake*" | xargs rm -rf -name "CMake*" | xargs rm -rf
# cmake, testing # cmake
install -d $RPM_BUILD_ROOT/%{_libdir}/vtk-%{lib_ver}/CMake install -d $RPM_BUILD_ROOT/%{_libdir}/vtk-%{lib_ver}
install -d $RPM_BUILD_ROOT/%{_libdir}/vtk-%{lib_ver}/testing
mv $RPM_BUILD_ROOT/%{_libdir}/*.cmake $RPM_BUILD_ROOT/%{_libdir}/vtk-%{lib_ver} mv $RPM_BUILD_ROOT/%{_libdir}/*.cmake $RPM_BUILD_ROOT/%{_libdir}/vtk-%{lib_ver}
mv $RPM_BUILD_ROOT/%{_libdir}/CMake/* $RPM_BUILD_ROOT/%{_libdir}/vtk-%{lib_ver}/CMake mv $RPM_BUILD_ROOT/%{_libdir}/CMake $RPM_BUILD_ROOT/%{_libdir}/vtk-%{lib_ver}
mv $RPM_BUILD_ROOT/%{_libdir}/hints $RPM_BUILD_ROOT/%{_libdir}/vtk-%{lib_ver} mv $RPM_BUILD_ROOT/%{_libdir}/hints $RPM_BUILD_ROOT/%{_libdir}/vtk-%{lib_ver}
#mv $RPM_BUILD_ROOT/%{_libdir}/pkgIndex.tcl $RPM_BUILD_ROOT/%{_libdir}/vtk-%{lib_ver}
#mv $RPM_BUILD_ROOT/%{_libdir}/testing $RPM_BUILD_ROOT/%{_libdir}/vtk-%{lib_ver}
#mv $RPM_BUILD_ROOT/%{_libdir}/tcl $RPM_BUILD_ROOT/%{_libdir}/vtk-%{lib_ver}
# remove doxygen scripts and
rm -rf $RPM_BUILD_ROOT/%{_libdir}/doxygen
rm -rf $RPM_BUILD_ROOT/%{_libdir}/doc
# make scripts executable # make scripts executable
chmod a+x $RPM_BUILD_ROOT%{_libdir}/testing/*.{py,tcl} chmod a+x $RPM_BUILD_ROOT%{_libdir}/testing/*.{py,tcl}
# fix tcl stuff
install -d $RPM_BUILD_ROOT/usr/share/tcl/vtk-%{lib_ver}/testing
mv $RPM_BUILD_ROOT/%{_libdir}/pkgIndex.tcl $RPM_BUILD_ROOT/usr/share/tcl/vtk-%{lib_ver}
mv $RPM_BUILD_ROOT/%{_libdir}/tcl/* $RPM_BUILD_ROOT/usr/share/tcl/vtk-%{lib_ver}
mv $RPM_BUILD_ROOT/%{_libdir}/testing/*.tcl $RPM_BUILD_ROOT/usr/share/tcl/vtk-%{lib_ver}/testing
#python testing files ???
install -d $RPM_BUILD_ROOT/%{_docdir}/vtk-python/examples
mv $RPM_BUILD_ROOT/%{_libdir}/testing/*.py $RPM_BUILD_ROOT/%{_docdir}/vtk-python/examples
# remove doxygen scripts and verdict docs
rm -rf $RPM_BUILD_ROOT/%{_libdir}/doxygen
rm -rf $RPM_BUILD_ROOT/%{_libdir}/doc
# Remove exec bit from not-scripts # Remove exec bit from not-scripts
for file in `find $RPM_BUILD_ROOT Utilities/Upgrading -type f -perm 0755 | xargs -r file | grep ASCII | awk -F: '{print $1}'`; do chmod 0644 Utilities/Upgrading/*.pdf
chmod 0644 Utilities/Upgrading/*.txt
for file in `find $RPM_BUILD_ROOT -type f -perm 0755 | xargs -r file | grep ASCII | awk -F: '{print $1}'`; do
head -1 $file | grep '^#!' > /dev/null && continue head -1 $file | grep '^#!' > /dev/null && continue
chmod 0644 $file chmod 0644 $file
done done
@ -205,7 +213,7 @@ find $RPM_BUILD_ROOT -size 0 | xargs rm -f
chrpath -d $RPM_BUILD_ROOT%{_bindir}/* chrpath -d $RPM_BUILD_ROOT%{_bindir}/*
# make doc-dirs # make doc-dirs
for dir in vtk vtk-devel vtk-tcl vtk-testing-progs ; do for dir in vtk vtk-devel vtk-tcl vtk-testing-progs vtk-python; do
install -d $RPM_BUILD_ROOT/%{_docdir}/"$dir" install -d $RPM_BUILD_ROOT/%{_docdir}/"$dir"
done done
@ -303,28 +311,25 @@ rm -rf $RPM_BUILD_ROOT
%files tcl %files tcl
%defattr(-,root,root,-) %defattr(-,root,root,-)
%dir %{_libdir}/testing
%{_bindir}/vtkWrapTcl %{_bindir}/vtkWrapTcl
%{_bindir}/vtkWrapTclInit %{_bindir}/vtkWrapTclInit
%{_libdir}/libvtk*TCL.so.*
%{_bindir}/vtk %{_bindir}/vtk
%{_libdir}/tcl %{_libdir}/libvtk*TCL.so.*
%{_libdir}/testing/*.tcl %{_datadir}/tcl
%{_libdir}/pkgIndex.tcl
%doc README.html %doc README.html
%doc vtkLogo.jpg %doc vtkLogo.jpg
%files python %files python
%defattr(-,root,root,-) %defattr(-,root,root,-)
%dir %{_libdir}/testing
%{_bindir}/vtkWrapPython %{_bindir}/vtkWrapPython
%{_bindir}/vtkWrapPythonInit %{_bindir}/vtkWrapPythonInit
%{_bindir}/vtkpython %{_bindir}/vtkpython
%{_libdir}/libvtk*Python*.so.* %{_libdir}/libvtk*Python*.so.*
%{py_sitedir}/* %{py_sitedir}/*
%{_libdir}/testing/*.py %doc README.html
%doc vtkLogo.jpg
%doc %{_docdir}/vtk-python
%files qt %files qt
%defattr(-,root,root,-) %defattr(-,root,root,-)