3 %bcond_without python2 # Python 2.x module
4 %bcond_without python3 # Python 3.x module
7 Summary: pdb wrapper with remote access via tcp socket
12 Group: Development/Languages/Python
13 Source0: https://pypi.python.org/packages/source/r/rpdb/rpdb-%{version}.tar.gz
14 # Source0-md5: 4f350f523446a9100395d41b0b05c6cb
15 URL: https://pypi.python.org/pypi/rpdb/
16 BuildRequires: rpm-pythonprov
17 BuildRequires: rpmbuild(macros) >= 1.710
19 BuildRequires: python-devel
20 BuildRequires: python-modules
23 BuildRequires: python3-2to3
24 BuildRequires: python3-devel
25 BuildRequires: python3-modules
28 Requires: python-devel-src
30 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
33 A wrapper around pdb that will re-route stdin and stdout to a socket
36 %package -n python3-%{module}
37 Summary: pdb wrapper with remote access via tcp socket
38 Group: Libraries/Python
40 Requires: python3-devel-tools
42 %description -n python3-%{module}
43 A wrapper around pdb that will re-route stdin and stdout to a socket
47 %setup -q -n %{module}-%{version}
58 rm -rf $RPM_BUILD_ROOT
66 install -d $RPM_BUILD_ROOT%{_examplesdir}/python3-%{module}-%{version}
71 rm -rf $RPM_BUILD_ROOT
75 %defattr(644,root,root,755)
77 %{py_sitescriptdir}/rpdb
78 %{py_sitescriptdir}/rpdb-%{version}-py*.egg-info
82 %files -n python3-%{module}
83 %defattr(644,root,root,755)
85 %{py3_sitescriptdir}/rpdb
86 %{py3_sitescriptdir}/rpdb-%{version}-py*.egg-info