python-aexpect:Package-init
Add aexpect.tar.gz, spec file and yaml file. Signed-off-by: Zhu Huankai <zhuhuankai1@huawei.com>
This commit is contained in:
parent
8b07b8f462
commit
c613a48fdb
BIN
aexpect-1.6.1.tar.gz
Normal file
BIN
aexpect-1.6.1.tar.gz
Normal file
Binary file not shown.
56
python-aexpect.spec
Normal file
56
python-aexpect.spec
Normal file
@ -0,0 +1,56 @@
|
|||||||
|
%global srcname aexpect
|
||||||
|
%global gittar %{srcname}-%{version}.tar.gz
|
||||||
|
|
||||||
|
# Selftests are provided but skipped because they use unsupported tooling.
|
||||||
|
%global with_tests 0
|
||||||
|
|
||||||
|
Name: python-%{srcname}
|
||||||
|
Version: 1.6.1
|
||||||
|
Release: 1
|
||||||
|
Summary: Aexpect is a python library to control interactive applications
|
||||||
|
License: GPLv2
|
||||||
|
URL: https://github.com/avocado-framework/aexpect
|
||||||
|
Source0: https://github.com/avocado-framework/%{srcname}/archive/%{version}.tar.gz#/%{gittar}
|
||||||
|
BuildArch: noarch
|
||||||
|
Requires: python3
|
||||||
|
BuildRequires: python3-devel
|
||||||
|
BuildRequires: python3-setuptools
|
||||||
|
|
||||||
|
%description
|
||||||
|
Aexpect is a python library used to control interactive applications, very
|
||||||
|
similar to pexpect. You can use it to control applications such as ssh, scp
|
||||||
|
sftp, telnet, among others.
|
||||||
|
|
||||||
|
%package -n python3-%{srcname}
|
||||||
|
Summary: %{summary}
|
||||||
|
|
||||||
|
%description -n python3-%{srcname}
|
||||||
|
Aexpect is a python library used to control interactive applications, very
|
||||||
|
similar to pexpect. You can use it to control applications such as ssh, scp
|
||||||
|
sftp, telnet, among others.
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%autosetup -n %{srcname}-%{version}
|
||||||
|
|
||||||
|
%build
|
||||||
|
%py3_build
|
||||||
|
|
||||||
|
%install
|
||||||
|
%py3_install
|
||||||
|
ln -s aexpect_helper %{buildroot}%{_bindir}/aexpect_helper-%{python3_pkgversion}
|
||||||
|
ln -s aexpect_helper %{buildroot}%{_bindir}/aexpect_helper-%{python3_version}
|
||||||
|
|
||||||
|
%check
|
||||||
|
%if %{with_tests}
|
||||||
|
selftests/checkall
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%files -n python%{python3_pkgversion}-%{srcname}
|
||||||
|
%doc README.rst
|
||||||
|
%{python3_sitelib}/aexpect/
|
||||||
|
%{python3_sitelib}/aexpect-%{version}-py%{python3_version}.egg-info
|
||||||
|
%{_bindir}/aexpect_helper*
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Mon 01 Feb 2021 Zhu Huankai <zhuhuankai1@huawei.com> - 1.6.1-1
|
||||||
|
- Package init
|
||||||
4
python-aexpect.yaml
Normal file
4
python-aexpect.yaml
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
version_control: github
|
||||||
|
src_repo: avocado-framework/aexpect
|
||||||
|
tag_prefix: ""
|
||||||
|
separator: "."
|
||||||
Loading…
x
Reference in New Issue
Block a user