From bb2acca08c397575f381cbc6ee45a9139f38e55c Mon Sep 17 00:00:00 2001 From: Zdenek Dohnal Date: Jan 06 2020 17:37:16 +0000 Subject: a2ps: new texinfo needs to have documentencoding defined --- diff --git a/a2ps-define-texinfo-enc.patch b/a2ps-define-texinfo-enc.patch new file mode 100644 index 0000000..abfd32b --- /dev/null +++ b/a2ps-define-texinfo-enc.patch @@ -0,0 +1,10 @@ +diff --git a/doc/a2ps.texi b/doc/a2ps.texi +index 1b64234..59e0834 100644 +--- a/doc/a2ps.texi ++++ b/doc/a2ps.texi +@@ -1,4 +1,5 @@ + \input texinfo @c -*- texinfo -*- ++@documentencoding utf-8 + @c %**start of header + @setfilename a2ps.info + @settitle General Purpose PostScript Generating Utility diff --git a/a2ps.spec b/a2ps.spec index 57fede5..cbfc274 100644 --- a/a2ps.spec +++ b/a2ps.spec @@ -1,7 +1,7 @@ Summary: Converts text and other types of files to PostScript Name: a2ps Version: 4.14 -Release: 41%{?dist} +Release: 42%{?dist} License: GPLv3+ Source0: http://ftp.gnu.org/gnu/a2ps/%{name}-%{version}.tar.gz Source1: ftp://ftp.enst.fr/pub/unix/a2ps/i18n-fonts-0.1.tar.gz @@ -38,6 +38,7 @@ Patch37: a2ps-overrun-dynamic.patch Patch38: a2ps-overrun-static.patch Patch39: a2ps-resource-leak.patch Patch40: a2ps-CVE-2014-0466.patch +Patch41: a2ps-define-texinfo-enc.patch BuildRequires: gperf BuildRequires: emacs, flex, libtool, texinfo, groff BuildRequires: ImageMagick @@ -155,6 +156,9 @@ and medias. # Invoke gs with the -dSAFER option in fixps (CVE-2014-0466, bug #1082411). %patch40 -p1 -b .CVE-2014-0466 +# new texinfo needs to have documentencoding defined (#1788165) +%patch41 -p1 -b .define-texinfo-enc + for file in AUTHORS ChangeLog; do iconv -f latin1 -t UTF-8 < $file > $file.utf8 touch -c -r $file $file.utf8 @@ -270,6 +274,9 @@ exit 0 %{_emacs_sitelispdir}/%{name} %changelog +* Mon Jan 06 2020 Zdenek Dohnal - 4.14-42 +- a2ps: new texinfo needs to have documentencoding defined + * Wed Jul 24 2019 Fedora Release Engineering - 4.14-41 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild