Hello community, here is the log from the commit of package mayavi for openSUSE:Factory checked in at 2019-04-24 13:57:36 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/mayavi (Old) and /work/SRC/openSUSE:Factory/.mayavi.new.5536 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "mayavi" Wed Apr 24 13:57:36 2019 rev:2 rq:697256 version:4.6.2 Changes: -------- --- /work/SRC/openSUSE:Factory/mayavi/mayavi.changes 2019-01-21 10:49:16.732098032 +0100 +++ /work/SRC/openSUSE:Factory/.mayavi.new.5536/mayavi.changes 2019-04-24 13:57:36.195980383 +0200 @@ -1,0 +2,6 @@ +Tue Apr 23 15:28:48 CEST 2019 - Matej Cepl <[email protected]> + +- Clean up SPEC file +- Fix removal of wrong shebang lines. + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ mayavi.spec ++++++ --- /var/tmp/diff_new_pack.ENInkY/_old 2019-04-24 13:57:36.843979977 +0200 +++ /var/tmp/diff_new_pack.ENInkY/_new 2019-04-24 13:57:36.843979977 +0200 @@ -51,14 +51,14 @@ BuildRequires: python3-vtk >= 5.0 BuildRequires: update-desktop-files BuildRequires: vtk-devel -# SECTION test requirements -BuildRequires: xorg-x11-server -# /SECTION Requires: python3-apptools Requires: python3-qt5 Requires: python3-setuptools Requires: python3-tvtk = %{version} Provides: python3-mayavi = %{version} +# SECTION test requirements +BuildRequires: xorg-x11-server +# /SECTION %description Mayavi provides interactive visualization of 3-D data. It offers: @@ -128,10 +128,8 @@ chmod -x mayavi/tests/data/cellsnd.ascii.inp # env-script-interpreter -sed -i -e '/^#!\//, 1d' mayavi/scripts/mayavi2.py -sed -i -e '/^#!\//, 1d' mayavi/tests/csv_files/csv_2_py -sed -i -e '/^#!\//, 1d' mayavi/tests/runtests.py -sed -i -e '/^#!\//, 1d' tvtk/setup.py +find . -name \*.py -exec \ + sed -i -e '1s@#!\s*%{_bindir}/env\s*python@#!%{_bindir}/python@' '{}' \; %build export LANG=en_US.UTF-8 @@ -163,23 +161,11 @@ # Remove shebang from .py files in examples and integrationtests # as they are not supposed to be executed -for i in %{buildroot}%{python3_sitearch}/{mayavi,tvtk}/examples/*.py; -do -sed -i -e '/^#!\//, 1d' $i; -done -for i in %{buildroot}%{python3_sitearch}/{mayavi,tvtk}/examples/*/*.py; -do -sed -i -e '/^#!\//, 1d' $i; -done -for i in %{buildroot}%{python3_sitearch}/mayavi/integrationtests/*.py; -do -sed -i -e '/^#!\//, 1d' $i; -done +find %{buildroot}%{python3_sitearch}/{mayavi,tvtk}/examples -name \*.py \ + -exec sed -i -e '/^#!\//, 1d' '{}' \; %if 0%{?suse_version} > 1320 -for i in %{buildroot}%{python3_sitearch}/mayavi/html/_downloads/*.py; -do -sed -i -e '/^#!\//, 1d' $i; -done +find %{buildroot}%{python3_sitearch}/mayavi/html/_downloads -name \*.py \ + -exec sed -i -e '/^#!\//, 1d' '{}' \; %endif mkdir -p %{buildroot}/%{_mandir}/man1/ @@ -248,7 +234,8 @@ %exclude %{_docdir}/%{name}/html/ %files -n python3-tvtk -%doc LICENSE*.txt image_LICENSE*.txt README*.* +%doc README*.* +%license LICENSE*.txt image_LICENSE*.txt %{_bindir}/tvtk_doc %{_datadir}/applications/tvtk_doc.desktop %{_datadir}/icons/hicolor
