Updates for CentOS 8

This commit is contained in:
root
2019-09-29 13:58:38 +02:00
parent 5b0e3fef09
commit 9cbb068cea
7 changed files with 172 additions and 16 deletions

View File

@@ -1,23 +1,23 @@
%global debug_package %{nil}
Name: powerline
Version: 2.6
Release: 2%{?dist}
Version: 2.7
Release: 1%{?dist}
Summary: The ultimate status-line/prompt utility
License: MIT
Url: https://github.com/powerline/powerline
BuildRequires: python34-setuptools
BuildRequires: python-sphinx
BuildRequires: python34-devel
BuildRequires: python3-setuptools
BuildRequires: python3-sphinx
BuildRequires: python36-devel
BuildRequires: fdupes
BuildRequires: fontconfig
BuildRequires: systemd
BuildRequires: tmux
BuildRequires: vim-minimal
Requires: python34
Requires: python36
Requires: powerline-fonts
Requires(post): systemd
Requires(preun): systemd
@@ -27,7 +27,7 @@ Source0: https://github.com/powerline/powerline/archive/%{version}/powerl
Source1: vim-powerline.metainfo.xml
Patch0: powerline-py2v3-fix.patch
Patch1: powerline-2.6-gcc7_fixes.patch
#Patch1: powerline-2.6-gcc7_fixes.patch
Patch2: sphinx-build.patch
%description
@@ -80,9 +80,32 @@ to your ~/.tmux.conf file.
%prep
%setup -q
%patch0 -p1 -b .py2v3-fix
%patch1 -p1 -b .gcc7-fixes
%patch2 -p0 -b .sphinx-build
for f in \
client/powerline.py \
CONTRIBUTING.rst \
powerline/bindings/i3/powerline-i3.py \
powerline/bindings/pdb/__main__.py \
powerline/bindings/awesome/powerline-awesome.py \
powerline/bindings/lemonbar/powerline-lemonbar.py \
powerline/bindings/bar/powerline-bar.py \
scripts/powerline-config \
scripts/powerline-release.py \
scripts/powerline-daemon \
scripts/powerline-lint \
scripts/powerline-render \
setup.py \
tests/test_in_vterm/test_vim.py \
tests/test_in_vterm/test_tmux.py \
tests/test_shells/run_script.py \
tests/test_shells/postproc.py \
tools/generate_gradients.py \
tools/purge-PRs.py \
tools/colors_find.py; do
pathfix.py -pni /usr/bin/python3 $f
done
%build
# nothing to build