python-pexpect/python-pexpect.spec

106 lines
4.0 KiB
RPMSpec
Raw Permalink Normal View History

2020-10-12 10:30:58 +08:00
%global _empty_manifest_terminate_build 0
2020-10-12 10:53:15 +08:00
Name: python-pexpect
Version: 4.8.0
2020-11-20 10:12:07 +08:00
Release: 2
2020-10-12 10:53:15 +08:00
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
2020-10-12 10:30:58 +08:00
2019-11-19 11:54:48 +08:00
%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.
2020-10-12 10:30:58 +08:00
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.
2019-11-19 11:54:48 +08:00
%package -n python3-pexpect
2020-10-12 10:53:15 +08:00
Summary: Pexpect allows easy control of interactive console applications.
Provides: python-pexpect
2020-11-20 10:12:07 +08:00
BuildRequires: python3-devel python3-setuptools python3-ptyprocess
Requires: python3-ptyprocess
2019-11-19 11:54:48 +08:00
%description -n python3-pexpect
2020-10-12 10:30:58 +08:00
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.
2019-11-19 11:54:48 +08:00
2020-10-12 10:30:58 +08:00
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.
2019-11-19 11:54:48 +08:00
2020-10-12 10:30:58 +08:00
%package help
2020-10-12 10:53:15 +08:00
Summary: Development documents and examples for pexpect
Provides: python3-pexpect-doc
2019-11-19 11:54:48 +08:00
2020-10-12 10:30:58 +08:00
%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.
2019-11-19 11:54:48 +08:00
2020-10-12 10:30:58 +08:00
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
%build
%py3_build
2019-11-19 11:54:48 +08:00
%install
2020-10-12 10:30:58 +08:00
%py3_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
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
2020-10-12 10:53:15 +08:00
find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst
2020-10-12 10:30:58 +08:00
fi
if [ -d usr/lib64 ]; then
2020-10-12 10:53:15 +08:00
find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst
2020-10-12 10:30:58 +08:00
fi
if [ -d usr/bin ]; then
2020-10-12 10:53:15 +08:00
find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst
2020-10-12 10:30:58 +08:00
fi
if [ -d usr/sbin ]; then
2020-10-12 10:53:15 +08:00
find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst
2020-10-12 10:30:58 +08:00
fi
touch doclist.lst
if [ -d usr/share/man ]; then
2020-10-12 10:53:15 +08:00
find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst
2020-10-12 10:30:58 +08:00
fi
popd
mv %{buildroot}/filelist.lst .
mv %{buildroot}/doclist.lst .
%files -n python3-pexpect -f filelist.lst
%dir %{python3_sitelib}/*
%files help -f doclist.lst
%{_docdir}/*
2019-11-19 11:54:48 +08:00
%changelog
2022-06-09 10:15:22 +08:00
* Thu Nov 19 2020 leiju <leiju4@huawei.com> - 4.8.0-2
2020-11-20 10:12:07 +08:00
- Add BuildRequiers python3-ptyprocess
2020-10-12 10:53:15 +08:00
* Mon Oct 12 2020 wangxiao <wangxiao65@huawei.com> - 4.8.0-1
- upgrade to 4.8.0, add yaml file
2020-10-12 10:57:44 +08:00
* Thu Oct 17 2019 Lijin Yang <yanglijin@huawei.com> - 4.6-2
2019-11-19 11:54:48 +08:00
- Package init