From 1b18fe8ee3bf9b0cf3d7bb2e97e6cef6f4ce7a81 Mon Sep 17 00:00:00 2001 From: Ivana Hutarova Varekova Date: Mon, 31 Jan 2011 15:55:37 +0100 Subject: [PATCH] - resolves: #673586 fix the sed pages parsing --- man-pages.spec | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/man-pages.spec b/man-pages.spec index b7f91ea..ec708af 100644 --- a/man-pages.spec +++ b/man-pages.spec @@ -4,7 +4,7 @@ Summary: Man (manual) pages from the Linux Documentation Project Name: man-pages Version: 3.32 -Release: 6%{?dist} +Release: 7%{?dist} License: GPLv2+ and GPL+ and BSD and MIT and Copyright only and IEEE Group: Documentation URL: http://www.kernel.org/pub/linux/docs/manpages/ @@ -106,11 +106,11 @@ for sec in 0p 1 1p 2 3 3p 4 5 6 7 8 9; do enc=${f#man7/} enc=${enc%.7} enc=ISO-${enc#iso_} - LANG=en iconv -f $enc -t utf-8 $f | sed -e '1s/coding: [^ ]* /coding: UTF-8 /' > $instdir/$f ;; + LANG=en iconv -f $enc -t utf-8 $f | sed -e '1s/coding: *[^ ]* /coding: UTF-8 /' > $instdir/$f ;; man7/koi8-*.7 | man7/armscii-8.7 | man7/cp1251.7) enc=${f#man7/} enc=${enc%.7} - LANG=en iconv -f $enc -t utf-8 $f | sed -e '1s/coding: [^ ]* /coding: UTF-8 /' > $instdir/$f ;; + LANG=en iconv -f $enc -t utf-8 $f | sed -e '1s/coding: *[^ ]* /coding: UTF-8 /' > $instdir/$f ;; *) LANG=en iconv -f latin1 -t utf-8 -o $instdir/en/$f $f LANG=en iconv -f utf-8 -t ascii//translit -o $instdir/$f $instdir/en/$f @@ -130,6 +130,10 @@ rm -rf $RPM_BUILD_ROOT %lang(en) %{_mandir}/en/man*/* %changelog +* Mon Jan 31 2011 Ivana Hutarova Varekova - 3.31-7 +- resolves: #673586 + fix the sed pages parsing + * Thu Jan 27 2011 Ivana Hutarova Varekova - 3.31-6 - resolves: #652869 fix the necessary buffer limit in the man page for readdir_r