Initial import (#1413038)

This commit is contained in:
Jiri Konecny 2017-05-17 11:00:05 +02:00
parent 9d7f90652f
commit af3a4e2412
3 changed files with 75 additions and 0 deletions

1
.gitignore vendored
View File

@ -0,0 +1 @@
/simpleline-0.1.tar.gz

73
python-simpleline.spec Normal file
View File

@ -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 <jkonecny@redhat.com> - 0.1-3
- Modify comments in the spec file
* Thu May 4 2017 Jiri Konecny <jkonecny@redhat.com> - 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 <jkonecny@redhat.com> - 0.1-1
- Initial package

View File

@ -0,0 +1 @@
SHA512 (simpleline-0.1.tar.gz) = be7292a210c6a93710809e28156ec7457894068ffb7d41ae89a95e882d0dad0671b1796138bddf5610c5face6b2f53632a4974110f00b89e6cd1d08eaa870c60