rpms/Mayavi/F-11 Mayavi-3.1.0-enthought_tvtk_code_gen_py.patch, NONE, 1.1 Mayavi.desktop, NONE, 1.1 Mayavi.spec, NONE, 1.1 import.log, NONE, 1.1 tvtk_doc.desktop, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2

Rakesh Pandit rakesh at fedoraproject.org
Wed Jul 1 06:32:19 UTC 2009


Author: rakesh

Update of /cvs/pkgs/rpms/Mayavi/F-11
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv32380/F-11

Modified Files:
	.cvsignore sources 
Added Files:
	Mayavi-3.1.0-enthought_tvtk_code_gen_py.patch Mayavi.desktop 
	Mayavi.spec import.log tvtk_doc.desktop 
Log Message:

Initial import.



Mayavi-3.1.0-enthought_tvtk_code_gen_py.patch:

--- NEW FILE Mayavi-3.1.0-enthought_tvtk_code_gen_py.patch ---
--- Mayavi-3.1.0.org/enthought/tvtk/code_gen.py	2009-06-10 16:40:04.124136294 +0530
+++ Mayavi-3.1.0/enthought/tvtk/code_gen.py	2009-06-11 17:01:04.970576741 +0530
@@ -157,6 +157,8 @@
                 z.write(x, 'tvtk_classes/%s'%fname)
         z.writepy('tvtk_classes')
         z.close()
+        if os.path.exists(cwd + "/" + self.zip_name):
+            os.unlink(cwd + "/" + self.zip_name)
         shutil.move(self.zip_name, cwd)
         os.chdir(cwd)
 


--- NEW FILE Mayavi.desktop ---
[Desktop Entry]
Name=Mayavi
Comment=Scientific data 3-dimensional visualizer
GenericName=Scientific data 3-dimensional visualizer
Exec=mayavi2 %U
StartupNotify=true
Terminal=false
Type=Application
Icon=mayavi2
Categories=GNOME;Education;3DGraphics;X-Science,X-DataVisualization;


--- NEW FILE Mayavi.spec ---
# sitelib for noarch packages, sitearch for others (remove the unneeded one)
%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}

Name:           Mayavi
Version:        3.2.0
Release:        6%{?dist}
Summary:        Scientific data 3-dimensional visualizer

Group:          Applications/Engineering
License:        BSD and EPL and LGPLv2+ and LGPLv3+
URL:            http://pypi.python.org/pypi/Mayavi/
Source0:        http://www.enthought.com/repo/ETS/%{name}-%{version}.tar.gz
Source1:        Mayavi.desktop
Source2:        tvtk_doc.desktop
# Removes already generated tvtk class zip file
# https://svn.enthought.com/enthought/ticket/1817
Patch0:         Mayavi-3.1.0-enthought_tvtk_code_gen_py.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires:  python-setuptools, python-setupdocs, python-sphinx
BuildRequires:  vtk-python, desktop-file-utils
%if 0%{?fedora} >= 11
BuildRequires:  numpy-f2py
%else
BuildRequires:  numpy
%endif
Requires:       numpy, vtk-python
Requires:       wxPython
Requires:       python-AppTools
Requires:       python-EnthoughtBase
Requires:       python-EnvisageCore
Requires:       python-EnvisagePlugins
Requires:       python-Traits >= 3.1.0
Requires:       python-TraitsGUI
Requires:       python-TraitsBackendQt >= 3.1.0

%description

The Mayavi project includes two related packages for 3-dimensional
visualization:

 * Mayavi2: A tool for easy and interactive visualization of data.
 * TVTK: A Traits-based wrapper for the Visualization Toolkit, a
popular open-source visualization library.
These operate at different levels of abstraction. TVTK manipulates
visualization objects, while Mayavi2 lets you operate on your data,
and then see the results. Most users either use the Mayavi user
interface or program to its scripting interface; you probably don't
need to interact with TVTK unless you want to create a new Mayavi
module.

%prep
%setup -q -n %{name}-%{version}
%patch0 -p1 -b  enthought_tvtk_code_gen_py
rm -rf Mayavi.egg-info

# removes .buildinfo files
find enthought/mayavi/html/ enthought/tvtk/html/ -name \.buildinfo \
 -type f -print | xargs rm -f -

# Fixed license naming
sed 's/icon_/image_/g' image_LICENSE.txt > image_LICENSE.txt.fixed
touch -c -r image_LICENSE.txt image_LICENSE.txt.fixed
mv -f image_LICENSE.txt.fixed image_LICENSE.txt

# wrong-file-end-of-line-encoding
sed 's/\r//' examples/mayavi/wx_mayavi_embed_in_notebook.py > \
 examples/mayavi/wx_mayavi_embed_in_notebook.py.fixed
touch -c -r examples/mayavi/wx_mayavi_embed_in_notebook.py \
 examples/mayavi/wx_mayavi_embed_in_notebook.py.fixed
mv -f examples/mayavi/wx_mayavi_embed_in_notebook.py.fixed \
 examples/mayavi/wx_mayavi_embed_in_notebook.py

sed 's/\r//' examples/mayavi/data/room_vis.wrl > \
 examples/mayavi/data/room_vis.wrl.fixed
touch -c -r examples/mayavi/data/room_vis.wrl \
 examples/mayavi/data/room_vis.wrl.fixed
mv -f  examples/mayavi/data/room_vis.wrl.fixed \
 examples/mayavi/data/room_vis.wrl

sed 's/\r//' examples/tvtk/dscene.py > examples/tvtk/dscene.py.fixed
touch -c -r examples/tvtk/dscene.py examples/tvtk/dscene.py.fixed
mv -f examples/tvtk/dscene.py.fixed examples/tvtk/dscene.py

sed 's/\r//' image_LICENSE_Nuvola.txt > image_LICENSE_Nuvola.txt.fixed
touch -c -r image_LICENSE_Nuvola.txt image_LICENSE_Nuvola.txt.fixed
mv -f image_LICENSE_Nuvola.txt.fixed image_LICENSE_Nuvola.txt

sed 's/\r//' image_LICENSE_OOo.txt > image_LICENSE_OOo.txt.fixed
touch -c -r image_LICENSE_OOo.txt image_LICENSE_OOo.txt.fixed
mv -f image_LICENSE_OOo.txt.fixed image_LICENSE_OOo.txt

sed 's/\r//' image_LICENSE_Eclipse.txt > image_LICENSE_Eclipse.txt.fixed
touch -c -r image_LICENSE_Eclipse.txt image_LICENSE_Eclipse.txt.fixed
mv -f image_LICENSE_Eclipse.txt.fixed image_LICENSE_Eclipse.txt

# file-not-utf8
iconv -f iso8859-1 -t utf-8 image_LICENSE_OOo.txt > image_LICENSE_OOo.txt.conv \
 && touch -c -r image_LICENSE_OOo.txt image_LICENSE_OOo.txt.conv \
 && mv -f image_LICENSE_OOo.txt.conv image_LICENSE_OOo.txt
iconv -f iso8859-1 -t utf-8 image_LICENSE_Eclipse.txt > image_LICENSE_Eclipse.txt.conv \
 && touch -c -r image_LICENSE_Eclipse.txt image_LICENSE_Eclipse.txt.conv \
 && mv -f image_LICENSE_Eclipse.txt.conv image_LICENSE_Eclipse.txt
iconv -f iso8859-1 -t utf-8 README-mayavi.txt > README-mayavi.txt.conv \
 && touch -c -r README-mayavi.txt README-mayavi.txt.conv \
 && mv -f README-mayavi.txt.conv README-mayavi.txt
iconv -f iso8859-1 -t utf-8 docs/THANKS.txt > docs/THANKS.txt.conv \
 && touch -c -r docs/THANKS.txt docs/THANKS.txt.conv \
 && mv -f docs/THANKS.txt.conv docs/THANKS.txt

# spurious-executable-perm
chmod -x examples/mayavi/mayavi_traits_ui.py examples/mayavi/test.py \
 examples/mayavi/nongui.py examples/mayavi/numeric_source.py \
 examples/mayavi/glyph.py examples/tvtk/plugins/test.py \
 examples/mayavi/compute_in_thread.py examples/mayavi/contour.py \
 examples/mayavi/streamline.py examples/mayavi/offscreen.py \
 enthought/mayavi/tests/data/cellsnd.ascii.inp

%build
CFLAGS="$RPM_OPT_FLAGS" python setup.py release build


%install
rm -rf $RPM_BUILD_ROOT
python setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
sed -i 's/\.dev$//g' $RPM_BUILD_ROOT/%{python_sitearch}/%{name}-%{version}-*.egg-info/requires.txt

# non-executable-script
chmod +x $RPM_BUILD_ROOT/%{python_sitearch}/enthought/mayavi/tests/runtests.py \
 $RPM_BUILD_ROOT/%{python_sitearch}/enthought/mayavi/scripts/mayavi2.py \
 $RPM_BUILD_ROOT/%{python_sitearch}/enthought/tvtk/setup.py

rm $RPM_BUILD_ROOT/%{python_sitearch}/*-nspkg.pth
mkdir -p $RPM_BUILD_ROOT/%{_mandir}/man1/
mv docs/mayavi2.man $RPM_BUILD_ROOT/%{_mandir}/man1/%{name}.1
desktop-file-install --dir=${RPM_BUILD_ROOT}%{_datadir}/applications %{SOURCE1}
desktop-file-install --dir=${RPM_BUILD_ROOT}%{_datadir}/applications %{SOURCE2}
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
install -p -m 644 ./docs/source/mayavi/images/mayavi2-48x48.png \
 $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/48x48/apps/tvtk_doc.png 

# removes .buildinfo files
find docs/source/ \( -name \.static -o -name \.templates \) \
 -type d -print | xargs rm -rf -


%clean
rm -rf $RPM_BUILD_ROOT


%post
touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :

%postun
if [ $1 -eq 0 ] ; then
    touch --no-create %{_datadir}/icons/hicolor &>/dev/null
    gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
fi

%posttrans
gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :


%files
%defattr(-,root,root,-)
%doc *.txt docs/*.txt examples/ docs/pdf/*.pdf
%doc docs/pdf/*/*.pdf docs/source
%{_bindir}/mayavi2
%{_bindir}/tvtk_doc
%{python_sitearch}/enthought/*
%{python_sitearch}/*.egg-info
%{_mandir}/man1/%{name}.1.gz
%{_datadir}/applications/%{name}.desktop
%{_datadir}/applications/tvtk_doc.desktop
%{_datadir}/icons/hicolor/48x48/apps/tvtk_doc.png
%{_datadir}/icons/hicolor/48x48/apps/mayavi2.png


%changelog
* Fri Jun 26 2009 Rakesh Pandit <rakesh at fedoraproject.org> 3.2.0-6
- Fixed BR, and removed .template & .static directories from docs/source
- Included missing icon from .desktop

* Fri Jun 26 2009 Rakesh Pandit <rakesh at fedoraproject.org> 3.2.0-5
- Using mayavi2-48x48.png has icons for both .desktop files
- Added Categories to .desktop files

* Thu Jun 25 2009 Rakesh Pandit <rakesh at fedoraproject.org> 3.2.0-4
- Removed wrong scriplets and corrected 'commets' in
-  tvtk_doc.desktop file.

* Wed Jun 24 2009 Rakesh Pandit <rakesh at fedoraproject.org> 3.2.0-3
- Fixed license issue and group tag
- Added a .desktop file

* Mon Jun 15 2009 Rakesh Pandit <rakesh at fedoraproject.org> 3.2.0-3
- included man page, adjusted description, removed useless BR's,
- fixed owned directory issue, cleaned up spec

* Fri Jun 12 2009 Rakesh Pandit <rakesh at fedoraproject.org> 3.2.0-2
- Saving timestamp, and fixed indentation

* Fri Jun 12 2009 Rakesh Pandit <rakesh at fedoraproject.org> 3.2.0-1
- Updated

* Wed Jun 10 2009 Rakesh Pandit <rakesh at fedoraproject.org> 3.1.0-3
- Changed name to Mayavi

* Tue Jan 27 2009 Rakesh Pandit <rakesh at fedoraproject.org> 3.1.0-2
- Fixed description.

* Tue Jan 27 2009 Rakesh Pandit <rakesh at fedoraproject.org> 3.1.0-1
- Initial package


--- NEW FILE import.log ---
Mayavi-3_2_0-6_fc11:F-11:Mayavi-3.2.0-6.fc11.src.rpm:1246430044


--- NEW FILE tvtk_doc.desktop ---
[Desktop Entry]
Name=Mayavi
Comment=TVTK Documentation
GenericName=TVTK Documentation
Exec=tvtk_doc %U
StartupNotify=true
Terminal=false
Type=Application
Icon=tvtk_doc
Categories=GNOME;Education;3DGraphics;X-Science,X-DataVisualization;

Index: .cvsignore
===================================================================
RCS file: /cvs/pkgs/rpms/Mayavi/F-11/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -p -r1.1 -r1.2
--- .cvsignore	27 Jun 2009 00:35:24 -0000	1.1
+++ .cvsignore	1 Jul 2009 06:32:18 -0000	1.2
@@ -0,0 +1 @@
+Mayavi-3.2.0.tar.gz


Index: sources
===================================================================
RCS file: /cvs/pkgs/rpms/Mayavi/F-11/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -p -r1.1 -r1.2
--- sources	27 Jun 2009 00:35:24 -0000	1.1
+++ sources	1 Jul 2009 06:32:19 -0000	1.2
@@ -0,0 +1 @@
+efd2de257e517de54f7697526de9a04c  Mayavi-3.2.0.tar.gz




More information about the fedora-extras-commits mailing list