python-pexpect/python-pexpect-2.1.patch

65 lines
1.8 KiB
Diff
Raw Normal View History

diff -uNr MANIFEST.in MANIFEST.in
--- MANIFEST.in 1969-12-31 19:00:00.000000000 -0500
+++ MANIFEST.in 2007-01-17 17:17:01.000000000 -0500
@@ -0,0 +1,15 @@
+include ANSI.py
+include fdpexpect.py
+include FSM.py
+include INSTALL
+include LICENSE
+include Makefile
+include MANIFEST.in
+include pexpect.py
+include pxssh.py
+include PKG-INFO
+include README
+include screen.py
+include setup.py
+recursive-include doc *
+recursive-include examples *
diff -uNr setup.py setup.py
--- setup.py 2006-05-31 23:16:08.000000000 -0400
+++ setup.py 2007-02-21 14:08:34.000000000 -0500
@@ -3,7 +3,27 @@
$Date: 2006-05-30 18:00:23 -0700 (Tue, 30 May 2006) $
'''
from distutils.core import setup
-setup (name='pexpect',
+from distutils.command.bdist_rpm import bdist_rpm
+
+NAME = "python-pexpect"
+
+def getdoc():
+ import os
+ result = ['INSTALL','LICENSE','README','PKG-INFO']
+ list = os.listdir(os.path.join(os.curdir, 'doc'))
+ for file in list:
+ result.append(os.path.join('doc', file))
+ return result
+
+def getexamples():
+ import os
+ result = []
+ list = os.listdir(os.path.join(os.curdir, 'examples'))
+ for file in list:
+ result.append(os.path.join('examples', file))
+ return result
+
+setup (name=NAME,
version='2.1',
py_modules=['pexpect', 'pxssh', 'fdpexpect'],
description='Pexpect is a pure Python Expect. It allows easy control of other applications.',
@@ -12,6 +32,12 @@
url='http://pexpect.sourceforge.net/',
license='MIT license',
platforms='UNIX',
+ data_files = [("share/doc/packages/"+NAME, getdoc()),
+ ("share/doc/packages/"+NAME+"/examples",getexamples())],
+ cmdclass = {
+ 'bdist_rpm': bdist_rpm
+ }
+
)
# classifiers = [