From 40a45917ca71c478fd4732e5e453e10b7592ee38 Mon Sep 17 00:00:00 2001 From: "Benjamin A. Beasley" Date: Fri, 8 Oct 2021 19:59:13 -0400 Subject: [PATCH] Fix unreadable BACKLOG and ChangeLog files --- wdiff.spec | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/wdiff.spec b/wdiff.spec index 1bc6301..a29504c 100644 --- a/wdiff.spec +++ b/wdiff.spec @@ -2,7 +2,7 @@ Name: wdiff Version: 1.2.2 -Release: 19%{?dist} +Release: 20%{?dist} Summary: Compare files on a word per word basis # Entire source is GPLv3+, except wdiff.texi and the documentation built from @@ -46,14 +46,13 @@ produce a nicer display of word differences between the original files. %setup -q # Fix ISO-8859-1-encoded files -tmp="$(mktemp)" for fn in BACKLOG ChangeLog do - iconv --from=ISO-8859-1 --to=UTF-8 "${fn}" > "${tmp}" - touch -r "${fn}" "${tmp}" - cp -p "${tmp}" "${fn}" + iconv --from=ISO-8859-1 --to=UTF-8 "${fn}" > "${fn}.iconv" + touch -r "${fn}" "${fn}.iconv" + chmod -v --reference="${fn}" "${fn}.iconv" + mv -f "${fn}.iconv" "${fn}" done -rm "${tmp}" %build @@ -113,6 +112,9 @@ cp -rp doc/%{name}.html %{buildroot}%{_pkgdocdir}/html %changelog +* Sat Oct 09 2021 Benjamin A. Beasley - 1.2.2-20 +- Fix unreadable BACKLOG and ChangeLog files + * Mon Feb 08 2021 Benjamin A. Beasley - 1.2.2-19 - Work around no “install -D” support in EPEL7