Compare commits

...
Sign in to create a new pull request.

1 commit

Author SHA1 Message Date
Benjamin A. Beasley
40a45917ca Fix unreadable BACKLOG and ChangeLog files 2021-10-09 10:13:58 -04:00

View file

@ -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 <code@musicinmybrain.net> - 1.2.2-20
- Fix unreadable BACKLOG and ChangeLog files
* Mon Feb 08 2021 Benjamin A. Beasley <code@musicinmybrain.net> - 1.2.2-19
- Work around no “install -D” support in EPEL7