%global srcname terminado # python2-tornado package is too old on EPEL %if 0%{?fedora} %bcond_without python2 %else %bcond_with python2 %endif Name: python-%{srcname} Version: 0.6 Release: 2%{?dist} Summary: Terminals served to term.js using Tornado websockets License: BSD URL: https://github.com/takluyver/terminado Source0: https://github.com/takluyver/terminado/archive/%{version}.tar.gz#/%{srcname}-%{version}.tar.gz BuildArch: noarch %description This is a Tornado websocket backend for the term.js Javascript terminal emulator library. %if %{with python2} %package -n python2-%{srcname} Summary: Terminals served to term.js using Tornado websockets BuildRequires: python2-devel # For tests BuildRequires: python2-nose BuildRequires: python2-ptyprocess BuildRequires: python2-tornado >= 4.0.0 Requires: python2-ptyprocess Requires: python2-tornado >= 4.0.0 %{?python_provide:%python_provide python2-%{srcname}} %description -n python2-%{srcname} This is a Tornado websocket backend for the term.js Javascript terminal emulator library. %endif %package -n python%{python3_pkgversion}-%{srcname} Summary: Terminals served to term.js using Tornado websockets BuildRequires: python%{python3_pkgversion}-devel # For tests BuildRequires: python%{python3_pkgversion}-nose BuildRequires: python%{python3_pkgversion}-ptyprocess BuildRequires: python%{python3_pkgversion}-tornado >= 4.0.0 Requires: python%{python3_pkgversion}-ptyprocess Requires: python%{python3_pkgversion}-tornado >= 4.0.0 %{?python_provide:%python_provide python%{python3_pkgversion}-%{srcname}} %description -n python%{python3_pkgversion}-%{srcname} This is a Tornado websocket backend for the term.js Javascript terminal emulator library. %prep %setup -q -n %{srcname}-%{version} %build %if %{with python2} %py2_build %endif %py3_build %install %if %{with python2} %py2_install %endif %py3_install %check %if %{with python2} nosetests-%{python2_version} -v %endif nosetests-%{python3_version} -v %if %{with python2} %files -n python2-%{srcname} %doc README.rst %license LICENSE.txt %{python2_sitelib}/* %endif %files -n python%{python3_pkgversion}-%{srcname} %doc README.rst %license LICENSE.txt %{python3_sitelib}/* %changelog * Thu Feb 23 2017 Orion Poplawski - 0.6-2 - Run tests verbosely - Do not build for python2 on EPEL * Mon Feb 22 2016 Orion Poplawski - 0.6-1 - Update to 0.6 - Modernize spec * Mon Jul 27 2015 Orion Poplawski - 0.5-3 - Add python2-terminado provides * Fri Jul 10 2015 Orion Poplawski - 0.5-2 - Build python2/3 from same tree - BR/R tornado 4.0.0 - Fix changelog version number * Tue May 5 2015 Orion Poplawski - 0.5-1 - Initial package