diff --git a/.gitignore b/.gitignore index e69de29..5104dfe 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/0.1.5.tar.gz diff --git a/python-rpdb.spec b/python-rpdb.spec new file mode 100644 index 0000000..83d99bb --- /dev/null +++ b/python-rpdb.spec @@ -0,0 +1,76 @@ +%global srcname rpdb +%global sum A wrapper around pdb allowing remote debugging + + +Name: python-%{srcname} +Version: 0.1.5 +Release: 2%{?dist} +Summary: %{sum} +License: BSD +URL: https://github.com/tamentis/%{srcname} +Source0: https://github.com/tamentis/%{srcname}/archive/%{version}.tar.gz +Patch0: setup.py.encoding.patch +BuildArch: noarch +BuildRequires: python2-devel python3-devel + + +%description +A wrapper around pdb allowing remote debugging via netcat or telnet. +This is especially useful in a Tomcat/Jython environment where little +debugging tools are available. + + +%package -n python2-%{srcname} +Summary: %{sum} +%{?python_provide:%python_provide python2-%{srcname}} + +%description -n python2-%{srcname} +A wrapper around pdb allowing remote debugging via netcat or telnet. +This is especially useful in a Tomcat/Jython environment where little +debugging tools are available. + + +%package -n python3-%{srcname} +Summary: %{sum} +%{?python_provide:%python_provide python3-%{srcname}} + +%description -n python3-%{srcname} +A wrapper around pdb allowing remote debugging via netcat or telnet. +This is especially useful in a Tomcat/Jython environment where little +debugging tools are available. + + +%prep +%autosetup -n %{srcname}-%{version} + + +%build +%py2_build +%py3_build + + +%install +%py2_install +%py3_install + + +%files -n python2-%{srcname} +%license LICENSE.txt +%doc README.rst +%{python2_sitelib}/%{srcname} +%{python2_sitelib}/*.egg-info + + +%files -n python3-%{srcname} +%license LICENSE.txt +%doc README.rst +%{python3_sitelib}/%{srcname} +%{python3_sitelib}/*.egg-info + + +%changelog +* Mon Nov 23 2015 Randy Barlow 0.1.5-2 +- Include more explicit paths in the files section. + +* Fri Nov 20 2015 Randy Barlow 0.1.5-1 +- Initial release diff --git a/setup.py.encoding.patch b/setup.py.encoding.patch new file mode 100644 index 0000000..b511032 --- /dev/null +++ b/setup.py.encoding.patch @@ -0,0 +1,23 @@ +--- setup.py 2014-10-16 11:03:37.000000000 -0400 ++++ /setup.py 2015-11-21 00:35:29.438352266 -0500 +@@ -1,15 +1,18 @@ +-#!/usr/bin/python ++#!/usr/bin/python3 + + import os + from distutils.core import setup ++from io import open ++ + + here = os.path.abspath(os.path.dirname(__file__)) + try: +- README = open(os.path.join(here, 'README.rst')).read() ++ README = open(os.path.join(here, 'README.rst'), encoding='utf8').read() + CHANGES = open(os.path.join(here, 'CHANGES.txt')).read() + except IOError: + README = CHANGES = '' + ++ + setup( + name="rpdb", + version="0.1.5", diff --git a/sources b/sources index e69de29..8e24d72 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +712f7a6b9c5e584d70ecf65eb170f6d0 0.1.5.tar.gz