File help2man.spec of Package help2man

#
# spec file for package help2man (Version 1.36.4)
#
# Copyright (c) 2006 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# 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:        1
Group:          Development/Tools/Doc Generators
License:        GPL
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
#%patch

%build
CFLAGS="$RPM_OPT_FLAGS" \
./configure --prefix=%{_prefix} --libdir=%{_libdir} \
	    --infodir=%{_infodir} --mandir=%{_mandir}
make

%install
make install DESTDIR=$RPM_BUILD_ROOT
%find_lang %name

%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
%{_mandir}/??/man1/*.gz

%changelog -n help2man
* Mon May 15 2006 - schwab@suse.de
- Update to help2man 1.36.4.
  * Add sv translation from Daniel Nylander (closes: #349568).
  * Updated fr translation from Denis Barbier (closes: #338995).
* Wed Jan 25 2006 - mls@suse.de
- converted neededforbuild to BuildRequires
* Wed Nov 02 2005 - schwab@suse.de
- Update to help2man 1.36.2.
* Mon Oct 17 2005 - schwab@suse.de
- Update to help2man 1.36.1.
* Wed Oct 05 2005 - schwab@suse.de
- Update to help2man 1.35.2.
* Thu Sep 29 2005 - dmueller@suse.de
- add norootforbuild
* Fri Nov 26 2004 - schwab@suse.de
- Update to help2man 1.35.1.
* Wed Nov 24 2004 - schwab@suse.de
- Update to help2man 1.34.2.
* Mon Jul 21 2003 - schwab@suse.de
- Update to help2man 1.33.1.
* Thu Jul 10 2003 - schwab@suse.de
- Compile shared library with -fPIC.
* Thu Jul 10 2003 - schwab@suse.de
- Update to help2man 1.31.1.
- Not noarch any more.
* Thu Apr 24 2003 - ro@suse.de
- fix install_info --delete call and move from preun to postun
* Mon Apr 07 2003 - schwab@suse.de
- Only delete info entries when removing last version.
* Thu Feb 06 2003 - schwab@suse.de
- Use %%install_info.
* Tue Sep 17 2002 - schwab@suse.de
- Update to help2man 1.29.
* Tue Jun 04 2002 - schwab@suse.de
- Update to version 1.28.
  * New option --info-page.
* Mon Mar 11 2002 - schwab@suse.de
- Initial version 1.27.
openSUSE Build Service is sponsored by