%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} Name: bpython Summary: Fancy Curses Interface To The Python Interactive Interpreter Version: 0.3.1 Release: 1%{?dist} URL: http://www.noiseforfree.com/bpython/ Group: Development/Libraries License: MIT Source0: http://www.noiseforfree.com/%{name}/%{name}-%{version}.tar.gz # Not used yet Source1: bpython.desktop BuildArch: noarch BuildRequires: python-devel desktop-file-utils Requires: python-pygments pyparsing BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) %description bpython is a fancy interface to the Python interpreter for Unix-like operating systems. It has the following features: o in-line syntax highlighting o readline-like autocomplete with suggestions displayed as you type o expected parameter list for any Python function. o eewind function to pop the last line of code from memory and re-evaluate. o send the code you've entered off to a pastebin and display the pastebin URL for copying, etc. o save the code you've entered to a file o auto indentation %prep %setup -q -n %{name} %build CFLAGS="%{optflags}" %{__python} setup.py build %install %{__rm} -rf %{buildroot} %{__python} setup.py install -O1 --skip-build --root %{buildroot} #{__install} -D -m 0644 %{SOURCE1} \ # %{buildroot}%{_datadir}/applications/%{name}.desktop %clean %{__rm} -rf %{buildroot} %files %defattr(-, root, root, -) %doc CHANGELOG LICENSE README %{_bindir}/%{name} %{python_sitelib}/%{name}* #{_datadir}/applications/%{name}.desktop %changelog * Wed Apr 30 2008 Terje Rosten - 0.3.1-1 - 0.3.1 - drop patch * Sun Apr 27 2008 Terje Rosten - 0.2.3-1 - random fixes * Sun Apr 27 2008 Pascal Bleser 0.2.3 - new package