commit 096d04037b32e38aa17f6d7f6b9c7f5499ee562b Author: dogsheng <960055655@qq.com> Date: Tue Nov 19 11:53:37 2019 +0800 Package init diff --git a/configshell-fb-1.1.27.tar.gz b/configshell-fb-1.1.27.tar.gz new file mode 100644 index 0000000..eae158e Binary files /dev/null and b/configshell-fb-1.1.27.tar.gz differ diff --git a/python-configshell.spec b/python-configshell.spec new file mode 100644 index 0000000..431bf36 --- /dev/null +++ b/python-configshell.spec @@ -0,0 +1,65 @@ +%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. +Version: 1.1.27 +Release: 1 +License: ASL 2.0 +URL: https://github.com/open-iscsi/configshell-fb +Source0: %{srcname}-%{version}.tar.gz +BuildArch: noarch + +%global _description\ +%{name} is a Python library that provides a framework for building simple but nice CLI-based applications.\ +This runs with Python 2 and 2to3 is run by setup.py to run on Python 3.\ + +%description %_description + +%package -n python2-configshell +Summary: %summary +BuildRequires: git python2-devel +Requires: python2-pyparsing python2-urwid python2-six + +%description -n python2-configshell %_description + +%package -n python3-configshell +Summary: %summary +BuildRequires: git python3-devel +Requires: python3-pyparsing python3-urwid +%{?python_provide:%python_provide python3-configshell} + +%description -n python3-configshell %_description + +%prep +%autosetup -n %{srcname}-%{version} -p1 -Sgit + +rm -rf %{py3dir} +cp -a . %{py3dir} + +%build +%py2_build +pushd %{py3dir} +%{__python3} setup.py build +popd + +%install +rm -rf %{buildroot} +%py2_install +pushd %{py3dir} +%{__python3} setup.py install --skip-build --root %{buildroot} +popd + +%files -n python2-configshell +%{python2_sitelib}/* +%license COPYING +%doc README.md + +%files -n python3-configshell +%{python3_sitelib}/* +%license COPYING +%doc README.md + +%changelog +* Tue Nov 12 2019 openEuler Buildteam - 1.1.27-1 +- Package init