fixed some issues
OBS-URL: https://build.opensuse.org/package/show/science/vtk?expand=0&rev=7
This commit is contained in:
parent
1b65c825f0
commit
2e1087b785
46
vtk.spec
46
vtk.spec
@ -69,7 +69,7 @@ Qt VTK widget
|
|||||||
|
|
||||||
%package examples
|
%package examples
|
||||||
Summary: Examples for VTK
|
Summary: Examples for VTK
|
||||||
Requires: vtk = %{version}, vtk-data = %{version}
|
Requires: vtk = %{version}, vtkdata = %{version}
|
||||||
Group: Applications/Engineering
|
Group: Applications/Engineering
|
||||||
|
|
||||||
%description examples
|
%description examples
|
||||||
@ -79,37 +79,22 @@ programming languages
|
|||||||
|
|
||||||
%package testing-progs
|
%package testing-progs
|
||||||
Summary: Testing programs for VTK
|
Summary: Testing programs for VTK
|
||||||
Requires: %{name} = %{version}, vtk-data = %{version}
|
Requires: %{name} = %{version}, vtkdata = %{version}
|
||||||
Group: Applications/Engineering
|
Group: Applications/Engineering
|
||||||
|
|
||||||
%description testing-progs
|
%description testing-progs
|
||||||
Testing programs for VTK
|
Testing programs for VTK
|
||||||
|
|
||||||
%package data
|
|
||||||
Summary: Data for VTK
|
|
||||||
Requires: vtk = %{version}
|
|
||||||
Group: Development/Libraries
|
|
||||||
|
|
||||||
%description data
|
|
||||||
Example data file for VTK
|
|
||||||
|
|
||||||
%package doc
|
|
||||||
Summary: Documentation for VTK
|
|
||||||
Requires: vtk = %{version}
|
|
||||||
Group: Development/Libraries
|
|
||||||
|
|
||||||
%description doc
|
|
||||||
This package contains the doxygen-generated documentation from the VTK
|
|
||||||
source
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -n VTK -q
|
%setup -n VTK -q
|
||||||
%patch0 -p1
|
%patch0 -p1
|
||||||
|
|
||||||
# Replace relative path ../../../VTKData with %{_datadir}/vtkdata-%{version}
|
# Replace relative path ../../../VTKData with %{_datadir}/vtkdata
|
||||||
# otherwise it will break on symlinks.
|
# otherwise it will break on symlinks.
|
||||||
grep -rl '\.\./\.\./\.\./\.\./VTKData' . | xargs \
|
grep -rl '\.\./\.\./\.\./\.\./VTKData' . | xargs \
|
||||||
perl -pi -e's,\.\./\.\./\.\./\.\./VTKData,%{_datadir}/%{name}-data,g'
|
perl -pi -e's,\.\./\.\./\.\./\.\./VTKData,%{_datadir}/%{name}data,g'
|
||||||
|
|
||||||
%build
|
%build
|
||||||
cmake . \
|
cmake . \
|
||||||
@ -148,6 +133,9 @@ make %{_smp_mflags}
|
|||||||
%install
|
%install
|
||||||
make install
|
make install
|
||||||
|
|
||||||
|
# python stuff is installed in the wrong directory /usr/local
|
||||||
|
mv $RPM_BUILD_ROOT%{_prefix}/local/%{_lib}/python* $RPM_BUILD_ROOT%{_libdir}/
|
||||||
|
|
||||||
# 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
|
||||||
install -d $RPM_BUILD_ROOT%{_bindir}
|
install -d $RPM_BUILD_ROOT%{_bindir}
|
||||||
@ -193,16 +181,16 @@ 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}/CMake
|
||||||
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}/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}/testing $RPM_BUILD_ROOT/%{_libdir}/vtk-%{lib_ver}
|
||||||
mv $RPM_BUILD_ROOT/%{_libdir}/tcl $RPM_BUILD_ROOT/%{_libdir}/vtk-%{lib_ver}
|
#mv $RPM_BUILD_ROOT/%{_libdir}/tcl $RPM_BUILD_ROOT/%{_libdir}/vtk-%{lib_ver}
|
||||||
|
|
||||||
# remove doxygen scripts and
|
# remove doxygen scripts and
|
||||||
rm -rf $RPM_BUILD_ROOT/%{_libdir}/doxygen
|
rm -rf $RPM_BUILD_ROOT/%{_libdir}/doxygen
|
||||||
rm -rf $RPM_BUILD_ROOT/%{_libdir}/doc
|
rm -rf $RPM_BUILD_ROOT/%{_libdir}/doc
|
||||||
|
|
||||||
# make scripts executable
|
# make scripts executable
|
||||||
chmod a+x $RPM_BUILD_ROOT%{_libdir}/vtk-%{lib_ver}/testing/*.{py,tcl}
|
chmod a+x $RPM_BUILD_ROOT%{_libdir}/testing/*.{py,tcl}
|
||||||
|
|
||||||
# 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
|
for file in `find $RPM_BUILD_ROOT Utilities/Upgrading -type f -perm 0755 | xargs -r file | grep ASCII | awk -F: '{print $1}'`; do
|
||||||
@ -315,27 +303,27 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
|
|
||||||
%files tcl
|
%files tcl
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
%dir %{_libdir}/vtk-%{lib_ver}/testing
|
%dir %{_libdir}/testing
|
||||||
%{_bindir}/vtkWrapTcl
|
%{_bindir}/vtkWrapTcl
|
||||||
%{_bindir}/vtkWrapTclInit
|
%{_bindir}/vtkWrapTclInit
|
||||||
%{_libdir}/libvtk*TCL.so.*
|
%{_libdir}/libvtk*TCL.so.*
|
||||||
%{_bindir}/vtk
|
%{_bindir}/vtk
|
||||||
%{_libdir}/vtk-%{lib_ver}/tcl
|
%{_libdir}/tcl
|
||||||
%{_libdir}/vtk-%{lib_ver}/testing/*.tcl
|
%{_libdir}/testing/*.tcl
|
||||||
%{_libdir}/vtk-%{lib_ver}/pkgIndex.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}/vtk-%{lib_ver}/testing
|
%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}/vtk-%{lib_ver}/testing/*.py
|
%{_libdir}/testing/*.py
|
||||||
|
|
||||||
|
|
||||||
%files qt
|
%files qt
|
||||||
|
Loading…
Reference in New Issue
Block a user