File python-aexpect.spec of Package python-aexpect

# spec file for package python-aexpect
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via

%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%global         pkgname aexpect
Name:           python-%{pkgname}
Version:        1.4.0
Release:        0
Summary:        Python library to control interactive applications
License:        GPL-2.0
Group:          Development/Languages/Python
BuildRequires:  %{python_module base}
BuildRequires:  %{python_module devel}
BuildRequires:  %{python_module setuptools}
BuildRequires:  fdupes
BuildRequires:  python-rpm-macros
Requires(post): update-alternatives
Requires(postun): update-alternatives
BuildArch:      noarch

Aexpect is a Python library used to control interactive applications, very
similar to pexpect. It can be used to control applications such as ssh, scp
sftp, telnet, among others.

%setup -q -n %{pkgname}-%{version}


%python_clone -a %{buildroot}%{_bindir}/aexpect-helper
%fdupes %{buildroot}

%python_install_alternative aexpect-helper

%python_uninstall_alternative aexpect-helper

%files %{python_files}
%python_alternative %{_bindir}/aexpect-helper

openSUSE Build Service is sponsored by