Initial import (#1413038)
This commit is contained in:
parent
9d7f90652f
commit
af3a4e2412
1
.gitignore
vendored
1
.gitignore
vendored
@ -0,0 +1 @@
|
||||
/simpleline-0.1.tar.gz
|
||||
73
python-simpleline.spec
Normal file
73
python-simpleline.spec
Normal 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
|
||||
Loading…
Reference in New Issue
Block a user