|
Andrew McNabb |
336970e |
%if 0%{?fedora} > 15
|
|
Andrew McNabb |
336970e |
%global with_python3 1
|
|
Andrew McNabb |
336970e |
%else
|
|
Andrew McNabb |
336970e |
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print (get_python_lib())")}
|
|
Andrew McNabb |
336970e |
%endif
|
|
Andrew McNabb |
336970e |
|
|
Thomas Spura |
aeace12 |
#global relcand rc3
|
|
Thomas Spura |
7914823 |
|
|
Andrew McNabb |
336970e |
Summary: Unicode-aware Pure Python Expect-like module
|
|
Andrew McNabb |
336970e |
Name: python-pexpect
|
|
Thomas Spura |
7914823 |
Version: 3.0
|
|
Thomas Spura |
aeace12 |
Release: 1%{?dist}
|
|
Andrew McNabb |
336970e |
License: MIT
|
|
Andrew McNabb |
336970e |
Group: Development/Languages
|
|
Thomas Spura |
7914823 |
URL: https://github.com/pexpect/pexpect
|
|
Thomas Spura |
7914823 |
Source0: https://github.com/pexpect/pexpect/releases/download/%{version}%{?relcand}/pexpect-%{version}%{?relcand}.tar.gz
|
|
Andrew McNabb |
336970e |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
Andrew McNabb |
336970e |
|
|
Thomas Spura |
7914823 |
BuildArch: noarch
|
|
Andrew McNabb |
336970e |
BuildRequires: python2-devel python-nose ed
|
|
Andrew McNabb |
336970e |
%if 0%{?with_python3}
|
|
Andrew McNabb |
336970e |
BuildRequires: python3-devel python3-nose
|
|
Andrew McNabb |
336970e |
Provides: pexpect = %{version}-%{release}
|
|
Andrew McNabb |
c0c1611 |
Obsoletes: pexpect <= 2.3-20
|
|
Andrew McNabb |
336970e |
%endif # if with_python3
|
|
Andrew McNabb |
336970e |
|
|
Andrew McNabb |
336970e |
%description
|
|
Andrew McNabb |
336970e |
Pexpect is a pure Python module for spawning child applications; controlling
|
|
Andrew McNabb |
336970e |
them; and responding to expected patterns in their output. Pexpect works like
|
|
Andrew McNabb |
336970e |
Don Libes' Expect. Pexpect allows your script to spawn a child application and
|
|
Andrew McNabb |
336970e |
control it as if a human were typing commands.
|
|
Andrew McNabb |
336970e |
|
|
Andrew McNabb |
336970e |
Pexpect can be used for automating interactive applications such as ssh, ftp,
|
|
Andrew McNabb |
336970e |
passwd, telnet, etc. It can be used to automate setup scripts for duplicating
|
|
Andrew McNabb |
336970e |
software package installations on different servers. And it can be used for
|
|
Andrew McNabb |
336970e |
automated software testing. Pexpect is in the spirit of Don Libes' Expect, but
|
|
Andrew McNabb |
336970e |
Pexpect is pure Python. Unlike other Expect-like modules for Python, Pexpect
|
|
Andrew McNabb |
336970e |
does not require TCL or Expect nor does it require C extensions to be
|
|
Andrew McNabb |
336970e |
compiled. It should work on any platform that supports the standard Python
|
|
Andrew McNabb |
336970e |
pty module.
|
|
Andrew McNabb |
336970e |
|
|
Andrew McNabb |
336970e |
%if 0%{?with_python3}
|
|
Andrew McNabb |
336970e |
%package -n python3-pexpect
|
|
Andrew McNabb |
336970e |
Summary: Unicode-aware Pure Python Expect-like module for Python 3
|
|
Andrew McNabb |
336970e |
Group: Development/Languages
|
|
Andrew McNabb |
336970e |
|
|
Andrew McNabb |
336970e |
%description -n python3-pexpect
|
|
Andrew McNabb |
336970e |
Pexpect is a pure Python module for spawning child applications; controlling
|
|
Andrew McNabb |
336970e |
them; and responding to expected patterns in their output. Pexpect works like
|
|
Andrew McNabb |
336970e |
Don Libes' Expect. Pexpect allows your script to spawn a child application and
|
|
Andrew McNabb |
336970e |
control it as if a human were typing commands. This package contains the
|
|
Andrew McNabb |
336970e |
python3 version of this module.
|
|
Andrew McNabb |
336970e |
|
|
Andrew McNabb |
336970e |
Pexpect can be used for automating interactive applications such as ssh, ftp,
|
|
Andrew McNabb |
336970e |
passwd, telnet, etc. It can be used to automate setup scripts for duplicating
|
|
Andrew McNabb |
336970e |
software package installations on different servers. And it can be used for
|
|
Andrew McNabb |
336970e |
automated software testing. Pexpect is in the spirit of Don Libes' Expect, but
|
|
Andrew McNabb |
336970e |
Pexpect is pure Python. Unlike other Expect-like modules for Python, Pexpect
|
|
Andrew McNabb |
336970e |
does not require TCL or Expect nor does it require C extensions to be
|
|
Andrew McNabb |
336970e |
compiled. It should work on any platform that supports the standard Python
|
|
Andrew McNabb |
336970e |
pty module.
|
|
Andrew McNabb |
336970e |
%endif # with_python3
|
|
Andrew McNabb |
336970e |
|
|
Andrew McNabb |
336970e |
%prep
|
|
Thomas Spura |
7914823 |
%setup -q -n pexpect-%{version}%{?relcand}
|
|
Thomas Spura |
7914823 |
|
|
Thomas Spura |
7914823 |
#sed -i "s/0.1/10.0/g" tests/test_misc.py
|
|
Andrew McNabb |
336970e |
|
|
Andrew McNabb |
336970e |
%if 0%{?with_python3}
|
|
Andrew McNabb |
336970e |
rm -rf %{py3dir}
|
|
Andrew McNabb |
336970e |
cp -a . %{py3dir}
|
|
Andrew McNabb |
336970e |
find %{py3dir} -name '*.py' | xargs sed -i '1s|^#!python|#!%{__python3}|'
|
|
Andrew McNabb |
336970e |
%endif # with_python3
|
|
Andrew McNabb |
336970e |
|
|
Andrew McNabb |
336970e |
%build
|
|
Andrew McNabb |
336970e |
%{__python} setup.py build
|
|
Andrew McNabb |
336970e |
|
|
Andrew McNabb |
336970e |
%if 0%{?with_python3}
|
|
Andrew McNabb |
336970e |
pushd %{py3dir}
|
|
Thomas Spura |
7d31dba |
%{__python3} setup.py build
|
|
Andrew McNabb |
336970e |
popd
|
|
Andrew McNabb |
336970e |
%endif # with_python3
|
|
Andrew McNabb |
336970e |
|
|
Andrew McNabb |
336970e |
%check
|
|
Thomas Spura |
7914823 |
. ./test.env
|
|
Thomas Spura |
7914823 |
./tools/testall.py
|
|
Andrew McNabb |
336970e |
|
|
Andrew McNabb |
336970e |
%if 0%{?with_python3}
|
|
Thomas Spura |
7914823 |
pushd %{py3dir}
|
|
Thomas Spura |
7914823 |
. ./test.env
|
|
Thomas Spura |
7914823 |
%{_bindir}/python3 ./tools/testall.py
|
|
Andrew McNabb |
336970e |
popd
|
|
Andrew McNabb |
336970e |
%endif # with_python3
|
|
Andrew McNabb |
336970e |
|
|
Andrew McNabb |
336970e |
%install
|
|
Andrew McNabb |
336970e |
rm -rf %{buildroot}
|
|
Andrew McNabb |
336970e |
|
|
Andrew McNabb |
336970e |
%if 0%{?with_python3}
|
|
Andrew McNabb |
336970e |
pushd %{py3dir}
|
|
Andrew McNabb |
336970e |
%{__python3} setup.py install --skip-build \
|
|
Thomas Spura |
0e20a2f |
--root %{buildroot} --install-lib %{python3_sitelib}
|
|
Andrew McNabb |
336970e |
|
|
Andrew McNabb |
336970e |
# Correct some permissions
|
|
Andrew McNabb |
336970e |
find examples -type f -exec chmod a-x \{\} \;
|
|
Andrew McNabb |
336970e |
|
|
Andrew McNabb |
336970e |
rm -rf %{buildroot}%{python3_sitelib}/pexpect/tests
|
|
Andrew McNabb |
336970e |
popd
|
|
Andrew McNabb |
336970e |
%endif # with_python3
|
|
Andrew McNabb |
336970e |
|
|
Andrew McNabb |
336970e |
%{__python} setup.py install --skip-build \
|
|
Thomas Spura |
0e20a2f |
--root %{buildroot} --install-lib %{python_sitelib}
|
|
Andrew McNabb |
336970e |
|
|
Andrew McNabb |
336970e |
rm -rf ${buildroot}%{python_sitelib}/setuptools/tests
|
|
Andrew McNabb |
336970e |
|
|
Andrew McNabb |
336970e |
# Correct some permissions
|
|
Andrew McNabb |
336970e |
find examples -type f -exec chmod a-x \{\} \;
|
|
Andrew McNabb |
336970e |
|
|
Andrew McNabb |
336970e |
%clean
|
|
Thomas Spura |
0e20a2f |
rm -rf %{buildroot}
|
|
Andrew McNabb |
336970e |
|
|
Andrew McNabb |
336970e |
%files
|
|
Andrew McNabb |
336970e |
%defattr(-,root,root)
|
|
Thomas Spura |
7914823 |
%doc doc examples LICENSE
|
|
Thomas Spura |
7d31dba |
%{python_sitelib}/*.py*
|
|
Thomas Spura |
7d31dba |
%{python_sitelib}/pexpect/
|
|
Thomas Spura |
7d31dba |
%{python_sitelib}/pexpect-%{version}%{?relcand}-py?.?.egg-info
|
|
Andrew McNabb |
336970e |
%exclude %{python_sitelib}/pexpect/tests/
|
|
Andrew McNabb |
336970e |
|
|
Andrew McNabb |
336970e |
%if 0%{?with_python3}
|
|
Andrew McNabb |
336970e |
%files -n python3-pexpect
|
|
Thomas Spura |
7914823 |
%doc doc examples LICENSE
|
|
Thomas Spura |
7d31dba |
%{python3_sitelib}/*.py
|
|
Thomas Spura |
7d31dba |
%{python3_sitelib}/__pycache__/*
|
|
Thomas Spura |
7d31dba |
%{python3_sitelib}/pexpect/
|
|
Thomas Spura |
7d31dba |
%{python3_sitelib}/pexpect-%{version}%{?relcand}-py?.?.egg-info
|
|
Andrew McNabb |
336970e |
%exclude %{python3_sitelib}/pexpect/tests/
|
|
Andrew McNabb |
336970e |
%endif # with_python3
|
|
Andrew McNabb |
336970e |
|
|
Andrew McNabb |
336970e |
%changelog
|
|
Thomas Spura |
aeace12 |
* Tue Nov 12 2013 Thomas Spura <tomspur@fedoraproject.org> - 3.0-1
|
|
Thomas Spura |
aeace12 |
- update to 3.0
|
|
Thomas Spura |
aeace12 |
|
|
Thomas Spura |
7914823 |
* Wed Oct 30 2013 Thomas Spura <tomspur@fedoraproject.org> - 3.0-0.1
|
|
Thomas Spura |
7914823 |
- new upstream is github/pexpect/pexpect
|
|
Thomas Spura |
7914823 |
- update to rc3
|
|
Thomas Spura |
7914823 |
- build on noarch again
|
|
Thomas Spura |
0e20a2f |
- consistently use %%{buildroot} everywhere
|
|
Thomas Spura |
7d31dba |
- be more explicit in %%files
|
|
Thomas Spura |
7d31dba |
- remove CFLAGS
|
|
Thomas Spura |
7914823 |
|
|
Andrew McNabb |
fe7f39b |
* Thu Sep 05 2013 Andrew McNabb <amcnabb@mcnabbs.org> - 2.5.1-11
|
|
Andrew McNabb |
fe7f39b |
- Fix the name of the arm architecture in ExcludeArch
|
|
Andrew McNabb |
fe7f39b |
|
|
Andrew McNabb |
164fa1a |
* Thu Sep 05 2013 Andrew McNabb <amcnabb@mcnabbs.org> - 2.5.1-10
|
|
Andrew McNabb |
164fa1a |
- Remove noarch because of arm build problems (bug #999174)
|
|
Andrew McNabb |
164fa1a |
|
|
Andrew McNabb |
57911e6 |
* Tue Aug 20 2013 Andrew McNabb <amcnabb@mcnabbs.org> - 2.5.1-9
|
|
Andrew McNabb |
57911e6 |
- Exclude the arm architecture (bug #999174)
|
|
Andrew McNabb |
57911e6 |
|
|
Andrew McNabb |
3ca8c44 |
* Tue Aug 20 2013 Andrew McNabb <amcnabb@mcnabbs.org> - 2.5.1-8
|
|
Andrew McNabb |
1f115c6 |
- Bump the obsoletes version
|
|
Andrew McNabb |
1f115c6 |
|
|
![](https://seccdn.libravatar.org/avatar/f970308d71f3ca61b27e8dd3eff4452513db64aa06f933115f14504cd846b4df?s=16&d=retro) |
1c1a232 |
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.5.1-7
|
|
![](https://seccdn.libravatar.org/avatar/f970308d71f3ca61b27e8dd3eff4452513db64aa06f933115f14504cd846b4df?s=16&d=retro) |
1c1a232 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
![](https://seccdn.libravatar.org/avatar/f970308d71f3ca61b27e8dd3eff4452513db64aa06f933115f14504cd846b4df?s=16&d=retro) |
1c1a232 |
|
|
![](https://seccdn.libravatar.org/avatar/f970308d71f3ca61b27e8dd3eff4452513db64aa06f933115f14504cd846b4df?s=16&d=retro) |
ef77c55 |
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.5.1-6
|
|
![](https://seccdn.libravatar.org/avatar/f970308d71f3ca61b27e8dd3eff4452513db64aa06f933115f14504cd846b4df?s=16&d=retro) |
ef77c55 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
![](https://seccdn.libravatar.org/avatar/f970308d71f3ca61b27e8dd3eff4452513db64aa06f933115f14504cd846b4df?s=16&d=retro) |
ef77c55 |
|
|
Andrew McNabb |
336970e |
* Tue Nov 20 2012 Andrew McNabb <amcnabb@mcnabbs.org> - 2.5.1-5
|
|
Andrew McNabb |
336970e |
- Exclude test scripts from the files list
|
|
Andrew McNabb |
336970e |
|
|
Andrew McNabb |
336970e |
* Tue Nov 20 2012 Andrew McNabb <amcnabb@mcnabbs.org> - 2.5.1-4
|
|
Andrew McNabb |
336970e |
- Moved unit tests to a check section
|
|
Andrew McNabb |
336970e |
|
|
Andrew McNabb |
336970e |
* Tue Nov 20 2012 Andrew McNabb <amcnabb@mcnabbs.org> - 2.5.1-3
|
|
Andrew McNabb |
336970e |
- Added unit tests and fixed metadata fields
|
|
Andrew McNabb |
336970e |
|
|
Andrew McNabb |
336970e |
* Tue Nov 20 2012 Andrew McNabb <amcnabb@mcnabbs.org> - 2.5.1-2
|
|
Andrew McNabb |
336970e |
- Added versions to the obsoletes and provides fields
|
|
Andrew McNabb |
336970e |
|
|
Andrew McNabb |
336970e |
* Tue Nov 20 2012 Andrew McNabb <amcnabb@mcnabbs.org> - 2.5.1-1
|
|
Andrew McNabb |
336970e |
- Updated to version 2.5.1 (pexpect-u fork) and added support for Python 3
|
|
Andrew McNabb |
336970e |
|
|
Andrew McNabb |
336970e |
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.3-6
|
|
Andrew McNabb |
336970e |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
Andrew McNabb |
336970e |
|
|
Andrew McNabb |
336970e |
* Wed Jul 21 2010 David Malcolm <dmalcolm@redhat.com> - 2.3-5
|
|
Andrew McNabb |
336970e |
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
|
|
Andrew McNabb |
336970e |
|
|
Andrew McNabb |
336970e |
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.3-4
|
|
Andrew McNabb |
336970e |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
Andrew McNabb |
336970e |
|
|
Andrew McNabb |
336970e |
* Mon Feb 23 2009 Robert Scheck <robert@fedoraproject.org> 2.3-3
|
|
Andrew McNabb |
336970e |
- Rebuild for gcc 4.4 and rpm 4.6
|
|
Andrew McNabb |
336970e |
|
|
Andrew McNabb |
336970e |
* Fri Dec 5 2008 Jeremy Katz <katzj@redhat.com> - 2.3-2
|
|
Andrew McNabb |
336970e |
- Rebuild for python 2.6
|
|
Andrew McNabb |
336970e |
|
|
Andrew McNabb |
336970e |
* Tue Jan 08 2008 Robert Scheck <robert@fedoraproject.org> 2.3-1
|
|
Andrew McNabb |
336970e |
- Upgrade to 2.3
|
|
Andrew McNabb |
336970e |
- Updated the source URL to match with the guidelines
|
|
Andrew McNabb |
336970e |
|
|
Andrew McNabb |
336970e |
* Wed Aug 29 2007 Robert Scheck <robert@fedoraproject.org> 2.1-5
|
|
Andrew McNabb |
336970e |
- Rebuilt (and some minor spec file tweaks)
|
|
Andrew McNabb |
336970e |
|
|
Andrew McNabb |
336970e |
* Sat Dec 09 2006 Toshio Kuratomi <toshio@tiki-lounge.com> - 2.1-4
|
|
Andrew McNabb |
336970e |
- Bump and rebuild because I forgot to cvs up before the last build.
|
|
Andrew McNabb |
336970e |
|
|
Andrew McNabb |
336970e |
* Sat Dec 09 2006 Toshio Kuratomi <toshio@tiki-lounge.com> - 2.1-3
|
|
Andrew McNabb |
336970e |
- Bump and rebuild for python 2.5 on devel.
|
|
Andrew McNabb |
336970e |
- Add BR: python-devel as it provides a header necessary for python modules
|
|
Andrew McNabb |
336970e |
on python 2.5.
|
|
Andrew McNabb |
336970e |
|
|
Andrew McNabb |
336970e |
* Fri Sep 01 2006 Toshio Kuratomi <toshio@tiki-lounge.com> - 2.1-2
|
|
Andrew McNabb |
336970e |
- Remove pyver define as it's not needed with the automatic python(abi).
|
|
Andrew McNabb |
336970e |
- Stop ghosting .pyos.
|
|
Andrew McNabb |
336970e |
- Let automatic python compilation take care of creating pyos.
|
|
Andrew McNabb |
336970e |
- Rebuild for FC6.
|
|
Andrew McNabb |
336970e |
|
|
Andrew McNabb |
336970e |
* Mon Jul 17 2006 Toshio Kuratomi <toshio@tiki-lounge.com> - 2.1-1
|
|
Andrew McNabb |
336970e |
- Update to 2.1.
|
|
Andrew McNabb |
336970e |
|
|
Andrew McNabb |
336970e |
* Thu Feb 16 2006 Toshio Kuratomi <toshio@tiki-lounge.com> - 2.0-2
|
|
Andrew McNabb |
336970e |
- Bump and rebuild for FC5.
|
|
Andrew McNabb |
336970e |
- Convert from python-abi to python(abi) requires.
|
|
Andrew McNabb |
336970e |
|
|
Andrew McNabb |
336970e |
* Thu Nov 17 2005 Toshio Kuratomi <toshio@tiki-lounge.com> - 2.0-1
|
|
Andrew McNabb |
336970e |
- Update to 2.0.
|
|
Andrew McNabb |
336970e |
|
|
Andrew McNabb |
336970e |
* Sat Sep 3 2005 Toshio Kuratomi <toshio@tiki-lounge.com> 0.99999b-2
|
|
Andrew McNabb |
336970e |
- Add LICENSE File.
|
|
Andrew McNabb |
336970e |
- Make noarch.
|
|
Andrew McNabb |
336970e |
- Remove executable permissions from the modules copied to examples.
|
|
Andrew McNabb |
336970e |
|
|
Andrew McNabb |
336970e |
* Fri Sep 2 2005 Toshio Kuratomi <toshio@tiki-lounge.com> 0.99999b
|
|
Andrew McNabb |
336970e |
- Update to version 0.99999b.
|
|
Andrew McNabb |
336970e |
- Add dist tag.
|
|
Andrew McNabb |
336970e |
|
|
Andrew McNabb |
8f41e5f |
* Thu Apr 7 2005 Michael Schwendt <mschwendt[AT]users.sf.net>
|
|
Andrew McNabb |
336970e |
- rebuilt
|
|
Andrew McNabb |
336970e |
|
|
Andrew McNabb |
336970e |
* Thu Feb 03 2005 Toshio Kuratomi <toshio@tiki-lounge.com> 0.999-2
|
|
Andrew McNabb |
336970e |
- Use python_sitelib macro to resolve build issues on x86_64.
|
|
Andrew McNabb |
336970e |
- %%ghost *.pyo
|
|
Andrew McNabb |
336970e |
- Install ANSI.py, screen.py, and FSM.py into the examples. These are intended
|
|
Andrew McNabb |
336970e |
to suplement pexpect eventually but they are currently much less robust and
|
|
Andrew McNabb |
336970e |
not installed to by default. But they are needed by some examples.
|
|
Andrew McNabb |
336970e |
- Use __python macro in build/install for consistency.
|
|
Andrew McNabb |
336970e |
- Add --skip-build to the invocation of setup.py in install.
|
|
Andrew McNabb |
336970e |
|
|
Andrew McNabb |
336970e |
* Mon May 31 2004 Panu Matilainen <pmatilai@welho.com> 0.999-0.fdr.1
|
|
Andrew McNabb |
336970e |
- get rid of distrel munging, buildsys does that...
|
|
Andrew McNabb |
336970e |
- update to 0.999
|
|
Andrew McNabb |
336970e |
- update doc and example tarballs
|
|
Andrew McNabb |
336970e |
- fix build on python <> 2.2
|
|
Andrew McNabb |
336970e |
- use -O1 in install to generate .pyo files instead of manually creating the files
|
|
Andrew McNabb |
336970e |
- require python-abi = pyver to get dependencies right
|
|
Andrew McNabb |
336970e |
|
|
Andrew McNabb |
336970e |
* Sun Jul 27 2003 Panu Matilainen <pmatilai@welho.com> 0.98-0.fdr.3
|
|
Andrew McNabb |
336970e |
- own .pyo files too as suggested by Ville (#517)
|
|
Andrew McNabb |
336970e |
|
|
Andrew McNabb |
336970e |
* Sat Jul 26 2003 Panu Matilainen <pmatilai@welho.com> 0.98-0.fdr.2
|
|
Andrew McNabb |
336970e |
- fixes by Ville (bug #517) applied
|
|
Andrew McNabb |
336970e |
|
|
Andrew McNabb |
336970e |
* Sat Jul 26 2003 Panu Matilainen <pmatilai@welho.com>
|
|
Andrew McNabb |
336970e |
- Initial Fedora packaging
|
|
Andrew McNabb |
336970e |
|