Really build python3 on EPEL
This commit is contained in:
parent
f17483862d
commit
608d5434de
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
Name: python-ptyprocess
|
Name: python-ptyprocess
|
||||||
Version: 0.5.1
|
Version: 0.5.1
|
||||||
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
|
||||||
@ -12,10 +12,8 @@ Source0: https://pypi.python.org/packages/source/p/ptyprocess/ptyprocess-
|
|||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
BuildRequires: python2-devel
|
BuildRequires: python2-devel
|
||||||
BuildRequires: pytest
|
BuildRequires: pytest
|
||||||
%if 0%{?with_python3}
|
|
||||||
BuildRequires: python%{python3_pkgversion}-devel
|
BuildRequires: python%{python3_pkgversion}-devel
|
||||||
BuildRequires: python%{python3_pkgversion}-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
|
||||||
@ -28,36 +26,28 @@ Summary: Run a subprocess in a pseudo terminal
|
|||||||
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.
|
||||||
|
|
||||||
%if 0%{?with_python3}
|
|
||||||
%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_provide python%{python3_pkgversion}-%{modname}}
|
%{?python_provide:%python_provide python%{python3_pkgversion}-%{modname}}
|
||||||
%description -n python%{python3_pkgversion}-ptyprocess
|
%description -n python%{python3_pkgversion}-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.
|
||||||
%endif
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -qn ptyprocess-%{version}
|
%setup -qn ptyprocess-%{version}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%py2_build
|
%py2_build
|
||||||
%if 0%{?with_python3}
|
|
||||||
LC_ALL=en_US.UTF-8 \
|
LC_ALL=en_US.UTF-8 \
|
||||||
%py3_build
|
%py3_build
|
||||||
%endif
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%if 0%{?with_python3}
|
|
||||||
LC_ALL=en_US.UTF-8 \
|
LC_ALL=en_US.UTF-8 \
|
||||||
%py3_install
|
%py3_install
|
||||||
%endif
|
|
||||||
%py2_install
|
%py2_install
|
||||||
|
|
||||||
%check
|
%check
|
||||||
%if 0%{?with_python3}
|
|
||||||
%{_bindir}/py.test-3.* -v
|
%{_bindir}/py.test-3.* -v
|
||||||
%endif
|
|
||||||
%{_bindir}/py.test-2.* -v
|
%{_bindir}/py.test-2.* -v
|
||||||
|
|
||||||
%files -n python2-ptyprocess
|
%files -n python2-ptyprocess
|
||||||
@ -66,14 +56,15 @@ LC_ALL=en_US.UTF-8 \
|
|||||||
%{python2_sitelib}/ptyprocess/
|
%{python2_sitelib}/ptyprocess/
|
||||||
%{python2_sitelib}/ptyprocess-%{version}-py?.?.egg-info
|
%{python2_sitelib}/ptyprocess-%{version}-py?.?.egg-info
|
||||||
|
|
||||||
%if 0%{?with_python3}
|
|
||||||
%files -n python%{python3_pkgversion}-ptyprocess
|
%files -n python%{python3_pkgversion}-ptyprocess
|
||||||
%doc README.rst
|
%doc README.rst
|
||||||
%{python3_sitelib}/ptyprocess/
|
%{python3_sitelib}/ptyprocess/
|
||||||
%{python3_sitelib}/ptyprocess-%{version}-py?.?.egg-info
|
%{python3_sitelib}/ptyprocess-%{version}-py?.?.egg-info
|
||||||
%endif
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Feb 23 2017 Orion Poplawski <orion@cora.nwra.com> - 0.5.1-6
|
||||||
|
- Really build python3 on EPEL
|
||||||
|
|
||||||
* Thu Feb 23 2017 Orion Poplawski <orion@cora.nwra.com> - 0.5.1-5
|
* Thu Feb 23 2017 Orion Poplawski <orion@cora.nwra.com> - 0.5.1-5
|
||||||
- Build python3 on EPEL
|
- Build python3 on EPEL
|
||||||
- Run tests verbosely
|
- Run tests verbosely
|
||||||
|
Loading…
Reference in New Issue
Block a user