2019-11-19 11:53:37 +08:00
|
|
|
%global debug_package %{nil}
|
|
|
|
|
%global srcname configshell-fb
|
|
|
|
|
|
|
|
|
|
Name: python-configshell
|
|
|
|
|
Summary: Python library that provides a framework for building simple but nice CLI-based applications.
|
2023-06-14 16:38:03 +08:00
|
|
|
Version: 1.1.30
|
|
|
|
|
Release: 1
|
2019-11-19 11:53:37 +08:00
|
|
|
License: ASL 2.0
|
|
|
|
|
URL: https://github.com/open-iscsi/configshell-fb
|
2023-06-14 16:38:03 +08:00
|
|
|
Source0: https://github.com/open-iscsi/configshell-fb/archive/v%{version}.tar.gz
|
2019-11-19 11:53:37 +08:00
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
|
|
%global _description\
|
|
|
|
|
%{name} is a Python library that provides a framework for building simple but nice CLI-based applications.\
|
2020-10-29 14:48:43 +08:00
|
|
|
This runs with Python 3 and python 3 is run by setup.py to run on Python 3.\
|
2019-11-19 11:53:37 +08:00
|
|
|
|
|
|
|
|
%description %_description
|
|
|
|
|
|
|
|
|
|
%package -n python3-configshell
|
|
|
|
|
Summary: %summary
|
2021-08-02 10:07:49 +08:00
|
|
|
BuildRequires: python3-devel
|
2019-11-19 11:53:37 +08:00
|
|
|
Requires: python3-pyparsing python3-urwid
|
|
|
|
|
%{?python_provide:%python_provide python3-configshell}
|
|
|
|
|
|
|
|
|
|
%description -n python3-configshell %_description
|
|
|
|
|
|
|
|
|
|
%prep
|
2021-08-02 10:07:49 +08:00
|
|
|
%autosetup -n configshell-fb-%{version} -p1
|
2019-11-19 11:53:37 +08:00
|
|
|
|
|
|
|
|
rm -rf %{py3dir}
|
|
|
|
|
cp -a . %{py3dir}
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
pushd %{py3dir}
|
|
|
|
|
%{__python3} setup.py build
|
|
|
|
|
popd
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
rm -rf %{buildroot}
|
|
|
|
|
pushd %{py3dir}
|
|
|
|
|
%{__python3} setup.py install --skip-build --root %{buildroot}
|
|
|
|
|
popd
|
|
|
|
|
|
|
|
|
|
%files -n python3-configshell
|
|
|
|
|
%{python3_sitelib}/*
|
|
|
|
|
%license COPYING
|
|
|
|
|
%doc README.md
|
|
|
|
|
|
|
|
|
|
%changelog
|
2023-06-14 16:38:03 +08:00
|
|
|
* Wed Jun 14 2023 chenchen <chen_aka_jan@163.com> - 1.1.30-1
|
|
|
|
|
- Upgrade to version 1.1.30
|
|
|
|
|
|
2021-08-02 10:07:49 +08:00
|
|
|
* Mon Aug 02 2021 chenyanpanHW <chenyanpan@huawei.com> - 1.1.27-4
|
|
|
|
|
- DESC: delete -Sgit from %autosetup, and delete BuildRequires git
|
|
|
|
|
|
2020-10-29 14:48:43 +08:00
|
|
|
* Wed Oct 21 2020 zhangtao <zhangtao221@huawei.com> - 1.1.27-3
|
|
|
|
|
- delete python2
|
|
|
|
|
|
2020-09-09 10:37:47 +08:00
|
|
|
* Wed Sep 9 2020 liuweibo <liuweibo10@huawei.com> - 1.1.27-2
|
|
|
|
|
- Fix Source0
|
|
|
|
|
|
2019-11-19 11:53:37 +08:00
|
|
|
* Tue Nov 12 2019 openEuler Buildteam <buildteam@openeuler.org> - 1.1.27-1
|
|
|
|
|
- Package init
|