|
|
10e601 |
%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
|
|
|
10e601 |
|
|
|
10e601 |
Summary: Pure Python Expect-like module
|
|
|
10e601 |
Name: pexpect
|
|
|
10e601 |
Version: 2.3
|
|
|
3a2a55 |
Release: 11%{?dist}
|
|
|
10e601 |
License: MIT
|
|
|
10e601 |
Group: Development/Languages
|
|
|
10e601 |
URL: http://pexpect.sourceforge.net/
|
|
|
10e601 |
Source: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
|
|
|
10e601 |
BuildRequires: python-devel
|
|
|
10e601 |
BuildArch: noarch
|
|
|
10e601 |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
10e601 |
|
|
|
10e601 |
Patch0: pexpect-ssh.patch
|
|
|
10e601 |
|
|
|
10e601 |
%description
|
|
|
10e601 |
Pexpect is a pure Python module for spawning child applications; controlling
|
|
|
10e601 |
them; and responding to expected patterns in their output. Pexpect works like
|
|
|
10e601 |
Don Libes' Expect. Pexpect allows your script to spawn a child application and
|
|
|
10e601 |
control it as if a human were typing commands.
|
|
|
10e601 |
|
|
|
10e601 |
Pexpect can be used for automating interactive applications such as ssh, ftp,
|
|
|
10e601 |
passwd, telnet, etc. It can be used to automate setup scripts for duplicating
|
|
|
10e601 |
software package installations on different servers. And it can be used for
|
|
|
10e601 |
automated software testing. Pexpect is in the spirit of Don Libes' Expect, but
|
|
|
10e601 |
Pexpect is pure Python. Unlike other Expect-like modules for Python, Pexpect
|
|
|
10e601 |
does not require TCL or Expect nor does it require C extensions to be compiled.
|
|
|
10e601 |
It should work on any platform that supports the standard Python pty module.
|
|
|
10e601 |
|
|
|
10e601 |
%prep
|
|
|
10e601 |
%setup -q
|
|
|
10e601 |
%patch0 -p2 -b .ssh
|
|
|
10e601 |
|
|
|
10e601 |
%build
|
|
|
10e601 |
%{__python} setup.py build
|
|
|
10e601 |
|
|
|
10e601 |
%install
|
|
|
10e601 |
rm -rf $RPM_BUILD_ROOT
|
|
|
10e601 |
%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
|
|
|
10e601 |
|
|
|
10e601 |
# Correct some permissions
|
|
|
10e601 |
find examples -type f -exec chmod a-x \{\} \;
|
|
|
10e601 |
chmod 755 $RPM_BUILD_ROOT%{python_sitelib}/FSM.py
|
|
|
10e601 |
|
|
|
10e601 |
%clean
|
|
|
10e601 |
rm -rf $RPM_BUILD_ROOT
|
|
|
10e601 |
|
|
|
10e601 |
%files
|
|
|
10e601 |
%defattr(-,root,root)
|
|
|
10e601 |
%doc README doc examples LICENSE
|
|
|
10e601 |
%{python_sitelib}/*
|
|
|
10e601 |
|
|
|
10e601 |
%changelog
|
|
|
3a2a55 |
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 2.3-11
|
|
|
3a2a55 |
- Mass rebuild 2013-12-27
|
|
|
3a2a55 |
|
|
|
10e601 |
* Tue Jul 09 2013 Marek Grac - 2.3-10
|
|
|
10e601 |
- Fix issue with pxssh and timeout
|
|
|
10e601 |
Resolves: rhbz#976504
|
|
|
10e601 |
|
|
|
10e601 |
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.3-9
|
|
|
10e601 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
10e601 |
|
|
|
10e601 |
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.3-8
|
|
|
10e601 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
10e601 |
|
|
|
10e601 |
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.3-7
|
|
|
10e601 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
10e601 |
|
|
|
10e601 |
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.3-6
|
|
|
10e601 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
10e601 |
|
|
|
10e601 |
* Wed Jul 21 2010 David Malcolm <dmalcolm@redhat.com> - 2.3-5
|
|
|
10e601 |
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
|
|
|
10e601 |
|
|
|
10e601 |
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.3-4
|
|
|
10e601 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
10e601 |
|
|
|
10e601 |
* Mon Feb 23 2009 Robert Scheck <robert@fedoraproject.org> 2.3-3
|
|
|
10e601 |
- Rebuild for gcc 4.4 and rpm 4.6
|
|
|
10e601 |
|
|
|
10e601 |
* Fri Dec 5 2008 Jeremy Katz <katzj@redhat.com> - 2.3-2
|
|
|
10e601 |
- Rebuild for python 2.6
|
|
|
10e601 |
|
|
|
10e601 |
* Tue Jan 08 2008 Robert Scheck <robert@fedoraproject.org> 2.3-1
|
|
|
10e601 |
- Upgrade to 2.3
|
|
|
10e601 |
- Updated the source URL to match with the guidelines
|
|
|
10e601 |
|
|
|
10e601 |
* Wed Aug 29 2007 Robert Scheck <robert@fedoraproject.org> 2.1-5
|
|
|
10e601 |
- Rebuilt (and some minor spec file tweaks)
|
|
|
10e601 |
|
|
|
10e601 |
* Sat Dec 09 2006 Toshio Kuratomi <toshio@tiki-lounge.com> - 2.1-4
|
|
|
10e601 |
- Bump and rebuild because I forgot to cvs up before the last build.
|
|
|
10e601 |
|
|
|
10e601 |
* Sat Dec 09 2006 Toshio Kuratomi <toshio@tiki-lounge.com> - 2.1-3
|
|
|
10e601 |
- Bump and rebuild for python 2.5 on devel.
|
|
|
10e601 |
- Add BR: python-devel as it provides a header necessary for python modules
|
|
|
10e601 |
on python 2.5.
|
|
|
10e601 |
|
|
|
10e601 |
* Fri Sep 01 2006 Toshio Kuratomi <toshio@tiki-lounge.com> - 2.1-2
|
|
|
10e601 |
- Remove pyver define as it's not needed with the automatic python(abi).
|
|
|
10e601 |
- Stop ghosting .pyos.
|
|
|
10e601 |
- Let automatic python compilation take care of creating pyos.
|
|
|
10e601 |
- Rebuild for FC6.
|
|
|
10e601 |
|
|
|
10e601 |
* Mon Jul 17 2006 Toshio Kuratomi <toshio@tiki-lounge.com> - 2.1-1
|
|
|
10e601 |
- Update to 2.1.
|
|
|
10e601 |
|
|
|
10e601 |
* Thu Feb 16 2006 Toshio Kuratomi <toshio@tiki-lounge.com> - 2.0-2
|
|
|
10e601 |
- Bump and rebuild for FC5.
|
|
|
10e601 |
- Convert from python-abi to python(abi) requires.
|
|
|
10e601 |
|
|
|
10e601 |
* Thu Nov 17 2005 Toshio Kuratomi <toshio@tiki-lounge.com> - 2.0-1
|
|
|
10e601 |
- Update to 2.0.
|
|
|
10e601 |
|
|
|
10e601 |
* Sat Sep 3 2005 Toshio Kuratomi <toshio@tiki-lounge.com> 0.99999b-2
|
|
|
10e601 |
- Add LICENSE File.
|
|
|
10e601 |
- Make noarch.
|
|
|
10e601 |
- Remove executable permissions from the modules copied to examples.
|
|
|
10e601 |
|
|
|
10e601 |
* Fri Sep 2 2005 Toshio Kuratomi <toshio@tiki-lounge.com> 0.99999b
|
|
|
10e601 |
- Update to version 0.99999b.
|
|
|
10e601 |
- Add dist tag.
|
|
|
10e601 |
|
|
|
10e601 |
* Fri Apr 7 2005 Michael Schwendt <mschwendt[AT]users.sf.net>
|
|
|
10e601 |
- rebuilt
|
|
|
10e601 |
|
|
|
10e601 |
* Thu Feb 03 2005 Toshio Kuratomi <toshio@tiki-lounge.com> 0.999-2
|
|
|
10e601 |
- Use python_sitelib macro to resolve build issues on x86_64.
|
|
|
10e601 |
- %%ghost *.pyo
|
|
|
10e601 |
- Install ANSI.py, screen.py, and FSM.py into the examples. These are intended
|
|
|
10e601 |
to suplement pexpect eventually but they are currently much less robust and
|
|
|
10e601 |
not installed to by default. But they are needed by some examples.
|
|
|
10e601 |
- Use __python macro in build/install for consistency.
|
|
|
10e601 |
- Add --skip-build to the invocation of setup.py in install.
|
|
|
10e601 |
|
|
|
10e601 |
* Mon May 31 2004 Panu Matilainen <pmatilai@welho.com> 0.999-0.fdr.1
|
|
|
10e601 |
- get rid of distrel munging, buildsys does that...
|
|
|
10e601 |
- update to 0.999
|
|
|
10e601 |
- update doc and example tarballs
|
|
|
10e601 |
- fix build on python <> 2.2
|
|
|
10e601 |
- use -O1 in install to generate .pyo files instead of manually creating the files
|
|
|
10e601 |
- require python-abi = pyver to get dependencies right
|
|
|
10e601 |
|
|
|
10e601 |
* Sun Jul 27 2003 Panu Matilainen <pmatilai@welho.com> 0.98-0.fdr.3
|
|
|
10e601 |
- own .pyo files too as suggested by Ville (#517)
|
|
|
10e601 |
|
|
|
10e601 |
* Sat Jul 26 2003 Panu Matilainen <pmatilai@welho.com> 0.98-0.fdr.2
|
|
|
10e601 |
- fixes by Ville (bug #517) applied
|
|
|
10e601 |
|
|
|
10e601 |
* Sat Jul 26 2003 Panu Matilainen <pmatilai@welho.com>
|
|
|
10e601 |
- Initial Fedora packaging
|
|
|
10e601 |
|