Compare commits
No commits in common. "c8" and "c9-beta" have entirely different histories.
2
.gitignore
vendored
2
.gitignore
vendored
@ -1 +1 @@
|
|||||||
SOURCES/pexpect-4.3.1.tar.gz
|
SOURCES/pexpect-4.8.0.tar.gz
|
||||||
|
@ -1 +1 @@
|
|||||||
5aa3345801eb1dd69980bda9b5cfcc51e2eed9b1 SOURCES/pexpect-4.3.1.tar.gz
|
3f6c41a4a72dc802f3431f5d2367a4259f9b1813 SOURCES/pexpect-4.8.0.tar.gz
|
||||||
|
@ -1,25 +1,21 @@
|
|||||||
%bcond_with check
|
%bcond_without check
|
||||||
|
|
||||||
%if 0%{?rhel} > 7
|
|
||||||
# Disable python2 build by default
|
|
||||||
%bcond_with python2
|
|
||||||
%else
|
|
||||||
%bcond_without python2
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%global modname pexpect
|
%global modname pexpect
|
||||||
|
|
||||||
Name: python-%{modname}
|
Name: python-%{modname}
|
||||||
Summary: Unicode-aware Pure Python Expect-like module
|
Summary: Unicode-aware Pure Python Expect-like module
|
||||||
Version: 4.3.1
|
Version: 4.8.0
|
||||||
Release: 3%{?dist}
|
Release: 7%{?dist}
|
||||||
|
|
||||||
License: MIT
|
License: ISC
|
||||||
URL: https://github.com/pexpect/pexpect
|
URL: https://github.com/pexpect/pexpect
|
||||||
Source0: %{url}/archive/%{version}/%{modname}-%{version}.tar.gz
|
Source0: %{url}/archive/%{version}/%{modname}-%{version}.tar.gz
|
||||||
|
|
||||||
BuildRequires: %{_bindir}/man
|
BuildRequires: /usr/bin/man
|
||||||
BuildRequires: coreutils
|
%if %{with check}
|
||||||
|
BuildRequires: openssl
|
||||||
|
BuildRequires: python-unversioned-command
|
||||||
|
%endif
|
||||||
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
|
||||||
@ -38,34 +34,6 @@ 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
|
compiled. It should work on any platform that supports the standard Python
|
||||||
pty module.
|
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}
|
%package -n python3-%{modname}
|
||||||
Summary: %{summary}
|
Summary: %{summary}
|
||||||
%{?python_provide:%python_provide python3-%{modname}}
|
%{?python_provide:%python_provide python3-%{modname}}
|
||||||
@ -91,87 +59,96 @@ compiled. It should work on any platform that supports the standard Python
|
|||||||
pty module.
|
pty module.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -c
|
%autosetup -n %{modname}-%{version}
|
||||||
|
|
||||||
%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
|
%build
|
||||||
%if %{with python2}
|
%py3_build
|
||||||
pushd python2
|
|
||||||
%py2_build
|
|
||||||
popd
|
|
||||||
%endif # with python2
|
|
||||||
|
|
||||||
pushd python3
|
|
||||||
%py3_build
|
|
||||||
popd
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%if %{with python2}
|
%py3_install
|
||||||
pushd python2
|
rm -rf %{buildroot}%{python3_sitelib}/pexpect/tests
|
||||||
%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}
|
%if %{with check}
|
||||||
%check
|
%check
|
||||||
export PYTHONIOENCODING=UTF-8
|
export PYTHONIOENCODING=UTF-8
|
||||||
export LC_ALL="en_US.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
|
||||||
|
|
||||||
%if %{with python2}
|
%{__python3} ./tools/display-sighandlers.py
|
||||||
pushd python2
|
%{__python3} ./tools/display-terminalinfo.py
|
||||||
%{__python2} ./tools/display-sighandlers.py
|
TRAVIS=true py.test-3 --verbose
|
||||||
%{__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
|
%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}
|
%files -n python3-%{modname}
|
||||||
%license python3/LICENSE
|
%license LICENSE
|
||||||
%doc python3/doc python3/examples
|
%doc doc examples
|
||||||
%{python3_sitelib}/%{modname}/
|
%{python3_sitelib}/%{modname}/
|
||||||
%{python3_sitelib}/%{modname}-*.egg-info
|
%{python3_sitelib}/%{modname}-*.egg-info
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
* Tue Jun 19 2018 Charalampos Stratakis <cstratak@redhat.com> - 4.3.1-3
|
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 4.8.0-7
|
||||||
- Conditionalize the python2 subpackage
|
- 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
|
||||||
|
|
||||||
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 4.3.1-2
|
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 4.3.1-2
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
||||||
|
Loading…
Reference in New Issue
Block a user