Build python3 on EPEL
Run tests verbosely
This commit is contained in:
parent
67a01dec18
commit
1fc5808832
@ -1,9 +1,5 @@
|
|||||||
%global modname ptyprocess
|
%global modname ptyprocess
|
||||||
|
|
||||||
%if 0%{?fedora}
|
|
||||||
%global with_python3 1
|
|
||||||
%endif
|
|
||||||
|
|
||||||
Name: python-ptyprocess
|
Name: python-ptyprocess
|
||||||
Version: 0.5.1
|
Version: 0.5.1
|
||||||
Release: 4%{?dist}
|
Release: 4%{?dist}
|
||||||
@ -17,8 +13,8 @@ BuildArch: noarch
|
|||||||
BuildRequires: python2-devel
|
BuildRequires: python2-devel
|
||||||
BuildRequires: pytest
|
BuildRequires: pytest
|
||||||
%if 0%{?with_python3}
|
%if 0%{?with_python3}
|
||||||
BuildRequires: python3-devel
|
BuildRequires: python%{python3_pkgversion}-devel
|
||||||
BuildRequires: python3-pytest
|
BuildRequires: python%{python3_pkgversion}-pytest
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -33,10 +29,10 @@ 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}
|
%if 0%{?with_python3}
|
||||||
%package -n python3-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 python3-%{modname}}
|
%{?python_provide:%python_provide python%{python3_pkgversion}-%{modname}}
|
||||||
%description -n python3-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
|
%endif
|
||||||
@ -60,9 +56,9 @@ LC_ALL=en_US.UTF-8 \
|
|||||||
|
|
||||||
%check
|
%check
|
||||||
%if 0%{?with_python3}
|
%if 0%{?with_python3}
|
||||||
%{_bindir}/py.test-3.*
|
%{_bindir}/py.test-3.* -v
|
||||||
%endif
|
%endif
|
||||||
%{_bindir}/py.test-2.*
|
%{_bindir}/py.test-2.* -v
|
||||||
|
|
||||||
%files -n python2-ptyprocess
|
%files -n python2-ptyprocess
|
||||||
# TODO add COPYING with next release
|
# TODO add COPYING with next release
|
||||||
@ -71,13 +67,17 @@ LC_ALL=en_US.UTF-8 \
|
|||||||
%{python2_sitelib}/ptyprocess-%{version}-py?.?.egg-info
|
%{python2_sitelib}/ptyprocess-%{version}-py?.?.egg-info
|
||||||
|
|
||||||
%if 0%{?with_python3}
|
%if 0%{?with_python3}
|
||||||
%files -n python3-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
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Feb 23 2017 Orion Poplawski <orion@cora.nwra.com> - 0.5.1-5
|
||||||
|
- Build python3 on EPEL
|
||||||
|
- Run tests verbosely
|
||||||
|
|
||||||
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.1-4
|
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.1-4
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user