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
|
|
|
#
|
2011-05-05 00:04:02 +02:00
|
|
|
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
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.
|
|
|
|
|
2006-12-19 00:16:45 +01:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
# norootforbuild
|
|
|
|
|
2009-06-17 19:37:16 +02:00
|
|
|
|
2006-12-19 00:16:45 +01:00
|
|
|
Name: help2man
|
2011-05-05 00:04:02 +02:00
|
|
|
Version: 1.39.3
|
|
|
|
Release: 1
|
2006-12-19 00:16:45 +01:00
|
|
|
Summary: Create Simple Man Pages from --help Output
|
2011-05-05 00:04:02 +02:00
|
|
|
|
|
|
|
License: GPLv3+
|
|
|
|
Url: http://www.gnu.org/software/help2man/
|
2006-12-19 00:16:45 +01:00
|
|
|
Group: Development/Tools/Doc Generators
|
2011-05-05 00:04:02 +02:00
|
|
|
# http://ftp.gnu.org/gnu/help2man/help2man-1.39.3.tar.gz
|
|
|
|
Source0: %{name}-%{version}.tar.bz2
|
2006-12-19 00:16:45 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
|
2011-05-05 00:04:02 +02:00
|
|
|
BuildRequires: perl-gettext
|
|
|
|
Requires: perl-gettext
|
|
|
|
Requires(post): info
|
|
|
|
Requires(preun): info
|
|
|
|
|
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.
|
|
|
|
|
|
|
|
%prep
|
2009-10-20 12:39:54 +02:00
|
|
|
%setup -q
|
2006-12-19 00:16:45 +01:00
|
|
|
|
|
|
|
%build
|
2010-11-11 11:57:35 +01:00
|
|
|
export CFLAGS="%{optflags} -ggdb"
|
|
|
|
export CXXFLAGS="%{optflags} -ggdb"
|
2011-05-05 00:04:02 +02:00
|
|
|
%configure
|
2010-11-02 10:15:50 +01:00
|
|
|
%{__make} %{?_smp_mflags}
|
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
|
|
|
|
|
|
|
%clean
|
2011-05-05 00:04:02 +02:00
|
|
|
rm -rf %{buildroot}
|
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}
|
|
|
|
|
|
|
|
%preun
|
|
|
|
%install_info_delete --info-dir=%{_infodir} %{_infodir}/help2man.info%{ext_info}
|
|
|
|
|
|
|
|
%files -f %{name}.lang
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc COPYING NEWS README THANKS
|
|
|
|
%{_bindir}/help2man
|
|
|
|
%{_libdir}/help2man/
|
|
|
|
%doc %{_infodir}/help2man.info%{ext_info}
|
|
|
|
%doc %{_mandir}/man1/help2man.1%{ext_man}
|
2006-12-19 00:16:45 +01:00
|
|
|
%dir %{_mandir}/??
|
|
|
|
%dir %{_mandir}/??/man1
|
|
|
|
|
2009-06-17 19:37:16 +02:00
|
|
|
%changelog
|