Fix FTBFS
Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
This commit is contained in:
parent
2aaa8c1430
commit
936b4ed94c
@ -1,23 +1,17 @@
|
|||||||
%global modname ptyprocess
|
%global srcname ptyprocess
|
||||||
|
|
||||||
%bcond_without tests
|
%bcond_without tests
|
||||||
|
|
||||||
Name: python-ptyprocess
|
Name: python-ptyprocess
|
||||||
Version: 0.6.0
|
Version: 0.6.0
|
||||||
Release: 5%{?dist}
|
Release: 6%{?dist}
|
||||||
Summary: Run a subprocess in a pseudo terminal
|
Summary: Run a subprocess in a pseudo terminal
|
||||||
|
|
||||||
License: ISC
|
License: ISC
|
||||||
URL: https://github.com/pexpect/ptyprocess
|
URL: https://github.com/pexpect/ptyprocess
|
||||||
Source0: https://files.pythonhosted.org/packages/source/p/ptyprocess/ptyprocess-%{version}.tar.gz
|
Source: %{pypi_source}
|
||||||
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
BuildRequires: python2-devel
|
|
||||||
BuildRequires: python%{python3_pkgversion}-devel
|
|
||||||
%if %{with tests}
|
|
||||||
BuildRequires: pytest
|
|
||||||
BuildRequires: python%{python3_pkgversion}-pytest
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%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
|
||||||
@ -25,24 +19,34 @@ process and its pty.
|
|||||||
|
|
||||||
%package -n python2-ptyprocess
|
%package -n python2-ptyprocess
|
||||||
Summary: Run a subprocess in a pseudo terminal
|
Summary: Run a subprocess in a pseudo terminal
|
||||||
%{?python_provide:%python_provide python2-%{modname}}
|
%{?python_provide:%python_provide python2-%{srcname}}
|
||||||
|
BuildRequires: python2-devel
|
||||||
|
%if %{with tests}
|
||||||
|
BuildRequires: python2-pytest
|
||||||
|
%endif
|
||||||
|
|
||||||
%description -n python2-ptyprocess
|
%description -n python2-ptyprocess
|
||||||
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
|
||||||
process and its pty.
|
process and its pty.
|
||||||
|
|
||||||
%package -n python%{python3_pkgversion}-ptyprocess
|
%package -n python3-ptyprocess
|
||||||
Summary: Run a subprocess in a pseudo terminal
|
Summary: Run a subprocess in a pseudo terminal
|
||||||
%{?python_provide:%python_provide python%{python3_pkgversion}-%{modname}}
|
%{?python_provide:%python_provide python3-%{srcname}}
|
||||||
%description -n python%{python3_pkgversion}-ptyprocess
|
BuildRequires: python3-devel
|
||||||
|
%if %{with tests}
|
||||||
|
BuildRequires: python3-pytest
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%description -n python3-ptyprocess
|
||||||
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
|
||||||
process and its pty.
|
process and its pty.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -qn ptyprocess-%{version}
|
%autosetup -n ptyprocess-%{version}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%py2_build
|
|
||||||
%py3_build
|
%py3_build
|
||||||
|
%py2_build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%py3_install
|
%py3_install
|
||||||
@ -50,23 +54,26 @@ process and its pty.
|
|||||||
|
|
||||||
%if %{with tests}
|
%if %{with tests}
|
||||||
%check
|
%check
|
||||||
%{_bindir}/py.test-3.* -v
|
%{__python3} -m pytest -v
|
||||||
%{_bindir}/py.test-2.* -v
|
%{__python2} -m pytest -v
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%files -n python2-ptyprocess
|
%files -n python2-ptyprocess
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
%doc README.rst
|
%doc README.rst
|
||||||
%{python2_sitelib}/ptyprocess/
|
%{python2_sitelib}/ptyprocess/
|
||||||
%{python2_sitelib}/ptyprocess-%{version}-py?.?.egg-info
|
%{python2_sitelib}/ptyprocess-*.egg-info
|
||||||
|
|
||||||
%files -n python%{python3_pkgversion}-ptyprocess
|
%files -n python3-ptyprocess
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
%doc README.rst
|
%doc README.rst
|
||||||
%{python3_sitelib}/ptyprocess/
|
%{python3_sitelib}/ptyprocess/
|
||||||
%{python3_sitelib}/ptyprocess-%{version}-py?.?.egg-info
|
%{python3_sitelib}/ptyprocess-*.egg-info
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Jul 29 07:16:43 CEST 2019 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.6.0-6
|
||||||
|
- Fix FTBFS
|
||||||
|
|
||||||
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.0-5
|
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.0-5
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user