Restructure ipython package structure for ipython-0.13 feature
Signed-off-by: Thomas Spura <thomas.spura@gmail.com>
This commit is contained in:
parent
b1553151ee
commit
8f9f3a74b1
137
ipython.spec
137
ipython.spec
@ -48,17 +48,8 @@ BuildRequires: PyQt4
|
|||||||
BuildRequires: python-pygments
|
BuildRequires: python-pygments
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
Requires: python-zmq
|
# Require $current_python_interpreter-ipython
|
||||||
# for notebook
|
Requires: python2-ipython
|
||||||
Requires: python-tornado
|
|
||||||
|
|
||||||
#IPython/lib/latextools.py and others in /lib/
|
|
||||||
Requires: python-matplotlib
|
|
||||||
|
|
||||||
#bundled libs
|
|
||||||
Requires: pexpect
|
|
||||||
Requires: python-mglob
|
|
||||||
Requires: python-simplegeneric
|
|
||||||
|
|
||||||
# add python3 packages
|
# add python3 packages
|
||||||
%if 0%{?with_python3}
|
%if 0%{?with_python3}
|
||||||
@ -81,79 +72,98 @@ BuildRequires: python3-PyQt4
|
|||||||
Requires: python3-zmq
|
Requires: python3-zmq
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
%global ipython_desc_base \
|
||||||
%description
|
IPython provides a replacement for the interactive Python interpreter with\
|
||||||
|
extra functionality.\
|
||||||
IPython provides a replacement for the interactive Python interpreter with
|
\
|
||||||
extra functionality.
|
Main features:\
|
||||||
|
* Comprehensive object introspection.\
|
||||||
Main features:
|
* Input history, persistent across sessions.\
|
||||||
* Comprehensive object introspection.
|
* Caching of output results during a session with automatically generated\
|
||||||
* Input history, persistent across sessions.
|
references.\
|
||||||
* Caching of output results during a session with automatically generated
|
* Readline based name completion.\
|
||||||
references.
|
* Extensible system of 'magic' commands for controlling the environment and\
|
||||||
* Readline based name completion.
|
performing many tasks related either to IPython or the operating system.\
|
||||||
* Extensible system of 'magic' commands for controlling the environment and
|
* Configuration system with easy switching between different setups (simpler\
|
||||||
performing many tasks related either to IPython or the operating system.
|
than changing $PYTHONSTARTUP environment variables every time).\
|
||||||
* Configuration system with easy switching between different setups (simpler
|
* Session logging and reloading.\
|
||||||
than changing $PYTHONSTARTUP environment variables every time).
|
* Extensible syntax processing for special purpose situations.\
|
||||||
* Session logging and reloading.
|
* Access to the system shell with user-extensible alias system.\
|
||||||
* Extensible syntax processing for special purpose situations.
|
* Easily embeddable in other Python programs.\
|
||||||
* Access to the system shell with user-extensible alias system.
|
|
||||||
* Easily embeddable in other Python programs.
|
|
||||||
* Integrated access to the pdb debugger and the Python profiler.
|
* Integrated access to the pdb debugger and the Python profiler.
|
||||||
|
|
||||||
%package tests
|
%description
|
||||||
|
%{ipython_desc_base}
|
||||||
|
|
||||||
|
%package -n python2-ipython
|
||||||
|
Summary: An enhanced interactive Python shell
|
||||||
|
Requires: python2-ipython-console
|
||||||
|
Requires: python2-ipython-gui
|
||||||
|
Requires: python2-ipython-notebook
|
||||||
|
%description -n python2-ipython
|
||||||
|
%{ipython_desc_base}
|
||||||
|
|
||||||
|
%package -n python2-ipython-console
|
||||||
|
Summary: An enhanced interactive Python shell
|
||||||
|
Requires: python-zmq
|
||||||
|
|
||||||
|
#IPython/lib/latextools.py and others in /lib/
|
||||||
|
Requires: python-matplotlib
|
||||||
|
|
||||||
|
#bundled libs
|
||||||
|
Requires: pexpect
|
||||||
|
Requires: python-mglob
|
||||||
|
Requires: python-simplegeneric
|
||||||
|
|
||||||
|
%description -n python2-ipython-console
|
||||||
|
%{ipython_desc_base}
|
||||||
|
|
||||||
|
|
||||||
|
%package -n python2-ipython-notebook
|
||||||
|
Summary: An enhanced interactive Python shell
|
||||||
|
Requires: python-ipython-console
|
||||||
|
Requires: python-tornado
|
||||||
|
|
||||||
|
%description -n python2-ipython-notebook
|
||||||
|
%{ipython_desc_base}
|
||||||
|
|
||||||
|
This package contains the ipython notebook.
|
||||||
|
|
||||||
|
|
||||||
|
%package -n python2-ipython-tests
|
||||||
Summary: Tests for %{name}
|
Summary: Tests for %{name}
|
||||||
Group: Documentation
|
Group: Documentation
|
||||||
Requires: python-nose
|
Requires: python-nose
|
||||||
Requires: python-zmq-tests
|
Requires: python-zmq-tests
|
||||||
Requires: %{name} = %{version}-%{release}
|
Requires: %{name} = %{version}-%{release}
|
||||||
%description tests
|
%description -n python2-ipython-tests
|
||||||
This package contains the tests of %{name}.
|
This package contains the tests of %{name}.
|
||||||
You can check this way, you can test, if ipython works on your platform.
|
You can check this way, you can test, if ipython works on your platform.
|
||||||
|
|
||||||
%package doc
|
%package -n python2-ipython-doc
|
||||||
Summary: Documentation for %{name}
|
Summary: Documentation for %{name}
|
||||||
Group: Documentation
|
Group: Documentation
|
||||||
%description doc
|
%description -n python2-ipython-doc
|
||||||
This package contains the documentation of %{name}.
|
This package contains the documentation of %{name}.
|
||||||
|
|
||||||
|
|
||||||
%package gui
|
%package -n python2-ipython-gui
|
||||||
Summary: Gui applications from %{name}
|
Summary: Gui applications from %{name}
|
||||||
Group: Applications/Editors
|
Group: Applications/Editors
|
||||||
Requires: %{name} = %{version}-%{release}
|
Requires: %{name} = %{version}-%{release}
|
||||||
Requires: PyQt4
|
Requires: PyQt4
|
||||||
Requires: python-pygments
|
Requires: python-pygments
|
||||||
%description gui
|
%description -n python2-ipython-gui
|
||||||
This package contains the gui of %{name}, which requires PyQt.
|
This package contains the gui of %{name}, which requires PyQt.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
%if 0%{?with_python3}
|
%if 0%{?with_python3}
|
||||||
|
# TODO revisit python3 packages again, once python2 restructuring is done
|
||||||
%package -n python3-ipython
|
%package -n python3-ipython
|
||||||
Summary: An enhanced interactive Python shell
|
Summary: An enhanced interactive Python shell
|
||||||
%description -n python3-ipython
|
%description -n python3-ipython
|
||||||
|
%{ipython_desc_base}
|
||||||
IPython provides a replacement for the interactive Python interpreter with
|
|
||||||
extra functionality.
|
|
||||||
|
|
||||||
Main features:
|
|
||||||
* Comprehensive object introspection.
|
|
||||||
* Input history, persistent across sessions.
|
|
||||||
* Caching of output results during a session with automatically generated
|
|
||||||
references.
|
|
||||||
* Readline based name completion.
|
|
||||||
* Extensible system of 'magic' commands for controlling the environment and
|
|
||||||
performing many tasks related either to IPython or the operating system.
|
|
||||||
* Configuration system with easy switching between different setups (simpler
|
|
||||||
than changing $PYTHONSTARTUP environment variables every time).
|
|
||||||
* Session logging and reloading.
|
|
||||||
* Extensible syntax processing for special purpose situations.
|
|
||||||
* Access to the system shell with user-extensible alias system.
|
|
||||||
* Easily embeddable in other Python programs.
|
|
||||||
* Integrated access to the pdb debugger and the Python profiler.
|
|
||||||
|
|
||||||
%package -n python3-ipython-tests
|
%package -n python3-ipython-tests
|
||||||
Summary: Tests for %{name}
|
Summary: Tests for %{name}
|
||||||
@ -271,8 +281,7 @@ PYTHONPATH=%{buildroot}%{python_sitelib} \
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
|
||||||
%files
|
%files -n python2-ipython-console
|
||||||
# -f notests.files
|
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
%{_bindir}/ipython
|
%{_bindir}/ipython
|
||||||
%{_bindir}/irunner
|
%{_bindir}/irunner
|
||||||
@ -302,7 +311,6 @@ PYTHONPATH=%{buildroot}%{python_sitelib} \
|
|||||||
%{python_sitelib}/IPython/core/
|
%{python_sitelib}/IPython/core/
|
||||||
%{python_sitelib}/IPython/extensions/
|
%{python_sitelib}/IPython/extensions/
|
||||||
%dir %{python_sitelib}/IPython/frontend/
|
%dir %{python_sitelib}/IPython/frontend/
|
||||||
%{python_sitelib}/IPython/frontend/html/
|
|
||||||
%{python_sitelib}/IPython/frontend/terminal/
|
%{python_sitelib}/IPython/frontend/terminal/
|
||||||
%{python_sitelib}/IPython/frontend/__init__.py*
|
%{python_sitelib}/IPython/frontend/__init__.py*
|
||||||
%{python_sitelib}/IPython/frontend/consoleapp.py*
|
%{python_sitelib}/IPython/frontend/consoleapp.py*
|
||||||
@ -319,20 +327,25 @@ PYTHONPATH=%{buildroot}%{python_sitelib} \
|
|||||||
%exclude %{python_sitelib}/IPython/*/*/tests
|
%exclude %{python_sitelib}/IPython/*/*/tests
|
||||||
|
|
||||||
|
|
||||||
%files tests
|
%files -n python2-ipython-tests
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
%{_bindir}/iptest
|
%{_bindir}/iptest
|
||||||
%{python_sitelib}/IPython/*/tests
|
%{python_sitelib}/IPython/*/tests
|
||||||
%{python_sitelib}/IPython/*/*/tests
|
%{python_sitelib}/IPython/*/*/tests
|
||||||
|
|
||||||
|
|
||||||
%files doc
|
%files -n python2-ipython-doc
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
# ipython installs its own documentation, but we need to own the directory
|
# ipython installs its own documentation, but we need to own the directory
|
||||||
%{_datadir}/doc/%{name}-%{version}
|
%{_datadir}/doc/%{name}-%{version}
|
||||||
|
|
||||||
|
|
||||||
%files gui
|
%files -n python2-ipython-notebook
|
||||||
|
%defattr(-,root,root,-)
|
||||||
|
%{python_sitelib}/IPython/frontend/html/
|
||||||
|
|
||||||
|
|
||||||
|
%files -n python2-ipython-gui
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
%{python_sitelib}/IPython/zmq/gui
|
%{python_sitelib}/IPython/zmq/gui
|
||||||
%{python_sitelib}/IPython/frontend/qt/
|
%{python_sitelib}/IPython/frontend/qt/
|
||||||
|
Loading…
Reference in New Issue
Block a user