diff --git a/python-simpleline.spec b/python-simpleline.spec new file mode 100644 index 0000000000000000000000000000000000000000..10d0ddfbbf1d389c2739020a18c2b444c9fe0422 --- /dev/null +++ b/python-simpleline.spec @@ -0,0 +1,65 @@ +%define anolis_release 1 +%global srcname simpleline + +Name: python-%{srcname} +Summary: A Python library for creating text UI +Url: https://github.com/rhinstaller/python-%{srcname} +Version: 1.9.0 +Release: %{anolis_release}%{?dist} +# This tarball was created from upstream git: +# git clone https://github.com/rhinstaller/python-simpleline +# cd python-simpleline && git checkout 1.9.0 && make archive +Source0: https://github.com/rhinstaller/python-%{srcname}/releases/download/%{version}/%{srcname}-%{version}.tar.gz + +License: LGPLv3+ +BuildArch: noarch +BuildRequires: make +BuildRequires: python3-devel +BuildRequires: gettext +BuildRequires: python3-setuptools +BuildRequires: intltool +BuildRequires: python3-gobject-base + +%description +Simpleline is a Python library for creating text UI. +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! + + +%package -n python3-%{srcname} +Summary: A Python3 library for creating text UI +Requires: rpm-python3 + +%{?python_provide:%python_provide python3-%{srcname}} + +%description -n python3-%{srcname} +Simpleline is a Python3 library for creating text UI. +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! + +%prep +%setup -q -n %{srcname}-%{version} + +%build +%make_build + +%install +make DESTDIR=%{buildroot} install +%find_lang python-%{srcname} + +%check +make test + + +%files -n python3-%{srcname} -f python-%{srcname}.lang +%license LICENSE.md +%doc ChangeLog README.md +%{python3_sitelib}/* + +%changelog +* Mon Apr 18 2022 Chunmei Xu - 1.9.0-1 +- init from upstream diff --git a/simpleline-1.9.0.tar.gz b/simpleline-1.9.0.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..7775a23185c8d07a084ba84350a5dd6d8429b909 Binary files /dev/null and b/simpleline-1.9.0.tar.gz differ