Monitoring Plugin pkg added

This commit is contained in:
Daniel Steiner
2019-12-13 12:42:04 +01:00
parent 9766947ae2
commit 041a1430ce
3 changed files with 142 additions and 68 deletions

View File

@@ -9,13 +9,24 @@ Source0: powerline_shell.tar.gz
%define debug_package %{nil}
BuildRequires: python powerline
BuildRequires: powerline
%if 0%{?rhel} > 8
BuildRequires: python
BuildRequires: GitPython
BuildRequires: python-setuptools
Requires: python powerline bash
Requires: GitPython
Requires: python2-argparse
Requires: python-setuptools
%else
BuildRequires: python3
BuildRequires: python3-GitPython
BuildRequires: python3-setuptools
Requires: python3 powerline bash
Requires: python3-GitPython
Requires: python3-argparse
Requires: python3-setuptools
%endif
%description
A beautiful and useful prompt generator for Bash, ZSH, Fish, and tcsh:
@@ -36,6 +47,16 @@ python setup.py build
%install
python setup.py install --no-compile --skip-build --prefix=%{_prefix} --root=%{buildroot}
%if 0%{?rhel} >= 8
pushd %{buildroot}
for f in \
usr/bin/powerline-shell
do
pathfix.py -pni /usr/bin/python3 $f
done
popd
%endif
%clean
[ "%{buildroot}" != "/" ] && [ -d "%{buildroot}" ] && rm -rf %{buildroot}