Compare commits
No commits in common. "c9s" and "c8" have entirely different histories.
16
.gitignore
vendored
16
.gitignore
vendored
@ -1,15 +1 @@
|
||||
pexpect-2.3.tar.gz
|
||||
/pexpect-u-2.5.1.tar.gz
|
||||
/pexpect-3.0.tar.gz
|
||||
/pexpect-3.1.tar.gz
|
||||
/pexpect-4.0.tar.gz
|
||||
/pexpect-4.0.1.tar.gz
|
||||
/pexpect-4.1.0.tar.gz
|
||||
/pexpect-4.2.1.tar.gz
|
||||
/pexpect-4.3.tar.gz
|
||||
/pexpect-4.3.1.tar.gz
|
||||
/pexpect-4.4.tar.gz
|
||||
/pexpect-4.5.tar.gz
|
||||
/pexpect-4.6.tar.gz
|
||||
/pexpect-4.7.0.tar.gz
|
||||
/pexpect-4.8.0.tar.gz
|
||||
SOURCES/pexpect-4.3.1.tar.gz
|
||||
|
1
.python-pexpect.metadata
Normal file
1
.python-pexpect.metadata
Normal file
@ -0,0 +1 @@
|
||||
5aa3345801eb1dd69980bda9b5cfcc51e2eed9b1 SOURCES/pexpect-4.3.1.tar.gz
|
@ -1,21 +1,25 @@
|
||||
%bcond_without check
|
||||
%bcond_with check
|
||||
|
||||
%if 0%{?rhel} > 7
|
||||
# Disable python2 build by default
|
||||
%bcond_with python2
|
||||
%else
|
||||
%bcond_without python2
|
||||
%endif
|
||||
|
||||
%global modname pexpect
|
||||
|
||||
Name: python-%{modname}
|
||||
Summary: Unicode-aware Pure Python Expect-like module
|
||||
Version: 4.8.0
|
||||
Release: 10%{?dist}
|
||||
Version: 4.3.1
|
||||
Release: 3%{?dist}
|
||||
|
||||
License: ISC
|
||||
License: MIT
|
||||
URL: https://github.com/pexpect/pexpect
|
||||
Source0: %{url}/archive/%{version}/%{modname}-%{version}.tar.gz
|
||||
|
||||
BuildRequires: /usr/bin/man
|
||||
%if %{with check}
|
||||
BuildRequires: openssl
|
||||
BuildRequires: python-unversioned-command
|
||||
%endif
|
||||
BuildRequires: %{_bindir}/man
|
||||
BuildRequires: coreutils
|
||||
|
||||
BuildArch: noarch
|
||||
|
||||
@ -34,6 +38,34 @@ does not require TCL or Expect nor does it require C extensions to be
|
||||
compiled. It should work on any platform that supports the standard Python
|
||||
pty module.
|
||||
|
||||
%if %{with python2}
|
||||
%package -n python2-%{modname}
|
||||
Summary: %{summary}
|
||||
%{?python_provide:%python_provide python2-%{modname}}
|
||||
BuildRequires: python2-devel
|
||||
BuildRequires: python2-pytest
|
||||
BuildRequires: python2-ptyprocess
|
||||
Requires: python2-ptyprocess
|
||||
Provides: pexpect = %{version}-%{release}
|
||||
Obsoletes: pexpect <= 2.3-20
|
||||
|
||||
%description -n python2-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. This package contains the
|
||||
python2 version of this module.
|
||||
|
||||
Pexpect can be used for automating interactive applications such as ssh, ftp,
|
||||
passwd, telnet, etc. It can be used to automate setup scripts for duplicating
|
||||
software package installations on different servers. And it can be used for
|
||||
automated software testing. Pexpect is in the spirit of Don Libes' Expect, but
|
||||
Pexpect is pure Python. Unlike other Expect-like modules for Python, Pexpect
|
||||
does not require TCL or Expect nor does it require C extensions to be
|
||||
compiled. It should work on any platform that supports the standard Python
|
||||
pty module.
|
||||
%endif # with python2
|
||||
|
||||
%package -n python3-%{modname}
|
||||
Summary: %{summary}
|
||||
%{?python_provide:%python_provide python3-%{modname}}
|
||||
@ -59,107 +91,87 @@ compiled. It should work on any platform that supports the standard Python
|
||||
pty module.
|
||||
|
||||
%prep
|
||||
%autosetup -n %{modname}-%{version}
|
||||
%autosetup -c
|
||||
|
||||
%if %{with python2}
|
||||
cp-pr %{modname}-%{version} python2
|
||||
chmod +x python2/tools/*
|
||||
find python2/examples -type f | xargs chmod a-x
|
||||
%endif # with python2
|
||||
cp -pr %{modname}-%{version} python3
|
||||
chmod +x python3/tools/*
|
||||
find python3/examples -type f | xargs chmod a-x
|
||||
|
||||
%if %{with python2}
|
||||
find python2 -type f -name '*.py' | xargs sed -i '1s|^#!.*|#!%{__python2}|'
|
||||
%endif # with python2
|
||||
find python3 -type f -name '*.py' | xargs sed -i '1s|^#!.*|#!%{__python3}|'
|
||||
|
||||
%build
|
||||
%py3_build
|
||||
%if %{with python2}
|
||||
pushd python2
|
||||
%py2_build
|
||||
popd
|
||||
%endif # with python2
|
||||
|
||||
pushd python3
|
||||
%py3_build
|
||||
popd
|
||||
|
||||
%install
|
||||
%py3_install
|
||||
rm -rf %{buildroot}%{python3_sitelib}/pexpect/tests
|
||||
%if %{with python2}
|
||||
pushd python2
|
||||
%py2_install
|
||||
rm -rf ${buildroot}%{python2_sitelib}/setuptools/tests
|
||||
# Drop asyncio stuff from py2
|
||||
rm -f %{buildroot}%{python2_sitelib}/%{modname}/_async.py
|
||||
popd
|
||||
%endif # with python2
|
||||
|
||||
pushd python3
|
||||
%py3_install
|
||||
rm -rf %{buildroot}%{python3_sitelib}/pexpect/tests
|
||||
popd
|
||||
|
||||
%if %{with check}
|
||||
%check
|
||||
export PYTHONIOENCODING=UTF-8
|
||||
# workaround for https://bugzilla.redhat.com/show_bug.cgi?id=1914843
|
||||
# upstream: https://github.com/pexpect/pexpect/issues/669
|
||||
# There's a patch upstream that we can presumable remove this after
|
||||
# it merges and is released.
|
||||
# Thx for the suggestion Miro: https://www.spinics.net/lists/fedora-devel/msg283026.html
|
||||
echo "set enable-bracketed-paste off" > .inputrc
|
||||
export INPUTRC=$PWD/.inputrc
|
||||
export LC_ALL="en_US.UTF-8"
|
||||
|
||||
%{__python3} ./tools/display-sighandlers.py
|
||||
%{__python3} ./tools/display-terminalinfo.py
|
||||
TRAVIS=true py.test-3 --verbose
|
||||
%if %{with python2}
|
||||
pushd python2
|
||||
%{__python2} ./tools/display-sighandlers.py
|
||||
%{__python2} ./tools/display-terminalinfo.py
|
||||
PYTHONPATH=%{buildroot}%{python2_sitelib} %{__python2} ./tools/display-maxcanon.py
|
||||
py.test-2 --verbose
|
||||
popd
|
||||
%endif # with python2
|
||||
|
||||
pushd python3
|
||||
%{__python3} ./tools/display-sighandlers.py
|
||||
%{__python3} ./tools/display-terminalinfo.py
|
||||
PYTHONPATH=%{buildroot}%{python3_sitelib} %{__python3} ./tools/display-maxcanon.py
|
||||
py.test-3 --verbose
|
||||
popd
|
||||
%endif
|
||||
|
||||
%if %{with python2}
|
||||
%files -n python2-%{modname}
|
||||
%license python2/LICENSE
|
||||
%doc python2/doc python2/examples
|
||||
%{python2_sitelib}/%{modname}/
|
||||
%{python2_sitelib}/%{modname}-*.egg-info
|
||||
%endif # with python2
|
||||
|
||||
%files -n python3-%{modname}
|
||||
%license LICENSE
|
||||
%doc doc examples
|
||||
%license python3/LICENSE
|
||||
%doc python3/doc python3/examples
|
||||
%{python3_sitelib}/%{modname}/
|
||||
%{python3_sitelib}/%{modname}-*.egg-info
|
||||
|
||||
%changelog
|
||||
* Tue Aug 10 2021 Mohan Boddu <mboddu@redhat.com> - 4.8.0-10
|
||||
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
|
||||
Related: rhbz#1991688
|
||||
|
||||
* Tue Jun 22 2021 Mohan Boddu <mboddu@redhat.com> - 4.8.0-9
|
||||
- Rebuilt for RHEL 9 BETA for openssl 3.0
|
||||
Related: rhbz#1971065
|
||||
|
||||
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 4.8.0-8
|
||||
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
|
||||
|
||||
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 4.8.0-7
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
||||
|
||||
* Tue Jan 19 2021 Dan Radez <dradez@redhat.com> - 4.8.0-6
|
||||
- adding workaround for https://bugzilla.redhat.com/show_bug.cgi?id=1914843
|
||||
- while we wait for upstream fix: https://github.com/pexpect/pexpect/issues/669
|
||||
|
||||
* Wed Sep 16 2020 Kalev Lember <klember@redhat.com> - 4.8.0-5
|
||||
- Avoid using bindir macro in BuildRequires
|
||||
|
||||
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 4.8.0-4
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
||||
|
||||
* Sat May 23 2020 Miro Hrončok <mhroncok@redhat.com> - 4.8.0-3
|
||||
- Rebuilt for Python 3.9
|
||||
|
||||
* Wed Apr 08 2020 Scott Talbert <swt@techie.net> - 4.8.0-2
|
||||
- Fix tests when building under COPR (#1822060)
|
||||
|
||||
* Tue Apr 07 2020 Scott Talbert <swt@techie.net> - 4.8.0-1
|
||||
- Update to new upstream release 4.8.0 and re-enable tests (#1793613)
|
||||
|
||||
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 4.7.0-5
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
||||
|
||||
* Tue Sep 24 2019 Dan Radez <dradez@redhat.com> - 4.7.0-4
|
||||
- Remove Python2 packaging
|
||||
|
||||
* Fri Aug 16 2019 Miro Hrončok <mhroncok@redhat.com> - 4.7.0-3
|
||||
- Rebuilt for Python 3.8
|
||||
|
||||
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 4.7.0-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
||||
|
||||
* Thu Apr 11 2019 Dan Radez <dradez@redhat.com> - 4.7.0-1
|
||||
- update to 4.7.0
|
||||
|
||||
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 4.6-3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
||||
|
||||
* Sun Nov 18 2018 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 4.6-2
|
||||
- Drop explicit locale setting
|
||||
See https://fedoraproject.org/wiki/Changes/Remove_glibc-langpacks-all_from_buildroot
|
||||
|
||||
* Wed Jul 25 2018 Dan Radez <dradez@redhat.com> - 4.6-1
|
||||
- update to 4.6
|
||||
|
||||
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 4.5-3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
||||
|
||||
* Fri Jun 15 2018 Miro Hrončok <mhroncok@redhat.com> - 4.5-2
|
||||
- Rebuilt for Python 3.7
|
||||
|
||||
* Wed May 23 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 4.5.0-1
|
||||
- Update to 4.5.0
|
||||
|
||||
* Mon Mar 12 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 4.4.0-1
|
||||
- Update to 4.4.0
|
||||
* Tue Jun 19 2018 Charalampos Stratakis <cstratak@redhat.com> - 4.3.1-3
|
||||
- Conditionalize the python2 subpackage
|
||||
|
||||
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 4.3.1-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
Loading…
Reference in New Issue
Block a user