File IPython.spec of Package IPython
#
# spec file for package IPython
#
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: IPython
BuildRequires: python-devel
Version: 0.10
Release: 9
%define tarname ipython
Source0: %{tarname}-%{version}.tar.bz2
License: LGPLv2.1+
Group: Development/Languages/Python
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Url: http://ipython.scipy.org/
Summary: An Enhanced Interactive Python Shell
%{py_requires}
%if 0%{?suse_version} > 1130
Suggests: python-wxWidgets
%else
Suggests: python-wxGTK
%endif
%if %{?suse_version: %{suse_version} > 1110} %{!?suse_version:1}
BuildArch: noarch
%endif
%description
IPython provides a replacement for the interactive python (Python)
interpreter with extra functionality.
Main features:
* Comprehensive object introspection.
* Input history that is 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 doc
License: LGPLv2.1+
Summary: An Enhanced Interactive Python Shell documentation
Group: Documentation
Suggests: %{name} = %{version}
%description doc
IPython provides a replacement for the interactive python (Python)
interpreter with extra functionality.
This package contains comprehensive documentation for IPython in html format, as well as examples of usage.
Authors:
--------
Fernando Perez <fperez@colorado.edu>
%prep
%setup -q -n %{tarname}-%{version}
%build
export CFLAGS="$RPM_OPT_FLAGS"
python setup.py build
%install
python setup.py install --prefix=%{_prefix} --root=$RPM_BUILD_ROOT --record-rpm=INSTALLED_FILES
grep -v 'share/doc/ipython' INSTALLED_FILES > INSTALLED_FILES-nodoc
install -d -m 755 $RPM_BUILD_ROOT%{_docdir}/%{name}
mv -f $RPM_BUILD_ROOT/usr/share/doc/ipython/* $RPM_BUILD_ROOT%{_docdir}/%{name}
rmdir $RPM_BUILD_ROOT/usr/share/doc/ipython
rm $RPM_BUILD_ROOT%{_docdir}/%{name}/manual/ipython.pdf
%clean
rm -rf $RPM_BUILD_ROOT
%files -f INSTALLED_FILES-nodoc
%defattr(-,root,root)
#%dir %{python_sitelib}/IPython/UserConfig
%files doc
%defattr(-,root,root)
%doc %{_docdir}/IPython
%changelog