2006-12-19 00:16:45 +01:00
|
|
|
#
|
2011-05-05 00:04:02 +02:00
|
|
|
# spec file for package help2man
|
2006-12-19 00:16:45 +01:00
|
|
|
#
|
2020-03-28 23:55:36 +01:00
|
|
|
# Copyright (c) 2020 SUSE LLC
|
2006-12-19 00:16:45 +01:00
|
|
|
#
|
2009-06-17 19:37:16 +02:00
|
|
|
# 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.
|
|
|
|
|
2019-06-29 20:23:32 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2006-12-19 00:16:45 +01:00
|
|
|
#
|
|
|
|
|
2012-03-25 20:25:17 +02:00
|
|
|
|
2006-12-19 00:16:45 +01:00
|
|
|
Name: help2man
|
2020-07-06 10:06:20 +02:00
|
|
|
Version: 1.47.16
|
2012-01-08 22:44:08 +01:00
|
|
|
Release: 0
|
2019-08-28 20:48:29 +02:00
|
|
|
Summary: Script for generating man pages from --help output
|
2018-10-04 09:41:39 +02:00
|
|
|
License: GPL-3.0-or-later
|
2006-12-19 00:16:45 +01:00
|
|
|
Group: Development/Tools/Doc Generators
|
2018-10-04 09:41:39 +02:00
|
|
|
URL: https://www.gnu.org/software/help2man/
|
2016-05-13 10:09:51 +02:00
|
|
|
Source0: https://ftp.gnu.org/gnu/help2man/%{name}-%{version}.tar.xz
|
2019-06-29 20:23:32 +02:00
|
|
|
Source1: https://ftp.gnu.org/gnu/help2man/%{name}-%{version}.tar.xz.sig
|
2019-07-09 23:28:00 +02:00
|
|
|
Source2: %{name}.keyring
|
2011-05-05 00:04:02 +02:00
|
|
|
BuildRequires: perl-gettext
|
|
|
|
Requires: perl-gettext
|
|
|
|
Requires(post): info
|
|
|
|
Requires(preun): info
|
2019-06-29 20:23:32 +02:00
|
|
|
Recommends: %{name}-lang
|
2011-05-05 00:04:02 +02:00
|
|
|
|
2006-12-19 00:16:45 +01:00
|
|
|
%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.
|
|
|
|
|
2019-06-29 20:23:32 +02:00
|
|
|
%lang_package
|
|
|
|
|
2006-12-19 00:16:45 +01:00
|
|
|
%prep
|
2009-10-20 12:39:54 +02:00
|
|
|
%setup -q
|
2006-12-19 00:16:45 +01:00
|
|
|
|
|
|
|
%build
|
2015-05-11 20:26:08 +02:00
|
|
|
%configure \
|
|
|
|
--enable-nls
|
2020-03-28 23:55:36 +01:00
|
|
|
%make_build
|
2006-12-19 00:16:45 +01:00
|
|
|
|
|
|
|
%install
|
2011-05-05 00:04:02 +02:00
|
|
|
%make_install
|
|
|
|
|
|
|
|
%find_lang %{name} --with-man
|
2006-12-19 00:16:45 +01:00
|
|
|
|
|
|
|
%post
|
2011-05-05 00:04:02 +02:00
|
|
|
%install_info --info-dir=%{_infodir} %{_infodir}/help2man.info%{ext_info}
|
|
|
|
|
2019-06-29 20:23:32 +02:00
|
|
|
%post -n %{name}-lang
|
|
|
|
%install_info --info-dir=%{_infodir} %{_infodir}/help2man.info%{ext_info}
|
|
|
|
|
2011-05-05 00:04:02 +02:00
|
|
|
%preun
|
|
|
|
%install_info_delete --info-dir=%{_infodir} %{_infodir}/help2man.info%{ext_info}
|
|
|
|
|
2019-06-29 20:23:32 +02:00
|
|
|
%preun -n %{name}-lang
|
|
|
|
%install_info_delete --info-dir=%{_infodir} %{_infodir}/help2man.info%{ext_info}
|
|
|
|
|
|
|
|
%files
|
2018-10-04 09:41:39 +02:00
|
|
|
%license COPYING
|
|
|
|
%doc NEWS README THANKS debian/changelog
|
2011-05-05 00:04:02 +02:00
|
|
|
%{_bindir}/help2man
|
|
|
|
%{_libdir}/help2man/
|
2019-06-29 20:23:32 +02:00
|
|
|
%{_infodir}/help2man.info%{?ext_info}
|
2018-10-04 09:41:39 +02:00
|
|
|
%{_mandir}/man1/help2man.1%{?ext_man}
|
2019-06-29 20:23:32 +02:00
|
|
|
|
|
|
|
%files lang -f %{name}.lang
|
|
|
|
%{_infodir}/help2man-*.info%{?ext_info}
|
2006-12-19 00:16:45 +01:00
|
|
|
%dir %{_mandir}/??
|
|
|
|
%dir %{_mandir}/??/man1
|
|
|
|
|
2009-06-17 19:37:16 +02:00
|
|
|
%changelog
|