forked from pool/help2man
Update to version 1.46.1 OBS-URL: https://build.opensuse.org/request/show/244965 OBS-URL: https://build.opensuse.org/package/show/Base:System/help2man?expand=0&rev=29
70 lines
2.0 KiB
RPMSpec
70 lines
2.0 KiB
RPMSpec
#
|
|
# spec file for package help2man
|
|
#
|
|
# Copyright (c) 2014 SUSE LINUX Products 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 http://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
Name: help2man
|
|
Version: 1.46.1
|
|
Release: 0
|
|
Summary: Create Simple Man Pages from --help Output
|
|
License: GPL-3.0+
|
|
Group: Development/Tools/Doc Generators
|
|
Url: http://www.gnu.org/software/help2man/
|
|
Source0: http://ftp.gnu.org/gnu/help2man/%{name}-%{version}.tar.xz
|
|
BuildRequires: perl-gettext
|
|
Requires: perl-gettext
|
|
Requires(post): info
|
|
Requires(preun): info
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
%description
|
|
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.
|
|
|
|
%prep
|
|
%setup -q
|
|
|
|
%build
|
|
%configure --enable-nls
|
|
make %{?_smp_mflags}
|
|
|
|
%install
|
|
%make_install
|
|
|
|
%find_lang %{name} --with-man
|
|
|
|
%post
|
|
%install_info --info-dir=%{_infodir} %{_infodir}/help2man.info%{ext_info}
|
|
|
|
%preun
|
|
%install_info_delete --info-dir=%{_infodir} %{_infodir}/help2man.info%{ext_info}
|
|
|
|
%files -f %{name}.lang
|
|
%defattr(-,root,root,-)
|
|
%doc COPYING NEWS README THANKS debian/changelog
|
|
%{_bindir}/help2man
|
|
%{_libdir}/help2man/
|
|
%doc %{_infodir}/help2man*.info%{ext_info}
|
|
%doc %{_mandir}/man1/help2man.1%{ext_man}
|
|
%dir %{_mandir}/??
|
|
%dir %{_mandir}/??/man1
|
|
|
|
%changelog
|