forked from avocado-framework/aexpect
-
Notifications
You must be signed in to change notification settings - Fork 1
/
python-aexpect.spec
167 lines (132 loc) · 5.02 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
160
161
162
163
164
165
166
167
# 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 aexpect-%{version}.tar.gz
%else
%if ! 0%{?commit:1}
%global commit 3c1d7eeec3ea607d1ac51dbf538e9e98b4731afe
%endif
%if ! 0%{?commit_date:1}
%global commit_date 20211208
%endif
%global shortcommit %(c=%{commit};echo ${c:0:7})
%global gitrel .%{commit_date}git%{shortcommit}
%global gittar aexpect-%{shortcommit}.tar.gz
%endif
# Selftests are provided but skipped because they use unsupported tooling.
%global with_tests 0
Name: python-aexpect
Version: 1.6.4
Release: 1%{?gitrel}%{?dist}
Summary: Aexpect is a python library to control interactive applications
License: GPLv2+
URL: https://github.com/avocado-framework/aexpect
%if 0%{?rel_build}
Source0: %{url}/archive/%{version}/%{gittar}
%else
Source0: %{url}/archive/%{commit}/%{gittar}
%endif
BuildArch: noarch
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-aexpect
Summary: %{summary}
%description -n python3-aexpect
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 aexpect-%{version} -p 1
%else
%autosetup -n aexpect-%{commit} -p 1
%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}
%if %{with_tests}
%check
selftests/checkall
%endif
%files -n python3-aexpect
%license LICENSE
%doc README.rst
%{python3_sitelib}/aexpect/
%{python3_sitelib}/aexpect-%{version}-py%{python3_version}.egg-info/
%{_bindir}/aexpect_helper*
%changelog
* Wed Dec 8 2021 Cleber Rosa <[email protected]> - 1.6.4-1
- New release
* Tue Nov 23 2021 Cleber Rosa <[email protected]> - 1.6.3-1
- New release
* Mon Jun 28 2021 Merlin Mathesius <[email protected]> - 1.6.2-2
- Spec file cleanup resulting from downstream package review.
* Wed Jun 2 2021 Cleber Rosa <[email protected]> - 1.6.2-1
- New release
* 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 compatibility 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