diff --git a/ghostscript.spec b/ghostscript.spec index 7b522d6..e5fae87 100644 --- a/ghostscript.spec +++ b/ghostscript.spec @@ -5,7 +5,7 @@ Summary: A PostScript interpreter and renderer Name: ghostscript Version: %{gs_ver} -Release: 1%{?dist} +Release: 2%{?dist} # Included CMap data is Redistributable, no modification permitted, # see http://bugzilla.redhat.com/487510 @@ -144,7 +144,11 @@ from8859_1() { iconv -f iso-8859-1 -t utf-8 < "$1" > "${1}_" mv "${1}_" "$1" } -for i in man/de/*.1; do from8859_1 "$i"; done +for i in man/de/*.1; do + if [ "$(file --brief --mime-encoding "$i")" = iso-8859-1 ]; then + from8859_1 "$i" + fi +done # Convert ps files to UTF-8 for i in examples/cjk/gsc*.ps; do from8859_1 "$i"; done @@ -329,6 +333,9 @@ rm -rf $RPM_BUILD_ROOT %{_libdir}/libgs.so %changelog +* Tue Sep 4 2012 Tim Waugh - 9.06-2 +- Fixed encoding of German ps2pdf man page (bug #853764). + * Wed Aug 8 2012 Tim Waugh - 9.06-1 - 9.06.