From d3e01af3b0836de37c4703e20822aa7d427460a6 Mon Sep 17 00:00:00 2001 From: corsepiu Date: Tue, 5 Sep 2006 10:59:40 +0000 Subject: [PATCH] - Upstream update. - utf-8 encode l10n'd man pages. --- .cvsignore | 2 +- help2man.spec | 21 ++++++++++++++++++--- needs.rebuild | 1 - sources | 2 +- 4 files changed, 20 insertions(+), 6 deletions(-) delete mode 100644 needs.rebuild diff --git a/.cvsignore b/.cvsignore index 117e384..1d36684 100644 --- a/.cvsignore +++ b/.cvsignore @@ -1 +1 @@ -help2man-1.36.3.tar.gz +help2man-1.36.4.tar.gz diff --git a/help2man.spec b/help2man.spec index b2d0258..e575c55 100644 --- a/help2man.spec +++ b/help2man.spec @@ -4,7 +4,7 @@ Name: help2man Summary: Create simple man pages from --help output -Version: 1.36.3 +Version: 1.36.4 Release: 1%{?dist} Group: Development/Tools License: GPL @@ -28,16 +28,25 @@ way to generate a placeholder man page pointing to that resource while still providing some useful information. %prep -%setup -n help2man-%{version} +%setup -q -n help2man-%{version} %build %configure %{!?_with_nls:--disable-nls} make %{?_smp_mflags} +# Fix up manpage encoding +for f in help2man.*.h2m; do + b=$(basename $f .h2m); + c=$(grep 'charset: ISO-*' $f | sed -e 's,^.*: ,,') + iconv -f $c -t utf-8 -o $b.1~ $b.1 + mv $b.1~ $b.1 +done + %install rm -fr $RPM_BUILD_ROOT make install DESTDIR=$RPM_BUILD_ROOT +make install_l10n DESTDIR=$RPM_BUILD_ROOT %clean rm -fr $RPM_BUILD_ROOT @@ -60,15 +69,21 @@ fi %if "%{?_with_nls}" %{_libdir}/*.so +%endif %lang(pl) %{_datadir}/locale/pl/LC_MESSAGES/help2man.mo %lang(fi) %{_datadir}/locale/fi/LC_MESSAGES/help2man.mo %lang(fr) %{_datadir}/locale/fr/LC_MESSAGES/help2man.mo +%lang(sv) %{_datadir}/locale/sv/LC_MESSAGES/help2man.mo %lang(pl) %{_mandir}/pl/man1/* %lang(fi) %{_mandir}/fi/man1/* %lang(fr) %{_mandir}/fr/man1/* -%endif +%lang(sv) %{_mandir}/sv/man1/* %changelog +* Tue Sep 05 2006 Ralf Corsépius - 1.36.4-1 +- Upstream update. +- utf-8 encode l10n'd man pages. + * Fri Dec 23 2005 Ralf Corsépius - 1.36.3-1 - Upstream update. - Add build option --with nls. diff --git a/needs.rebuild b/needs.rebuild deleted file mode 100644 index 815fd29..0000000 --- a/needs.rebuild +++ /dev/null @@ -1 +0,0 @@ -http://fedoraproject.org/wiki/Extras/Schedule/FC6MassRebuild diff --git a/sources b/sources index f7f4d30..08a7f3d 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -4b5f1609d22a6a0aacbeb5eaf08ad2b1 help2man-1.36.3.tar.gz +d31a0a38c2ec71faa06723f6b8bd3076 help2man-1.36.4.tar.gz