commit f254207ba5d414bf0b93a73d38941d53ec71ac9d Author: zhuchunyi Date: Wed Nov 6 19:50:29 2019 +0800 update code diff --git a/python-simpleline.spec b/python-simpleline.spec new file mode 100644 index 0000000..a198cc8 --- /dev/null +++ b/python-simpleline.spec @@ -0,0 +1,59 @@ +Name: python-simpleline +Version: 1.6 +Release: 1 +Summary: A Python3-only text UI framework +License: GPLv2+ +URL: https://github.com/rhinstaller/python-simpleline +Source0: https://github.com/rhinstaller/python-simpleline/releases/download/simpleline-1.6/simpleline-1.6.tar.gz +BuildArch: noarch + +%global common_description %{expand: +This is a text UI framework originally which was a part of the Anaconda +installer project.This UI is simple and easy to use. It is designed to be +used with line-based machines and tools (e.g. serial console) so that +every new line is appended to the bottom of the screen. Printed lines +are never rewritten!} + +BuildRequires: python3-devel python3-gobject-base python3-setuptools gettext + +%description +%{common_description} + +%package -n python3-simpleline +Summary: A Python3-only text UI framework +Requires: rpm-python3 +%{?python_provide:%python_provide python3-simpleline} + +%description -n python3-simpleline +%{common_description} + +%prep +%autosetup -n simpleline-%{version} -p1 + +%build +%make_build + +%install +%make_install +%find_lang %{name} + +%check +make test + +%pre + +%preun + +%post + +%postun + +%files -n python3-simpleline -f %{name}.lang +%defattr(-,root,root) +%license COPYING +%doc ChangeLog README.md +%{python3_sitelib}/* + +%changelog +* Fri Oct 18 2019 openEuler Buildteam - 1.6-1 +- Package init diff --git a/simpleline-1.6.tar.gz b/simpleline-1.6.tar.gz new file mode 100644 index 0000000..8e82b8f Binary files /dev/null and b/simpleline-1.6.tar.gz differ