77 lines
2.1 KiB
RPMSpec
77 lines
2.1 KiB
RPMSpec
%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: 4%{?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
|
|
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.1-4
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
|
* 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
|