efa169a
%if ! (0%{?fedora} > 12 || 0%{?rhel} > 5)
efa169a
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
efa169a
%endif
Shahms King 44d2679
Shahms King 44d2679
Name:           ipython
dc1649a
Version:        0.10.1
f2cbf1b
Release:        3%{?dist}
Shahms King 44d2679
Summary:        An enhanced interactive Python shell
Shahms King 44d2679
Shahms King 44d2679
Group:          Development/Libraries
dfd5875
# See bug #603178 for a quick overview for the choice of licenses
dfd5875
# most files are under BSD and just a few under Python or MIT
dfd5875
# There are some extensions released under GPLv2+
dfd5875
License:        (BSD and MIT and Python) and GPLv2+
Shahms King 44d2679
URL:            http://ipython.scipy.org/
Shahms King 3745810
Source0:        http://ipython.scipy.org/dist/%{name}-%{version}.tar.gz
dfd5875
# move itpl.py to external - already done in upstream git
dfd5875
Patch0:         %{name}-itpl-external.patch
dfd5875
# unbundle all current libraries, a similar patch submitted upstream
dfd5875
Patch1:         %{name}-unbundle-external-module.patch
f2cbf1b
# fix for #628742, will be in 0.11
63b9c2b
Patch2:         ipython-0.10-pycolor-wrong-filename.patch
f2cbf1b
f2cbf1b
# fix for #646079, will be in 0.11
f2cbf1b
Patch3:         ipython-0.10-no-gtk.patch
f2cbf1b
Shahms King 44d2679
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Shahms King 44d2679
Shahms King 44d2679
BuildArch:      noarch
Shahms King 44d2679
BuildRequires:  python-devel
dfd5875
BuildRequires:  python-simplegeneric
efa169a
Requires:       python-foolscap
efa169a
Requires:       python-twisted-core
efa169a
Requires:       python-zope-interface
6320825
dfd5875
#bundled libs
c055309
Requires:       pexpect
dfd5875
Requires:       python-configobj
dc855cb
Requires:       python-mglob
dc855cb
Requires:       python-pretty
dfd5875
Requires:       python-simplegeneric
dfd5875
f2cbf1b
%if ! (0%{?fedora} > 13)
f2cbf1b
# argparse is in python 2.7 and 3.2
c055309
Requires:       python-argparse
f2cbf1b
%endif
c055309
c055309
Shahms King 44d2679
Shahms King 44d2679
%description
Shahms King 44d2679
Shahms King 44d2679
IPython provides a replacement for the interactive Python interpreter with
Shahms King 44d2679
extra functionality.
Shahms King 44d2679
Shahms King 44d2679
Main features:
Shahms King 44d2679
 * Comprehensive object introspection.
Shahms King 44d2679
 * Input history, persistent across sessions.
Shahms King 44d2679
 * Caching of output results during a session with automatically generated
Shahms King 44d2679
   references.
Shahms King 44d2679
 * Readline based name completion.
Shahms King 44d2679
 * Extensible system of 'magic' commands for controlling the environment and
Shahms King 44d2679
   performing many tasks related either to IPython or the operating system.
Shahms King 44d2679
 * Configuration system with easy switching between different setups (simpler
Shahms King 44d2679
   than changing $PYTHONSTARTUP environment variables every time).
Shahms King 44d2679
 * Session logging and reloading.
Shahms King 44d2679
 * Extensible syntax processing for special purpose situations.
Shahms King 44d2679
 * Access to the system shell with user-extensible alias system.
Shahms King 44d2679
 * Easily embeddable in other Python programs.
Shahms King 836d59a
 * Integrated access to the pdb debugger and the Python profiler.
Shahms King 44d2679
efa169a
%package tests
efa169a
Summary:        Tests for %{name}
efa169a
Group:          Documentation
efa169a
Requires:       python-nose
efa169a
Requires:       %{name} = %{version}-%{release}
efa169a
%description tests
efa169a
This package contains the tests of %{name}.
efa169a
You can check this way, you can test, if ipython works on your platform.
efa169a
efa169a
%package doc
efa169a
Summary:        Documentation for %{name}
efa169a
Group:          Documentation
efa169a
%description doc
efa169a
This package contains the documentation of %{name}.
efa169a
efa169a
%package gui
efa169a
Summary:        Gui applications from %{name}
efa169a
Group:          Applications/Editors
efa169a
Requires:       %{name} = %{version}-%{release}
dfd5875
Requires:       wxPython
efa169a
%description gui
efa169a
This package contains the gui of %{name}, which requires wxPython.
efa169a
efa169a
efa169a
Shahms King 44d2679
%prep
Shahms King 44d2679
%setup -q
dc1649a
dfd5875
%patch0 -p1
dc1649a
# help with unbundling (don't use diffs to move files around)
dc1649a
pushd IPython/external
dc1649a
mkdir argparse
dc1649a
mv argparse.py argparse/_argparse.py
dc1649a
mkdir configobj
dc1649a
mv configobj.py configobj/_configobj.py
dc1649a
mkdir guid
dc1649a
mv guid.py guid/_guid.py
dc1649a
mkdir Itpl
dc1649a
mv Itpl.py Itpl/_Itpl.py
dc1649a
mkdir mglob
dc1649a
mv mglob.py mglob/_mglob.py
dc1649a
mkdir path
dc1649a
mv path.py path/_path.py
dc1649a
mkdir pretty
dc1649a
mv pretty.py pretty/_pretty.py
dc1649a
mkdir simplegeneric
dc1649a
mv simplegeneric.py simplegeneric/_simplegeneric.py
dc1649a
mkdir validate
dc1649a
mv validate.py validate/_validate.py
dc1649a
popd
dfd5875
%patch1 -p1
63b9c2b
%patch2 -p1
f2cbf1b
%patch3 -p1
dfd5875
dfd5875
# delete bundling libs
dfd5875
pushd IPython/external
dfd5875
# python's own modules
dfd5875
rm argparse/_argparse.py
dfd5875
dfd5875
# other packages exist in fedora
dc855cb
rm configobj/_configobj.py
dc855cb
rm mglob/_mglob.py
dc855cb
rm pretty/_pretty.py
dfd5875
rm simplegeneric/_simplegeneric.py
dfd5875
rm validate/_validate.py
dfd5875
dfd5875
# probably from here http://code.activestate.com/recipes/163604-guid/
dfd5875
# python has a own uuid module
dfd5875
#rm guid/_guid.py
dfd5875
dfd5875
# rejected in a PEP, probably no upstream
dfd5875
#rm Itpl/_Itpl.py
dfd5875
dfd5875
# available at pypi
dfd5875
#rm path/_path.py
dfd5875
dfd5875
popd
Shahms King 44d2679
Shahms King 44d2679
Shahms King 44d2679
%build
efa169a
%{__python} setup.py build
Shahms King 44d2679
Shahms King 44d2679
Shahms King 44d2679
%install
efa169a
rm -rf %{buildroot}
efa169a
%{__python} setup.py install -O1 --skip-build --root %{buildroot}
efa169a
efa169a
# ipython installs docs automatically, but in the wrong place
efa169a
mv %{buildroot}%{_datadir}/doc/%{name} \
efa169a
    %{buildroot}%{_datadir}/doc/%{name}-%{version}
efa169a
Shahms King 44d2679
Shahms King 44d2679
%clean
efa169a
rm -rf %{buildroot}
Shahms King 44d2679
Shahms King 44d2679
dfd5875
#check
dfd5875
# testing seems to be broken on upstreams side
dfd5875
#PYTHONPATH=%{buildroot}%{python_sitelib} %{buildroot}%{_bindir}/iptest
dfd5875
dfd5875
Shahms King 44d2679
%files
efa169a
# -f notests.files
Shahms King 44d2679
%defattr(-,root,root,-)
Shahms King 44d2679
%{_bindir}/ipython
Shahms King 836d59a
%{_bindir}/irunner
Shahms King 44d2679
%{_bindir}/pycolor
7a1ba7b
%{_bindir}/ipcluster
7a1ba7b
%{_bindir}/ipcontroller
7a1ba7b
%{_bindir}/ipengine
efa169a
%{_mandir}/man*/ipython.*
efa169a
%{_mandir}/man*/ipengine*
efa169a
%{_mandir}/man*/irunner*
efa169a
%{_mandir}/man*/pycolor*
efa169a
%{_mandir}/man*/ipc*
efa169a
%dir %{python_sitelib}/IPython
efa169a
%{python_sitelib}/IPython/UserConfig
efa169a
%dir %{python_sitelib}/IPython/config
efa169a
%{python_sitelib}/IPython/config/*.py*
efa169a
%{python_sitelib}/IPython/Extensions
efa169a
%{python_sitelib}/IPython/external
efa169a
%{python_sitelib}/IPython/*.py*
efa169a
%dir %{python_sitelib}/IPython/frontend
efa169a
%{python_sitelib}/IPython/frontend/process
efa169a
%{python_sitelib}/IPython/frontend/*.py*
efa169a
%dir %{python_sitelib}/IPython/frontend/cocoa
efa169a
%{python_sitelib}/IPython/frontend/cocoa/*.py*
efa169a
%dir %{python_sitelib}/IPython/tools
efa169a
%{python_sitelib}/IPython/tools/*.py*
efa169a
%dir %{python_sitelib}/IPython/kernel
efa169a
%{python_sitelib}/IPython/kernel/*.py*
efa169a
%{python_sitelib}/IPython/kernel/config
efa169a
%{python_sitelib}/IPython/kernel/scripts
efa169a
%dir %{python_sitelib}/IPython/kernel/core
efa169a
%{python_sitelib}/IPython/kernel/core/config
efa169a
%{python_sitelib}/IPython/kernel/core/*.py*
efa169a
%dir %{python_sitelib}/IPython/testing
efa169a
%{python_sitelib}/IPython/testing/*.py*
efa169a
%{python_sitelib}/IPython/testing/plugin
efa169a
%{python_sitelib}/ipython-%{version}-py?.?.egg-info
efa169a
%exclude %{python_sitelib}/IPython/gui
efa169a
efa169a
efa169a
%files tests
efa169a
%defattr(-,root,root,-)
7a1ba7b
%{_bindir}/iptest
efa169a
%{python_sitelib}/IPython/tests
efa169a
%{python_sitelib}/IPython/*/tests
efa169a
%{python_sitelib}/IPython/*/*/tests
efa169a
efa169a
efa169a
%files doc
efa169a
%defattr(-,root,root,-)
efa169a
# ipython installs its own documentation, but we need to own the directory
efa169a
%{_datadir}/doc/%{name}-%{version}
efa169a
efa169a
%files gui
efa169a
%defattr(-,root,root,-)
efa169a
%{_bindir}/ipython-wx
efa169a
%{_bindir}/ipythonx
efa169a
%{_mandir}/man*/ipython-wx*
efa169a
%{_mandir}/man*/ipythonx*
efa169a
%{python_sitelib}/IPython/gui
efa169a
%{python_sitelib}/IPython/frontend/wx
efa169a
7135005
Shahms King 44d2679
Shahms King 44d2679
%changelog
f2cbf1b
* Mon Nov 15 2010 Thomas Spura <tomspur@fedoraproject.org> - 0.10.1-3
f2cbf1b
- add fix for #646079 and use upstream fix for #628742
f2cbf1b
f2cbf1b
* Mon Oct 18 2010 Thomas Spura <tomspur@fedoraproject.org> - 0.10.1-2
f2cbf1b
- argparse is in python 2.7 and 3.2
f2cbf1b
dc1649a
* Wed Oct 13 2010 Thomas Spura <tomspur@fedoraproject.org> - 0.10.1-1
dc1649a
- unbundle a bit differently
dc1649a
- update to new version
dc1649a
63b9c2b
* Tue Aug 31 2010 Thomas Spura <tomspur@fedoraproject.org> - 0.10-8
63b9c2b
- pycolor: wrong filename -> no crash (#628742)
63b9c2b
221ee1f
* Wed Jul 21 2010 David Malcolm <dmalcolm@redhat.com> - 0.10-7
221ee1f
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
221ee1f
c055309
* Mon Jul 19 2010 Thomas Spura <tomspur@fedoraproject.org> - 0.10-6
c055309
- add missing dependencies: pexpect and python-argparse
c055309
dc855cb
* Tue Jun 22 2010 Thomas Spura <tomspur@fedoraproject.org> - 0.10-5
dc855cb
- two more unbundled libraries in fedora
dc855cb
8c7d753
* Mon Jun 21 2010 Toshio Kuratomi <toshio@fedoraproject.org> - 0.10-4
8c7d753
- Update patch for import in argparse
8c7d753
dfd5875
* Fri Jun 11 2010 Thomas Spura <tomspur@fedoraproject.org> - 0.10-3
dfd5875
- fix license tag (#603178)
dfd5875
- add requires on wxpython to gui subpackage (#515570)
dfd5875
- start unbundling the libraries - more to come (#603937)
dfd5875
efa169a
* Tue Apr 13 2010 Thomas Spura <tomspur@fedoraproject.org> - 0.10-2
efa169a
- move docs into a subpackage
efa169a
- subpackage wxPython
efa169a
- subpackage tests
efa169a
- use proper %%{python_site*} definitions
efa169a
- make %%{files} more explicit
efa169a
- add some missing R (fixes #529185, #515570)
efa169a
efa169a
* Tue Sep 22 2009 James Bowes <jbowes@redhat.com> - 0.10-1
312bcbb
- Update to 0.10
312bcbb
d830257
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.1-4
d830257
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
d830257
36a3286
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.1-3
36a3286
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
36a3286
8cbe238
* Thu Dec 04 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 0.9.1-2
8cbe238
- Rebuild for Python 2.6
8cbe238
efa169a
* Tue Dec 02 2008 James Bowes <jbowes@redhat.com> - 0.9.1-1
7a1ba7b
- Update to 0.9.1, specfile changes courtesy Greg Swift
7a1ba7b
ef528a9
* Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 0.8.4-2
ef528a9
- Rebuild for Python 2.6
ef528a9
efa169a
* Wed Jun 11 2008 James Bowes <jbowes@redhat.com> - 0.8.4-1
b99b1e5
- Update to 0.8.4
b99b1e5
efa169a
* Fri May 30 2008 James Bowes <jbowes@redhat.com> - 0.8.3-1
d759a1d
- Update to 0.8.3
d759a1d
9e57f5c
* Wed Dec 12 2007 James Bowes <jbowes@redhat.com> - 0.8.2-1
9e57f5c
- Update to 0.8.2
9e57f5c
6320825
* Sun Aug 05 2007 James Bowes <jbowes@redhat.com> - 0.8.1-2
6320825
- Remove explicit requires on python-abi.
6320825
8662ad2
* Sun Aug 05 2007 James Bowes <jbowes@redhat.com> - 0.8.1-1
8662ad2
- Update to 0.8.1
8662ad2
074c540
* Thu Dec 14 2006 Jason L Tibbitts III <tibbs@math.uh.edu> - 0.7.2-4
074c540
- Rebuild for new Python
074c540
efa169a
* Sat Sep 16 2006 Shahms E. King <shahms@shahms.com> - 0.7.2-3
Shahms King f4388df
- Rebuild for FC6
Shahms King f4388df
efa169a
* Fri Aug 11 2006 Shahms E. King <shahms@shahms.com> - 0.7.2-2
Shahms King 017c6ef
- Include, don't ghost .pyo files per new guidelines
Shahms King 017c6ef
efa169a
* Mon Jun 12 2006 Shahms E. King <shahms@shahms.com> - 0.7.2-1
Shahms King 836d59a
- Update to new upstream version
Shahms King 836d59a
efa169a
* Mon Feb 13 2006 Shahms E. King <shahms@shahms.com> - 0.7.1.fix1-2
Shahms King 873f337
- Rebuild for FC-5
Shahms King 873f337
efa169a
* Mon Jan 30 2006 Shahms E. King <shahms@shahms.com> - 0.7.1.fix1-1
Shahms King 8b7e39d
- New upstream 0.7.1.fix1 which fixes KeyboardInterrupt handling
Shahms King 8b7e39d
efa169a
* Tue Jan 24 2006 Shahms E. King <shahms@shahms.com> - 0.7.1-1
Shahms King 4d38d63
- Update to new upstream 0.7.1
Shahms King 4d38d63
efa169a
* Thu Jan 12 2006 Shahms E. King <shahms@shahms.com> - 0.7-1
Shahms King 4d39d06
- Update to new upstream 0.7.0
Shahms King 4d39d06
efa169a
* Mon Jun 13 2005 Shahms E. King <shahms@shahms.com> - 0.6.15-1
Shahms King bb082c3
- Add dist tag
Shahms King bb082c3
- Update to new upstream (0.6.15)
Shahms King bb082c3
efa169a
* Wed Apr 20 2005 Shahms E. King <shahms@shahms.com> - 0.6.13-2
Shahms King 5ca4202
- Fix devel release number
Shahms King 5ca4202
efa169a
* Mon Apr 18 2005 Shahms E. King <shahms@shahms.com> - 0.6.13-1
Shahms King 3745810
- Update to new upstream version
Shahms King 3745810
efa169a
* Fri Apr  1 2005 Michael Schwendt <mschwendt[AT]users.sf.net> - 0.6.12-2
e8144fb
- Include IPython Extensions and UserConfig directories.
e8144fb
efa169a
* Fri Mar 25 2005 Shahms E. King <shahms@shahms.com> - 0.6.12-1
Shahms King 48e4ad3
- Update to 0.6.12
Shahms King 48e4ad3
- Removed unused python_sitearch define
Shahms King 48e4ad3
efa169a
* Tue Mar 01 2005 Shahms E. King <shahms@shahms.com> - 0.6.11-2
074c540
- Fix up %%doc file specifications
Shahms King 44d2679
- Use offical .tar.gz, not upstream .src.rpm .tar.gz
Shahms King 44d2679
efa169a
* Tue Mar 01 2005 Shahms E. King <shahms@shahms.com> - 0.6.11-1
Shahms King 44d2679
- Initial release to meet Fedora packaging guidelines