Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37414943
en ru br
ALT Linux repos
S:1.48.5-alt1
5.0: 1.36.4-alt2
4.1: 1.36.4-alt2
4.0: 1.36.4-alt2
3.0: 1.35.1-alt1

Group :: Development/Other
RPM: help2man

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Name: help2man
Version: 1.36.4
Release: alt2

Summary: help2man creates simple man pages from the output of programs
License: GPL
Group: Development/Other
Url: http://www.gnu.org/software/help2man/
Packager: Dmitry V. Levin <ldv at altlinux.org>

%def_enable nls

# NLS support makes whole package arch-specific.

%{?!_enable_nls:BuildArch: noarch}

# ftp://ftp.gnu.org/gnu/help2man/help2man-%version.tar.gz

Source: help2man-%version.tar

Patch1: help2man-1.35.1-alt-texinfo.patch
Patch2: help2man-1.35.1-alt-runas.patch

Requires(post): %install_info
Requires(preun): %uninstall_info
Requires: coreutils

%if_enabled nls
%define lib_suffix %nil
%{expand:%%define lib_suffix %(test %_lib != lib64 && echo %%nil || echo '()(64bit)')}
Requires: preloadable_libintl.so%lib_suffix
BuildRequires: perl-Locale-gettext
%endif

%description
help2man is a tool for automatically generating simple manual
pages from program output.

This program is intended to provide an easy way for software authors
to include a manual page in their distribution without having to
maintain that document.

Given a program which produces reasonably standard --help and
--version outputs, help2man can re-arrange that output into
something which resembles a manual page.

%prep
%setup -q
%patch1 -p1
%patch2 -p1
install -pm644 debian/README README.example

%build
%{?_enable_nls:test -r %_libdir/preloadable_libintl.so}
%configure %{subst_enable nls}
%make_build

%install
%makeinstall
%find_lang --with-man help2man

%post
%install_info help2man.info

%preun
%uninstall_info help2man.info

%files -f help2man.lang
%if_enabled nls
%_libdir/*
%endif
%_bindir/*
%_infodir/*.info*
%doc ChangeLog NEWS README* THANKS help2man.h2m

%changelog

Full changelog you can see here

 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin