From ab5ccb91f5c298c8bb2d8504e8c0aa433f3fbb18 Mon Sep 17 00:00:00 2001 From: Daniel Steiner Date: Sun, 3 Feb 2019 00:07:35 +0100 Subject: [PATCH] New powerline_shell package, but, it's not working when installed --- fedora/SPECS/powerline_shell.spec | 61 +++++++++++++++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 fedora/SPECS/powerline_shell.spec diff --git a/fedora/SPECS/powerline_shell.spec b/fedora/SPECS/powerline_shell.spec new file mode 100644 index 0000000..7d6583f --- /dev/null +++ b/fedora/SPECS/powerline_shell.spec @@ -0,0 +1,61 @@ +Name: powerline_shell +Version: 0.7.0 +Release: 1%{?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} +%define pyvers 3 + +BuildRequires: python%{pyvers} powerline +BuildRequires: python%{pyvers}-GitPython +Requires: python%{pyvers} powerline bash +Requires: python%{pyvers}-GitPython +Requires: python%{pyvers}-configargparse +Requires: python%{pyvers}-catkin_pkg + +%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%{pyvers} setup.py build +%py3_build + +%install +#python%{pyvers} setup.py install --no-compile -O1 --skip-build --prefix=%{_prefix} --root=%{buildroot} +%py3_install + +%clean +[ "%{buildroot}" != "/" ] && [ -d "%{buildroot}" ] && rm -rf %{buildroot} +[ "%{_builddir}" != "/" ] && [ -d "%{_builddir}" ] && rm -rf %{_builddir}/* + +%files +%doc CHANGELOG.md README.md LICENSE +%{_bindir}/powerline-shell +%{python3_sitelib}/%{name}/*.py +%{python3_sitelib}/%{name}/__pycache__/*.pyc +%{python3_sitelib}/%{name}/segments/*.py +%{python3_sitelib}/%{name}/segments/__pycache__/*.pyc +%{python3_sitelib}/%{name}/themes/*.py +%{python3_sitelib}/%{name}/themes/__pycache__/*.pyc +%{python3_sitelib}/%{name}*.egg-info/* + + +%changelog +* Sat Feb 2 2019 Daniel Steiner +- First build. +