Chen Lei 47c3b6e
Name:		spyder
b9ffb45
Version:	2.2.4
Radek Novacek 7325df1
Release:	4%{?dist}
Chen Lei 47c3b6e
Summary:	Scientific Python Development Environment
Chen Lei cb8d3c4
Source0:	http://spyderlib.googlecode.com/files/%{name}-%{version}.zip
Chen Lei 47c3b6e
Source1:	%{name}.desktop
Chen Lei 47c3b6e
License:	MIT
Chen Lei 47c3b6e
URL:		http://spyderlib.googlecode.com
Chen Lei cb8d3c4
BuildRequires:	python2-devel python-sphinx
Chen Lei 47c3b6e
BuildRequires:	desktop-file-utils
Radek Novacek d323607
Requires:	PyQt4
Radek Novacek d323607
Requires:	pyflakes >= 0.5.0
Chen Lei cb8d3c4
Requires:	python-rope python-sphinx
Chen Lei 47c3b6e
Requires:	hicolor-icon-theme
Chen Lei 47c3b6e
BuildArch:	noarch
Chen Lei 47c3b6e
b9ffb45
Patch0: spyder-Handle-EOFError-when-reading-spyderproject-file.patch
b9ffb45
Chen Lei 47c3b6e
%description
Chen Lei 47c3b6e
Spyder is a Python development environment with advanced editing, interactive
Chen Lei 47c3b6e
testing, debugging and introspection features. It is especially recommended 
Chen Lei 47c3b6e
for scientific computing thanks to NumPy (linear algebra), SciPy (signal and 
Chen Lei 47c3b6e
image processing), matplotlib (interactive 2D/3D plotting), MayaVi’s mlab 
Chen Lei 47c3b6e
(interactive 3D visualization) and -of course- IPython support.
Chen Lei 47c3b6e
Chen Lei 47c3b6e
Spyder may also be used as a library providing powerful console-related PyQt4
Chen Lei 47c3b6e
widgets.
Chen Lei 47c3b6e
Chen Lei 47c3b6e
%prep
Chen Lei cb8d3c4
%setup -q
Radek Novacek f5a7392
b9ffb45
%patch0 -p1 -b .eoferror
b9ffb45
Chen Lei b6b1c76
rm -rf PKG-INFO
Chen Lei cb8d3c4
Chen Lei cb8d3c4
# Remove DOS line endings
Chen Lei b6b1c76
for file in `find -name "*.rst" -o -name "*.py" -o -name "*.css"` README; do
Chen Lei cb8d3c4
	sed "s|\r||g" $file > $file.new && \
Chen Lei cb8d3c4
	touch -r $file $file.new && \
Chen Lei cb8d3c4
	mv $file.new $file
Chen Lei cb8d3c4
done
Chen Lei 47c3b6e
Chen Lei 47c3b6e
%build
Chen Lei 47c3b6e
python setup.py build
Chen Lei 47c3b6e
Chen Lei 47c3b6e
%install
Chen Lei 47c3b6e
python setup.py install -O1 --skip-build --root=%{buildroot}
Chen Lei 47c3b6e
rm -rf %{buildroot}%{python_sitelib}/spyderlib/doc/{.buildinfo,.doctrees}
Radek Novacek 7389e64
rm -rf %{buildroot}%{_bindir}/spyder_win_post_install.py
Chen Lei 47c3b6e
Chen Lei 47c3b6e
mkdir -p %{buildroot}%{_datadir}/icons/hicolor/scalable/apps/
Chen Lei 92c6191
cp -p spyderlib/images/%{name}.svg %{buildroot}%{_datadir}/icons/hicolor/scalable/apps/
Chen Lei 47c3b6e
desktop-file-install --dir=%{buildroot}%{_datadir}/applications %{SOURCE1}
Chen Lei 47c3b6e
Chen Lei 47c3b6e
%post
Chen Lei 47c3b6e
touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
Chen Lei 47c3b6e
Chen Lei 47c3b6e
%postun
Chen Lei 47c3b6e
if [ $1 -eq 0 ] ; then
Chen Lei 47c3b6e
    touch --no-create %{_datadir}/icons/hicolor &>/dev/null
Chen Lei 47c3b6e
    gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
Chen Lei 47c3b6e
fi
Chen Lei 47c3b6e
Chen Lei 47c3b6e
%posttrans
Chen Lei 47c3b6e
gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
Chen Lei 47c3b6e
Chen Lei 47c3b6e
%files
Chen Lei 47c3b6e
%doc README
Chen Lei 47c3b6e
%{python_sitelib}/spyder-*.egg-info
Chen Lei 47c3b6e
%{python_sitelib}/spyderlib
Chen Lei 47c3b6e
%{python_sitelib}/spyderplugins
Chen Lei 47c3b6e
%{_bindir}/spyder
Chen Lei 47c3b6e
%{_datadir}/applications/*
Chen Lei 47c3b6e
%{_datadir}/icons/hicolor/*/apps/*
Radek Novacek 2169425
%{_datadir}/pixmaps/spyder.png
Chen Lei 47c3b6e
Chen Lei 47c3b6e
%changelog
Radek Novacek 7325df1
* Thu Aug 07 2014 Radek Novacek <rnovacek@redhat.com> 2.2.4-4
Radek Novacek 7325df1
- Remove Requires: qtwebkit as its already pulled by PyQt4
Radek Novacek 7325df1
Radek Novacek d456783
* Wed Jul 30 2014 Radek Novacek <rnovacek@redhat.com> 2.2.4-3
Radek Novacek d456783
- Add Requires: qtwebkit (#1121360)
Radek Novacek d456783
e289342
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.2.4-2
e289342
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
e289342
b9ffb45
* Wed Sep 25 2013 Tomas Hozza <thozza@redhat.com> 2.2.4-1
b9ffb45
- new upstream version 2.2.4 (#1010935)
b9ffb45
- Spyder failed to start and ended with EOFError (#1010568)
b9ffb45
Radek Novacek 1fe0b42
* Fri Aug 16 2013 Radek Novacek <rnovacek@redhat.com> 2.2.2-1
Radek Novacek 1fe0b42
- Update to 2.2.2
Radek Novacek 1fe0b42
b456c53
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.2.1-2
b456c53
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
b456c53
Radek Novacek abb2dbb
* Wed Jul 10 2013 Radek Novacek <rnovacek@redhat.com> 2.2.1-1
Radek Novacek abb2dbb
- Update to 2.2.1
Radek Novacek abb2dbb
Radek Novacek 2169425
* Mon May 20 2013 Radek Novacek <rnovacek@redhat.com> 2.2.0-1
Radek Novacek 2169425
- Update to 2.2.0
Radek Novacek 2169425
- Spec cleanup
Radek Novacek 2169425
- Add spyder.png pixmap
Radek Novacek 2169425
- Resolves: #958040
Radek Novacek 2169425
Radek Novacek 992abbc
* Mon Mar 11 2013 Radek Novacek <rnovacek@redhat.com> 2.1.13-3
Radek Novacek 992abbc
- Fix checking PyQt4 version
Radek Novacek 992abbc
- Resolves: #919921
Radek Novacek 992abbc
bb690b8
* Fri Feb 15 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1.13-2
bb690b8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
bb690b8
Radek Novacek 7389e64
* Thu Jan 10 2013 Radek Novacek <rnovacek@redhat.com> 2.1.13-1
Radek Novacek 7389e64
- Update to 2.1.13
Radek Novacek 7389e64
3609b38
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1.6-4
3609b38
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
3609b38
Radek Novacek d323607
* Mon Feb 06 2012 Radek Novacek <rnovacek@redhat.com> 2.1.6-3
Radek Novacek d323607
- Require pyflakes >= 0.5.0
Radek Novacek d323607
- Resolves: #786836
Radek Novacek d323607
b2742fc
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1.6-2
b2742fc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
b2742fc
Radek Novacek f5a7392
* Mon Jan 02 2012 Radek Novacek <rnovacek@redhat.com> 2.1.6-1
Radek Novacek f5a7392
- Update to 2.1.6
Radek Novacek f5a7392
- Fix crash with ipython 0.12dev
Radek Novacek f5a7392
- Resolves: #770161
Radek Novacek f5a7392
Radek Novacek f4ba2e6
* Fri Nov 25 2011 Radek Novacek <rnovacek@redhat.com> 2.1.2-1
Radek Novacek f4ba2e6
- Update to 2.1.2
Radek Novacek f4ba2e6
Radek Novacek 4bf4313
* Mon Nov 07 2011 Radek Novacek <rnovacek@redhat.com> - 2.1.1-1
Radek Novacek 4bf4313
- Update to 2.1.1
Radek Novacek 4bf4313
Radek Novacek 4bf4313
* Thu Jul 14 2011 Radek Novacek <rnovacek@redhat.com> - 2.0.12-1
Radek Novacek 5581ed8
- Update to 2.0.12
Radek Novacek 5581ed8
Chen Lei c2957b5
* Sun May 22 2011 Chen Lei <supercyper@163.com> - 2.0.11-1
Chen Lei c2957b5
- Update to 2.0.11
Chen Lei c2957b5
Chen Lei 565b424
* Sun Dec 19 2010 Chen Lei <supercyper@163.com> - 2.0.5-1
Chen Lei 565b424
- Update to 2.0.5
Chen Lei 565b424
Chen Lei b6b1c76
* Wed Dec 08 2010 Chen Lei <supercyper@163.com> - 2.0.3-1
Chen Lei b6b1c76
- Update to 2.0.3
Chen Lei b6b1c76
Chen Lei d051873
* Wed Dec 01 2010 Chen Lei <supercyper@163.com> - 2.0.1-1
Chen Lei d051873
- Update to 2.0.1
Chen Lei d051873
Chen Lei cb8d3c4
* Tue Nov 30 2010 Chen Lei <supercyper@163.com> - 2.0.0-1
Chen Lei cb8d3c4
- Update to 2.0.0 final
Chen Lei cb8d3c4
Chen Lei 3466e15
* Wed Oct 13 2010 Chen Lei <supercyper@163.com> - 2.0.0-0.2.beta5
Chen Lei 3466e15
- Update to 2.0.0beta5
Chen Lei 3466e15
Chen Lei 47c3b6e
* Wed Sep 15 2010 Chen Lei <supercyper@163.com> - 2.0.0-0.1.beta3
Chen Lei 47c3b6e
- Initial rpm build