[packages/python-rpdb] - initial
arekm
arekm at pld-linux.org
Sun Feb 23 16:57:45 CET 2014
commit 9070e283bf75dbf46f5f3e8d34206dd4c2040e21
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Sun Feb 23 16:57:33 2014 +0100
- initial
python-rpdb.spec | 94 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 94 insertions(+)
---
diff --git a/python-rpdb.spec b/python-rpdb.spec
new file mode 100644
index 0000000..24426e4
--- /dev/null
+++ b/python-rpdb.spec
@@ -0,0 +1,94 @@
+#
+# Conditional build:
+%bcond_without python2 # Python 2.x module
+%bcond_without python3 # Python 3.x module
+#
+%define module rpdb
+#
+Summary: pdb wrapper with remote access via tcp socket
+Name: python-rpdb
+Version: 0.1.3
+Release: 1
+License: ?
+Group: Development/Languages/Python
+Source0: https://pypi.python.org/packages/source/r/rpdb/rpdb-%{version}.tar.gz
+# Source0-md5: 4f350f523446a9100395d41b0b05c6cb
+URL: https://pypi.python.org/pypi/rpdb/
+%if %{with python2}
+BuildRequires: python-devel
+BuildRequires: python-modules
+Requires: python
+%endif
+%if %{with python3}
+BuildRequires: python3-2to3
+BuildRequires: python3-devel
+BuildRequires: python3-modules
+%endif
+BuildRequires: rpm-pythonprov
+Requires: python-devel-src
+BuildArch: noarch
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+A wrapper around pdb that will re-route stdin and stdout to a socket
+handler.
+
+%package -n python3-%{module}
+Summary: pdb wrapper with remote access via tcp socket
+Version: 0.1.3
+Release: 1
+Group: Libraries/Python
+Requires: python3
+Requires: python3-devel-tools
+
+%description -n python3-%{module}
+A wrapper around pdb that will re-route stdin and stdout to a socket
+handler.
+
+%prep
+%setup -q -n %{module}-%{version}
+
+%build
+%if %{with python2}
+%{__python} ./setup.py build --build-base py2
+%endif
+%if %{with python3}
+%{__python3} ./setup.py build --build-base py3
+%endif
+
+%install
+rm -rf $RPM_BUILD_ROOT
+%if %{with python2}
+%{__python} ./setup.py build \
+ --build-base py2 \
+ install \
+ --optimize 2 \
+ --root=$RPM_BUILD_ROOT
+%endif
+%if %{with python3}
+install -d $RPM_BUILD_ROOT%{_examplesdir}/python3-%{module}-%{version}
+%{__python3} ./setup.py build \
+ --build-base py3 \
+ install \
+ --optimize 2 \
+ --root=$RPM_BUILD_ROOT
+%endif
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%if %{with python2}
+%files
+%defattr(644,root,root,755)
+%doc PKG-INFO
+%{py_sitescriptdir}/%{module}
+%{py_sitescriptdir}/*egg-info
+%endif
+
+%if %{with python3}
+%files -n python3-%{module}
+%defattr(644,root,root,755)
+%doc PKG-INFO
+%{py3_sitescriptdir}/%{module}
+%{py3_sitescriptdir}/*egg-info
+%endif
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python-rpdb.git/commitdiff/9070e283bf75dbf46f5f3e8d34206dd4c2040e21
More information about the pld-cvs-commit
mailing list