Monitoring Plugin pkg added
This commit is contained in:
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user