-
Notifications
You must be signed in to change notification settings - Fork 572
/
Copy pathpython-cmd2.spec
278 lines (199 loc) · 10.3 KB
/
python-cmd2.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
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
Vendor: Microsoft Corporation
Distribution: Azure Linux
%global pypi_name cmd2
Name: python-%{pypi_name}
Version: 2.4.2
Release: 9%{?dist}
Summary: Extra features for standard library's cmd module
License: MIT
URL: https://pypi.python.org/pypi/cmd2
Source0: https://files.pythonhosted.org/packages/39/a0/830934f19f07e77c7d332fd5b41358611afc8d33d8cea78259b9a5d7f8ef/cmd2-2.4.2.tar.gz#/python-cmd2-2.4.2.tar.gz
BuildArch: noarch
%global _description\
Enhancements for standard library's cmd module.\
\
Drop-in replacement adds several features for command-prompt tools:\
\
* Searchable command history (commands: "hi", "li", "run")\
* Load commands from file, save to file, edit commands in file\
* Multi-line commands\
* Case-insensitive commands\
* Special-character shortcut commands (beyond cmd's "@" and "!")\
* Settable environment parameters\
* Parsing commands with flags\
* > (filename), >> (filename) redirect output to file\
* < (filename) gets input from file\
* bare >, >>, < redirect to/from paste buffer\
* accepts abbreviated commands when unambiguous\
* `py` enters interactive Python console\
* test apps against sample session transcript (see example/example.py)\
\
Usable without modification anywhere cmd is used; simply import cmd2.Cmd\
in place of cmd.Cmd.\
\
See docs at http://packages.python.org/cmd2/
%description %_description
%package -n python3-cmd2
Summary: %{summary}
BuildRequires: python3-devel
BuildRequires: python3-setuptools
BuildRequires: python3-setuptools_scm
BuildRequires: dos2unix
Requires: /usr/bin/which
%{?python_provide:%python_provide python3-cmd2}
%description -n python3-%{pypi_name} %_description
%prep
%autosetup -n %{pypi_name}-%{version}
%build
%py3_build
%install
%py3_install
%files -n python3-%{pypi_name}
%license LICENSE
%doc CHANGELOG.md README.md docs
%{python3_sitelib}/cmd2
%{python3_sitelib}/%{pypi_name}-%{version}*
%changelog
* Wed Dec 20 2024 Sumit Jena <[email protected]> - 2.4.2-9
- Initial Azure Linux import from Fedora 41 (license: MIT).
- License verified.
* Fri Jul 19 2024 Fedora Release Engineering <[email protected]> - 2.4.2-8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
* Fri Jun 07 2024 Python Maint <[email protected]> - 2.4.2-7
- Rebuilt for Python 3.13
* Fri Jan 26 2024 Fedora Release Engineering <[email protected]> - 2.4.2-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
* Mon Jan 22 2024 Fedora Release Engineering <[email protected]> - 2.4.2-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
* Fri Jul 21 2023 Fedora Release Engineering <[email protected]> - 2.4.2-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
* Tue Jun 13 2023 Python Maint <[email protected]> - 2.4.2-3
- Rebuilt for Python 3.12
* Fri Jan 20 2023 Fedora Release Engineering <[email protected]> - 2.4.2-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
* Sun Sep 18 2022 Kevin Fenzi <[email protected]> - 2.4.2-1
- Update 2.4.2. Fixes rhbz#2075345
* Fri Jul 22 2022 Fedora Release Engineering <[email protected]> - 2.4.0-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
* Mon Jun 13 2022 Python Maint <[email protected]> - 2.4.0-2
- Rebuilt for Python 3.11
* Thu Mar 03 2022 Fabian Affolter <[email protected]> - 2.4.0-1
- Update to latest upstream release 2.4.0 (closes rhbz#2057232)
* Fri Jan 21 2022 Fedora Release Engineering <[email protected]> - 2.3.3-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
* Sat Jan 08 2022 Kevin Fenzi <[email protected]> - 2.3.3-1
- Update to 2.3.2. Fixes rhbz#2027510
* Sun Nov 28 2021 Kevin Fenzi <[email protected]> - 2.3.2-1
- Update to 2.3.2. Fixes rhbz#2022524
* Sat Sep 25 2021 Kevin Fenzi <[email protected]> - 2.2.0-1
- Update to 2.2.0. Fixes rhbz#2004224
* Sun Aug 08 2021 Kevin Fenzi <[email protected]> - 2.1.2-1
- Update to 2.1.2. Fixes rhbz#1971701
* Fri Jul 23 2021 Fedora Release Engineering <[email protected]> - 2.1.1-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
* Sat Jun 19 2021 Kevin Fenzi <[email protected]> - 2.1.1-1
- Update to 2.1.1. Fixed rhbz#1971701
* Mon Jun 07 2021 Python Maint <[email protected]> - 2.0.1-2
- Rebuilt for Python 3.10
* Mon Jun 07 2021 Ken Dreyer <[email protected]> - 2.0.1-1
- Update to latest upstream release
- Remove explicit Requires
* Fri Jun 04 2021 Python Maint <[email protected]> - 1.4.0-3
- Rebuilt for Python 3.10
* Wed Jan 27 2021 Fedora Release Engineering <[email protected]> - 1.4.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
* Fri Dec 11 2020 Fabian Affolter <[email protected]> - 1.4.0-1
- Update to latest upstream release 1.4.0
* Thu Nov 19 2020 Joel Capitao <[email protected]> - 1.3.11-1
- Update to 1.3.11.
* Sun Sep 27 2020 Kevin Fenzi <[email protected]> - 1.3.10-1
- Update to 1.3.10. Fixes bug #1878431
* Wed Jul 29 2020 Fedora Release Engineering <[email protected]> - 0.9.16-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
* Tue May 26 2020 Miro Hrončok <[email protected]> - 0.9.16-4
- Rebuilt for Python 3.9
* Thu Jan 30 2020 Fedora Release Engineering <[email protected]> - 0.9.16-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
* Thu Oct 03 2019 Miro Hrončok <[email protected]> - 0.9.16-2
- Rebuilt for Python 3.8.0rc1 (#1748018)
* Sat Aug 24 2019 Kevin Fenzi <[email protected]> - 0.9.16-1
- Update to 0.9.16. Fixes bug #1732777
* Mon Aug 19 2019 Miro Hrončok <[email protected]> - 0.8.8-9
- Rebuilt for Python 3.8
* Fri Jul 26 2019 Fedora Release Engineering <[email protected]> - 0.8.8-8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
* Mon Feb 25 2019 Miro Hrončok <[email protected]> - 0.8.8-7
- Subpackage python2-cmd2 has been removed
See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal
* Sat Feb 02 2019 Fedora Release Engineering <[email protected]> - 0.8.8-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
* Wed Jul 25 2018 Haïkel Guémar <[email protected]> - 0.8.8-5
- More dependencies
* Wed Jul 25 2018 Haïkel Guémar <[email protected]> - 0.8.8-4
- Add missing wcwidth dependency
* Wed Jul 25 2018 Haïkel Guémar <[email protected]> - 0.8.8-3
- Modernize spec file
- Add missing pyperclip dependency (blocks RHBZ#1605632)
* Tue Jul 24 2018 Alfredo Moralejo <[email protected]> - 0.8.8-2
- Added setuptools as BuildRequires.
* Mon Jul 23 2018 Kevin Fenzi <[email protected]> - 0.8.8-1
- Fix FTBFS bug #1605635
- Update to 0.8.8 - Fixes bug #1568598
* Fri Jul 13 2018 Fedora Release Engineering <[email protected]> - 0.6.8-16
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
* Tue Jun 19 2018 Miro Hrončok <[email protected]> - 0.6.8-15
- Rebuilt for Python 3.7
* Sun Feb 11 2018 Iryna Shcherbina <[email protected]> - 0.6.8-14
- Update Python 2 dependency declarations to new packaging standards
(See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
* Fri Feb 09 2018 Fedora Release Engineering <[email protected]> - 0.6.8-13
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
* Sat Aug 19 2017 Zbigniew Jędrzejewski-Szmek <[email protected]> - 0.6.8-12
- Python 2 binary package renamed to python2-cmd2
See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3
* Thu Jul 27 2017 Fedora Release Engineering <[email protected]> - 0.6.8-11
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
* Sat Feb 11 2017 Fedora Release Engineering <[email protected]> - 0.6.8-10
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
* Mon Dec 19 2016 Miro Hrončok <[email protected]> - 0.6.8-9
- Rebuild for Python 3.6
* Mon Oct 31 2016 Mike Burns <[email protected]> - 0.6.8-8
- add Requires: which (bz#1390360)
* Tue Jul 19 2016 Fedora Release Engineering <[email protected]> - 0.6.8-7
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
* Fri Feb 19 2016 Ralph Bean <[email protected]> - 0.6.8-6
- Apply patch for compat on python-3.5.
* Thu Feb 04 2016 Fedora Release Engineering <[email protected]> - 0.6.8-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
* Tue Nov 10 2015 Fedora Release Engineering <[email protected]> - 0.6.8-4
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
* Thu Jun 18 2015 Fedora Release Engineering <[email protected]> - 0.6.8-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
* Wed Apr 29 2015 Ralph Bean <[email protected]> - 0.6.8-2
- Fix python3 subpackage by removing double-run of 2to3 (it's not idempotent!).
* Wed Apr 29 2015 Ralph Bean <[email protected]> - 0.6.8-1
- new version
* Sat Jun 07 2014 Fedora Release Engineering <[email protected]> - 0.6.7-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
* Wed May 14 2014 Bohuslav Kabrda <[email protected]> - 0.6.7-4
- Rebuilt for https://fedoraproject.org/wiki/Changes/Python_3.4
* Wed Dec 11 2013 Ralph Bean <[email protected]> - 0.6.7-3
- Versioned requirement on pyparsing. (#1040339)
* Thu Nov 14 2013 Ralph Bean <[email protected]> - 0.6.7-2
- Bump release.
* Thu Nov 14 2013 Ralph Bean <[email protected]> - 0.6.7-1
- Latest upstream.
- Drop patch which has been upstreamed.
- Modernized python3 macro def.
* Tue Jul 30 2013 Pádraig Brady <[email protected]> - 0.6.4-7
- Suppress warnings about missing editors when $EDITOR not set
* Thu Feb 14 2013 Fedora Release Engineering <[email protected]> - 0.6.4-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
* Fri Aug 03 2012 David Malcolm <[email protected]> - 0.6.4-4
- rebuild for https://fedoraproject.org/wiki/Features/Python_3.3
* Sat Jul 21 2012 Fedora Release Engineering <[email protected]> - 0.6.4-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
* Thu Jul 05 2012 Ralph Bean <[email protected]> - 0.6.4-2
- Corrected spelling error in description.
* Thu Jun 28 2012 Ralph Bean <[email protected]> - 0.6.4-1
- initial package for Fedora