help2man/help2man.spec

80 lines
2.1 KiB
RPMSpec

#
# spec file for package help2man (Version 1.36.4)
#
# Copyright (c) 2010 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/
#
# norootforbuild
Name: help2man
BuildRequires: perl-gettext
Url: http://www.gnu.org/software/help2man/
Summary: Create Simple Man Pages from --help Output
Version: 1.36.4
Release: 132
Group: Development/Tools/Doc Generators
License: GPLv2+
PreReq: %{install_info_prereq}
Source: help2man-%{version}.tar.gz
#Patch: help2man-%{version}.diff
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.
Authors:
--------
Brendan O'Dea <bod@debian.org>
%prep
%setup -q
#%patch
%build
%configure
%{__make} %{?_smp_mflags}
%install
make install DESTDIR=$RPM_BUILD_ROOT
%find_lang %name --with-man
%clean
rm -fr $RPM_BUILD_ROOT
%post
%install_info --info-dir=%{_infodir} %{_infodir}/help2man.info.gz
%postun
%install_info_delete --info-dir=%{_infodir} %{_infodir}/help2man.info.gz
%files -f %name.lang
%defattr(-, root, root)
%doc README NEWS THANKS
%{_prefix}/bin/help2man
%{_libdir}/hacklocaledir.so
%{_infodir}/*.gz
%{_mandir}/man1/*.gz
%dir %{_mandir}/??
%dir %{_mandir}/??/man1
%changelog