a2ps: new texinfo needs to have documentencoding defined

This commit is contained in:
Zdenek Dohnal 2020-01-06 18:37:16 +01:00
commit bb2acca08c
2 changed files with 18 additions and 1 deletions

View file

@ -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

View file

@ -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 <zdohnal@redhat.com> - 4.14-42
- a2ps: new texinfo needs to have documentencoding defined
* Wed Jul 24 2019 Fedora Release Engineering <releng@fedoraproject.org> - 4.14-41
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild