1 |
%define name ipython |
%define name ipython |
2 |
%define version 0.10.1 |
%define version 0.10.2 |
3 |
%define rel 1 |
%define rel 1 |
4 |
|
|
5 |
Summary: An enhanced interactive Python shell |
Summary: An enhanced interactive Python shell |
7 |
Version: %{version} |
Version: %{version} |
8 |
Release: %mkrel %{rel} |
Release: %mkrel %{rel} |
9 |
Source0: http://ipython.scipy.org/dist/%{name}-%{version}.tar.gz |
Source0: http://ipython.scipy.org/dist/%{name}-%{version}.tar.gz |
|
Patch0: setupbase.py.patch |
|
10 |
License: BSD-like |
License: BSD-like |
11 |
Group: Development/Python |
Group: Development/Python |
12 |
Url: http://ipython.scipy.org |
Url: http://ipython.scipy.org |
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release} |
|
13 |
BuildArch: noarch |
BuildArch: noarch |
14 |
Requires: python-zope-interface >= 3.4.1 |
Requires: python-zope-interface >= 3.4.1 |
15 |
Requires: python-twisted >= 8.0.1 |
Requires: python-twisted >= 8.0.1 |
19 |
Suggests: python-mpi4py |
Suggests: python-mpi4py |
20 |
Suggests: wxPython |
Suggests: wxPython |
21 |
BuildRequires: emacs |
BuildRequires: emacs |
22 |
%py_requires -d |
BuildRequires: python-devel |
23 |
|
|
24 |
%description |
%description |
25 |
IPython is a free software project (released under the BSD license) |
IPython is a free software project (released under the BSD license) |
52 |
|
|
53 |
%prep |
%prep |
54 |
%setup -q -n %{name}-%{version} |
%setup -q -n %{name}-%{version} |
|
%patch0 -p0 |
|
55 |
|
|
56 |
%build |
%build |
57 |
emacs -batch -f batch-byte-compile docs/emacs/ipython.el |
emacs -batch -f batch-byte-compile docs/emacs/ipython.el |
62 |
%__mkdir -p %{buildroot}%{_datadir}/emacs/site-lisp/ |
%__mkdir -p %{buildroot}%{_datadir}/emacs/site-lisp/ |
63 |
%__install -m 644 docs/emacs/ipython.el* %{buildroot}%{_datadir}/emacs/site-lisp/ |
%__install -m 644 docs/emacs/ipython.el* %{buildroot}%{_datadir}/emacs/site-lisp/ |
64 |
%__rm -f %{buildroot}%{_docdir}/%{name}/manual/ipython.pdf |
%__rm -f %{buildroot}%{_docdir}/%{name}/manual/ipython.pdf |
|
cp -f README.txt %{buildroot}%{_docdir}/%{name} |
|
65 |
|
|
66 |
%clean |
%clean |
67 |
%__rm -rf %{buildroot} |
%__rm -rf %{buildroot} |
68 |
|
|
69 |
%files |
%files |
70 |
%defattr(-,root,root) |
%defattr(-,root,root) |
71 |
|
%doc README.txt |
72 |
%{_bindir}/* |
%{_bindir}/* |
73 |
%{_datadir}/emacs/site-lisp/* |
%{_datadir}/emacs/site-lisp/* |
74 |
%{_docdir}/%{name} |
%{_docdir}/%{name} |
75 |
%{_mandir}/man1/* |
%{_mandir}/man1/* |
76 |
%{py_sitedir}/* |
%{python_sitelib}/* |