]> git.pld-linux.org Git - packages/ipython.git/blobdiff - ipython.spec
- rel. 2 (rebuild with python 2.5)
[packages/ipython.git] / ipython.spec
index f90d8bb4d66ddc9842984701353a6a1eedcdae34..7cba54828d0cfe98e8a81ecb7b547bf77e3c30e5 100644 (file)
-%include       /usr/lib/rpm/macros.python
-
-#
-# todo:
-# 1. pl description
-# 2. %{py_sitedir}/%{pname}/UserConfig/*.py ???
-# 3. python-ipython subpackage with all modules
-#    - main package will contain only the script to run shell (maybe some docs)
-#
-
-%define pname IPython
-
+%define                pname   IPython
 Summary:       An enhanced Interactive Python shell
 Summary(pl):   Interaktywna pow³oka jêzyka Python
 Name:          ipython
-Version:       0.2.8
-Release:       0.1
+Version:       0.7.2
+Release:       2
 License:       LGPL
 Group:         Applications/Shells
-Source0:       http://www-hep.colorado.edu/~fperez/ipython/dist/%{pname}-%{version}.tar.gz
-URL:           http://www-hep.colorado.edu/~fperez/ipython/
-BuildRequires: rpm-pythonprov >= 4.0.2-50
-%requires_eq   python-modules
-%requires_eq   python-pydoc
+Source0:       http://ipython.scipy.org/dist/%{name}-%{version}.tar.gz
+# Source0-md5: 3565efcf87c7318c1a3930e278ac9fa5
+Patch0:                %{name}-import_path.patch
+URL:           http://ipython.scipy.org
+BuildRequires: python-devel
+BuildRequires: rpm-pythonprov
+BuildRequires: rpmbuild(macros) >= 1.219
+Requires:      python-%{name} = %{version}
 BuildArch:     noarch
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
 IPython is a free software project which tries to:
 
-1. Provide an interactive interpreter superior to Python's default. IPython has
-   many features for object introspection, shell access, and its own special
-   command system for adding functionality when working interactively.
+1. Provide an interactive interpreter superior to Python's default.
+IPython has many features for object introspection, shell access, and
+its own special command system for adding functionality when working
+interactively.
+
+2. Serve as an embeddable, ready to use interpreter for your own
+programs. IPython can be started with a single call from inside
+another program, providing access to the current namespace. This can
+be very useful both for debugging purposes and for situations where a
+blend of batch-processing and interactive exploration are needed.
+
+3. Offer a flexible framework which can be used as the base
+environment for other systems with Python as the underlying language.
+Specifically scientific environments like Mathematica, IDL and Mathcad
+inspired its design, but similar ideas can be useful in many fields.
+
+This package contains IPython shell.
+
+%description -l pl
+IPython jest wolnym oprogramowaniem, którego celem jest:
+
+1. Dostarczenie interaktywnej pow³oki lepszej od standardowej
+dostarczanej z jêzykiem Python. IPython umo¿liwia badanie obiektów,
+dostêp do pow³oki oraz w³asny system poleceñ, który umo¿liwia
+rozszerzanie funkcjonalno¶ci podczas pracy interaktywnej.
+
+2. Dostarczenie gotowego interpretera, który mo¿na do³±czaæ do w³asnej
+aplikacji. IPython mo¿e zostaæ uruchomiony za pomoc± wywo³ania jednej
+funkcji z poziomu innego programu umo¿liwiaj±c jednocze¶nie dostêp do
+aktualnej przestrzeni nazw tego programu. Mo¿e to byæ bardzo u¿yteczne
+do celów takich jak ¶ledzenie programu czy te¿ sytuacji gdzie jest
+wymagane po³±czenie przetwarzania wsadowego z interaktywn±
+introspekcj±.
+
+3. Dostarczenie szkieletu, który mo¿e zostaæ u¿yty jako podstawa
+systemu, którego polecenia opieraj± siê na zasadach jêzyka Python.
+Projekt zosta³ zainspirowany przez oprogramowanie naukowe takie jak
+Mathematica, IDL oraz Mathcad, gdzie podobne idee mog± byæ realizowane
+w wielu przypadkach.
+
+Pakiet ten zawiera pow³okê IPython.
+
+%package -n python-ipython
+Summary:       An enhanced Interactive Python shell modules
+Summary(pl):   Modu³y interaktywnej pow³oki jêzyka Python
+Group:         Libraries/Python
+%pyrequires_eq python-devel-tools
+%pyrequires_eq pydoc
+
+%description -n python-ipython
+IPython is a free software project which tries to:
+
+1. Provide an interactive interpreter superior to Python's default.
+IPython has many features for object introspection, shell access, and
+its own special command system for adding functionality when working
+interactively.
+
+2. Serve as an embeddable, ready to use interpreter for your own
+programs. IPython can be started with a single call from inside
+another program, providing access to the current namespace. This can
+be very useful both for debugging purposes and for situations where a
+blend of batch-processing and interactive exploration are needed.
+
+3. Offer a flexible framework which can be used as the base
+environment for other systems with Python as the underlying language.
+Specifically scientific environments like Mathematica, IDL and Mathcad
+inspired its design, but similar ideas can be useful in many fields.
+
+This package contains IPython modules.
 
-2. Serve as an embeddable, ready to use interpreter for your own programs.
-   IPython can be started with a single call from inside another program,
-   providing access to the current namespace. This can be very useful both for
-   debugging purposes and for situations where a blend of batch-processing and
-   interactive exploration are needed.
+%description -n python-ipython -l pl
+IPython jest wolnym oprogramowaniem, którego celem jest:
 
-3. Offer a flexible framework which can be used as the base environment for
-   other systems with Python as the underlying language. Specifically scientific
-   environments like Mathematica, IDL and Mathcad inspired its design, but similar
-   ideas can be useful in many fields.
+1. Dostarczenie interaktywnej pow³oki lepszej od standardowej
+dostarczanej z jêzykiem Python. IPython umo¿liwia badanie obiektów,
+dostêp do pow³oki oraz w³asny system poleceñ, który umo¿liwia
+rozszerzanie funkcjonalno¶ci podczas pracy interaktywnej.
+
+2. Dostarczenie gotowego interpretera, który mo¿na do³±czaæ do w³asnej
+aplikacji. IPython mo¿e zostaæ uruchomiony za pomoc± wywo³ania jednej
+funkcji z poziomu innego programu umo¿liwiaj±c jednocze¶nie dostêp do
+aktualnej przestrzeni nazw tego programu. Mo¿e to byæ bardzo u¿yteczne
+do celów takich jak ¶ledzenie programu czy te¿ sytuacji gdzie jest
+wymagane po³±czenie przetwarzania wsadowego z interaktywn±
+introspekcj±.
+
+3. Dostarczenie szkieletu, który mo¿e zostaæ u¿yty jako podstawa
+systemu, którego polecenia opieraj± siê na zasadach jêzyka Python.
+Projekt zosta³ zainspirowany przez oprogramowanie naukowe takie jak
+Mathematica, IDL oraz Mathcad, gdzie podobne idee mog± byæ realizowane
+w wielu przypadkach.
+
+Pakiet ten zawiera modu³y interaktywnej pow³oki jêzyka Python.
 
 %prep
-%setup  -q -n %{pname}-%{version}
+%setup -q
+%patch0 -p1
 
 %install
 rm -rf $RPM_BUILD_ROOT
 
 python ./setup.py install --optimize=2 --root=$RPM_BUILD_ROOT
 
-mv doc/manual/manual.pdf doc/
-mv doc/manual/ doc/html/
-
-gzip -9nf *.txt doc/{*.txt,ChangeLog,ToDo,BUGS}
+%py_postclean
+rm -rf $RPM_BUILD_ROOT%{_docdir}
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%doc *.gz doc/*.gz doc/html doc/*.pdf
 %attr(755,root,root) %{_bindir}/*
-%dir %{py_sitedir}/%{pname}
-%dir %{py_sitedir}/%{pname}/Extensions
-%dir %{py_sitedir}/%{pname}/UserConfig
-%{py_sitedir}/%{pname}/*.py?
-%{py_sitedir}/%{pname}/Extensions/*.py?
-%{py_sitedir}/%{pname}/UserConfig/*.py
+%{_mandir}/man1/*
+
+%files -n python-ipython
+%defattr(644,root,root,755)
+%doc README doc/{ChangeLog,NEWS} doc/manual doc/*.pdf
+%{py_sitescriptdir}/%{pname}
This page took 0.071159 seconds and 4 git commands to generate.