Browse Source

upstream の更新と日本語の翻訳追加

git-svn-id: http://trac.vinelinux.org/repos/projects/specs@3709 ec354946-7b23-47d6-9f5a-488ba84defc7
yasumichi 13 years ago
parent
commit
f16d0d5d14
1 changed files with 49 additions and 23 deletions
  1. 49 23
      h/help2man/help2man-vl.spec

+ 49 - 23
h/help2man/help2man-vl.spec

@@ -1,24 +1,24 @@
-# Supported build option:
-#
-# --with nls ... build this package with --enable-nls 
-
 Name:           help2man
 Summary:        Create simple man pages from --help output
 Summary(ja):    --help の出力から簡単なマニュアルページを生成するツール
-Version:        1.36.4
-Release:        2%{?_dist_release}
+Version:        1.39.2
+Release:        1%{?_dist_release}
 Group:          Development/Tools
 License:        GPLv2+
 URL:            http://www.gnu.org/software/help2man
 Source:         ftp://ftp.gnu.org/gnu/help2man/help2man-%{version}.tar.gz
+Source1:	help2man.ja.po
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root
 
-%{!?_with_nls:BuildArch: noarch}
-%{?_with_nls:BuildRequires: perl(Locale::gettext)}
-%{?_with_nls:Requires: perl(Locale::gettext)}
-
 Requires(post): /sbin/install-info
 Requires(preun): /sbin/install-info
+Requires:	perl-gettext
+BuildRequires:	perl-gettext
+Requires:	perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
+
+Vendor: Project Vine
+Distribution: Vine Linux
+Packager: daisuke, yasumichi
 
 %description
 help2man is a script to create simple man pages from the --help and
@@ -32,19 +32,22 @@ still providing some useful information.
 %setup -q -n help2man-%{version}
 iconv -f ISO-8859-1 -t utf-8 THANKS > THANKS~
 mv THANKS~ THANKS
+%{__cp} %{SOURCE1} po/ja.po
+# add Japanese locale
+echo "ja	ja_JP.utf8" >> locales
 
 %build
 
-%configure %{!?_with_nls:--disable-nls}
+%configure
 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
+#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
@@ -69,20 +72,43 @@ fi
 %{_bindir}/help2man
 %{_infodir}/*
 %{_mandir}/man1/*
-
-%if "%{?_with_nls}"
-%{_libdir}/*.so
-%endif
-%lang(pl) %{_datadir}/locale/pl/LC_MESSAGES/help2man.mo
+%{_libdir}/help2man
+%lang(de) %{_datadir}/locale/de/LC_MESSAGES/help2man.mo
+%lang(el) %{_datadir}/locale/el/LC_MESSAGES/help2man.mo
+%lang(eo) %{_datadir}/locale/eo/LC_MESSAGES/help2man.mo
 %lang(fi) %{_datadir}/locale/fi/LC_MESSAGES/help2man.mo
 %lang(fr) %{_datadir}/locale/fr/LC_MESSAGES/help2man.mo
+%lang(it) %{_datadir}/locale/it/LC_MESSAGES/help2man.mo
+%lang(ja) %{_datadir}/locale/ja/LC_MESSAGES/help2man.mo
+%lang(pl) %{_datadir}/locale/pl/LC_MESSAGES/help2man.mo
+%lang(pt_BR) %{_datadir}/locale/pt_BR/LC_MESSAGES/help2man.mo
+%lang(ru) %{_datadir}/locale/ru/LC_MESSAGES/help2man.mo
 %lang(sv) %{_datadir}/locale/sv/LC_MESSAGES/help2man.mo
-%lang(pl) %{_mandir}/pl/man1/*
+%lang(uk) %{_datadir}/locale/uk/LC_MESSAGES/help2man.mo
+%lang(vi) %{_datadir}/locale/vi/LC_MESSAGES/help2man.mo
+%lang(de) %{_mandir}/de/man1/*
+%lang(el) %{_mandir}/el/man1/*
+%lang(eo) %{_mandir}/eo/man1/*
 %lang(fi) %{_mandir}/fi/man1/*
 %lang(fr) %{_mandir}/fr/man1/*
+%lang(it) %{_mandir}/it/man1/*
+%lang(ja) %{_mandir}/ja/man1/*
+%lang(pl) %{_mandir}/pl/man1/*
+%lang(pt_BR) %{_mandir}/pt_BR/man1/*
+%lang(ru) %{_mandir}/ru/man1/*
 %lang(sv) %{_mandir}/sv/man1/*
+%lang(uk) %{_mandir}/uk/man1/*
+%lang(vi) %{_mandir}/vi/man1/*
 
 %changelog
+* Wed Apr 27 2011 Yasumichi Akahoshi <yasumichi@vinelinux.org> 1.39.2-1
+- new upstream release.
+- add languages(de, el, eo, it, pt_BR, ru, uk, vi)
+- add Japanese translation.
+- stop to change encoding of manpages.
+- enable nls.
+- add Vendor, Distribution and Packager tag.
+
 * Tue Jan 18 2011 Shu KONNO <owa@bg.wakwak.com> 1.36.4-2
 - rebuilt with new environment