1 |
%define name ipython |
%define name ipython |
2 |
%define version 1.2.1 |
%define version 2.0.0 |
3 |
%define release %mkrel 2 |
%define release %mkrel 1 |
4 |
|
|
5 |
Summary: An interactive computing environment for Python |
Summary: An interactive computing environment for Python |
6 |
Name: %{name} |
Name: %{name} |
11 |
Group: Development/Python |
Group: Development/Python |
12 |
Url: http://ipython.org |
Url: http://ipython.org |
13 |
BuildArch: noarch |
BuildArch: noarch |
|
Requires: python >= 2.6 |
|
14 |
Requires: python-pexpect >= 2.2 |
Requires: python-pexpect >= 2.2 |
15 |
Requires: python-mglob |
Requires: python-mglob |
16 |
Requires: python-simplegeneric |
Requires: python-simplegeneric |
17 |
Suggests: python-mpi4py |
Suggests: python-mpi4py |
18 |
Suggests: wxPython, python-qt4, pyside >= 1.0.3 |
Suggests: wxPython, python-qt4, pyside >= 1.0.3 |
19 |
Suggests: python-pygments |
Suggests: python-pygments |
20 |
Suggests: python-pyzmq >= 2.1.4 |
Suggests: python-pyzmq >= 2.1.11 |
21 |
#notebook requires tornado and jinja2 |
#notebook requires tornado and jinja2 |
22 |
Suggests: python-tornado >= 2.1.0 |
Suggests: python-tornado >= 3.1 |
23 |
Suggests: python-jinja2 |
Suggests: python-jinja2 |
24 |
Suggests: python-matplotlib |
Suggests: python-matplotlib |
|
BuildRequires: emacs |
|
25 |
BuildRequires: python-devel |
BuildRequires: python-devel |
26 |
BuildRequires: python-simplegeneric |
BuildRequires: python-simplegeneric |
27 |
BuildRequires: python-setuptools |
BuildRequires: python-setuptools |
28 |
|
BuildRequires: python-pygments |
29 |
|
BuildRequires: python-sphinx |
30 |
|
BuildRequires: python-jinja2 |
31 |
|
BuildRequires: python-pyzmq >= 2.1.11 |
32 |
|
BuildRequires: python-pexpect >= 2.2 |
33 |
|
BuildRequires: python-tornado >= 3.1 |
34 |
|
BuildRequires: python-matplotlib |
35 |
|
BuildRequires: python-numpydoc |
36 |
|
|
37 |
%package -n python3-ipython |
%package -n python3-ipython |
38 |
Group: Development/Python |
Group: Development/Python |
40 |
BuildRequires: python3-devel |
BuildRequires: python3-devel |
41 |
BuildRequires: python3-setuptools |
BuildRequires: python3-setuptools |
42 |
BuildRequires: python3-simplegeneric |
BuildRequires: python3-simplegeneric |
43 |
|
BuildRequires: python3-pygments |
44 |
|
BuildRequires: python3-sphinx |
45 |
|
BuildRequires: python3-jinja2 |
46 |
|
BuildRequires: python3-pexpect |
47 |
|
BuildRequires: python3-pyzmq |
48 |
|
BuildRequires: python3-tornado |
49 |
Requires: python3-pexpect |
Requires: python3-pexpect |
50 |
Requires: python3-mglob |
Requires: python3-mglob |
51 |
Requires: python3-simplegeneric |
Requires: python3-simplegeneric |
53 |
Suggests: python3-tornado |
Suggests: python3-tornado |
54 |
Suggests: python3-jinja2 |
Suggests: python3-jinja2 |
55 |
Suggests: python3-matplotlib |
Suggests: python3-matplotlib |
56 |
|
Suggests: python3-pyzmq |
57 |
|
|
58 |
%description |
%description |
59 |
The goal of IPython is to create a comprehensive environment for |
The goal of IPython is to create a comprehensive environment for |
117 |
* Easily embeddable in other Python programs. |
* Easily embeddable in other Python programs. |
118 |
* Integrated access to the pdb debugger and the Python profiler. |
* Integrated access to the pdb debugger and the Python profiler. |
119 |
|
|
120 |
|
%package doc |
121 |
|
Summary: An Enhanced Interactive Python Shell documentation |
122 |
|
Group: Development/Python |
123 |
|
|
124 |
|
%description doc |
125 |
|
IPython provides a replacement for the interactive python (Python) |
126 |
|
interpreter with extra functionality. |
127 |
|
|
128 |
|
This package contains comprehensive documentation for IPython in |
129 |
|
html format, as well as examples of usage. |
130 |
|
|
131 |
%prep |
%prep |
132 |
%setup -q |
%setup -q |
133 |
# delete bundling libs |
# delete bundling libs |
134 |
pushd IPython/external |
pushd IPython/external |
|
# python's own modules |
|
|
rm argparse/_argparse.py |
|
135 |
|
|
136 |
# use decorators of numpy |
# use decorators of numpy |
137 |
rm decorators/_decorators.py |
rm decorators/_decorators.py |
142 |
|
|
143 |
popd |
popd |
144 |
|
|
145 |
|
# Get rid of library shebangs |
146 |
|
find . -type f -name "*.py" -exec sed -i '/#!\/usr\/bin\/env/d' {} \; |
147 |
|
|
148 |
cp -a . %{py3dir} |
cp -a . %{py3dir} |
|
find %{py3dir} -name '*.py' | xargs sed -i '1s|^#!python|#!%{__python3}|' |
|
149 |
|
|
150 |
%build |
%build |
|
emacs -batch -f batch-byte-compile docs/emacs/ipython.el |
|
151 |
pushd %{py3dir} |
pushd %{py3dir} |
152 |
%{__python3} setup.py build |
%{__python3} setup.py build |
153 |
popd |
popd |
157 |
%install |
%install |
158 |
pushd %{py3dir} |
pushd %{py3dir} |
159 |
%{__python3} setup.py install -O1 --skip-build --root %{buildroot} |
%{__python3} setup.py install -O1 --skip-build --root %{buildroot} |
160 |
|
rm %{buildroot}%{_bindir}/ipython |
161 |
|
rm %{buildroot}%{_bindir}/ipcluster |
162 |
|
rm %{buildroot}%{_bindir}/ipcontroller |
163 |
|
rm %{buildroot}%{_bindir}/ipengine |
164 |
|
rm %{buildroot}%{_bindir}/iptest |
165 |
|
|
166 |
popd |
popd |
167 |
|
|
168 |
%{__python} setup.py install -O1 --skip-build --root %{buildroot} |
%{__python} setup.py install -O1 --skip-build --root %{buildroot} |
169 |
|
|
|
%__mkdir -p %{buildroot}%{_datadir}/emacs/site-lisp/ |
|
|
%__install -m 644 docs/emacs/ipython.el* %{buildroot}%{_datadir}/emacs/site-lisp/ |
|
170 |
chmod 644 %{buildroot}%{_mandir}/man1/*.1* |
chmod 644 %{buildroot}%{_mandir}/man1/*.1* |
171 |
find %{buildroot} -name .buildinfo -exec rm -f {} \; |
find %{buildroot} -name .buildinfo -exec rm -f {} \; |
172 |
find %{buildroot} -name .git_commit_info.ini -exec rm -rf {} \; |
find %{buildroot} -name .git_commit_info.ini -exec rm -rf {} \; |
173 |
|
|
174 |
|
# make docs |
175 |
|
pushd docs |
176 |
|
PYTHONPATH=$PYTHONPATH:%{buildroot}%{python_sitelib} make html |
177 |
|
rm build/html/.buildinfo |
178 |
|
popd |
179 |
|
|
180 |
%files |
%files |
|
%doc examples |
|
181 |
%{_bindir}/ipython |
%{_bindir}/ipython |
|
%{_bindir}/irunner |
|
|
%{_bindir}/pycolor |
|
182 |
%{_bindir}/ipcluster |
%{_bindir}/ipcluster |
183 |
%{_bindir}/ipcontroller |
%{_bindir}/ipcontroller |
184 |
%{_bindir}/ipengine |
%{_bindir}/ipengine |
|
%{_bindir}/iplogger |
|
185 |
%{_bindir}/iptest |
%{_bindir}/iptest |
186 |
|
%{_bindir}/ipython2 |
187 |
|
%{_bindir}/ipcluster2 |
188 |
|
%{_bindir}/ipcontroller2 |
189 |
|
%{_bindir}/ipengine2 |
190 |
|
%{_bindir}/iptest2 |
191 |
|
|
192 |
%{python_sitelib}/* |
%{python_sitelib}/* |
193 |
%{_datadir}/emacs/site-lisp/* |
|
194 |
|
%files doc |
195 |
|
%doc examples docs/build/html |
196 |
%{_mandir}/man1/* |
%{_mandir}/man1/* |
|
%{_datadir}/doc/%{name} |
|
197 |
|
|
198 |
%files -n python3-ipython |
%files -n python3-ipython |
|
%doc examples |
|
199 |
%{_bindir}/ipython3 |
%{_bindir}/ipython3 |
|
%{_bindir}/irunner3 |
|
|
%{_bindir}/pycolor3 |
|
200 |
%{_bindir}/ipcluster3 |
%{_bindir}/ipcluster3 |
201 |
%{_bindir}/ipcontroller3 |
%{_bindir}/ipcontroller3 |
202 |
%{_bindir}/ipengine3 |
%{_bindir}/ipengine3 |
|
%{_bindir}/iplogger3 |
|
203 |
%{_bindir}/iptest3 |
%{_bindir}/iptest3 |
204 |
|
|
205 |
%{python3_sitelib}/* |
%{python3_sitelib}/* |