diff options
author | cvsextras <cvsextras@fedoraproject.org> | 2004-11-08 05:12:14 +0000 |
---|---|---|
committer | cvsextras <cvsextras@fedoraproject.org> | 2004-11-08 05:12:14 +0000 |
commit | 6ee8856b3a2609f6dc45b4cd1d13e4ec4ae1f5cf (patch) | |
tree | d525871ee8d73e620c5b022ad2312ec535f3ced7 | |
parent | 72f81cd47c95fd3d24384565cc6fafdeccbb4bf6 (diff) | |
download | python-pexpect-6ee8856b3a2609f6dc45b4cd1d13e4ec4ae1f5cf.tar.gz python-pexpect-6ee8856b3a2609f6dc45b4cd1d13e4ec4ae1f5cf.tar.xz python-pexpect-6ee8856b3a2609f6dc45b4cd1d13e4ec4ae1f5cf.zip |
auto-import changelog data from pexpect-0.98-0.fdr.3.rh80.src.rpm
Sun Jul 27 2003 Panu Matilainen <pmatilai@welho.com> 0.98-0.fdr.3
- own .pyo files too as suggested by Ville (#517)
Sat Jul 26 2003 Panu Matilainen <pmatilai@welho.com> 0.98-0.fdr.2
- fixes by Ville (bug #517) applied
Sat Jul 26 2003 Panu Matilainen <pmatilai@welho.com>
- Initial Fedora packaging
-rw-r--r-- | .cvsignore | 3 | ||||
-rw-r--r-- | pexpect.spec | 77 | ||||
-rw-r--r-- | sources | 3 |
3 files changed, 83 insertions, 0 deletions
@@ -0,0 +1,3 @@ +pexpect-0.98.tgz +pexpect-doc.tgz +pexpect-examples.tgz diff --git a/pexpect.spec b/pexpect.spec new file mode 100644 index 0000000..e5462af --- /dev/null +++ b/pexpect.spec @@ -0,0 +1,77 @@ +%{!?rhrel:%define rhrel %(cut -d' ' -f5 /etc/redhat-release )} +%if "%{rhrel}" == "9" +%define distrel rh90 +%else +%define distrel rh%(echo %{rhrel} | sed 's/\\.//') +%endif + +Summary: Expect module for Python +Name: pexpect +Version: 0.98 +Release: 0.fdr.3.%{distrel} +License: PSFL +Group: Development/Languages +URL: http://pexpect.sourceforge.net +Source: http://download.sourceforge.net/pexpect/%{name}-%{version}.tgz +Source1: http://download.sourceforge.net/pexpect/pexpect-doc.tgz +Source2: http://download.sourceforge.net/pexpect/pexpect-examples.tgz +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root +Requires: python >= 0:2.2 +BuildRequires: python-devel >= 0:2.2 + +%description +Pexpect is a pure Python module for spawning child applications; controlling +them; and responding to expected patterns in their output. Pexpect works like +Don Libes' Expect. Pexpect allows your script to spawn a child application and +control it as if a human were typing commands. + +Pexpect can be used for automating interactive applications such as ssh, ftp, +passwd, telnet, etc. It can be used to a automate setup scripts for +duplicating software package installations on different servers. It can be +used for automated software testing. Pexpect is in the spirit of Don Libes' +Expect, but Pexpect is pure Python. Unlike other Expect-like modules for +Python, Pexpect does not require TCL or Expect nor does it require C +extensions to be compiled. It should work on any platform that supports the +standard Python pty module. + +%prep +%setup -q -a1 -a2 +rm -rf $(find . -type d -name CVS) + +%build +python setup.py build + +%install +python setup.py install --root $RPM_BUILD_ROOT + +touch %{name}-ghost.files +for file in $(find $RPM_BUILD_ROOT -type f -name "*.py"); do + for suffix in c o; do + if [ ! -e "$file$suffix" ]; then + touch "$file$suffix" + echo "%ghost $file$suffix" | sed "s|$RPM_BUILD_ROOT||" \ + >> %{name}-ghost.files + fi + done +done + +%clean +rm -rf $RPM_BUILD_ROOT + +%files -f %{name}-ghost.files +%defattr(-,root,root,-) +%{_libdir}/python2.2/site-packages/pexpect.py +%{_libdir}/python2.2/site-packages/pexpect.pyc + +%doc README.txt doc examples + +%changelog +* Sun Jul 27 2003 Panu Matilainen <pmatilai@welho.com> 0.98-0.fdr.3 +- own .pyo files too as suggested by Ville (#517) + +* Sat Jul 26 2003 Panu Matilainen <pmatilai@welho.com> 0.98-0.fdr.2 +- fixes by Ville (bug #517) applied + +* Sat Jul 26 2003 Panu Matilainen <pmatilai@welho.com> +- Initial Fedora packaging + @@ -0,0 +1,3 @@ +914c2a5225e37dd6c0c73914db2fa4f1 pexpect-0.98.tgz +de9f0ed8a563fc0ea566055d000779ce pexpect-doc.tgz +be0086d3f55dd8690cba7381f9e9be14 pexpect-examples.tgz |