remove python2 subpackage
This commit is contained in:
parent
4c3b29c9d7
commit
ef316f56b9
@ -1,7 +1,7 @@
|
|||||||
%global with_tests 0%{?_with_tests:1}
|
%global with_tests 0%{?_with_tests:1}
|
||||||
Name: python-ptyprocess
|
Name: python-ptyprocess
|
||||||
Version: 0.6.0
|
Version: 0.6.0
|
||||||
Release: 3
|
Release: 4
|
||||||
Summary: Run a subprocess in a pseudo terminal
|
Summary: Run a subprocess in a pseudo terminal
|
||||||
|
|
||||||
License: ISC
|
License: ISC
|
||||||
@ -9,7 +9,7 @@ URL: https://github.com/pexpect/ptyprocess
|
|||||||
Source0: https://files.pythonhosted.org/packages/source/p/ptyprocess/ptyprocess-%{version}.tar.gz
|
Source0: https://files.pythonhosted.org/packages/source/p/ptyprocess/ptyprocess-%{version}.tar.gz
|
||||||
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
BuildRequires: python2-devel pytest python%{python3_pkgversion}-devel python%{python3_pkgversion}-pytest
|
BuildRequires: python%{python3_pkgversion}-devel python%{python3_pkgversion}-pytest
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Launch a subprocess in a pseudo terminal (pty), and interact with both the
|
Launch a subprocess in a pseudo terminal (pty), and interact with both the
|
||||||
@ -21,19 +21,6 @@ pipe rather than a terminal, or curses-style interfaces that rely on a terminal.
|
|||||||
If you need to automate these things, running the process in a pseudo terminal
|
If you need to automate these things, running the process in a pseudo terminal
|
||||||
(pty) is the answer.
|
(pty) is the answer.
|
||||||
|
|
||||||
%package -n python2-ptyprocess
|
|
||||||
Summary: Run a subprocess in a pseudo terminal
|
|
||||||
%python_provide python2-ptyprocess
|
|
||||||
%description -n python2-ptyprocess
|
|
||||||
Launch a subprocess in a pseudo terminal (pty), and interact with both the
|
|
||||||
process and its pty.
|
|
||||||
|
|
||||||
Sometimes, piping stdin and stdout is not enough. There might be a password
|
|
||||||
prompt that doesn't read from stdin, output that changes when it's going to a
|
|
||||||
pipe rather than a terminal, or curses-style interfaces that rely on a terminal.
|
|
||||||
If you need to automate these things, running the process in a pseudo terminal
|
|
||||||
(pty) is the answer.
|
|
||||||
|
|
||||||
%package -n python%{python3_pkgversion}-ptyprocess
|
%package -n python%{python3_pkgversion}-ptyprocess
|
||||||
Summary: Run a subprocess in a pseudo terminal
|
Summary: Run a subprocess in a pseudo terminal
|
||||||
%python_provide python%{python3_pkgversion}-ptyprocess
|
%python_provide python%{python3_pkgversion}-ptyprocess
|
||||||
@ -51,32 +38,27 @@ If you need to automate these things, running the process in a pseudo terminal
|
|||||||
%autosetup -n ptyprocess-%{version} -p1
|
%autosetup -n ptyprocess-%{version} -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%py2_build
|
|
||||||
LC_ALL=en_US.UTF-8 \
|
LC_ALL=en_US.UTF-8 \
|
||||||
%py3_build
|
%py3_build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
LC_ALL=en_US.UTF-8 \
|
LC_ALL=en_US.UTF-8 \
|
||||||
%py3_install
|
%py3_install
|
||||||
%py2_install
|
|
||||||
|
|
||||||
%check
|
%check
|
||||||
%if %{with_tests}
|
%if %{with_tests}
|
||||||
%{_bindir}/py.test-3.* -v
|
%{_bindir}/py.test-3.* -v
|
||||||
%{_bindir}/py.test-2.* -v
|
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%files -n python2-ptyprocess
|
|
||||||
%doc LICENSE README.rst
|
|
||||||
%{python2_sitelib}/ptyprocess/
|
|
||||||
%{python2_sitelib}/ptyprocess-%{version}-py?.?.egg-info
|
|
||||||
|
|
||||||
%files -n python%{python3_pkgversion}-ptyprocess
|
%files -n python%{python3_pkgversion}-ptyprocess
|
||||||
%doc LICENSE README.rst
|
%doc LICENSE README.rst
|
||||||
%{python3_sitelib}/ptyprocess/
|
%{python3_sitelib}/ptyprocess/
|
||||||
%{python3_sitelib}/ptyprocess-%{version}-py?.?.egg-info
|
%{python3_sitelib}/ptyprocess-%{version}-py?.?.egg-info
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Nov 09 2020 leiju <leiju4@huawei.com> - 0.6.0-4
|
||||||
|
- remove python2 subpackage
|
||||||
|
|
||||||
* Tue Feb 18 2020 chenli <chenli147@huawei.com> - 0.6.0-3
|
* Tue Feb 18 2020 chenli <chenli147@huawei.com> - 0.6.0-3
|
||||||
- init package
|
- init package
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user