2019-02-03 12:47:28 +01:00
|
|
|
|
Name: powerline_shell
|
|
|
|
|
|
Version: 0.7.0
|
|
|
|
|
|
Release: 3%{?dist}
|
|
|
|
|
|
Summary: A beautiful and useful prompt generator for Bash, ZSH, Fish, and tcsh
|
|
|
|
|
|
|
|
|
|
|
|
License: MIT
|
|
|
|
|
|
URL: https://dev.daniel-steiner.org/dani/powerline-shell-enhanced#segment-configuration
|
|
|
|
|
|
Source0: powerline_shell.tar.gz
|
|
|
|
|
|
|
|
|
|
|
|
%define debug_package %{nil}
|
|
|
|
|
|
|
2019-12-13 12:42:04 +01:00
|
|
|
|
BuildRequires: powerline
|
|
|
|
|
|
%if 0%{?rhel} > 8
|
|
|
|
|
|
BuildRequires: python
|
2019-02-03 12:47:28 +01:00
|
|
|
|
BuildRequires: GitPython
|
|
|
|
|
|
BuildRequires: python-setuptools
|
|
|
|
|
|
Requires: python powerline bash
|
|
|
|
|
|
Requires: GitPython
|
|
|
|
|
|
Requires: python2-argparse
|
|
|
|
|
|
Requires: python-setuptools
|
2019-12-13 12:42:04 +01:00
|
|
|
|
%else
|
|
|
|
|
|
BuildRequires: python3
|
|
|
|
|
|
BuildRequires: python3-GitPython
|
|
|
|
|
|
BuildRequires: python3-setuptools
|
|
|
|
|
|
Requires: python3 powerline bash
|
|
|
|
|
|
Requires: python3-GitPython
|
|
|
|
|
|
Requires: python3-argparse
|
|
|
|
|
|
Requires: python3-setuptools
|
|
|
|
|
|
%endif
|
2019-02-03 12:47:28 +01:00
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
|
A beautiful and useful prompt generator for Bash, ZSH, Fish, and tcsh:
|
|
|
|
|
|
|
|
|
|
|
|
* Shows some important details about the git/svn/hg/fossil branch (see below)
|
|
|
|
|
|
* Changes color if the last command exited with a failure code
|
|
|
|
|
|
* If you’re too deep into a directory tree, shortens the displayed path with an ellipsis
|
|
|
|
|
|
* Shows the current Python virtualenv environment
|
|
|
|
|
|
* It’s easy to customize and extend. See below for details.
|
|
|
|
|
|
|
|
|
|
|
|
The generated prompts are designed to resemble powerline, but otherwise this project has no relation to powerline.
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
|
%setup -q -n %{name}
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
|
python setup.py build
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
|
python setup.py install --no-compile --skip-build --prefix=%{_prefix} --root=%{buildroot}
|
2019-12-13 12:42:04 +01:00
|
|
|
|
%if 0%{?rhel} >= 8
|
|
|
|
|
|
pushd %{buildroot}
|
|
|
|
|
|
for f in \
|
|
|
|
|
|
usr/bin/powerline-shell
|
|
|
|
|
|
do
|
|
|
|
|
|
pathfix.py -pni /usr/bin/python3 $f
|
|
|
|
|
|
done
|
|
|
|
|
|
popd
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
2019-02-03 12:47:28 +01:00
|
|
|
|
|
|
|
|
|
|
%clean
|
|
|
|
|
|
[ "%{buildroot}" != "/" ] && [ -d "%{buildroot}" ] && rm -rf %{buildroot}
|
|
|
|
|
|
[ "%{_builddir}" != "/" ] && [ -d "%{_builddir}" ] && rm -rf %{_builddir}/*
|
|
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
|
%doc CHANGELOG.md README.md LICENSE
|
|
|
|
|
|
%{_bindir}/powerline-shell
|
|
|
|
|
|
%{python_sitelib}/%{name}/*.py*
|
|
|
|
|
|
%{python_sitelib}/%{name}/segments/*.py*
|
|
|
|
|
|
%{python_sitelib}/%{name}/themes/*.py*
|
|
|
|
|
|
%{python_sitelib}/%{name}*.egg-info/*
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
|
* Sun Feb 3 2019 Daniel Steiner <daniel.steiner@daniel-steiner.org>
|
|
|
|
|
|
- Dependency added for python-setuptools rpm.
|
|
|
|
|
|
|
|
|
|
|
|
* Sun Feb 3 2019 Daniel Steiner <daniel.steiner@daniel-steiner.org>
|
|
|
|
|
|
- Dependency added for pythonX-argparse rpm.
|
|
|
|
|
|
|
|
|
|
|
|
* Sat Feb 2 2019 Daniel Steiner <daniel.steiner@daniel-steiner.org>
|
|
|
|
|
|
- First build.
|
|
|
|
|
|
|