Upgrade package version for OpenStack Wallaby support

This commit is contained in:
sean-lau 2021-07-28 11:18:51 +08:00
parent 374982087b
commit d05728ed2a
3 changed files with 55 additions and 53 deletions

Binary file not shown.

BIN
cmd2-1.5.0.tar.gz Normal file

Binary file not shown.

View File

@ -1,69 +1,64 @@
%global _empty_manifest_terminate_build 0 %global _empty_manifest_terminate_build 0
Name: python-cmd2 Name: python-cmd2
Version: 1.4.0 Version: 1.5.0
Release: 3 Release: 1
Summary: cmd2 - quickly build feature-rich and user-friendly interactive command line applications in Python Summary: cmd2 - quickly build feature-rich and user-friendly interactive command line applications in Python
License: MIT License: MIT
URL: https://github.com/python-cmd2/cmd2 URL: https://github.com/python-cmd2/cmd2
Source0: https://files.pythonhosted.org/packages/c1/76/98f8767ddc8febfbd6367b2fcd391cd92087496d00e58ad99008e126035e/cmd2-1.4.0.tar.gz Source0: https://files.pythonhosted.org/packages/00/65/f580d23070a3f4eadaece9e4edcea002bc7fed639debc63c7b81a42fbe7f/cmd2-1.5.0.tar.gz
BuildArch: noarch BuildArch: noarch
%description %description
cmd2 is a tool for building interactive command line applications in Python. cmd2 - quickly build feature-rich and user-friendly interactive command line applications in Python
%package -n python3-cmd2 %package -n python3-cmd2
Summary: cmd2 - quickly build feature-rich and user-friendly interactive command line applications in Python Summary: cmd2 - quickly build feature-rich and user-friendly interactive command line applications in Python
Provides: python-cmd2 Provides: python-cmd2
BuildRequires: python3-devel # Base build requires
BuildRequires: python3-setuptools BuildRequires: python3-devel
BuildRequires: python3-pip BuildRequires: python3-setuptools
BuildRequires: python3-pbr BuildRequires: python3-pbr
BuildRequires: python3-pip
BuildRequires: python3-wheel
# General requires
BuildRequires: python3-attrs
BuildRequires: python3-colorama
BuildRequires: python3-pyperclip
BuildRequires: python3-wcwidth
BuildRequires: python3-pytest
BuildRequires: python3-coverage
BuildRequires: python3-codecov
BuildRequires: python3-pytest-cov
BuildRequires: python3-pytest-mock
BuildRequires: python3-setuptools_scm BuildRequires: python3-setuptools_scm
Requires: python3-attrs # General requires
Requires: python3-colorama Requires: python3-setuptools_scm
Requires: python3-pyperclip Requires: python3-attrs
Requires: python3-wcwidth Requires: python3-colorama
Requires: python3-importlib-metadata Requires: python3-pyperclip
Requires: python3-pyreadline Requires: python3-wcwidth
Requires: python3-pytest Requires: python3-pytest
Requires: python3-codecov Requires: python3-coverage
Requires: python3-pytest-cov Requires: python3-codecov
Requires: python3-pytest-mock Requires: python3-pytest-cov
Requires: python3-flake8 Requires: python3-pytest-mock
Requires: python3-sphinx
Requires: python3-sphinx-rtd-theme
Requires: python3-sphinx-autobuild
Requires: python3-doc8
Requires: python3-invoke
Requires: python3-twine
Requires: python3-mock
Requires: python3-nox
Requires: python3-nox
Requires: python3-codecov
Requires: python3-coverage
Requires: python3-pytest
Requires: python3-pytest-cov
Requires: python3-pytest-mock
Requires: python3-mock
Requires: python3-gnureadline
%description -n python3-cmd2 %description -n python3-cmd2
cmd2 is a tool for building interactive command line applications in Python. cmd2 - quickly build feature-rich and user-friendly interactive command line applications in Python
%package help %package help
Summary: Development documents and examples for cmd2 Summary: cmd2 - quickly build feature-rich and user-friendly interactive command line applications in Python
Provides: python3-cmd2-doc Provides: python3-cmd2-doc
%description help %description help
cmd2 is a tool for building interactive command line applications in Python. cmd2 - quickly build feature-rich and user-friendly interactive command line applications in Python
%prep %prep
%autosetup -n cmd2-1.4.0 %autosetup -n cmd2-1.5.0
%build %build
%py3_build %py3_build
%install %install
%py3_install %py3_install
install -d -m755 %{buildroot}/%{_pkgdocdir} install -d -m755 %{buildroot}/%{_pkgdocdir}
if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi
if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi
@ -71,35 +66,42 @@ if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi
if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi
pushd %{buildroot} pushd %{buildroot}
if [ -d usr/lib ]; then if [ -d usr/lib ]; then
find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst
fi fi
if [ -d usr/lib64 ]; then if [ -d usr/lib64 ]; then
find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst
fi fi
if [ -d usr/bin ]; then if [ -d usr/bin ]; then
find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst
fi fi
if [ -d usr/sbin ]; then if [ -d usr/sbin ]; then
find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst
fi fi
touch doclist.lst touch doclist.lst
if [ -d usr/share/man ]; then if [ -d usr/share/man ]; then
find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst
fi fi
popd popd
mv %{buildroot}/filelist.lst . mv %{buildroot}/filelist.lst .
mv %{buildroot}/doclist.lst . mv %{buildroot}/doclist.lst .
%files -n python3-cmd2 -f filelist.lst %files -n python3-cmd2 -f filelist.lst
%dir %{python3_sitelib}/* %dir %{python3_sitelib}/*
%files help -f doclist.lst %files help -f doclist.lst
%{_docdir}/* %{_docdir}/*
%changelog %changelog
* Mon Jul 26 2021 liusheng <liusheng2048@gmail.com> - 1.5.0-1
- Upgrade to version 1.5.0
* Mon Aug 2 2021 huangtianhua <huangtianhua@huawei.com> - 1.4.0-3 * Mon Aug 2 2021 huangtianhua <huangtianhua@huawei.com> - 1.4.0-3
- Add python3-setuptools_scm as buildrequire - Add python3-setuptools_scm as buildrequire
* Fri Jan 29 2021 zhangy <zhangy1317@foxmail.com> * Fri Jan 29 2021 zhangy <zhangy1317@foxmail.com>
- Add buildrequires - Add buildrequires
* Wed Dec 09 2020 Python_Bot <Python_Bot@openeuler.org> * Wed Dec 09 2020 Python_Bot <Python_Bot@openeuler.org>
- Package Spec generated - Package Spec generated