[spyder] Initial Import

Chen Lei supercyper at fedoraproject.org
Thu Sep 23 02:40:48 UTC 2010


commit 47c3b6e341f3ea07c7bf1049112456edfebdf63d
Author: Chen Lei <supercyper at 163.com>
Date:   Thu Sep 23 10:40:17 2010 +0800

    Initial Import

 .gitignore     |    1 +
 sources        |    1 +
 spyder.desktop |    9 ++++++
 spyder.spec    |   80 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 4 files changed, 91 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..39e6f31 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/spyder-2.0.0beta3.tar.gz
diff --git a/sources b/sources
index e69de29..bca4c47 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+75a9564fb720bdc1507017244146ccd8  spyder-2.0.0beta3.tar.gz
diff --git a/spyder.desktop b/spyder.desktop
new file mode 100644
index 0000000..3591cc3
--- /dev/null
+++ b/spyder.desktop
@@ -0,0 +1,9 @@
+[Desktop Entry]
+Type=Application
+Exec=spyder
+Name=Spyder
+GenericName=Scientific Python Development Environment
+Comment=A simple and lightweighted python IDE with MATLAB-like features
+Icon=spyder
+Terminal=false
+Categories=Development;IDE;
diff --git a/spyder.spec b/spyder.spec
new file mode 100644
index 0000000..4299050
--- /dev/null
+++ b/spyder.spec
@@ -0,0 +1,80 @@
+%if ! (0%{?fedora} > 12 || 0%{?rhel} > 5)
+%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
+%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}
+%endif
+
+Name:		spyder
+Version:	2.0.0
+Release:	0.1.beta3%{?dist}
+Summary:	Scientific Python Development Environment
+Source0:	http://spyderlib.googlecode.com/files/%{name}-%{version}beta3.tar.gz
+Source1:	%{name}.desktop
+License:	MIT
+Group:		Development/Tools
+URL:		http://spyderlib.googlecode.com
+BuildRequires:	python2-devel
+BuildRequires:	python-setuptools
+BuildRequires:	desktop-file-utils
+Requires:	PyQt4
+Requires:	pyflakes python-rope
+Requires:	numpy scipy
+Requires:	python-matplotlib ipython
+Requires:	hicolor-icon-theme
+BuildArch:	noarch
+
+%description
+Spyder is a Python development environment with advanced editing, interactive
+testing, debugging and introspection features. It is especially recommended 
+for scientific computing thanks to NumPy (linear algebra), SciPy (signal and 
+image processing), matplotlib (interactive 2D/3D plotting), MayaVi’s mlab 
+(interactive 3D visualization) and -of course- IPython support.
+
+Spyder may also be used as a library providing powerful console-related PyQt4
+widgets.
+
+%prep
+%setup -q -n %{name}-%{version}beta3
+sed -i 's/\r//' README
+
+%build
+python setup.py build
+
+%install
+python setup.py install -O1 --skip-build --root=%{buildroot}
+rm -rf %{buildroot}%{python_sitelib}/spyderlib/doc/{.buildinfo,.doctrees}
+
+mkdir -p %{buildroot}%{_datadir}/icons/hicolor/scalable/apps/
+cp -p img_src/%{name}.svg %{buildroot}%{_datadir}/icons/hicolor/scalable/apps/
+desktop-file-install --dir=%{buildroot}%{_datadir}/applications %{SOURCE1}
+
+%check
+python setup.py test
+
+%clean
+rm -rf %{buildroot}
+
+%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 README
+%{python_sitelib}/spyder-*.egg-info
+%{python_sitelib}/spyderlib
+%{python_sitelib}/spyderplugins
+%{_bindir}/spyder
+%{_datadir}/applications/*
+%{_datadir}/icons/hicolor/*/apps/*
+
+%changelog
+* Wed Sep 15 2010 Chen Lei <supercyper at 163.com> - 2.0.0-0.1.beta3
+- Initial rpm build


More information about the scm-commits mailing list