File help2man.spec of Package help2man

# spec file for package help2man
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via

Name:           help2man
Version:        1.47.5
Release:        0
Summary:        Create Simple Man Pages from --help Output
License:        GPL-3.0+
Group:          Development/Tools/Doc Generators
BuildRequires:  perl-gettext
Requires:       perl-gettext
Requires(post): info
Requires(preun): info
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

help2man is a script to create simple man pages from the --help and
--version output of programs.

Since most GNU documentation is now in info format, this provides a way
to generate a placeholder man page pointing to that resource while
still providing some useful information.

%setup -q

%configure \
make %{?_smp_mflags}


%find_lang %{name} --with-man

%install_info --info-dir=%{_infodir} %{_infodir}/{ext_info}

%install_info_delete --info-dir=%{_infodir} %{_infodir}/{ext_info}

%files -f %{name}.lang
%doc COPYING NEWS README THANKS debian/changelog
%dir %{_mandir}/??
%dir %{_mandir}/??/man1

openSUSE Build Service is sponsored by