diff --git a/.gitignore b/.gitignore index e69de29..c2eaf3f 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/simpleline-0.1.tar.gz diff --git a/python-simpleline.spec b/python-simpleline.spec new file mode 100644 index 0000000..63c4f86 --- /dev/null +++ b/python-simpleline.spec @@ -0,0 +1,73 @@ +%global srcname simpleline + +Name: python-%{srcname} +Summary: A Python library for creating text UI +Url: https://github.com/rhinstaller/python-%{srcname} +Version: 0.1 +Release: 3%{?dist} +# This tarball was created from upstream git: +# git clone https://github.com/rhinstaller/python-simpleline +# cd python-simpleline && make archive +Source0: https://github.com/rhinstaller/python-%{srcname}/archive/%{srcname}-%{version}.tar.gz + +License: GPLv2+ +BuildArch: noarch +BuildRequires: python3-devel +BuildRequires: gettext +BuildRequires: python3-setuptools +BuildRequires: intltool +BuildRequires: python3-pocketlint + +%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 COPYING +%doc ChangeLog README.md +%{python3_sitelib}/* + +%changelog +* Fri May 5 2017 Jiri Konecny - 0.1-3 +- Modify comments in the spec file + +* Thu May 4 2017 Jiri Konecny - 0.1-2 +- Drop clean section +- Drop Group, it is not needed +- Use make_build macro +- Reorder check and install sections +- Rename package to python-simpleline but rpm will be python3-simpleline + +* Fri Dec 16 2016 Jiri Konecny - 0.1-1 +- Initial package diff --git a/sources b/sources index e69de29..5b1a880 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +SHA512 (simpleline-0.1.tar.gz) = be7292a210c6a93710809e28156ec7457894068ffb7d41ae89a95e882d0dad0671b1796138bddf5610c5face6b2f53632a4974110f00b89e6cd1d08eaa870c60