Sisyphus repository
Last update: 23 february 2019 | SRPMs: 18409 | Visits: 13069770
en ru br
ALT Linux repos
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.47.8
Release: alt1

Summary: help2man creates simple man pages from the output of programs
License: GPLv3+
Group: Development/Other

%def_enable nls

# NLS support makes whole package arch-specific.

%{?!_enable_nls:BuildArch: noarch}


Source: help2man-%version.tar
Patch: help2man-1.40.4-alt-runas.patch

Requires: coreutils

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

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.

%patch -p1
install -pm644 debian/README README.example
sed -i '1i .\\" -*- mode: troff; coding: utf8 -*-' help2man.*.1

%{?_enable_nls:test -r %_libdir/}
%configure %{subst_enable nls}

%find_lang --with-man help2man

%files -f help2man.lang
%if_enabled nls
%doc ChangeLog NEWS README* THANKS help2man.h2m


Full changelog you can see here

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