From 91b32e7a5d593869425a7e245251ed8c8f7ddd35 Mon Sep 17 00:00:00 2001 From: Kamil Dudka Date: Wed, 14 Dec 2016 15:46:18 +0100 Subject: [PATCH] drop zsh-4.3.6-8bit-prompts.patch which was superseeded by an upstream patch See http://www.zsh.org/mla/users/2007/msg00468.html for details. --- zsh-4.3.6-8bit-prompts.patch | 130 ----------------------------------- zsh.spec | 3 +- 2 files changed, 2 insertions(+), 131 deletions(-) delete mode 100644 zsh-4.3.6-8bit-prompts.patch diff --git a/zsh-4.3.6-8bit-prompts.patch b/zsh-4.3.6-8bit-prompts.patch deleted file mode 100644 index 534d6df..0000000 --- a/zsh-4.3.6-8bit-prompts.patch +++ /dev/null @@ -1,130 +0,0 @@ -diff --git a/Functions/Prompts/prompt_bigfade_setup b/Functions/Prompts/prompt_bigfade_setup -index 2d95f31..f2f27f4 100644 ---- a/Functions/Prompts/prompt_bigfade_setup -+++ b/Functions/Prompts/prompt_bigfade_setup -@@ -7,7 +7,7 @@ prompt_bigfade_help () { - cat < [ [ []]]] -+ prompt bigfade [8bit] [ [ [ []]]] - - where the parameters are the colors for the fade-bar, user@host text, - date text, and current working directory respectively. The default -@@ -27,9 +27,12 @@ prompt_bigfade_setup () { - local date=${3:-'white'} - local cwd=${4:-'yellow'} - -+ if [[ $1 == '8bit' ]]; then -+ shift - local -A schars - autoload -Uz prompt_special_chars - prompt_special_chars -+ fi - - PS1="%B%F{$fadebar}$schars[333]$schars[262]$schars[261]$schars[260]%B%F{$userhost}%K{$fadebar}%n@%m%b%k%f%F{$fadebar}%K{black}$schars[260]$schars[261]$schars[262]$schars[333]%b%f%k%F{$fadebar}%K{black}$schars[333]$schars[262]$schars[261]$schars[260]%B%F{$date}%K{black} %D{%a %b %d} %D{%I:%M:%S%P}$prompt_newline%B%F{$cwd}%K{black}%d>%b%f%k " - PS2="%B%F{$fadebar}$schars[333]$schars[262]$schars[261]$schars[260]%b%F{$fadebar}%K{black}$schars[260]$schars[261]$schars[262]$schars[333]%F{$fadebar}%K{black}$schars[333]$schars[262]$schars[261]$schars[260]%B%F{$fadebar}>%b%f%k " -diff --git a/Functions/Prompts/prompt_elite2_setup b/Functions/Prompts/prompt_elite2_setup -index 754bf60..0006665 100644 ---- a/Functions/Prompts/prompt_elite2_setup -+++ b/Functions/Prompts/prompt_elite2_setup -@@ -6,7 +6,7 @@ prompt_elite2_help () { - cat < []] -+ prompt elite2 [8bit] [ []] - - The default colors are both cyan. This theme works best with a dark - background. -@@ -21,9 +21,12 @@ prompt_elite2_setup () { - local text_col=${1:-'cyan'} - local parens_col=${2:-$text_col} - -+ if [[ $1 == '8bit' ]]; then -+ shift - local -A schars - autoload -Uz prompt_special_chars - prompt_special_chars -+ fi - - local text="%b%F{$text_col}" - local parens="%B%F{$parens_col}" -diff --git a/Functions/Prompts/prompt_elite_setup b/Functions/Prompts/prompt_elite_setup -index 0d57f50..e4b3fb1 100644 ---- a/Functions/Prompts/prompt_elite_setup -+++ b/Functions/Prompts/prompt_elite_setup -@@ -6,7 +6,7 @@ prompt_elite_help () { - cat < []] -+ prompt elite [8bit] [ []] - - The default colors are red and blue respectively. This theme is - intended for use with a black background. -@@ -21,9 +21,12 @@ prompt_elite_setup () { - local text=${1:-'red'} - local punctuation=${2:-'blue'} - -+ if [[ $1 == '8bit' ]]; then -+ shift - local -A schars - autoload -Uz prompt_special_chars - prompt_special_chars -+ fi - - PS1="%F{$text}$schars[332]$schars[304]%F{$punctuation}(%F{$text}%n%F{$punctuation}@%F{$text}%m%F{$punctuation})%F{$text}-%F{$punctuation}(%F{$text}%D{%I:%M%P}%F{$punctuation}-:-%F{$text}%D{%m}%F{$punctuation}%F{$text}/%D{%d}%F{$punctuation})%F{$text}$schars[304]-%F{$punctuation}$schars[371]%F{$text}-$schars[371]$schars[371]%F{$punctuation}$schars[372]$prompt_newline%F{$text}$schars[300]$schars[304]%F{$punctuation}(%F{$text}%1~%F{$punctuation})%F{$text}$schars[304]$schars[371]%F{$punctuation}$schars[372]%f" - PS2="> " -diff --git a/Functions/Prompts/prompt_fade_setup b/Functions/Prompts/prompt_fade_setup -index d915cc0..ddd0162 100644 ---- a/Functions/Prompts/prompt_fade_setup -+++ b/Functions/Prompts/prompt_fade_setup -@@ -7,7 +7,7 @@ prompt_fade_help () { - cat < [ []]] -+ prompt fade [8bit] [ [ []]] - - where the parameters are the colors for the fade-bar and current - working directory, user@host text, and date text respectively. The -@@ -27,9 +27,12 @@ prompt_fade_setup () { - local userhost=${2:-'white'} - local date=${3:-'white'} - -+ if [[ $1 == '8bit' ]]; then -+ shift - local -A schars - autoload -Uz prompt_special_chars - prompt_special_chars -+ fi - - PS1="%F{$fadebar_cwd}%B%K{$fadebar_cwd}$schars[333]$schars[262]$schars[261]$schars[260]%F{$userhost}%K{$fadebar_cwd}%B%n@%m%b%F{$fadebar_cwd}%K{black}$schars[333]$schars[262]$schars[261]$schars[260]%F{$date}%K{black}%B %D{%a %b %d} %D{%I:%M:%S%P} $prompt_newline%F{$fadebar_cwd}%K{black}%B%~/%b%k%f " - PS2="%F{$fadebar_cwd}%K{black}$schars[333]$schars[262]$schars[261]$schars[260]%f%k>" -diff --git a/Functions/Prompts/prompt_fire_setup b/Functions/Prompts/prompt_fire_setup -index 7bb8367..3217980 100644 ---- a/Functions/Prompts/prompt_fire_setup -+++ b/Functions/Prompts/prompt_fire_setup -@@ -8,7 +8,7 @@ prompt_fire_help () { - cat < [ [ [ [ []]]]]] -+ prompt fire [8bit] [ [ [ [ [ []]]]]] - - where the parameters are the three fire colors, and the colors for the - user@host text, date text, and current working directory respectively. -@@ -29,9 +29,12 @@ prompt_fire_setup () { - local date=${5:-'white'} - local cwd=${6:-'yellow'} - -+ if [[ $1 == '8bit' ]]; then -+ shift - local -a schars - autoload -Uz prompt_special_chars - prompt_special_chars -+ fi - - local GRAD1="%{$schars[333]$schars[262]$schars[261]$schars[260]%}" - local GRAD2="%{$schars[260]$schars[261]$schars[262]$schars[333]%}" diff --git a/zsh.spec b/zsh.spec index 8ff6e8b..3e41266 100644 --- a/zsh.spec +++ b/zsh.spec @@ -18,7 +18,6 @@ Source7: zshprompt.pl # legacy downstream patches, TODO: either get them upstream or drop them Patch0: zsh-serial.patch -Patch1: zsh-4.3.6-8bit-prompts.patch BuildRequires: coreutils sed ncurses-devel libcap-devel BuildRequires: texinfo texi2html gawk hostname @@ -155,6 +154,8 @@ fi %changelog * Wed Dec 14 2016 Kamil Dudka - 5.3-2 +- drop zsh-4.3.6-8bit-prompts.patch which was superseeded by an upstream patch + (see http://www.zsh.org/mla/users/2007/msg00468.html for details) - drop undocumented zsh-test-C02-dev_fd-mock.patch * Tue Dec 13 2016 Kamil Dudka - 5.3-1