2020-12-09 16:31:16 +08:00
|
|
|
%global _empty_manifest_terminate_build 0
|
2021-07-28 11:18:51 +08:00
|
|
|
Name: python-cmd2
|
2022-08-10 14:45:46 +08:00
|
|
|
Version: 2.4.2
|
2021-07-28 11:18:51 +08:00
|
|
|
Release: 1
|
|
|
|
|
Summary: cmd2 - quickly build feature-rich and user-friendly interactive command line applications in Python
|
|
|
|
|
License: MIT
|
|
|
|
|
URL: https://github.com/python-cmd2/cmd2
|
2022-08-10 14:45:46 +08:00
|
|
|
Source0: https://files.pythonhosted.org/packages/39/a0/830934f19f07e77c7d332fd5b41358611afc8d33d8cea78259b9a5d7f8ef/cmd2-2.4.2.tar.gz
|
2021-07-28 11:18:51 +08:00
|
|
|
BuildArch: noarch
|
2021-08-02 02:42:04 +00:00
|
|
|
%description
|
2022-07-27 02:18:17 +00:00
|
|
|
quickly build feature-rich and user-friendly interactive command line applications in Python
|
2021-08-02 02:42:04 +00:00
|
|
|
|
|
|
|
|
%package -n python3-cmd2
|
2021-07-28 11:18:51 +08:00
|
|
|
Summary: cmd2 - quickly build feature-rich and user-friendly interactive command line applications in Python
|
|
|
|
|
Provides: python-cmd2
|
|
|
|
|
# Base build requires
|
|
|
|
|
BuildRequires: python3-devel
|
|
|
|
|
BuildRequires: python3-setuptools
|
2021-08-02 02:42:04 +00:00
|
|
|
BuildRequires: python3-setuptools_scm
|
2022-08-10 14:45:46 +08:00
|
|
|
BuildRequires: python3-pip
|
2021-07-28 11:18:51 +08:00
|
|
|
# General requires
|
2022-07-27 02:18:17 +00:00
|
|
|
Requires: python3-mypy
|
|
|
|
|
Requires: python3-flake8
|
2021-07-28 11:18:51 +08:00
|
|
|
Requires: python3-pytest-cov
|
2022-07-27 02:18:17 +00:00
|
|
|
Requires: python3-pytest
|
|
|
|
|
Requires: python3-invoke
|
|
|
|
|
Requires: python3-sphinx
|
2021-07-28 11:18:51 +08:00
|
|
|
Requires: python3-pytest-mock
|
2022-07-27 02:18:17 +00:00
|
|
|
Requires: python3-mypy
|
|
|
|
|
Requires: python3-wcwidth
|
|
|
|
|
Requires: python3-pyperclip
|
|
|
|
|
Requires: python3-attrs
|
2020-12-09 16:31:16 +08:00
|
|
|
%description -n python3-cmd2
|
2022-07-27 02:18:17 +00:00
|
|
|
quickly build feature-rich and user-friendly interactive command line applications in Python
|
2020-12-09 16:31:16 +08:00
|
|
|
|
|
|
|
|
%package help
|
2021-07-28 11:18:51 +08:00
|
|
|
Summary: cmd2 - quickly build feature-rich and user-friendly interactive command line applications in Python
|
|
|
|
|
Provides: python3-cmd2-doc
|
2020-12-09 16:31:16 +08:00
|
|
|
%description help
|
2022-07-27 02:18:17 +00:00
|
|
|
quickly build feature-rich and user-friendly interactive command line applications in Python
|
2020-12-09 16:31:16 +08:00
|
|
|
|
|
|
|
|
%prep
|
2022-07-27 02:18:17 +00:00
|
|
|
%autosetup -n cmd2-%{version}
|
2020-12-09 16:31:16 +08:00
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
%py3_build
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
%py3_install
|
2021-07-28 11:18:51 +08:00
|
|
|
|
2020-12-09 16:31:16 +08:00
|
|
|
install -d -m755 %{buildroot}/%{_pkgdocdir}
|
|
|
|
|
if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi
|
|
|
|
|
if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi
|
|
|
|
|
if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi
|
|
|
|
|
if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi
|
|
|
|
|
pushd %{buildroot}
|
|
|
|
|
if [ -d usr/lib ]; then
|
2021-07-28 11:18:51 +08:00
|
|
|
find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst
|
2020-12-09 16:31:16 +08:00
|
|
|
fi
|
|
|
|
|
if [ -d usr/lib64 ]; then
|
2021-07-28 11:18:51 +08:00
|
|
|
find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst
|
2020-12-09 16:31:16 +08:00
|
|
|
fi
|
|
|
|
|
if [ -d usr/bin ]; then
|
2021-07-28 11:18:51 +08:00
|
|
|
find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst
|
2020-12-09 16:31:16 +08:00
|
|
|
fi
|
|
|
|
|
if [ -d usr/sbin ]; then
|
2021-07-28 11:18:51 +08:00
|
|
|
find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst
|
2020-12-09 16:31:16 +08:00
|
|
|
fi
|
|
|
|
|
touch doclist.lst
|
|
|
|
|
if [ -d usr/share/man ]; then
|
2021-07-28 11:18:51 +08:00
|
|
|
find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst
|
2020-12-09 16:31:16 +08:00
|
|
|
fi
|
|
|
|
|
popd
|
|
|
|
|
mv %{buildroot}/filelist.lst .
|
|
|
|
|
mv %{buildroot}/doclist.lst .
|
|
|
|
|
|
|
|
|
|
%files -n python3-cmd2 -f filelist.lst
|
|
|
|
|
%dir %{python3_sitelib}/*
|
|
|
|
|
|
|
|
|
|
%files help -f doclist.lst
|
|
|
|
|
%{_docdir}/*
|
|
|
|
|
|
|
|
|
|
%changelog
|
2022-08-10 14:45:46 +08:00
|
|
|
* Wed Aug 10 2022 liqiuyu <liqiuyu@kylinos.cn> - 2.4.2-1
|
|
|
|
|
- update to 2.4.2
|
|
|
|
|
|
2022-07-27 02:18:17 +00:00
|
|
|
* Tue Jul 26 2022 renliang16 <renliang@uniontech.com> - 2.4.0-1
|
|
|
|
|
- Upgrade package python3-cmd2 to version 2.4.0
|
|
|
|
|
|
2021-07-28 11:18:51 +08:00
|
|
|
* Mon Jul 26 2021 liusheng <liusheng2048@gmail.com> - 1.5.0-1
|
|
|
|
|
- Upgrade to version 1.5.0
|
|
|
|
|
|
2021-08-02 02:42:04 +00:00
|
|
|
* Mon Aug 2 2021 huangtianhua <huangtianhua@huawei.com> - 1.4.0-3
|
|
|
|
|
- Add python3-setuptools_scm as buildrequire
|
2021-07-28 11:18:51 +08:00
|
|
|
|
2021-01-29 10:57:39 +08:00
|
|
|
* Fri Jan 29 2021 zhangy <zhangy1317@foxmail.com>
|
|
|
|
|
- Add buildrequires
|
2021-07-28 11:18:51 +08:00
|
|
|
|
2020-12-09 16:31:16 +08:00
|
|
|
* Wed Dec 09 2020 Python_Bot <Python_Bot@openeuler.org>
|
|
|
|
|
- Package Spec generated
|