churchyard / rpms / ipython

Forked from rpms/ipython 6 years ago
Clone
b3bbd9d
%if ! (0%{?rhel} > 5)
8f40c4d
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
8f40c4d
%endif
Shahms King 44d2679
a65b0e1
%bcond_without run_testsuite
b3bbd9d
b3bbd9d
# where are all the python3 dependencies
b3bbd9d
%if 0%{?fedora} > 15
b3bbd9d
%global with_python3 1
b3bbd9d
%endif
b3bbd9d
b3bbd9d
# where are all the pypy dependencies
b3bbd9d
%if 0%{?fedora} > 15
b3bbd9d
%global with_pypy 0
b3bbd9d
%endif
b3bbd9d
Shahms King 44d2679
Name:           ipython
a65b0e1
Version:        0.13.2
Orion Poplawski 4a8f608
Release:        7%{?dist}
Shahms King 44d2679
Summary:        An enhanced interactive Python shell
Shahms King 44d2679
Shahms King 44d2679
Group:          Development/Libraries
b3bbd9d
# See bug #603178 for a quick overview for the choice of licenses
b3bbd9d
# most files are under BSD and just a few under Python or MIT
b3bbd9d
# There are some extensions released under GPLv2+
b3bbd9d
License:        (BSD and MIT and Python) and GPLv2+
b3bbd9d
URL:            http://ipython.org/
a65b0e1
Source0:        http://archive.ipython.org/release/%{version}/%{name}-%{version}.tar.gz
a65b0e1
# will be in ipython-0.14
a65b0e1
# https://github.com/ipython/ipython/pull/2681
a65b0e1
Patch0:         ipython-0.13.1-dont-require-matplotlib.patch
a65b0e1
# From upstream's git
a65b0e1
Patch1:         ipython-0.13.2-print-syntax.patch
Thomas Spura 648ea7f
# Modified from upstreams commit 2f4af9c7e399033c5580e3019b0c4e22518b2f2c
Thomas Spura 648ea7f
# CVE-2014-3429: https://bugzilla.redhat.com/show_bug.cgi?id=1119890
Thomas Spura 648ea7f
Patch2:         ipython-0.13.2-websocket-origin-cve.patch
b3bbd9d
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
a65b0e1
BuildRequires:  python-simplegeneric
e2401ca
BuildRequires:  python-argparse
Shahms King 44d2679
a65b0e1
%if %{with run_testsuite}
b3bbd9d
# for checking/testing
666b91b
BuildRequires:  python-nose1.1
a65b0e1
BuildRequires:  python-simplegeneric
a65b0e1
# "Tools and libraries available at test time:"
a65b0e1
BuildRequires:  python-zmq
a65b0e1
BuildRequires:  python-zmq-tests
a65b0e1
BuildRequires:  pexpect
b3bbd9d
BuildRequires:  python-matplotlib
a65b0e1
#BuildRequires:  python-matplotlib-tk
b3bbd9d
BuildRequires:  pymongo
b3bbd9d
BuildRequires:  PyQt4
b3bbd9d
# for frontend
b3bbd9d
BuildRequires:  python-pygments
a65b0e1
# for running qt/matplotlib tests
7c4a7b5
%if ! (0%{?rhel} == 6)
a65b0e1
BuildRequires:  xorg-x11-server-Xvfb
a65b0e1
%endif
7c4a7b5
%endif
a65b0e1
David Cantrell 8ad81ce
a65b0e1
# add python3 packages
b3bbd9d
%if 0%{?with_python3}
a65b0e1
BuildRequires:  python3-devel
a65b0e1
# for checking/testing
b3bbd9d
BuildRequires:  python3-nose
a65b0e1
BuildRequires:  python3-mglob
a65b0e1
BuildRequires:  python3-simplegeneric
a65b0e1
# "Tools and libraries available at test time:"
a65b0e1
BuildRequires:  python3-zmq
a65b0e1
BuildRequires:  python3-zmq-tests
a65b0e1
BuildRequires:  python3-tornado
a65b0e1
BuildRequires:  python3-pexpect
b3bbd9d
BuildRequires:  python3-matplotlib
a65b0e1
#BuildRequires:  python3-matplotlib-tk
b3bbd9d
BuildRequires:  python3-pymongo
b3bbd9d
BuildRequires:  python3-PyQt4
b3bbd9d
# for frontend
b3bbd9d
BuildRequires:  python3-pygments
a65b0e1
%endif
b3bbd9d
b3bbd9d
%global ipython_desc_base \
b3bbd9d
IPython provides a replacement for the interactive Python interpreter with\
b3bbd9d
extra functionality.\
b3bbd9d
\
b3bbd9d
Main features:\
b3bbd9d
 * Comprehensive object introspection.\
b3bbd9d
 * Input history, persistent across sessions.\
b3bbd9d
 * Caching of output results during a session with automatically generated\
b3bbd9d
   references.\
b3bbd9d
 * Readline based name completion.\
b3bbd9d
 * Extensible system of 'magic' commands for controlling the environment and\
b3bbd9d
   performing many tasks related either to IPython or the operating system.\
b3bbd9d
 * Configuration system with easy switching between different setups (simpler\
b3bbd9d
   than changing $PYTHONSTARTUP environment variables every time).\
b3bbd9d
 * Session logging and reloading.\
b3bbd9d
 * Extensible syntax processing for special purpose situations.\
b3bbd9d
 * Access to the system shell with user-extensible alias system.\
b3bbd9d
 * Easily embeddable in other Python programs.\
Shahms King 836d59a
 * Integrated access to the pdb debugger and the Python profiler.
Shahms King 44d2679
b3bbd9d
%description
b3bbd9d
%{ipython_desc_base}
b3bbd9d
b3bbd9d
%package -n python-ipython
b3bbd9d
Summary:        An enhanced interactive Python shell
b3bbd9d
Requires:       python-ipython-console = %{version}-%{release}
b3bbd9d
Requires:       python-ipython-gui = %{version}-%{release}
b3bbd9d
Requires:       python-ipython-notebook = %{version}-%{release}
b3bbd9d
Provides:       ipython = %{version}-%{release}
b3bbd9d
Obsoletes:      ipython < 0.13-1
b3bbd9d
b3bbd9d
%description -n python-ipython
b3bbd9d
%{ipython_desc_base}
b3bbd9d
b3bbd9d
This package depends on all python-ipython packages but python-ipython-tests.
b3bbd9d
b3bbd9d
%package -n python-ipython-console
b3bbd9d
Summary:        An enhanced interactive Python shell for the terminal
b3bbd9d
Requires:       python-zmq
b3bbd9d
a65b0e1
#bundled libs
b3bbd9d
Requires:       pexpect
Orion Poplawski 4a8f608
Requires:       python-argparse
a65b0e1
Requires:       python-mglob
b3bbd9d
Requires:       python-simplegeneric
b3bbd9d
a65b0e1
#For starting ipython from pkg_resources
b3bbd9d
Requires:       python-setuptools
b3bbd9d
b3bbd9d
%description -n python-ipython-console
b3bbd9d
%{ipython_desc_base}
b3bbd9d
b3bbd9d
This package provides IPython for in a terminal.
b3bbd9d
b3bbd9d
%package -n python-ipython-notebook
b3bbd9d
Summary:        An enhanced interactive Python notebook
b3bbd9d
Requires:       python-ipython-console = %{version}-%{release}
b3bbd9d
Requires:       python-tornado
a65b0e1
Requires:       python-matplotlib
b3bbd9d
Provides:       ipython-notebook = %{version}-%{release}
b3bbd9d
b3bbd9d
%description -n python-ipython-notebook
b3bbd9d
%{ipython_desc_base}
b3bbd9d
b3bbd9d
This package contains the ipython notebook.
b3bbd9d
b3bbd9d
b3bbd9d
%package -n python-ipython-tests
b3bbd9d
Summary:        Tests for %{name}
b3bbd9d
Group:          Documentation
b3bbd9d
Requires:       python-nose
b3bbd9d
Requires:       python-zmq-tests
b3bbd9d
Requires:       python-ipython-console = %{version}-%{release}
b3bbd9d
Provides:       ipython-tests = %{version}-%{release}
b3bbd9d
Obsoletes:      ipython-tests < 0.13-1
b3bbd9d
%description -n python-ipython-tests
b3bbd9d
This package contains the tests of %{name}.
b3bbd9d
You can check this way, if ipython works on your platform.
b3bbd9d
b3bbd9d
%package -n python-ipython-doc
b3bbd9d
Summary:        Documentation for %{name}
b3bbd9d
Group:          Documentation
b3bbd9d
Provides:       ipython-doc = %{version}-%{release}
b3bbd9d
Obsoletes:      ipython-doc < 0.13-1
b3bbd9d
%description -n python-ipython-doc
b3bbd9d
This package contains the documentation of %{name}.
b3bbd9d
3c9557c
b3bbd9d
%package -n python-ipython-gui
b3bbd9d
Summary:        Gui applications from %{name}
b3bbd9d
Group:          Applications/Editors
b3bbd9d
Requires:       python-ipython-console = %{version}-%{release}
b3bbd9d
Requires:       PyQt4
b3bbd9d
Requires:       python-matplotlib
b3bbd9d
Requires:       python-pygments
b3bbd9d
Provides:       ipython-gui = %{version}-%{release}
b3bbd9d
Obsoletes:      ipython-gui < 0.13-1
b3bbd9d
%description -n python-ipython-gui
b3bbd9d
This package contains the gui of %{name}, which requires PyQt.
b3bbd9d
b3bbd9d
b3bbd9d
b3bbd9d
%if 0%{?with_python3}
b3bbd9d
# TODO revisit python3 packages again, once python2 restructuring is done
b3bbd9d
%package -n python3-ipython
b3bbd9d
Summary:        An enhanced interactive Python shell
b3bbd9d
Requires:       python3-ipython-console = %{version}-%{release}
b3bbd9d
Requires:       python3-ipython-gui = %{version}-%{release}
b3bbd9d
Requires:       python3-ipython-notebook = %{version}-%{release}
b3bbd9d
%description -n python3-ipython
b3bbd9d
%{ipython_desc_base}
b3bbd9d
b3bbd9d
This package depends on all python3-ipython packages but python3-ipython-tests.
b3bbd9d
b3bbd9d
%package -n python3-ipython-console
b3bbd9d
Summary:        An enhanced interactive Python shell for the terminal
b3bbd9d
Requires:       python3-zmq
b3bbd9d
b3bbd9d
a65b0e1
#bundled libs
b3bbd9d
Requires:       python3-pexpect
a65b0e1
Requires:       python3-mglob
b3bbd9d
Requires:       python3-simplegeneric
b3bbd9d
a65b0e1
#For starting ipython from pkg_resources
b3bbd9d
Requires:       python3-setuptools
b3bbd9d
b3bbd9d
%description -n python3-ipython-console
b3bbd9d
%{ipython_desc_base}
b3bbd9d
b3bbd9d
This package provides IPython for in a terminal.
b3bbd9d
b3bbd9d
b3bbd9d
%package -n python3-ipython-notebook
b3bbd9d
Summary:        An enhanced interactive Python notebook
b3bbd9d
Requires:       python3-ipython-console = %{version}-%{release}
b3bbd9d
Requires:       python3-tornado
a65b0e1
Requires:       python3-matplotlib
b3bbd9d
b3bbd9d
%description -n python3-ipython-notebook
b3bbd9d
%{ipython_desc_base}
b3bbd9d
b3bbd9d
This package contains the ipython notebook.
b3bbd9d
b3bbd9d
b3bbd9d
%package -n python3-ipython-tests
b3bbd9d
Summary:        Tests for %{name}
b3bbd9d
Group:          Documentation
b3bbd9d
Requires:       python3-nose
b3bbd9d
Requires:       python3-zmq-tests
b3bbd9d
Requires:       python3-ipython-console = %{version}-%{release}
b3bbd9d
%description -n python3-ipython-tests
b3bbd9d
This package contains the tests of %{name}.
b3bbd9d
You can check this way, if ipython works on your platform.
b3bbd9d
b3bbd9d
%package -n python3-ipython-doc
8f40c4d
Summary:        Documentation for %{name}
8f40c4d
Group:          Documentation
b3bbd9d
%description -n python3-ipython-doc
8f40c4d
This package contains the documentation of %{name}.
8f40c4d
b3bbd9d
%package -n python3-ipython-gui
b3bbd9d
Summary:        Gui applications from %{name}
b3bbd9d
Group:          Applications/Editors
b3bbd9d
Requires:       python3-ipython-console = %{version}-%{release}
b3bbd9d
Requires:       python3-PyQt4
b3bbd9d
Requires:       python3-matplotlib
b3bbd9d
Requires:       python3-pygments
b3bbd9d
%description -n python3-ipython-gui
b3bbd9d
This package contains the gui of %{name}, which requires PyQt.
b3bbd9d
b3bbd9d
%endif # with_python3
b3bbd9d
b3bbd9d
8f40c4d
Shahms King 44d2679
%prep
Shahms King 44d2679
%setup -q
Shahms King 44d2679
a65b0e1
%patch0 -p 1
a65b0e1
%patch1 -p 1
b3bbd9d
b3bbd9d
# delete bundling libs
b3bbd9d
pushd IPython/external
a65b0e1
# python's own modules
a65b0e1
rm argparse/_argparse.py
b3bbd9d
b3bbd9d
# use decorators of numpy
b3bbd9d
rm decorators/_decorators.py
b3bbd9d
a65b0e1
# other packages exist in fedora
a65b0e1
rm simplegeneric/_simplegeneric.py
a65b0e1
%if ! 0%{?with_python3}
a65b0e1
# bundle this on python3 in experimental version for now
b3bbd9d
rm pexpect/_pexpect.py
a65b0e1
%endif
b3bbd9d
a65b0e1
# rejected in a PEP, probably no upstream
a65b0e1
#rm Itpl/_Itpl.py
b3bbd9d
a65b0e1
# available at pypi
a65b0e1
#rm path/_path.py
b3bbd9d
b3bbd9d
# ssh modules from paramiko
b3bbd9d
b3bbd9d
popd
b3bbd9d
b3bbd9d
%if 0%{?with_python3}
b3bbd9d
rm -rf %{py3dir}
b3bbd9d
cp -a . %{py3dir}
a65b0e1
find %{py3dir} -name '*.py' | xargs sed -i '1s|^#!python|#!%{__python3}|'
b3bbd9d
%endif # with_python3
b3bbd9d
Shahms King 44d2679
Shahms King 44d2679
%build
b3bbd9d
%if 0%{?with_python3}
b3bbd9d
pushd %{py3dir}
b3bbd9d
    %{__python3} setup.py build
b3bbd9d
popd
b3bbd9d
%endif # with_python3
b3bbd9d
8f40c4d
%{__python} setup.py build
Shahms King 44d2679
Shahms King 44d2679
Shahms King 44d2679
%install
8f40c4d
rm -rf %{buildroot}
b3bbd9d
%if 0%{?with_python3}
b3bbd9d
pushd %{py3dir}
b3bbd9d
    %{__python3} setup.py install -O1 --skip-build --root %{buildroot} 
b3bbd9d
popd
b3bbd9d
%endif # with_python3
b3bbd9d
8f40c4d
%{__python} setup.py install -O1 --skip-build --root %{buildroot}
8f40c4d
Shahms King 44d2679
Shahms King 44d2679
%clean
8f40c4d
rm -rf %{buildroot}
Shahms King 44d2679
Shahms King 44d2679
a65b0e1
%if %{with run_testsuite}
b3bbd9d
%check
b3bbd9d
# Ensure that the user's .pythonrc.py is not invoked during any tests.
b3bbd9d
export PYTHONSTARTUP=""
a65b0e1
#####################################################################
a65b0e1
# Reasons for ignoring tests below:
a65b0e1
# * FAIL: Verify that plot is available when pylab_import_all = True
a65b0e1
#----------------------------------------------------------------------
a65b0e1
#Traceback (most recent call last):
a65b0e1
#    File "/builddir/build/BUILDROOT/ipython-0.13.2-1.fc20.noarch/usr/lib/python2.7/site-packages/IPython/testing/decorators.py", line 228, in skipper_func
a65b0e1
#        return f(*args, **kwargs)
a65b0e1
#    File "/builddir/build/BUILDROOT/ipython-0.13.2-1.fc20.noarch/usr/lib/python2.7/site-packages/IPython/testing/decorators.py", line 228, in skipper_func
a65b0e1
#        return f(*args, **kwargs)
a65b0e1
#    File "/builddir/build/BUILDROOT/ipython-0.13.2-1.fc20.noarch/usr/lib/python2.7/site-packages/IPython/lib/tests/test_irunner_pylab_magic.py", line 92, in test_pylab_import_all_enabled
a65b0e1
#        self._test_runner(runner,source,output)
a65b0e1
#    File "/builddir/build/BUILDROOT/ipython-0.13.2-1.fc20.noarch/usr/lib/python2.7/site-packages/IPython/lib/tests/test_irunner_pylab_magic.py", line 53, in _test_runner
a65b0e1
#        self.fail(message)
a65b0e1
#    AssertionError: Mismatch in number of lines
a65b0e1
#    Expected:
a65b0e1
#    ~~~~~~~~~
a65b0e1
#    In \[1\]: from IPython\.config\.application import Application
a65b0e1
#    In \[2\]: app = Application\.instance\(\)
a65b0e1
#    In \[3\]: app\.pylab_import_all = True
a65b0e1
#    In \[4\]: pylab
a65b0e1
#    ^Welcome to pylab, a matplotlib-based Python environment
a65b0e1
#    For more information, type 'help\(pylab\)'\.
a65b0e1
#    In \[5\]: ip=get_ipython\(\)
a65b0e1
#    In \[6\]: 'plot' in ip\.user_ns
a65b0e1
#    Out\[6\]: True
a65b0e1
#    Got:
a65b0e1
#    ~~~~~~~~~
a65b0e1
#    In [1]: from IPython.config.application import Application
a65b0e1
#    In [2]: app = Application.instance()
a65b0e1
#    In [3]: app.pylab_import_all = True
a65b0e1
#    In [4]: pylab
a65b0e1
#    Xlib:  extension "RANDR" missing on display ":99".
a65b0e1
#    Welcome to pylab, a matplotlib-based Python environment [backend: GTKAgg].
a65b0e1
#    For more information, type 'help(pylab)'.
a65b0e1
#    In [5]: ip=get_ipython()
a65b0e1
#    In [6]: 'plot' in ip.user_ns
a65b0e1
#    Out[6]: True
a65b0e1
#        """Fail immediately, with the given message."""
a65b0e1
#### -> ignoring test_pylab_import_all_disabled|test_pylab_import_all_enabled
a65b0e1
#####################################################################
a65b0e1
# No *EXCLUDE_TESTS may be empty. Write NONE in such a case.
Thomas Spura b04ac23
%global COMMON_EXCLUDE_TESTS testIPython|testPython|test_console_starts|test_pylab_import_all_disabled|test_pylab_import_all_enabled
a65b0e1
%global PYTHON3EXCLUDE_TESTS NONE
Thomas Spura b04ac23
%global PYTHON2EXCLUDE_TESTS NONE
a65b0e1
a65b0e1
%global EXCLUDE_TESTS_3 "%{COMMON_EXCLUDE_TESTS}|%{PYTHON3EXCLUDE_TESTS}"
a65b0e1
%global EXCLUDE_TESTS_2 "%{COMMON_EXCLUDE_TESTS}|%{PYTHON2EXCLUDE_TESTS}"
a65b0e1
b3bbd9d
%if 0%{?with_python3}
a65b0e1
pushd %{py3dir}
a65b0e1
PYTHONPATH=%{buildroot}%{python3_sitelib} \
a65b0e1
    PATH="%{buildroot}%{_bindir}:$PATH" \
a65b0e1
    LC_ALL=en_US.UTF-8 \
a65b0e1
    xvfb-run \
a65b0e1
    %{buildroot}%{_bindir}/iptest3 -v -e %{EXCLUDE_TESTS_3}
a65b0e1
popd
b3bbd9d
%endif
b3bbd9d
7c4a7b5
%if ! (0%{?rhel} == 6)
a65b0e1
# TODO no ipython in path in koji
a65b0e1
PYTHONPATH=%{buildroot}%{python_sitelib} \
a65b0e1
    PATH="%{buildroot}%{_bindir}:$PATH" \
a65b0e1
    LC_ALL=en_US.UTF-8 \
a65b0e1
    xvfb-run \
a65b0e1
    %{buildroot}%{_bindir}/iptest -v -e %{EXCLUDE_TESTS_2}
b3bbd9d
%endif
7c4a7b5
%endif
b3bbd9d
b3bbd9d
%files -n python-ipython
b3bbd9d
b3bbd9d
%files -n python-ipython-console
Shahms King 44d2679
%{_bindir}/ipython
a65b0e1
%{_bindir}/irunner
a65b0e1
%{_bindir}/pycolor
7a1ba7b
%{_bindir}/ipcluster
7a1ba7b
%{_bindir}/ipcontroller
7a1ba7b
%{_bindir}/ipengine
a65b0e1
%{_bindir}/iplogger
8f40c4d
%{_mandir}/man*/ipython.*
8f40c4d
%{_mandir}/man*/ipengine*
a65b0e1
%{_mandir}/man*/irunner*
a65b0e1
%{_mandir}/man*/pycolor*
8f40c4d
%{_mandir}/man*/ipc*
a65b0e1
%{_mandir}/man*/iplogger*
b3bbd9d
8f40c4d
%dir %{python_sitelib}/IPython
8f40c4d
%{python_sitelib}/IPython/external
8f40c4d
%{python_sitelib}/IPython/*.py*
8f40c4d
%dir %{python_sitelib}/IPython/kernel
8f40c4d
%{python_sitelib}/IPython/kernel/*.py*
8f40c4d
%dir %{python_sitelib}/IPython/testing
8f40c4d
%{python_sitelib}/IPython/testing/*.py*
8f40c4d
%{python_sitelib}/IPython/testing/plugin
8f40c4d
%{python_sitelib}/ipython-%{version}-py?.?.egg-info
8f40c4d
b3bbd9d
%{python_sitelib}/IPython/config/
b3bbd9d
%{python_sitelib}/IPython/core/
b3bbd9d
%{python_sitelib}/IPython/extensions/
a65b0e1
%dir %{python_sitelib}/IPython/frontend/
a65b0e1
%{python_sitelib}/IPython/frontend/terminal/
a65b0e1
%{python_sitelib}/IPython/frontend/__init__.py*
a65b0e1
%{python_sitelib}/IPython/frontend/consoleapp.py*
b3bbd9d
%{python_sitelib}/IPython/lib/
b3bbd9d
%{python_sitelib}/IPython/nbformat/
b3bbd9d
%{python_sitelib}/IPython/parallel/
a65b0e1
%{python_sitelib}/IPython/scripts/
b3bbd9d
%{python_sitelib}/IPython/utils/
a65b0e1
%{python_sitelib}/IPython/zmq/
a65b0e1
%exclude %{python_sitelib}/IPython/zmq/gui/
b3bbd9d
b3bbd9d
# tests go into subpackage
b3bbd9d
%exclude %{python_sitelib}/IPython/*/tests/
b3bbd9d
%exclude %{python_sitelib}/IPython/*/*/tests
b3bbd9d
b3bbd9d
b3bbd9d
%files -n python-ipython-tests
b3bbd9d
%{_bindir}/iptest
b3bbd9d
%{python_sitelib}/IPython/*/tests
b3bbd9d
%{python_sitelib}/IPython/*/*/tests
b3bbd9d
b3bbd9d
b3bbd9d
%files -n python-ipython-doc
a65b0e1
# ipython installs its own documentation, but we need to own the directory
a65b0e1
%{_datadir}/doc/%{name}
b3bbd9d
b3bbd9d
b3bbd9d
%files -n python-ipython-notebook
a65b0e1
%{python_sitelib}/IPython/frontend/html/
b3bbd9d
b3bbd9d
b3bbd9d
%files -n python-ipython-gui
a65b0e1
%{python_sitelib}/IPython/zmq/gui
a65b0e1
%{python_sitelib}/IPython/frontend/qt/
b3bbd9d
b3bbd9d
%if 0%{?with_python3}
b3bbd9d
%files -n python3-ipython
b3bbd9d
b3bbd9d
%files -n python3-ipython-console
b3bbd9d
%{_bindir}/ipython3
a65b0e1
%{_bindir}/irunner3
a65b0e1
%{_bindir}/pycolor3
b3bbd9d
%{_bindir}/ipcluster3
b3bbd9d
%{_bindir}/ipcontroller3
b3bbd9d
%{_bindir}/ipengine3
a65b0e1
%{_bindir}/iplogger3
b3bbd9d
# no man pages (yet?)
b3bbd9d
#%{_mandir}/man*/ipython3.*
b3bbd9d
#%{_mandir}/man*/ipengine3*
a65b0e1
#%{_mandir}/man*/irunner3*
a65b0e1
#%{_mandir}/man*/pycolor3*
b3bbd9d
#%{_mandir}/man*/ipc*3*
a65b0e1
#%{_mandir}/man*/iplogger3*
b3bbd9d
b3bbd9d
%dir %{python3_sitelib}/IPython
b3bbd9d
%{python3_sitelib}/IPython/external
b3bbd9d
%{python3_sitelib}/IPython/__pycache__/
b3bbd9d
%{python3_sitelib}/IPython/*.py*
b3bbd9d
%dir %{python3_sitelib}/IPython/kernel
b3bbd9d
%{python3_sitelib}/IPython/kernel/__pycache__/
b3bbd9d
%{python3_sitelib}/IPython/kernel/*.py*
b3bbd9d
%dir %{python3_sitelib}/IPython/testing
b3bbd9d
%{python3_sitelib}/IPython/testing/__pycache__/
b3bbd9d
%{python3_sitelib}/IPython/testing/*.py*
b3bbd9d
%{python3_sitelib}/IPython/testing/plugin
b3bbd9d
%{python3_sitelib}/ipython-%{version}-py?.?.egg-info
b3bbd9d
b3bbd9d
%{python3_sitelib}/IPython/config/
b3bbd9d
%{python3_sitelib}/IPython/core/
b3bbd9d
%{python3_sitelib}/IPython/extensions/
a65b0e1
%dir %{python3_sitelib}/IPython/frontend/
a65b0e1
%{python3_sitelib}/IPython/frontend/terminal/
a65b0e1
%{python3_sitelib}/IPython/frontend/__pycache__/
a65b0e1
%{python3_sitelib}/IPython/frontend/__init__.py*
a65b0e1
%{python3_sitelib}/IPython/frontend/consoleapp.py*
b3bbd9d
%{python3_sitelib}/IPython/lib/
b3bbd9d
%{python3_sitelib}/IPython/nbformat/
b3bbd9d
%{python3_sitelib}/IPython/parallel/
a65b0e1
%{python3_sitelib}/IPython/scripts/
b3bbd9d
%{python3_sitelib}/IPython/utils/
a65b0e1
%{python3_sitelib}/IPython/zmq/
a65b0e1
%exclude %{python3_sitelib}/IPython/zmq/gui/
b3bbd9d
b3bbd9d
# tests go into subpackage
b3bbd9d
%exclude %{python3_sitelib}/IPython/*/tests/
b3bbd9d
%exclude %{python3_sitelib}/IPython/*/*/tests
b3bbd9d
b3bbd9d
b3bbd9d
%files -n python3-ipython-tests
b3bbd9d
%{_bindir}/iptest3
b3bbd9d
%{python3_sitelib}/IPython/*/tests
b3bbd9d
%{python3_sitelib}/IPython/*/*/tests
b3bbd9d
b3bbd9d
b3bbd9d
##%files -n python3-ipython-doc
8f40c4d
# ipython installs its own documentation, but we need to own the directory
a65b0e1
##%{_datadir}/doc/python3-%{name}-%{version}
b3bbd9d
b3bbd9d
b3bbd9d
%files -n python3-ipython-notebook
a65b0e1
%{python3_sitelib}/IPython/frontend/html/
8f40c4d
Shahms King 44d2679
b3bbd9d
%files -n python3-ipython-gui
a65b0e1
%{python3_sitelib}/IPython/zmq/gui
a65b0e1
%{python3_sitelib}/IPython/frontend/qt/
b3bbd9d
%endif # with_python3
b3bbd9d
Shahms King 44d2679
%changelog
Orion Poplawski 4a8f608
* Thu Jul 16 2015 Orion Poplawski <orion@cora.nwra.com> - 0.13.2-7
Orion Poplawski 4a8f608
- Properly add Requires for python-argparse (bug #1234773)
Orion Poplawski 4a8f608
David Cantrell ea004a9
* Tue Mar 10 2015 David Cantrell <dcantrell@redhat.com> - 0.13.2-6
David Cantrell 8ad81ce
- Add Requires for python-argparse (#874133)
David Cantrell 8ad81ce
Thomas Spura 648ea7f
* Tue Jul 15 2014 Thomas Spura <tomspur@fedoraproject.org> - 0.13.2-5
Thomas Spura 648ea7f
- add fix for CVE-2014-3429 (#1119890)
Thomas Spura 648ea7f
a65b0e1
* Fri Jun 13 2014 David Cantrell <dcantrell@redhat.com> - 0.13.2-4
a65b0e1
- Rebase el6 EPEL branch to 0.13.2 to fix unicode support (#767404)
666b91b
- BuildRequires python-argparse
666b91b
- BuildRequires python-nose1.1
7c4a7b5
- Disable Xvfb test for el6 EPEL branch
b3bbd9d
b3bbd9d
* Mon Oct  7 2013 Thomas Spura <tomspur@fedoraproject.org> - 0.13.2-3
b3bbd9d
- install into unversioned docdir (#993848)
b3bbd9d
- R on setuptools for starting with pkg_resources (#994673)
b3bbd9d
b3bbd9d
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.13.2-2
b3bbd9d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
b3bbd9d
b3bbd9d
* Wed Apr 10 2013 Thomas Spura <tomspur@fedoraproject.org> - 0.13.2-2
b3bbd9d
- Improve package descriptions (#950530)
b3bbd9d
b3bbd9d
* Sat Apr  6 2013 Thomas Spura <tomspur@fedoraproject.org> - 0.13.2-1
b3bbd9d
- update to 0.13.2 fixes #927169, #947633
b3bbd9d
- run tests in xvfb
b3bbd9d
- reword description of ipython-tests a bit
b3bbd9d
b3bbd9d
* Thu Feb 21 2013 Thomas Spura <tomspur@fedoraproject.org> - 0.13.1-4
b3bbd9d
- More changes to build for Python 3 (mostly by Andrew McNabb, #784947)
b3bbd9d
- Update package structure of python3-ipython subpackage to match python2-ipython one's
b3bbd9d
- enable python3 build of ipython
b3bbd9d
- exclude pylab tests for now, as it is broken on python3
b3bbd9d
b3bbd9d
* Thu Feb 21 2013 Thomas Spura <tomspur@fedoraproject.org> - 0.13.1-3
b3bbd9d
- obsolete old python packages (José Matos, #882724)
b3bbd9d
- notebook and gui subpackage require matplotlib not the console anymore (#872176)
b3bbd9d
b3bbd9d
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.13.1-2
b3bbd9d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
b3bbd9d
b3bbd9d
* Wed Oct 24 2012 Thomas Spura <tomspur@fedoraproject.org> - 0.13.1-1
b3bbd9d
- update to 0.13.1 (#838031)
b3bbd9d
- run tests with en_US.UTF-8
b3bbd9d
b3bbd9d
* Thu Aug 30 2012 Thomas Spura <tomspur@fedoraproject.org> - 0.13-5
b3bbd9d
- add empty python-ipython files section
b3bbd9d
- obsolete ipython
b3bbd9d
b3bbd9d
* Wed Aug  8 2012 Thomas Spura <tomspur@fedoraproject.org> - 0.13-4
b3bbd9d
- use versioned requires/provides on ipython
b3bbd9d
b3bbd9d
* Sat Aug  4 2012 Thomas Spura <tomspur@fedoraproject.org> - 0.13-3
b3bbd9d
- use python-foo for python2-foo and provide ipython-foo
b3bbd9d
b3bbd9d
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.13-2
b3bbd9d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
b3bbd9d
b3bbd9d
* Sat Jun 30 2012 Thomas Spura <tomspur@fedoraproject.org> - 0.13-1
b3bbd9d
- update to new version
b3bbd9d
- R on mglob/pyparsing is obsolete
b3bbd9d
- remove patch, as it's upstream
b3bbd9d
b3bbd9d
* Fri Jan 27 2012 Thomas Spura <tomspur@fedoraproject.org> - 0.12-3
b3bbd9d
- skip no X tests
b3bbd9d
- continue with python3 support
b3bbd9d
b3bbd9d
* Sun Jan  8 2012 Thomas Spura <tomspur@fedoraproject.org> - 0.12-2
b3bbd9d
- add missing R tornado
b3bbd9d
- add _bindir to PATH to more tests pass in koji
b3bbd9d
b3bbd9d
* Mon Dec 19 2011 Thomas Spura <tomspur@fedoraproject.org> - 0.12-1
b3bbd9d
- update to new version
b3bbd9d
- bcond_without run_testsuite
b3bbd9d
b3bbd9d
* Sun Oct 23 2011 Thomas Spura <tomspur@fedoraproject.org> - 0.11-3
b3bbd9d
- add more missing R (matplotlib and pygments) (#748141)
b3bbd9d
b3bbd9d
* Tue Sep 20 2011 Michel Salim <salimma@fedoraproject.org> - 0.11-2
b3bbd9d
- make -gui subpackage depend on PyQt4, not PyQt
b3bbd9d
b3bbd9d
* Mon Jul  4 2011 Thomas Spura <tomspur@fedoraproject.org> - 0.11-1
b3bbd9d
- update to 0.11
b3bbd9d
- patches included upstream
b3bbd9d
- ipython changed bundled pretty, so redistributes it in lib now
b3bbd9d
- run testsuite
b3bbd9d
- new upstream url
b3bbd9d
b3bbd9d
* Sat Apr  9 2011 Thomas Spura <tomspur@fedoraproject.org> - 0.10.2-1
b3bbd9d
- update to new version
b3bbd9d
- patch3 is included upstream
b3bbd9d
- fixes #663823, #649281
b3bbd9d
b3bbd9d
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.10.1-4
b3bbd9d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
b3bbd9d
b3bbd9d
* Mon Nov 15 2010 Thomas Spura <tomspur@fedoraproject.org> - 0.10.1-3
b3bbd9d
- add fix for #646079 and use upstream fix for #628742
b3bbd9d
b3bbd9d
* Mon Oct 18 2010 Thomas Spura <tomspur@fedoraproject.org> - 0.10.1-2
b3bbd9d
- argparse is in python 2.7 and 3.2
b3bbd9d
b3bbd9d
* Wed Oct 13 2010 Thomas Spura <tomspur@fedoraproject.org> - 0.10.1-1
b3bbd9d
- unbundle a bit differently
b3bbd9d
- update to new version
b3bbd9d
b3bbd9d
* Tue Aug 31 2010 Thomas Spura <tomspur@fedoraproject.org> - 0.10-8
b3bbd9d
- pycolor: wrong filename -> no crash (#628742)
b3bbd9d
b3bbd9d
* Wed Jul 21 2010 David Malcolm <dmalcolm@redhat.com> - 0.10-7
b3bbd9d
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
b3bbd9d
b3bbd9d
* Mon Jul 19 2010 Thomas Spura <tomspur@fedoraproject.org> - 0.10-6
b3bbd9d
- add missing dependencies: pexpect and python-argparse
b3bbd9d
b3bbd9d
* Tue Jun 22 2010 Thomas Spura <tomspur@fedoraproject.org> - 0.10-5
b3bbd9d
- two more unbundled libraries in fedora
b3bbd9d
b3bbd9d
* Mon Jun 21 2010 Toshio Kuratomi <toshio@fedoraproject.org> - 0.10-4
b3bbd9d
- Update patch for import in argparse
b3bbd9d
b3bbd9d
* Fri Jun 11 2010 Thomas Spura <tomspur@fedoraproject.org> - 0.10-3
b3bbd9d
- fix license tag (#603178)
b3bbd9d
- add requires on wxpython to gui subpackage (#515570)
b3bbd9d
- start unbundling the libraries - more to come (#603937)
f5ccda9
8f40c4d
* Tue Apr 13 2010 Thomas Spura <tomspur@fedoraproject.org> - 0.10-2
8f40c4d
- move docs into a subpackage
8f40c4d
- subpackage wxPython
8f40c4d
- subpackage tests
8f40c4d
- use proper %%{python_site*} definitions
8f40c4d
- make %%{files} more explicit
8f40c4d
- add some missing R (fixes #529185, #515570)
8f40c4d
8f40c4d
* 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
8f40c4d
* 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
8f40c4d
* Wed Jun 11 2008 James Bowes <jbowes@redhat.com> - 0.8.4-1
b99b1e5
- Update to 0.8.4
b99b1e5
8f40c4d
* 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
8f40c4d
* Sat Sep 16 2006 Shahms E. King <shahms@shahms.com> - 0.7.2-3
Shahms King f4388df
- Rebuild for FC6
Shahms King f4388df
8f40c4d
* 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
8f40c4d
* 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
8f40c4d
* 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
8f40c4d
* 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
8f40c4d
* 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
8f40c4d
* 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
8f40c4d
* 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
8f40c4d
* Wed Apr 20 2005 Shahms E. King <shahms@shahms.com> - 0.6.13-2
Shahms King 5ca4202
- Fix devel release number
Shahms King 5ca4202
8f40c4d
* 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
8f40c4d
* Fri Apr  1 2005 Michael Schwendt <mschwendt[AT]users.sf.net> - 0.6.12-2
e8144fb
- Include IPython Extensions and UserConfig directories.
e8144fb
8f40c4d
* 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
8f40c4d
* 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
8f40c4d
* Tue Mar 01 2005 Shahms E. King <shahms@shahms.com> - 0.6.11-1
Shahms King 44d2679
- Initial release to meet Fedora packaging guidelines