From 367fbf4136dc6f23cdeaac8ed73eafd2a50cb5c9 Mon Sep 17 00:00:00 2001 From: Orion Poplawski Date: May 25 2012 18:07:59 +0000 Subject: Add %check, not working yet --- diff --git a/Mayavi.spec b/Mayavi.spec index 5f29ce9..2f67ea1 100644 --- a/Mayavi.spec +++ b/Mayavi.spec @@ -12,6 +12,8 @@ Patch0: Mayavi-sphinx.patch BuildRequires: python2-devel, python-setuptools, python-setupdocs # For HTML docs BuildRequires: python-sphinx +# For tests +BuildRequires: python-Traits BuildRequires: numpy, vtk-python, desktop-file-utils Requires: vtk-python, python-AppTools # EnthoughtBase, Traits[ui] and numpy come with TraitsGUI @@ -94,6 +96,12 @@ mkdir -p $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/48x48/apps/ install -p -m 644 ./docs/source/mayavi/images/mayavi2-48x48.png \ $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/48x48/apps/mayavi2.png +%check +# This isn't working yet +libdir=`echo build/lib.*` +ln tvtk/tvtk_classes.zip ${libdir}/tvtk/ +PYTHONPATH=${libdir} mayavi/scripts/mayavi2 -t || : + %post touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :