forked from avocado-framework/aexpect
-
Notifications
You must be signed in to change notification settings - Fork 0
/
python-aexpect.spec
159 lines (127 loc) · 4.87 KB
/
python-aexpect.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
%global srcname 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 be9be4b325ac1da7b0c908e82f1d2c52e43dfd2f
%endif
%if ! 0%{?commit_date:1}
%global commit_date 20200922
%endif
%global shortcommit %(c=%{commit};echo ${c:0:7})
%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-%{srcname}
Version: 1.6.1
Release: 1%{?gitrel}%{?dist}
Summary: Aexpect is a python library to control interactive applications
Group: Development/Tools
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 python3-%{srcname}
Summary: %{summary}
%description -n python3-%{srcname}
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}-%{srcname}
%license LICENSE
%doc README.rst
%{python3_sitelib}/aexpect/
%{python3_sitelib}/aexpect-%{version}-py%{python3_version}.egg-info
%{_bindir}/aexpect_helper*
%changelog
* Mon Nov 2 2020 Lucas Meneghel Rodrigues <[email protected]> - 1.6.1-1
- Plamen Dimitrov
- Remove pylint issues due to improperly initialized exception attribute
- Fix reraising from previous exceptions
- Use python 3 style super() call
- Fix the order of remote keyword arguments
- Detect and deserialize exceptions from a module if provided
- Disable aexpect importing on the remote side if not available
- Use known (local) methods to obtain a session in a door usage example
- Convert the remote door unit tests to functional tests
- Samir Aguiar
- Add support for invoking remote functions and objects on Windows
- Add support for indented functions
- Return serialized remote function or utility arguments
- Xiaodai Wang:
- Migrate ssh options and handle_prompts changes from avocado-vt to aexpect
* Tue Sep 22 2020 Cleber Rosa <[email protected]> - 1.6.0-1
- New release
* Tue Sep 22 2020 Cleber Rosa <[email protected]> - 1.5.1-2
- Drop Python 2 support and packages
* Wed Nov 20 2019 Cleber Rosa <[email protected]> - 1.5.1-1
- Made python2 build conditional
- Enabled RHEL 8 build with Python 3 only
* Wed Jun 13 2018 Cleber Rosa <[email protected]> - 1.5.1-0
- Upgrade to upstream version 1.5.1
* Mon Jun 4 2018 Lucas Meneghel Rodrigues <[email protected]> - 1.5.0-1
- Upgrade to upstream version 1.5.0
* Wed Mar 14 2018 Cleber Rosa <[email protected]> - 1.4.0-2
- Changed URL to aexpect repo
- Changed build to use a git archived based source
- Added released version builds
- Remove compatiblity with older package name
- Reordered tags
- Added conditional for check target
- Only require python-setuptools on RHEL
- Added rules for also building Python 3 packages
* Mon Apr 3 2017 Lucas Meneghel Rodrigues <[email protected]> - 1.4.0-1
- Upgrade to upstream version 1.4.0
* Wed Mar 8 2017 Cleber Rosa <[email protected]> - 1.3.1-1
- Rename package to python-aexpect
* Mon Feb 20 2017 Lucas Meneghel Rodrigues <[email protected]> - 1.3.1-0
- Update to upstream version 1.3.1
- Fix encoding related bug.
* Thu Jan 12 2017 Lucas Meneghel Rodrigues <[email protected]> - 1.3.0-2
- Fix dependency on python-setuptools.
* Thu Jan 12 2017 Lucas Meneghel Rodrigues <[email protected]> - 1.3.0-1
- Update to upstream version 1.3.0.
* Tue Jun 7 2016 Lucas Meneghel Rodrigues <[email protected]> - 1.2.0-1
- Update to upstream version 1.2.0.
* Thu Sep 17 2015 Lucas Meneghel Rodrigues <[email protected]> - 1.1.0-1
- Update to upstream version 1.1.0.
* Fri Jul 31 2015 Lucas Meneghel Rodrigues <[email protected]> - 1.0.1-2
- Fix spec bug
* Fri Jul 31 2015 Lucas Meneghel Rodrigues <[email protected]> - 1.0.1-1
- First COPR build
* Thu Apr 23 2015 Lucas Meneghel Rodrigues <[email protected]> - 1.0.0-1
- First RPM