%if ! 0%{?commit0:1} %global commit0 89b715b19918dba923e48d1c42b813c5f54d2c5a %endif %global shortcommit0 %(c=%{commit0}; echo ${c:0:7}) Summary: Aexpect is a python library to control interactive applications Name: aexpect Version: 1.2.0 Release: 1%{?dist} License: GPLv2 Group: Development/Tools URL: http://avocado-framework.readthedocs.org/ Source0: https://github.com/autotest/%{name}/archive/%{commit0}.tar.gz#/%{name}-%{shortcommit0}.tar.gz BuildArch: noarch Requires: python BuildRequires: python %description Aexpect is a python library used to control interactive applications, very similar to pexpect. You can use it to control applications such as ssh, scp sftp, telnet, among others. %prep %autosetup -n %{name}-%{commit0} %build %{__python} setup.py build %install %{__python} setup.py install --root %{buildroot} --skip-build %files %defattr(-,root,root,-) %license LICENSE %doc README.rst %{python_sitelib}/aexpect* %{_bindir}/aexpect-helper %changelog * Mon Nov 07 2016 Merlin Mathesius - 1.2.0-1 - Initial packaging for Fedora.