From e334622370adaa9b3c76fc3b30d29edc9e752387 Mon Sep 17 00:00:00 2001 From: "David Kaspar [Dee'Kej]" Date: Fri, 29 Apr 2016 22:07:51 +0200 Subject: [PATCH] tcsh.spec: %prep phase updated to correctly convert 'Fixes' & 'Wishlist' --- tcsh.spec | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/tcsh.spec b/tcsh.spec index 5e23c40..d35c212 100644 --- a/tcsh.spec +++ b/tcsh.spec @@ -53,14 +53,20 @@ spelling correction, a history mechanism, job control and a C language like syntax. +# Call the 'autosetup' macro to prepare the environment, but do not patch the +# source code yet -- we need to convert the 'Fixes' and 'Wishlist' files first: %prep +%autosetup -N -S git + for i in Fixes WishList; do iconv -f iso-8859-1 -t utf-8 "$i" > "${i}_" && \ touch -r "$i" "${i}_" && \ mv "${i}_" "$i" done -%autosetup -p1 -S git +# Amend the converted files to the initial commit, and patch the source code: +git commit --all --amend --no-edit > /dev/null +%autopatch -p1 %build