diff --git a/pexpect-3.1.tar.gz b/pexpect-3.1.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..0e47ebcf292739981487f358ab92d59b0c6ba8e8 Binary files /dev/null and b/pexpect-3.1.tar.gz differ diff --git a/pexpect-4.8.0.tar.gz b/pexpect-4.8.0.tar.gz deleted file mode 100644 index 7e2b9d167d97ad35a5a37f49127bc3656828158c..0000000000000000000000000000000000000000 Binary files a/pexpect-4.8.0.tar.gz and /dev/null differ diff --git a/python-pexpect.spec b/python-pexpect.spec index 031438dc5948d45ae625fe7d4603b202e1766296..6cffaaf75c518c31929d68715e212498edacc947 100644 --- a/python-pexpect.spec +++ b/python-pexpect.spec @@ -1,67 +1,37 @@ %global _empty_manifest_terminate_build 0 -Name: python-pexpect -Version: 4.8.0 -Release: 2 -Summary: Pexpect allows easy control of interactive console applications. -License: ISC license -URL: https://pexpect.readthedocs.io/ -Source0: https://files.pythonhosted.org/packages/e5/9b/ff402e0e930e70467a7178abb7c128709a30dfb22d8777c043e501bc1b10/pexpect-4.8.0.tar.gz -BuildArch: noarch - +Name: python-pexpect +Version: 3.1 +Release: 1 +Summary: Pexpect allows easy control of interactive console applications. +License: ISC license +URL: http://pexpect.readthedocs.org/ +Source0: https://files.pythonhosted.org/packages/e3/00/0b40a92d6c091c84c3766cb6348c6482ac0d092b1a413765f7140901c53f/pexpect-3.1.tar.gz +BuildArch: noarch %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. -%package -n python3-pexpect -Summary: Pexpect allows easy control of interactive console applications. -Provides: python-pexpect -BuildRequires: python3-devel python3-setuptools python3-ptyprocess -Requires: python3-ptyprocess -%description -n python3-pexpect -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. +%package -n python2-pexpect +Summary: Pexpect allows easy control of interactive console applications. +Provides: python2-pexpect +BuildRequires: python2-devel +BuildRequires: python2-setuptools +%description -n python2-pexpect -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. %package help -Summary: Development documents and examples for pexpect -Provides: python3-pexpect-doc - +Summary: Development documents and examples for pexpect +Provides: python2-pexpect-doc %description help -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. %prep -%autosetup -n pexpect-4.8.0 +%autosetup -n pexpect-3.1 %build -%py3_build +%py2_build %install -%py3_install +%py2_install install -d -m755 %{buildroot}/%{_pkgdocdir} if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi @@ -69,37 +39,31 @@ if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi pushd %{buildroot} if [ -d usr/lib ]; then - find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst + find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst fi if [ -d usr/lib64 ]; then - find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst + find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst fi if [ -d usr/bin ]; then - find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst + find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst fi if [ -d usr/sbin ]; then - find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst + find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst fi touch doclist.lst if [ -d usr/share/man ]; then - find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst + find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst fi popd mv %{buildroot}/filelist.lst . mv %{buildroot}/doclist.lst . -%files -n python3-pexpect -f filelist.lst -%dir %{python3_sitelib}/* +%files -n python2-pexpect -f filelist.lst +%dir %{python2_sitelib}/* %files help -f doclist.lst %{_docdir}/* %changelog -* Thu 19 Nov 2020 leiju - 4.8.0-2 -- Add BuildRequiers python3-ptyprocess - -* Mon Oct 12 2020 wangxiao - 4.8.0-1 -- upgrade to 4.8.0, add yaml file - -* Thu Oct 17 2019 Lijin Yang - 4.6-2 -- Package init +* Thu May 13 2021 OpenStack_SIG +- Package Spec generated