|
|
049fe61 |
%if 0%{?fedora}
|
|
|
049fe61 |
%global with_python3 1
|
|
|
049fe61 |
%endif
|
|
|
049fe61 |
|
|
|
049fe61 |
%global upstream_name pudb
|
|
|
049fe61 |
%global module_name pudb
|
|
|
049fe61 |
|
|
|
049fe61 |
Name: python-pudb
|
|
|
3985f48 |
Version: 2015.3
|
|
|
bf3157e |
Release: 7%{?dist}
|
|
|
049fe61 |
Summary: A full-screen, console-based Python debugger
|
|
|
049fe61 |
License: MIT
|
|
|
049fe61 |
URL: http://mathema.tician.de/software/pudb
|
|
|
049fe61 |
Source0: http://pypi.python.org/packages/source/p/%{upstream_name}/%{upstream_name}-%{version}.tar.gz
|
|
|
049fe61 |
|
|
|
049fe61 |
BuildArch: noarch
|
|
|
049fe61 |
BuildRequires: python2-devel
|
|
|
049fe61 |
BuildRequires: python-setuptools
|
|
|
049fe61 |
Requires: python-urwid
|
|
|
049fe61 |
Requires: python-pygments
|
|
|
049fe61 |
|
|
|
049fe61 |
%description
|
|
|
049fe61 |
PuDB is a full-screen, console-based visual debugger for Python.
|
|
|
049fe61 |
|
|
|
049fe61 |
Its goal is to provide all the niceties of modern GUI-based debuggers in a more
|
|
|
049fe61 |
lightweight and keyboard-friendly package. PuDB allows you to debug code right
|
|
|
049fe61 |
where you write and test it--in a terminal. If you've worked with the excellent
|
|
|
049fe61 |
(but nowadays ancient) DOS-based Turbo Pascal or C tools, PuDB's UI might look
|
|
|
049fe61 |
familiar.
|
|
|
049fe61 |
|
|
|
049fe61 |
%if 0%{?with_python3}
|
|
|
049fe61 |
%package -n python3-%{upstream_name}
|
|
|
049fe61 |
Summary: A full-screen, console-based Python debugger
|
|
|
049fe61 |
|
|
|
049fe61 |
BuildRequires: python3-devel
|
|
|
049fe61 |
BuildRequires: python3-setuptools
|
|
|
049fe61 |
Requires: python3-urwid
|
|
|
049fe61 |
Requires: python3-pygments
|
|
|
049fe61 |
|
|
|
049fe61 |
%description -n python3-%{upstream_name}
|
|
|
049fe61 |
PuDB is a full-screen, console-based visual debugger for Python.
|
|
|
049fe61 |
|
|
|
049fe61 |
Its goal is to provide all the niceties of modern GUI-based debuggers in a more
|
|
|
049fe61 |
lightweight and keyboard-friendly package. PuDB allows you to debug code right
|
|
|
049fe61 |
where you write and test it--in a terminal. If you've worked with the excellent
|
|
|
049fe61 |
(but nowadays ancient) DOS-based Turbo Pascal or C tools, PuDB's UI might look
|
|
|
049fe61 |
familiar.
|
|
|
049fe61 |
%endif # if with_python3
|
|
|
049fe61 |
|
|
|
049fe61 |
%prep
|
|
|
049fe61 |
%setup -q -n %{upstream_name}-%{version}
|
|
|
049fe61 |
rm -rf %{module_name}.egg-info
|
|
|
049fe61 |
|
|
|
049fe61 |
sed -i '1{\@^#! /usr/bin/env python@d}' pudb/debugger.py
|
|
|
049fe61 |
|
|
|
049fe61 |
%if %{with python3}
|
|
|
049fe61 |
rm -rf %{py3dir}
|
|
|
049fe61 |
cp -a . %{py3dir}
|
|
|
049fe61 |
%endif
|
|
|
049fe61 |
|
|
|
049fe61 |
%build
|
|
|
049fe61 |
%{__python2} setup.py build
|
|
|
049fe61 |
|
|
|
049fe61 |
%if %{with python3}
|
|
|
049fe61 |
pushd %{py3dir}
|
|
|
049fe61 |
%{__python3} setup.py build
|
|
|
049fe61 |
popd
|
|
|
049fe61 |
%endif
|
|
|
049fe61 |
|
|
|
049fe61 |
%install
|
|
|
049fe61 |
%{__python2} setup.py install --skip-build --root %{buildroot}
|
|
|
049fe61 |
|
|
|
049fe61 |
%if %{with python3}
|
|
|
049fe61 |
pushd %{py3dir}
|
|
|
049fe61 |
%{__python3} setup.py install --skip-build --root %{buildroot}
|
|
|
049fe61 |
popd
|
|
|
049fe61 |
%endif
|
|
|
049fe61 |
|
|
|
049fe61 |
%files
|
|
|
049fe61 |
%doc README.rst LICENSE
|
|
|
049fe61 |
%{python2_sitelib}/%{module_name}
|
|
|
049fe61 |
%{python2_sitelib}/%{module_name}*.egg-info
|
|
|
049fe61 |
%{_bindir}/pudb
|
|
|
049fe61 |
|
|
|
049fe61 |
%if %{with python3}
|
|
|
049fe61 |
%files -n python3-%{upstream_name}
|
|
|
049fe61 |
%doc README.rst LICENSE
|
|
|
049fe61 |
%{python3_sitelib}/%{module_name}
|
|
|
049fe61 |
%{python3_sitelib}/%{module_name}*.egg-info
|
|
|
049fe61 |
%{_bindir}/pudb3
|
|
|
049fe61 |
%endif
|
|
|
049fe61 |
|
|
|
049fe61 |
%changelog
|
|
|
bf3157e |
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2015.3-7
|
|
|
bf3157e |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
bf3157e |
|
|
|
76d9517 |
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2015.3-6
|
|
|
76d9517 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
76d9517 |
|
|
|
1e0d2e8 |
* Mon Dec 19 2016 Miro HronĨok <mhroncok@redhat.com> - 2015.3-5
|
|
|
1e0d2e8 |
- Rebuild for Python 3.6
|
|
|
1e0d2e8 |
|
|
|
b5af84e |
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2015.3-4
|
|
|
b5af84e |
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
|
|
|
b5af84e |
|
|
|
9312b38 |
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2015.3-3
|
|
|
9312b38 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
9312b38 |
|
|
|
f6efaa4 |
* Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2015.3-2
|
|
|
f6efaa4 |
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
|
|
|
f6efaa4 |
|
|
|
3985f48 |
* Wed Oct 14 2015 Dhiru Kholia <dhiru@openwall.com> - 2015.3-1
|
|
|
3985f48 |
- update to pudb-2015.3
|
|
|
3985f48 |
|
|
|
a397346 |
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2014.1-4
|
|
|
a397346 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
a397346 |
|
|
|
925df8a |
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2014.1-3
|
|
|
925df8a |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
925df8a |
|
|
|
9cde55d |
* Wed May 28 2014 Kalev Lember <kalevlember@gmail.com> - 2014.1-2
|
|
|
9cde55d |
- Rebuilt for https://fedoraproject.org/wiki/Changes/Python_3.4
|
|
|
9cde55d |
|
|
|
4c94fd2 |
* Sat Mar 15 2014 Dhiru Kholia <dhiru@openwall.com> - 2014.1-1
|
|
|
4c94fd2 |
- update to pudb-2014.1
|
|
|
4c94fd2 |
|
|
Dhiru Kholia |
3cd7652 |
* Mon Dec 09 2013 Dhiru Kholia <dhiru@openwall.com> - 2013.5.1-1
|
|
Dhiru Kholia |
3cd7652 |
- update to pudb-2013.5.1
|
|
Dhiru Kholia |
3cd7652 |
|
|
|
d2b92bd |
* Wed Nov 13 2013 Dhiru Kholia <dhiru@openwall.com> - 2013.4-1
|
|
|
d2b92bd |
- update to pudb-2013.4
|
|
|
d2b92bd |
|
|
|
049fe61 |
* Tue Sep 10 2013 Dhiru Kholia <dhiru@openwall.com> - 2013.3.6-2
|
|
|
049fe61 |
- replaced {python_sitelib} with {python2_sitelib}
|
|
|
049fe61 |
|
|
|
049fe61 |
* Fri Sep 06 2013 Dhiru Kholia <dhiru@openwall.com> - 2013.3.6-1
|
|
|
049fe61 |
- update to upstream release 2013.3.6
|
|
|
049fe61 |
|
|
|
049fe61 |
* Fri Sep 06 2013 Dhiru Kholia <dhiru@openwall.com> - 2013.3.5-5
|
|
|
049fe61 |
- replaced {__python} with {__python2}
|
|
|
049fe61 |
|
|
|
049fe61 |
* Thu Sep 05 2013 Dhiru Kholia <dhiru@openwall.com> - 2013.3.5-4
|
|
|
049fe61 |
- make layout of install section consistent with that of build section
|
|
|
049fe61 |
|
|
|
049fe61 |
* Thu Sep 05 2013 Dhiru Kholia <dhiru@openwall.com> - 2013.3.5-3
|
|
|
049fe61 |
- removed the unnecessary attr directive
|
|
|
049fe61 |
- fixed the location of the sed command invocation
|
|
|
049fe61 |
|
|
|
049fe61 |
* Thu Sep 05 2013 Dhiru Kholia <dhiru@openwall.com> - 2013.3.5-2
|
|
|
049fe61 |
- implemented initial fixes suggested in BZ #1004257
|
|
|
049fe61 |
- removed unused EL5 support, removed invalid BuildRoot, fixed BuildRequires
|
|
|
049fe61 |
|
|
|
049fe61 |
* Wed Sep 04 2013 Dhiru Kholia <dhiru@openwall.com> - 2013.3.5-1
|
|
|
049fe61 |
- initial version
|