]>
Commit | Line | Data |
---|---|---|
00776458 | 1 | # NOTE: Python3 version in 'ipython3.spec' |
0400c33f | 2 | # |
00776458 JB |
3 | # Conditional build: |
4 | %bcond_with doc # Sphinx documentation (need to wait for fulfilling dependencies in PLD) | |
5 | %bcond_with tests # unit tests (need to wait for fulfilling dependencies in PLD) | |
6 | ||
e33c22cf | 7 | Summary: An enhanced Interactive Python shell |
ff6802f6 | 8 | Summary(pl.UTF-8): Interaktywna powłoka języka Python |
e33c22cf | 9 | Name: ipython |
00776458 | 10 | Version: 5.8.0 |
11f7ae56 | 11 | Release: 2 |
18423dde | 12 | License: BSD |
bc92a4bc | 13 | Group: Applications/Shells |
62c095d7 | 14 | Source0: http://archive.ipython.org/release/%{version}/%{name}-%{version}.tar.gz |
00776458 JB |
15 | # Source0-md5: 7014b8824981eef2cb893ea5398d6b8d |
16 | Patch0: %{name}-use-setuptools.patch | |
17 | URL: http://ipython.org/ | |
18 | BuildRequires: pydoc >= 1:2.7 | |
19 | BuildRequires: python-devel >= 1:2.7 | |
20 | BuildRequires: python-devel-tools >= 1:2.7 | |
21 | BuildRequires: python-modules-sqlite >= 1:2.7 | |
22 | BuildRequires: python-setuptools >= 18.5 | |
4bd9f8e5 | 23 | BuildRequires: rpm-pythonprov |
00776458 JB |
24 | BuildRequires: rpmbuild(macros) >= 1.714 |
25 | %if %{with tests} | |
26 | BuildRequires: python-backports-shutil_get_terminal_size | |
27 | BuildRequires: python-decorator | |
28 | BuildRequires: python-ipykernel | |
29 | BuildRequires: python-mock | |
30 | BuildRequires: python-nbformat | |
31 | BuildRequires: python-nose >= 0.10.1 | |
32 | BuildRequires: python-pathlib2 | |
33 | BuildRequires: python-pexpect | |
34 | BuildRequires: python-pickleshare | |
35 | BuildRequires: python-prompt_toolkit >= 1.0.4 | |
36 | BuildRequires: python-prompt_toolkit < 2 | |
37 | BuildRequires: python-pygments | |
38 | BuildRequires: python-requests | |
39 | BuildRequires: python-simplegeneric >= 0.8 | |
40 | BuildRequires: python-testpath | |
41 | BuildRequires: python-traitlets >= 4.2 | |
42 | %endif | |
43 | %if %{with doc} | |
44 | BuildRequires: python-docutils | |
45 | BuildRequires: python-ipykernel | |
46 | BuildRequires: python-sphinx_rtd_theme | |
47 | BuildRequires: sphinx-pdg-2 >= 1.3 | |
48 | %endif | |
f1842c5e | 49 | Requires: python-%{name} = %{version}-%{release} |
00776458 | 50 | Suggests: python-PyQt5 |
630f58a1 | 51 | Suggests: python-zmq |
e33c22cf | 52 | BuildArch: noarch |
53 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
54 | ||
55 | %description | |
56 | IPython is a free software project which tries to: | |
57 | ||
ef8a19a7 | 58 | 1. Provide an interactive interpreter superior to Python's default. |
59 | IPython has many features for object introspection, shell access, and | |
60 | its own special command system for adding functionality when working | |
61 | interactively. | |
e33c22cf | 62 | |
ef8a19a7 | 63 | 2. Serve as an embeddable, ready to use interpreter for your own |
64 | programs. IPython can be started with a single call from inside | |
65 | another program, providing access to the current namespace. This can | |
66 | be very useful both for debugging purposes and for situations where a | |
67 | blend of batch-processing and interactive exploration are needed. | |
e33c22cf | 68 | |
ef8a19a7 | 69 | 3. Offer a flexible framework which can be used as the base |
70 | environment for other systems with Python as the underlying language. | |
71 | Specifically scientific environments like Mathematica, IDL and Mathcad | |
72 | inspired its design, but similar ideas can be useful in many fields. | |
e33c22cf | 73 | |
9299d2f0 | 74 | This package contains IPython shell. |
75 | ||
8251843b JR |
76 | %description -l pl.UTF-8 |
77 | IPython jest wolnym oprogramowaniem, którego celem jest: | |
78 | ||
79 | 1. Dostarczenie interaktywnej powłoki lepszej od standardowej | |
80 | dostarczanej z językiem Python. IPython umożliwia badanie obiektów, | |
81 | dostęp do powłoki oraz własny system poleceń, który umożliwia | |
82 | rozszerzanie funkcjonalności podczas pracy interaktywnej. | |
83 | ||
84 | 2. Dostarczenie gotowego interpretera, który można dołączać do własnej | |
85 | aplikacji. IPython może zostać uruchomiony za pomocą wywołania jednej | |
86 | funkcji z poziomu innego programu umożliwiając jednocześnie dostęp do | |
87 | aktualnej przestrzeni nazw tego programu. Może to być bardzo użyteczne | |
88 | do celów takich jak śledzenie programu czy też sytuacji gdzie jest | |
89 | wymagane połączenie przetwarzania wsadowego z interaktywną | |
90 | introspekcją. | |
91 | ||
92 | 3. Dostarczenie szkieletu, który może zostać użyty jako podstawa | |
93 | systemu, którego polecenia opierają się na zasadach języka Python. | |
94 | Projekt został zainspirowany przez oprogramowanie naukowe takie jak | |
95 | Mathematica, IDL oraz Mathcad, gdzie podobne idee mogą być realizowane | |
9299d2f0 | 96 | w wielu przypadkach. |
97 | ||
8251843b | 98 | Pakiet ten zawiera powłokę IPython. |
9299d2f0 | 99 | |
100 | %package -n python-ipython | |
101 | Summary: An enhanced Interactive Python shell modules | |
ff6802f6 | 102 | Summary(pl.UTF-8): Moduły interaktywnej powłoki języka Python |
9299d2f0 | 103 | Group: Libraries/Python |
00776458 JB |
104 | Requires: pydoc >= 1:2.7 |
105 | Requires: python-devel-tools >= 1:2.7 | |
9299d2f0 | 106 | |
107 | %description -n python-ipython | |
108 | IPython is a free software project which tries to: | |
109 | ||
ef8a19a7 | 110 | 1. Provide an interactive interpreter superior to Python's default. |
111 | IPython has many features for object introspection, shell access, and | |
112 | its own special command system for adding functionality when working | |
113 | interactively. | |
9299d2f0 | 114 | |
ef8a19a7 | 115 | 2. Serve as an embeddable, ready to use interpreter for your own |
116 | programs. IPython can be started with a single call from inside | |
117 | another program, providing access to the current namespace. This can | |
118 | be very useful both for debugging purposes and for situations where a | |
119 | blend of batch-processing and interactive exploration are needed. | |
9299d2f0 | 120 | |
ef8a19a7 | 121 | 3. Offer a flexible framework which can be used as the base |
122 | environment for other systems with Python as the underlying language. | |
123 | Specifically scientific environments like Mathematica, IDL and Mathcad | |
124 | inspired its design, but similar ideas can be useful in many fields. | |
9299d2f0 | 125 | |
126 | This package contains IPython modules. | |
127 | ||
8251843b JR |
128 | %description -n python-ipython -l pl.UTF-8 |
129 | IPython jest wolnym oprogramowaniem, którego celem jest: | |
130 | ||
131 | 1. Dostarczenie interaktywnej powłoki lepszej od standardowej | |
132 | dostarczanej z językiem Python. IPython umożliwia badanie obiektów, | |
133 | dostęp do powłoki oraz własny system poleceń, który umożliwia | |
134 | rozszerzanie funkcjonalności podczas pracy interaktywnej. | |
135 | ||
136 | 2. Dostarczenie gotowego interpretera, który można dołączać do własnej | |
137 | aplikacji. IPython może zostać uruchomiony za pomocą wywołania jednej | |
138 | funkcji z poziomu innego programu umożliwiając jednocześnie dostęp do | |
139 | aktualnej przestrzeni nazw tego programu. Może to być bardzo użyteczne | |
140 | do celów takich jak śledzenie programu czy też sytuacji gdzie jest | |
141 | wymagane połączenie przetwarzania wsadowego z interaktywną | |
142 | introspekcją. | |
143 | ||
144 | 3. Dostarczenie szkieletu, który może zostać użyty jako podstawa | |
145 | systemu, którego polecenia opierają się na zasadach języka Python. | |
146 | Projekt został zainspirowany przez oprogramowanie naukowe takie jak | |
147 | Mathematica, IDL oraz Mathcad, gdzie podobne idee mogą być realizowane | |
ef8a19a7 | 148 | w wielu przypadkach. |
149 | ||
8251843b | 150 | Pakiet ten zawiera moduły interaktywnej powłoki języka Python. |
ef8a19a7 | 151 | |
e33c22cf | 152 | %prep |
2ca4e47a | 153 | %setup -q |
00776458 JB |
154 | %patch0 -p1 |
155 | ||
156 | %build | |
157 | %py_build | |
158 | ||
159 | %if %{with tests} | |
57882cb5 | 160 | %{__python} IPython/testing/iptest.py IPython |
00776458 JB |
161 | %endif |
162 | ||
163 | %if %{with doc} | |
164 | PYTHONPATH=$(pwd) \ | |
165 | %{__make} -C docs html \ | |
166 | SPHINXBUILD=sphinx-build-2 | |
167 | %endif | |
e33c22cf | 168 | |
169 | %install | |
170 | rm -rf $RPM_BUILD_ROOT | |
34d62345 | 171 | install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} |
e33c22cf | 172 | |
fc0eeeb1 | 173 | %py_install |
e33c22cf | 174 | |
00776458 | 175 | cp -pr examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} |
34d62345 | 176 | |
4bd9f8e5 | 177 | %py_postclean |
00776458 JB |
178 | |
179 | # test suite | |
180 | %{__rm} $RPM_BUILD_ROOT%{_bindir}/iptest* | |
11f7ae56 | 181 | %{__rm} -r $RPM_BUILD_ROOT%{py_sitescriptdir}/IPython/{core/tests,extensions/tests,lib/tests,terminal/tests,testing/tests,utils/tests} |
4bd9f8e5 | 182 | |
e33c22cf | 183 | %clean |
184 | rm -rf $RPM_BUILD_ROOT | |
185 | ||
186 | %files | |
187 | %defattr(644,root,root,755) | |
00776458 JB |
188 | %attr(755,root,root) %{_bindir}/ipython |
189 | %attr(755,root,root) %{_bindir}/ipython2 | |
190 | %{_mandir}/man1/ipython.1* | |
9299d2f0 | 191 | |
192 | %files -n python-ipython | |
193 | %defattr(644,root,root,755) | |
00776458 JB |
194 | %doc COPYING.rst README.rst |
195 | %{py_sitescriptdir}/IPython | |
196 | %{py_sitescriptdir}/ipython-%{version}-py*.egg-info | |
197 | %{_examplesdir}/%{name}-%{version} |