- Update to 5.2.1
- Update pythondestdir patch to use RPM_BUILD_ROOT - Cleanup spec file
This commit is contained in:
parent
cb9f45a4af
commit
2136714d59
@ -1 +1 @@
|
|||||||
vtk-5.2.0.tar.gz
|
vtk-5.2.1.tar.gz
|
||||||
|
2
sources
2
sources
@ -1 +1 @@
|
|||||||
eb8c3b463c027490164538b0fc3b35ad vtk-5.2.0.tar.gz
|
d59520d5f6c49c8b4e3b9227e341b19f vtk-5.2.1.tar.gz
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
# Create default python setup arguments if they are not set.
|
# Create default python setup arguments if they are not set.
|
||||||
IF(NOT DEFINED VTK_PYTHON_SETUP_ARGS)
|
IF(NOT DEFINED VTK_PYTHON_SETUP_ARGS)
|
||||||
- SET(VTK_PYTHON_SETUP_ARGS "--prefix=\"${DOLLAR}{CMAKE_INSTALL_PREFIX}\""
|
- SET(VTK_PYTHON_SETUP_ARGS "--prefix=\"${DOLLAR}{CMAKE_INSTALL_PREFIX}\""
|
||||||
+ SET(VTK_PYTHON_SETUP_ARGS "--root=\"${DOLLAR}{CMAKE_INSTALL_PREFIX}\""
|
+ SET(VTK_PYTHON_SETUP_ARGS "-O1 --root=\"${DOLLAR}ENV{RPM_BUILD_ROOT}\""
|
||||||
CACHE STRING "Arguments passed to \"python setup.py install ...\" during installation.")
|
CACHE STRING "Arguments passed to \"python setup.py install ...\" during installation.")
|
||||||
MARK_AS_ADVANCED(VTK_PYTHON_SETUP_ARGS)
|
MARK_AS_ADVANCED(VTK_PYTHON_SETUP_ARGS)
|
||||||
ENDIF(NOT DEFINED VTK_PYTHON_SETUP_ARGS)
|
ENDIF(NOT DEFINED VTK_PYTHON_SETUP_ARGS)
|
83
vtk.spec
83
vtk.spec
@ -6,15 +6,15 @@
|
|||||||
|
|
||||||
Summary: The Visualization Toolkit - A high level 3D visualization library
|
Summary: The Visualization Toolkit - A high level 3D visualization library
|
||||||
Name: vtk
|
Name: vtk
|
||||||
Version: 5.2.0
|
Version: 5.2.1
|
||||||
Release: 28%{?dist}
|
Release: 1%{?dist}
|
||||||
# This is a variant BSD license, a cross between BSD and ZLIB.
|
# This is a variant BSD license, a cross between BSD and ZLIB.
|
||||||
# For all intents, it has the same rights and restrictions as BSD.
|
# For all intents, it has the same rights and restrictions as BSD.
|
||||||
# http://fedoraproject.org/wiki/Licensing/BSD#VTKBSDVariant
|
# http://fedoraproject.org/wiki/Licensing/BSD#VTKBSDVariant
|
||||||
License: BSD
|
License: BSD
|
||||||
Group: System Environment/Libraries
|
Group: System Environment/Libraries
|
||||||
Source: http://www.vtk.org/files/release/5.2/%{name}-%{version}.tar.gz
|
Source: http://www.vtk.org/files/release/5.2/%{name}-%{version}.tar.gz
|
||||||
Patch0: vtk-5.2.0-pythondestdir.patch
|
Patch0: vtk-5.2.1-pythondestdir.patch
|
||||||
Patch1: vtk-5.2.0-gcc43.patch
|
Patch1: vtk-5.2.0-gcc43.patch
|
||||||
URL: http://vtk.org/
|
URL: http://vtk.org/
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
|
||||||
@ -112,12 +112,11 @@ programming languages.
|
|||||||
grep -rl '\.\./\.\./\.\./\.\./VTKData' . | xargs \
|
grep -rl '\.\./\.\./\.\./\.\./VTKData' . | xargs \
|
||||||
perl -pi -e's,\.\./\.\./\.\./\.\./VTKData,%{_datadir}/vtkdata-%{version},g'
|
perl -pi -e's,\.\./\.\./\.\./\.\./VTKData,%{_datadir}/vtkdata-%{version},g'
|
||||||
|
|
||||||
# Remove executable bits from sources
|
|
||||||
find . -name \*.c -or -name \*.cxx -or -name \*.h | xargs chmod -x
|
|
||||||
|
|
||||||
# Save an unbuilt copy of the Example's sources for %doc
|
# Save an unbuilt copy of the Example's sources for %doc
|
||||||
mkdir vtk-examples-5.2
|
mkdir vtk-examples-5.2
|
||||||
cp -a Examples vtk-examples-5.2
|
cp -a Examples vtk-examples-5.2
|
||||||
|
# Don't ship Win32 examples
|
||||||
|
rm -rf vtk-examples-5.2/Examples/GUI/Win32
|
||||||
find vtk-examples-5.2 -type f | xargs chmod -R a-x
|
find vtk-examples-5.2 -type f | xargs chmod -R a-x
|
||||||
|
|
||||||
%build
|
%build
|
||||||
@ -131,19 +130,19 @@ unset QTINC QTLIB QTPATH_LRELEASE QMAKESPEC
|
|||||||
export QTDIR=%{_libdir}/qt4
|
export QTDIR=%{_libdir}/qt4
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
tmpinstall=`pwd`/tmpinstall
|
mkdir build
|
||||||
|
pushd build
|
||||||
cmake_command="cmake . \
|
%cmake .. \
|
||||||
-DBUILD_SHARED_LIBS:BOOL=ON \
|
-DBUILD_SHARED_LIBS:BOOL=ON \
|
||||||
-DBUILD_DOCUMENTATION:BOOL=ON \
|
-DBUILD_DOCUMENTATION:BOOL=ON \
|
||||||
-DBUILD_EXAMPLES:BOOL=ON \
|
-DBUILD_EXAMPLES:BOOL=ON \
|
||||||
-DBUILD_TESTING:BOOL=ON \
|
-DBUILD_TESTING:BOOL=ON \
|
||||||
-DCMAKE_INSTALL_PREFIX:PATH=$tmpinstall \
|
|
||||||
-DDESIRED_QT_VERSION:STRING=3 \
|
-DDESIRED_QT_VERSION:STRING=3 \
|
||||||
-DVTK_INSTALL_BIN_DIR:PATH=%{_bindir} \
|
-DVTK_INSTALL_BIN_DIR:PATH=bin \
|
||||||
-DVTK_INSTALL_INCLUDE_DIR:PATH=%{_includedir}/vtk \
|
-DVTK_INSTALL_DOC_DIR:PATH=share/vtk-5.2/doc \
|
||||||
-DVTK_INSTALL_LIB_DIR:PATH=%{_libdir}/vtk-5.2 \
|
-DVTK_INSTALL_INCLUDE_DIR:PATH=include/vtk \
|
||||||
-DVTK_DATA_ROOT:PATH=%{_datadir}/vtkdata-%{version} \
|
-DVTK_INSTALL_LIB_DIR:PATH=%{_lib}/vtk-5.2 \
|
||||||
|
-DVTK_DATA_ROOT:PATH=share/vtkdata-%{version} \
|
||||||
-DTK_INTERNAL_PATH:PATH=/usr/include/tk-private/generic \
|
-DTK_INTERNAL_PATH:PATH=/usr/include/tk-private/generic \
|
||||||
%if %{with OSMesa}
|
%if %{with OSMesa}
|
||||||
-DVTK_OPENGL_HAS_OSMESA:BOOL=ON \
|
-DVTK_OPENGL_HAS_OSMESA:BOOL=ON \
|
||||||
@ -171,14 +170,10 @@ cmake_command="cmake . \
|
|||||||
%if %{with qt4}
|
%if %{with qt4}
|
||||||
-DDESIRED_QT_VERSION=4 \
|
-DDESIRED_QT_VERSION=4 \
|
||||||
-DQT_MOC_EXECUTABLE=%{_libdir}/qt4/bin/moc \
|
-DQT_MOC_EXECUTABLE=%{_libdir}/qt4/bin/moc \
|
||||||
-DVTK_INSTALL_QT_DIR=`qmake-qt4 -query QT_INSTALL_PREFIX`/plugins/designer \
|
-DVTK_INSTALL_QT_DIR=`qmake-qt4 -query QT_INSTALL_PREFIX | sed s,/usr,,`/plugins/designer \
|
||||||
%else
|
%else
|
||||||
-DVTK_INSTALL_QT_DIR=`qmake -query QT_INSTALL_PREFIX`/plugins/designer \
|
-DVTK_INSTALL_QT_DIR=`qmake -query QT_INSTALL_PREFIX | sed s,/usr,,`/plugins/designer \
|
||||||
%endif
|
%endif
|
||||||
"
|
|
||||||
# Second cmake is neccessary for vtk
|
|
||||||
eval $cmake_command
|
|
||||||
eval $cmake_command
|
|
||||||
|
|
||||||
# Commented old flags in case we'd like to reactive some of them
|
# Commented old flags in case we'd like to reactive some of them
|
||||||
# -DVTK_USE_DISPLAY:BOOL=OFF \ # This prevents building of graphics tests
|
# -DVTK_USE_DISPLAY:BOOL=OFF \ # This prevents building of graphics tests
|
||||||
@ -190,13 +185,23 @@ eval $cmake_command
|
|||||||
# -DOPENGL_INCLUDE_DIR:PATH=/usr/include/GL \
|
# -DOPENGL_INCLUDE_DIR:PATH=/usr/include/GL \
|
||||||
|
|
||||||
make
|
make
|
||||||
|
popd
|
||||||
|
|
||||||
|
# Remove executable bits from sources (some of which are generated)
|
||||||
|
find . -name \*.c -or -name \*.cxx -or -name \*.h -or -name \*.hxx -or \
|
||||||
|
-name \*.gif | xargs chmod -x
|
||||||
|
|
||||||
%install
|
%install
|
||||||
rm -rf %{buildroot}
|
rm -rf %{buildroot}
|
||||||
mkdir -p %{buildroot}
|
mkdir -p %{buildroot}
|
||||||
make install
|
pushd build
|
||||||
mv tmpinstall/* %{buildroot}/
|
make install DESTDIR=%{buildroot}
|
||||||
|
popd
|
||||||
|
|
||||||
|
# Move shared libraries to %{_libdir}
|
||||||
|
mv %{buildroot}%{_libdir}/vtk-5.2/lib*.so* %{buildroot}%{_libdir}/
|
||||||
|
|
||||||
|
# Move python libraries to /usr/lib64 if necessary - make noarch someday?
|
||||||
if [ "%{_lib}" != lib -a "`ls %{buildroot}%{_prefix}/lib/*`" != "" ]; then
|
if [ "%{_lib}" != lib -a "`ls %{buildroot}%{_prefix}/lib/*`" != "" ]; then
|
||||||
mkdir -p %{buildroot}%{_libdir}
|
mkdir -p %{buildroot}%{_libdir}
|
||||||
mv %{buildroot}%{_prefix}/lib/* %{buildroot}%{_libdir}/
|
mv %{buildroot}%{_prefix}/lib/* %{buildroot}%{_libdir}/
|
||||||
@ -208,7 +213,6 @@ ls %{buildroot}%{_libdir}/*.so.* \
|
|||||||
|
|
||||||
# List of executable utilities
|
# List of executable utilities
|
||||||
cat > utils.list << EOF
|
cat > utils.list << EOF
|
||||||
vtkParseOGLExt
|
|
||||||
vtkEncodeString
|
vtkEncodeString
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
@ -254,25 +258,23 @@ SocketClient
|
|||||||
SocketServer
|
SocketServer
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
# Install utils/examples/testing, too
|
# Need to install examples and test programs manually now
|
||||||
for filelist in utils.list examples.list testing.list; do
|
for file in `cat examples.list testing.list`; do
|
||||||
for file in `cat $filelist`; do
|
# Remove any remnants of rpaths (set for examples)
|
||||||
install -p bin/$file %{buildroot}%{_bindir}
|
chrpath -d build/bin/$file
|
||||||
done
|
# Use install -m 0755 to fix permissions
|
||||||
perl -pi -e's,^,%{_bindir}/,' $filelist
|
install -m 0755 -p build/bin/$file %{buildroot}%{_bindir}
|
||||||
done
|
done
|
||||||
|
|
||||||
# Remove any remnants of rpaths
|
# Add %{_bindir} to lists
|
||||||
for file in `cat examples.list`; do
|
for filelist in utils.list examples.list testing.list; do
|
||||||
chrpath -d %{buildroot}$file
|
perl -pi -e's,^,%{_bindir}/,' $filelist
|
||||||
done
|
done
|
||||||
|
|
||||||
# Main package contains utils and core libs
|
# Main package contains utils and core libs
|
||||||
cat libs.list utils.list > main.list
|
cat libs.list utils.list > main.list
|
||||||
|
|
||||||
# Make shared libs and scripts executable
|
# Make scripts executable
|
||||||
mv %{buildroot}%{_libdir}/vtk-5.2/lib*.so* %{buildroot}%{_libdir}/
|
|
||||||
chmod a+x %{buildroot}%{_libdir}/lib*.so.*
|
|
||||||
chmod a+x %{buildroot}%{_libdir}/vtk-5.2/doxygen/*.pl
|
chmod a+x %{buildroot}%{_libdir}/vtk-5.2/doxygen/*.pl
|
||||||
chmod a+x %{buildroot}%{_libdir}/vtk-5.2/testing/*.{py,tcl}
|
chmod a+x %{buildroot}%{_libdir}/vtk-5.2/testing/*.{py,tcl}
|
||||||
|
|
||||||
@ -284,8 +286,8 @@ for file in `find %{buildroot} -type f -perm 0755 \
|
|||||||
done
|
done
|
||||||
find Utilities/Upgrading -type f | xargs chmod -x
|
find Utilities/Upgrading -type f | xargs chmod -x
|
||||||
|
|
||||||
# Add exec bits to shared libs ...
|
# Set proper perms on python shared libs ...
|
||||||
#chmod 0755 %{buildroot}%{_libdir}/vtk-5.2/CMake/*.so
|
chmod 0755 %{buildroot}%{_libdir}/python*/site-packages/vtk/*.so
|
||||||
|
|
||||||
%check
|
%check
|
||||||
#LD_LIBARARY_PATH=`pwd`/bin ctest -V
|
#LD_LIBARARY_PATH=`pwd`/bin ctest -V
|
||||||
@ -318,6 +320,8 @@ rm -rf %{buildroot}
|
|||||||
%files -f main.list
|
%files -f main.list
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
%doc --parents Copyright.txt README.html vtkLogo.jpg vtkBanner.gif Wrapping/*/README*
|
%doc --parents Copyright.txt README.html vtkLogo.jpg vtkBanner.gif Wrapping/*/README*
|
||||||
|
%dir %{_datadir}/vtk-5.2/
|
||||||
|
%doc %{_datadir}/vtk-5.2/doc/
|
||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
@ -369,6 +373,11 @@ rm -rf %{buildroot}
|
|||||||
%doc vtk-examples-5.2/Examples
|
%doc vtk-examples-5.2/Examples
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Mar 12 2009 Orion Poplawski <orion@cora.nwra.com> - 5.2.1-1
|
||||||
|
- Update to 5.2.1
|
||||||
|
- Update pythondestdir patch to use RPM_BUILD_ROOT
|
||||||
|
- Cleanup spec file
|
||||||
|
|
||||||
* Fri Mar 06 2009 Jesse Keating <jkeating@redhat.com> - 5.2.0-28
|
* Fri Mar 06 2009 Jesse Keating <jkeating@redhat.com> - 5.2.0-28
|
||||||
- Remove chmod on examples .so files, none are built. This needs
|
- Remove chmod on examples .so files, none are built. This needs
|
||||||
more attention.
|
more attention.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user