2 # - check docs folder for valuable files
5 Summary: bpython - a fancy interface to the Python interpreter
10 Group: Applications/Shells
11 Source0: http://bpython-interpreter.org/releases/%{name}-%{version}.tar.gz
12 # Source0-md5: f32ce6aa8ae6af8d2cf65e13f58859d4
13 URL: http://bpython-interpreter.org/
15 BuildRequires: python-devel
16 BuildRequires: python-devel-tools
17 BuildRequires: rpm-pythonprov
18 BuildRequires: rpmbuild(macros) >= 1.219
19 Requires: python-%{name} = %{version}-%{release}
20 Requires: python-distribute >= 0.6.10
22 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25 bpython is a fancy interface to the Python interpreter for Unix-like
28 %package -n python-bpython
29 Summary: bpython shell modules
30 Group: Libraries/Python
31 Requires: python-pygments
32 %pyrequires_eq python-devel-tools
35 %description -n python-bpython
36 bpython is a fancy interface to the Python interpreter for Unix-like
39 %package -n python-bpdb
41 Group: Libraries/Python
42 %pyrequires_eq python-devel-tools
45 %description -n python-bpdb
46 BPDB is an extension to PDB which allows you to press B in a PDB
47 session which will let you be dropped into a bpython sessions with the
54 rm -rf $RPM_BUILD_ROOT
56 python ./setup.py install --optimize=2 --root=$RPM_BUILD_ROOT
59 rm -rf $RPM_BUILD_ROOT%{_docdir}
62 rm -rf $RPM_BUILD_ROOT
65 %defattr(644,root,root,755)
66 %attr(755,root,root) %{_bindir}/*
67 %{_desktopdir}/bpython.desktop
71 %files -n python-bpython
72 %defattr(644,root,root,755)
74 %{py_sitescriptdir}/%{pname}
75 %{py_sitescriptdir}/*.egg-info
78 %defattr(644,root,root,755)
80 %{py_sitescriptdir}/bpdb