-
Notifications
You must be signed in to change notification settings - Fork 9
/
python-simpleline.spec
62 lines (48 loc) · 1.59 KB
/
python-simpleline.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
%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: 1%{?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}/releases/download/%{version}/%{srcname}-%{version}.tar.gz
License: LGPL-3.0-or-later
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