Remove PostScript documentation UTF-8 encoding conversion
This is fixed upstream[1] and is not strictly correct in any case since PostScript uses its own encoding[2]. * build2.spec: Remove PostScript documentation UTF-8 encoding conversion [1] https://git.build2.org/cgit/build2/commit/?id=8ceb809c28f663bb1473722de3c6a24319888e61 [2] https://en.wikipedia.org/wiki/PostScript_Latin_1_Encoding
This commit is contained in:
parent
1a35b340fb
commit
b4d4e4f59b
@ -221,14 +221,6 @@ This package contains the %{name} RPM macros.
|
|||||||
%setup -q -c -n %{name}-toolchain-%{version} -a 1 -a 2 -a 3 -a 4 -a 100 -a 101
|
%setup -q -c -n %{name}-toolchain-%{version} -a 1 -a 2 -a 3 -a 4 -a 100 -a 101
|
||||||
%endif
|
%endif
|
||||||
mv libbutl-%{version} %{name}-%{version}
|
mv libbutl-%{version} %{name}-%{version}
|
||||||
# fix PostScript documentation character encoding
|
|
||||||
for f in $(find -name "*.ps"); do
|
|
||||||
encoding=$(file -bi "${f}" | cut -f 2 -d';' | cut -f 2 -d'=')
|
|
||||||
if [ "${encoding}" != "utf-8" ]; then
|
|
||||||
iconv -f "${encoding}" -t utf-8 "${f}" -o "${f}.utf8"
|
|
||||||
mv "${f}.utf8" "${f}"
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
# Define basic installation configuration. Note that this does not include:
|
# Define basic installation configuration. Note that this does not include:
|
||||||
|
Loading…
Reference in New Issue
Block a user