732baa
%global pypi_name cmd2
732baa
732baa
Name:             python-%{pypi_name}
732baa
Version:          2.5.8
732baa
Release:          1%{?dist}
732baa
Summary:          Extra features for standard library's cmd module
732baa
732baa
License:          MIT
732baa
URL:              https://pypi.python.org/pypi/cmd2
732baa
Source0:          %{pypi_source}
732baa
BuildArch:        noarch
732baa
732baa
%global _description\
732baa
Enhancements for standard library's cmd module.\
732baa
\
732baa
Drop-in replacement adds several features for command-prompt tools:\
732baa
\
732baa
 * Searchable command history (commands: "hi", "li", "run")\
732baa
 * Load commands from file, save to file, edit commands in file\
732baa
 * Multi-line commands\
732baa
 * Case-insensitive commands\
732baa
 * Special-character shortcut commands (beyond cmd's "@" and "!")\
732baa
 * Settable environment parameters\
732baa
 * Parsing commands with flags\
732baa
 * > (filename), >> (filename) redirect output to file\
732baa
 * < (filename) gets input from file\
732baa
 * bare >, >>, < redirect to/from paste buffer\
732baa
 * accepts abbreviated commands when unambiguous\
732baa
 * `py` enters interactive Python console\
732baa
 * test apps against sample session transcript (see example/example.py)\
732baa
\
732baa
Usable without modification anywhere cmd is used; simply import cmd2.Cmd\
732baa
in place of cmd.Cmd.\
732baa
\
732baa
See docs at http://packages.python.org/cmd2/
732baa
732baa
%description %_description
732baa
732baa
%package -n python3-cmd2
732baa
Summary:          %{summary}
732baa
BuildRequires:    python3-devel
732baa
Requires:         /usr/bin/which
732baa
732baa
%generate_buildrequires
732baa
%pyproject_buildrequires -t
732baa
732baa
%description -n python3-%{pypi_name} %_description
732baa
732baa
%prep
732baa
%autosetup -n %{pypi_name}-%{version}
732baa
732baa
%build
732baa
%pyproject_wheel
732baa
732baa
%install
732baa
%pyproject_install
732baa
732baa
%pyproject_save_files -l cmd2
732baa
732baa
%check
732baa
%tox
732baa
732baa
%files -n python3-%{pypi_name} -f %{pyproject_files}
732baa
%license LICENSE
732baa
%doc CHANGELOG.md README.md docs
732baa
732baa
%changelog
732baa
* Mon Jan 20 2025 Joel Capitao <jcapitao@redhat.com> - 2.5.8-1
732baa
- Update to 2.5.8. Fixes rhbz#2323520
732baa
732baa
* Sat Jan 18 2025 Fedora Release Engineering <releng@fedoraproject.org> - 2.5.1-2
732baa
- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild
732baa
732baa
* Sat Nov 02 2024 Kevin Fenzi <kevin@scrye.com> - 2.5.1-1
732baa
- Update to 2.5.1. Fixes rhbz#2321375
732baa
- Modernize spec
732baa
732baa
* Thu Sep 26 2024 Fabian Affolter <mail@fabian-affolter.ch> - 2.4.3-1
732baa
- Update to latest upstream release (closes rhbz#2165168)
732baa
732baa
* Fri Jul 19 2024 Fedora Release Engineering <releng@fedoraproject.org> - 2.4.2-8
732baa
- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
732baa
732baa
* Fri Jun 07 2024 Python Maint <python-maint@redhat.com> - 2.4.2-7
732baa
- Rebuilt for Python 3.13
732baa
732baa
* Fri Jan 26 2024 Fedora Release Engineering <releng@fedoraproject.org> - 2.4.2-6
732baa
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
732baa
732baa
* Mon Jan 22 2024 Fedora Release Engineering <releng@fedoraproject.org> - 2.4.2-5
732baa
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
732baa
732baa
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 2.4.2-4
732baa
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
732baa
732baa
* Tue Jun 13 2023 Python Maint <python-maint@redhat.com> - 2.4.2-3
732baa
- Rebuilt for Python 3.12
732baa
732baa
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 2.4.2-2
732baa
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
732baa
732baa
* Sun Sep 18 2022 Kevin Fenzi <kevin@scrye.com> - 2.4.2-1
732baa
- Update 2.4.2. Fixes rhbz#2075345
732baa
732baa
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.4.0-3
732baa
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
732baa
732baa
* Mon Jun 13 2022 Python Maint <python-maint@redhat.com> - 2.4.0-2
732baa
- Rebuilt for Python 3.11
732baa
732baa
* Thu Mar 03 2022 Fabian Affolter <mail@fabian-affolter.ch> - 2.4.0-1
732baa
- Update to latest upstream release 2.4.0 (closes rhbz#2057232)
732baa
732baa
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.3-2
732baa
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
732baa
732baa
* Sat Jan 08 2022 Kevin Fenzi <kevin@scrye.com> - 2.3.3-1
732baa
- Update to 2.3.2. Fixes rhbz#2027510
732baa
732baa
* Sun Nov 28 2021 Kevin Fenzi <kevin@scrye.com> - 2.3.2-1
732baa
- Update to 2.3.2. Fixes rhbz#2022524
732baa
732baa
* Sat Sep 25 2021 Kevin Fenzi <kevin@scrye.com> - 2.2.0-1
732baa
- Update to 2.2.0. Fixes rhbz#2004224
732baa
732baa
* Sun Aug 08 2021 Kevin Fenzi <kevin@scrye.com> - 2.1.2-1
732baa
- Update to 2.1.2. Fixes rhbz#1971701
732baa
732baa
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.1-2
732baa
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
732baa
732baa
* Sat Jun 19 2021 Kevin Fenzi <kevin@scrye.com> - 2.1.1-1
732baa
- Update to 2.1.1. Fixed rhbz#1971701
732baa
732baa
* Mon Jun 07 2021 Python Maint <python-maint@redhat.com> - 2.0.1-2
732baa
- Rebuilt for Python 3.10
732baa
732baa
* Mon Jun 07 2021 Ken Dreyer <kdreyer@redhat.com> - 2.0.1-1
732baa
- Update to latest upstream release
732baa
- Remove explicit Requires
732baa
732baa
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 1.4.0-3
732baa
- Rebuilt for Python 3.10
732baa
732baa
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.0-2
732baa
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
732baa
732baa
* Fri Dec 11 2020 Fabian Affolter <mail@fabian-affolter.ch> - 1.4.0-1
732baa
- Update to latest upstream release 1.4.0
732baa
732baa
* Thu Nov 19 2020 Joel Capitao <jcapitao@redhat.com> - 1.3.11-1
732baa
- Update to 1.3.11.
732baa
732baa
* Sun Sep 27 2020 Kevin Fenzi <kevin@scrye.com> - 1.3.10-1
732baa
- Update to 1.3.10. Fixes bug #1878431
732baa
732baa
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.16-5
732baa
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
732baa
732baa
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 0.9.16-4
732baa
- Rebuilt for Python 3.9
732baa
732baa
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.16-3
732baa
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
732baa
732baa
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 0.9.16-2
732baa
- Rebuilt for Python 3.8.0rc1 (#1748018)
732baa
732baa
* Sat Aug 24 2019 Kevin Fenzi <kevin@scrye.com> - 0.9.16-1
732baa
- Update to 0.9.16. Fixes bug #1732777
732baa
732baa
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 0.8.8-9
732baa
- Rebuilt for Python 3.8
732baa
732baa
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.8-8
732baa
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
732baa
732baa
* Mon Feb 25 2019 Miro Hrončok <mhroncok@redhat.com> - 0.8.8-7
732baa
- Subpackage python2-cmd2 has been removed
732baa
  See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal
732baa
732baa
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.8-6
732baa
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
732baa
732baa
* Wed Jul 25 2018 Haïkel Guémar <hguemar@fedoraproject.org> - 0.8.8-5
732baa
- More dependencies
732baa
732baa
* Wed Jul 25 2018 Haïkel Guémar <hguemar@fedoraproject.org> - 0.8.8-4
732baa
- Add missing wcwidth dependency
732baa
732baa
* Wed Jul 25 2018 Haïkel Guémar <hguemar@fedoraproject.org> - 0.8.8-3
732baa
- Modernize spec file
732baa
- Add missing pyperclip dependency (blocks RHBZ#1605632)
732baa
732baa
* Tue Jul 24 2018 Alfredo Moralejo <amoralej@redhat.com> - 0.8.8-2
732baa
- Added setuptools as BuildRequires.
732baa
732baa
* Mon Jul 23 2018 Kevin Fenzi <kevin@scrye.com> - 0.8.8-1
732baa
- Fix FTBFS bug #1605635
732baa
- Update to 0.8.8 - Fixes bug #1568598
732baa
732baa
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.8-16
732baa
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
732baa
732baa
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 0.6.8-15
732baa
- Rebuilt for Python 3.7
732baa
732baa
* Sun Feb 11 2018 Iryna Shcherbina <ishcherb@redhat.com> - 0.6.8-14
732baa
- Update Python 2 dependency declarations to new packaging standards
732baa
  (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
732baa
732baa
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.8-13
732baa
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
732baa
732baa
* Sat Aug 19 2017 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 0.6.8-12
732baa
- Python 2 binary package renamed to python2-cmd2
732baa
  See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3
732baa
732baa
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.8-11
732baa
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
732baa
732baa
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.8-10
732baa
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
732baa
732baa
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 0.6.8-9
732baa
- Rebuild for Python 3.6
732baa
732baa
* Mon Oct 31 2016 Mike Burns <mburns@redhat.com> - 0.6.8-8
732baa
- add Requires: which (bz#1390360)
732baa
732baa
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.8-7
732baa
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
732baa
732baa
* Fri Feb 19 2016 Ralph Bean <rbean@redhat.com> - 0.6.8-6
732baa
- Apply patch for compat on python-3.5.
732baa
732baa
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.8-5
732baa
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
732baa
732baa
* Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.8-4
732baa
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
732baa
732baa
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.8-3
732baa
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
732baa
732baa
* Wed Apr 29 2015 Ralph Bean <rbean@redhat.com> - 0.6.8-2
732baa
- Fix python3 subpackage by removing double-run of 2to3 (it's not idempotent!).
732baa
732baa
* Wed Apr 29 2015 Ralph Bean <rbean@redhat.com> - 0.6.8-1
732baa
- new version
732baa
732baa
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.7-5
732baa
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
732baa
732baa
* Wed May 14 2014 Bohuslav Kabrda <bkabrda@redhat.com> - 0.6.7-4
732baa
- Rebuilt for https://fedoraproject.org/wiki/Changes/Python_3.4
732baa
732baa
* Wed Dec 11 2013 Ralph Bean <rbean@redhat.com> - 0.6.7-3
732baa
- Versioned requirement on pyparsing.  (#1040339)
732baa
732baa
* Thu Nov 14 2013 Ralph Bean <rbean@redhat.com> - 0.6.7-2
732baa
- Bump release.
732baa
732baa
* Thu Nov 14 2013 Ralph Bean <rbean@redhat.com> - 0.6.7-1
732baa
- Latest upstream.
732baa
- Drop patch which has been upstreamed.
732baa
- Modernized python3 macro def.
732baa
732baa
* Tue Jul 30 2013 Pádraig Brady <pbrady@redhat.com> - 0.6.4-7
732baa
- Suppress warnings about missing editors when $EDITOR not set
732baa
732baa
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.4-5
732baa
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
732baa
732baa
* Fri Aug 03 2012 David Malcolm <dmalcolm@redhat.com> - 0.6.4-4
732baa
- rebuild for https://fedoraproject.org/wiki/Features/Python_3.3
732baa
732baa
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.4-3
732baa
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
732baa
732baa
* Thu Jul 05 2012 Ralph Bean <rbean@redhat.com> - 0.6.4-2
732baa
- Corrected spelling error in description.
732baa
732baa
* Thu Jun 28 2012 Ralph Bean <rbean@redhat.com> - 0.6.4-1
732baa
- initial package for Fedora