From 87cde419917289d3fda9e5218eb0fcdde1c19e4e Mon Sep 17 00:00:00 2001 From: corsepiu Date: Fri, 23 Dec 2005 09:22:01 +0000 Subject: [PATCH] - Upstream update. - Add build option --with nls. --- .cvsignore | 2 +- help2man.spec | 35 ++++++++++++++++++++++++++++------- sources | 2 +- 3 files changed, 30 insertions(+), 9 deletions(-) diff --git a/.cvsignore b/.cvsignore index 5c94a7a..117e384 100644 --- a/.cvsignore +++ b/.cvsignore @@ -1 +1 @@ -help2man-1.35.1.tar.gz +help2man-1.36.3.tar.gz diff --git a/help2man.spec b/help2man.spec index 35ee71e..b2d0258 100644 --- a/help2man.spec +++ b/help2man.spec @@ -1,13 +1,20 @@ +# Supported build option: +# +# --with nls ... build this package with --enable-nls + Name: help2man Summary: Create simple man pages from --help output -Version: 1.35.1 -Release: 2%{?dist} +Version: 1.36.3 +Release: 1%{?dist} Group: Development/Tools License: GPL URL: http://www.gnu.org/software/help2man Source: ftp://ftp.gnu.org/gnu/help2man/help2man-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) -BuildArch: noarch + +%{!?_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 @@ -24,9 +31,9 @@ still providing some useful information. %setup -n help2man-%{version} %build -# --enable-nls would require perl(Locale::gettext) - %configure --disable-nls -make + +%configure %{!?_with_nls:--disable-nls} +make %{?_smp_mflags} %install rm -fr $RPM_BUILD_ROOT @@ -45,13 +52,27 @@ if [ $1 -eq 0 ]; then fi %files -%defattr(-, root, root) +%defattr(-, root, root,-) %doc README NEWS THANKS %{_bindir}/help2man %{_infodir}/* %{_mandir}/man1/* +%if "%{?_with_nls}" +%{_libdir}/*.so +%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(pl) %{_mandir}/pl/man1/* +%lang(fi) %{_mandir}/fi/man1/* +%lang(fr) %{_mandir}/fr/man1/* +%endif + %changelog +* Fri Dec 23 2005 Ralf Corsépius - 1.36.3-1 +- Upstream update. +- Add build option --with nls. + * Fri Dec 23 2005 Ralf Corsépius - 1.35.1-2 - Fix disttag (#176473). - Cleanup spec. diff --git a/sources b/sources index e6fed7b..f7f4d30 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -e3c9e846dd163eb7f1d1661e2d0baa07 help2man-1.35.1.tar.gz +4b5f1609d22a6a0aacbeb5eaf08ad2b1 help2man-1.36.3.tar.gz