%global srcname aexpect %global pkgname aexpect # Conditional for release vs. snapshot builds. Set to 1 for release build. %if ! 0%{?rel_build:1} %global rel_build 1 %endif # Settings used for build from snapshots. %if 0%{?rel_build} %global gittar %{srcname}-%{version}.tar.gz %else %if ! 0%{?commit:1} %global commit ebca61259851710a443b4e93b31fa74d3978b3b9 %endif %if ! 0%{?commit_date:1} %global commit_date 20201102 %endif %global shortcommit %(c=%{commit};echo ${c:0:8}) %global gitrel .%{commit_date}git%{shortcommit} %global gittar %{srcname}-%{shortcommit}.tar.gz %endif # Selftests are provided but skipped because they use unsupported tooling. %global with_tests 0 Name: python-%{pkgname} Version: 1.6.1 Release: 1%{?gitrel}%{?dist} Summary: A python library to control interactive applications License: GPLv2 URL: https://github.com/avocado-framework/aexpect %if 0%{?rel_build} Source0: https://github.com/avocado-framework/%{srcname}/archive/%{version}.tar.gz#/%{gittar} %else Source0: https://github.com/avocado-framework/%{srcname}/archive/%{commit}.tar.gz#/%{gittar} %endif BuildArch: noarch Requires: python3 BuildRequires: python3-devel BuildRequires: python3-setuptools %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. %package -n python%{python3_pkgversion}-%{pkgname} Summary: %{summary} %description -n python%{python3_pkgversion}-%{pkgname} 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 %if 0%{?rel_build} %autosetup -n %{srcname}-%{version} %else %autosetup -n %{srcname}-%{commit} %endif %build %py3_build %install %py3_install ln -s aexpect_helper %{buildroot}%{_bindir}/aexpect_helper-%{python3_pkgversion} ln -s aexpect_helper %{buildroot}%{_bindir}/aexpect_helper-%{python3_version} %check %if %{with_tests} selftests/checkall %endif %files -n python%{python3_pkgversion}-%{pkgname} %license LICENSE %doc README.rst %{python3_sitelib}/aexpect/ %{python3_sitelib}/aexpect-%{version}-py%{python3_version}.egg-info %{_bindir}/aexpect_helper* %changelog * Mon Feb 15 2021 Cleber Rosa - 1.6.1-1 - Sync with upstream release 1.6.1. - Dropped Python2 support completely * Tue Nov 26 2019 Merlin Mathesius - 1.5.1-6 - Drop Python 2 support from RHEL8 onward. * Tue May 14 2019 Merlin Mathesius - 1.5.1-5 - Drop Python 2 support from F31 onward. * Sat Feb 02 2019 Fedora Release Engineering - 1.5.1-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Fri Jul 13 2018 Fedora Release Engineering - 1.5.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Tue Jun 19 2018 Miro Hrončok - 1.5.1-2 - Rebuilt for Python 3.7 * Wed Jun 13 2018 Merlin Mathesius - 1.5.1-1 - Sync with upstream release 1.5.1 (BZ#1588660). - Now with full python3 support (BZ#1437184). * Thu Jul 27 2017 Fedora Release Engineering - 1.4.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Tue Apr 04 2017 Merlin Mathesius - 1.4.0-1 - Sync with upstream release 1.4.0 (BZ#1438782). - Update source location to refer to new home. - Provide python2 version-specific executables. * Mon Feb 20 2017 Merlin Mathesius - 1.3.1-1 - Sync with upstream release 1.3.1 (BZ#1425027). * Tue Feb 14 2017 Merlin Mathesius - 1.3.0-1 - Sync with upstream release 1.3.0. - SPEC updates to easily switch between release and snapshot builds. * Sat Feb 11 2017 Fedora Release Engineering - 1.2.0-6.20161110gitaca459d - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Tue Jan 10 2017 Merlin Mathesius - 1.2.0-5 - SPEC updates to build and install for EPEL. * Mon Dec 19 2016 Miro Hrončok - 1.2.0-4.20161110gitaca459d - Rebuild for Python 3.6 * Thu Nov 10 2016 Merlin Mathesius - 1.2.0-3 - Initial packaging for Fedora.