3408d20
%if 0%{?fedora}
3408d20
%global with_python3 1
3408d20
%endif
3408d20
3408d20
%global upstream_name pudb
3408d20
%global module_name pudb
3408d20
3408d20
Name:          python-pudb
246a8eb
Version:       2014.1
b1a588b
Release:       1%{?dist}
3408d20
Summary:       A full-screen, console-based Python debugger
3408d20
License:       MIT
3408d20
URL:           http://mathema.tician.de/software/pudb
3408d20
Source0:       http://pypi.python.org/packages/source/p/%{upstream_name}/%{upstream_name}-%{version}.tar.gz
3408d20
3408d20
BuildArch:     noarch
3408d20
BuildRequires: python2-devel
3408d20
BuildRequires: python-setuptools
3408d20
Requires:      python-urwid
3408d20
Requires:      python-pygments
3408d20
3408d20
%description
3408d20
PuDB is a full-screen, console-based visual debugger for Python.
3408d20
3408d20
Its goal is to provide all the niceties of modern GUI-based debuggers in a more
3408d20
lightweight and keyboard-friendly package. PuDB allows you to debug code right
3408d20
where you write and test it--in a terminal. If you've worked with the excellent
3408d20
(but nowadays ancient) DOS-based Turbo Pascal or C tools, PuDB's UI might look
3408d20
familiar.
3408d20
3408d20
%if 0%{?with_python3}
3408d20
%package -n python3-%{upstream_name}
3408d20
Summary:       A full-screen, console-based Python debugger
3408d20
3408d20
BuildRequires: python3-devel
3408d20
BuildRequires: python3-setuptools
3408d20
Requires:      python3-urwid
3408d20
Requires:      python3-pygments
3408d20
3408d20
%description -n python3-%{upstream_name}
3408d20
PuDB is a full-screen, console-based visual debugger for Python.
3408d20
3408d20
Its goal is to provide all the niceties of modern GUI-based debuggers in a more
3408d20
lightweight and keyboard-friendly package. PuDB allows you to debug code right
3408d20
where you write and test it--in a terminal. If you've worked with the excellent
3408d20
(but nowadays ancient) DOS-based Turbo Pascal or C tools, PuDB's UI might look
3408d20
familiar.
3408d20
%endif # if with_python3
3408d20
3408d20
%prep
3408d20
%setup -q -n %{upstream_name}-%{version}
3408d20
rm -rf %{module_name}.egg-info
3408d20
3408d20
sed -i '1{\@^#! /usr/bin/env python@d}' pudb/debugger.py
3408d20
3408d20
%if %{with python3}
3408d20
rm -rf %{py3dir}
3408d20
cp -a . %{py3dir}
3408d20
%endif
3408d20
3408d20
%build
3408d20
%{__python2} setup.py build
3408d20
3408d20
%if %{with python3}
3408d20
pushd %{py3dir}
3408d20
%{__python3} setup.py build
3408d20
popd
3408d20
%endif
3408d20
3408d20
%install
3408d20
%{__python2} setup.py install --skip-build --root %{buildroot}
3408d20
3408d20
%if %{with python3}
3408d20
pushd %{py3dir}
3408d20
%{__python3} setup.py install --skip-build --root %{buildroot}
3408d20
popd
3408d20
%endif
3408d20
3408d20
%files
3408d20
%doc README.rst LICENSE
3408d20
%{python2_sitelib}/%{module_name}
3408d20
%{python2_sitelib}/%{module_name}*.egg-info
3408d20
%{_bindir}/pudb
3408d20
3408d20
%if %{with python3}
3408d20
%files -n python3-%{upstream_name}
3408d20
%doc README.rst LICENSE
3408d20
%{python3_sitelib}/%{module_name}
3408d20
%{python3_sitelib}/%{module_name}*.egg-info
3408d20
%{_bindir}/pudb3
3408d20
%endif
3408d20
3408d20
%changelog
246a8eb
* Sat Mar 15 2014 Dhiru Kholia <dhiru@openwall.com> - 2014.1-1
246a8eb
- update to pudb-2014.1
246a8eb
Dhiru Kholia 4ca5bc3
* Mon Dec 09 2013 Dhiru Kholia <dhiru@openwall.com> - 2013.5.1-1
Dhiru Kholia 4ca5bc3
- update to pudb-2013.5.1
Dhiru Kholia 4ca5bc3
b1a588b
* Wed Nov 13 2013 Dhiru Kholia <dhiru@openwall.com> - 2013.4-1
b1a588b
- update to pudb-2013.4
b1a588b
3408d20
* Tue Sep 10 2013 Dhiru Kholia <dhiru@openwall.com> - 2013.3.6-2
3408d20
- replaced {python_sitelib} with {python2_sitelib}
3408d20
3408d20
* Fri Sep 06 2013 Dhiru Kholia <dhiru@openwall.com> - 2013.3.6-1
3408d20
- update to upstream release 2013.3.6
3408d20
3408d20
* Fri Sep 06 2013 Dhiru Kholia <dhiru@openwall.com> - 2013.3.5-5
3408d20
- replaced {__python} with {__python2}
3408d20
3408d20
* Thu Sep 05 2013 Dhiru Kholia <dhiru@openwall.com> - 2013.3.5-4
3408d20
- make layout of install section consistent with that of build section
3408d20
3408d20
* Thu Sep 05 2013 Dhiru Kholia <dhiru@openwall.com> - 2013.3.5-3
3408d20
- removed the unnecessary attr directive
3408d20
- fixed the location of the sed command invocation
3408d20
3408d20
* Thu Sep 05 2013 Dhiru Kholia <dhiru@openwall.com> - 2013.3.5-2
3408d20
- implemented initial fixes suggested in BZ #1004257
3408d20
- removed unused EL5 support, removed invalid BuildRoot, fixed BuildRequires
3408d20
3408d20
* Wed Sep 04 2013 Dhiru Kholia <dhiru@openwall.com> - 2013.3.5-1
3408d20
- initial version