Search
SailfishOS Open Build Service
>
Projects
>
home:rcolistete
>
python-ptyprocess
> Changes
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
Changes of Revision 2
[-]
[+]
Added
python-ptyprocess.spec
@@ -0,0 +1,47 @@ +# +# spec file for package python-ptyprocess for Mer, based on OpenSuse version +# +# + +Name: python-ptyprocess +Version: 0.5.1 +Release: 0 +Summary: Run a subprocess in a pseudo terminal +License: ISC +Packager: Roberto Colistete Jr. <rcolistete.maemo@gmail.com> +Group: Development/Languages/Python +Url: https://github.com/pexpect/ptyprocess +Source: ptyprocess-%{version}.tar.gz +BuildRequires: python-devel >= 2.7 +BuildRequires: python-setuptools +BuildRoot: %{_tmppath}/%{name}-%{version}-build +BuildArch: noarch + +%description +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. + +%prep +%setup -q -n ptyprocess-%{version} + +%build +python setup.py build + +%install +python setup.py install --prefix=%{_prefix} --root=%{buildroot} + +%files +%defattr(-,root,root,-) +%doc README.rst +%{python_sitelib}/* + +%changelog +* Sun Aug 14 2016 Roberto Colistete Jr. <rcolistete.maemo@gmail.com> - 0.5.1 +- ptyprocess 0.5.1 (04/02/2016) for Mer (14/08/2016) : +- * first release.