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