62 lines
1.5 KiB
RPMSpec
62 lines
1.5 KiB
RPMSpec
Name: help2man
|
|
Summary: Create simple man pages from --help output
|
|
Version: 1.35.1
|
|
Release: 2%{?dist}
|
|
Group: Development/Tools
|
|
License: GPL
|
|
URL: http://www.gnu.org/software/help2man
|
|
Source: ftp://ftp.gnu.org/gnu/help2man/help2man-%{version}.tar.gz
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
BuildArch: noarch
|
|
|
|
Requires(post): /sbin/install-info
|
|
Requires(preun): /sbin/install-info
|
|
|
|
%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 -n help2man-%{version}
|
|
|
|
%build
|
|
# --enable-nls would require perl(Locale::gettext)
|
|
%configure --disable-nls
|
|
make
|
|
|
|
%install
|
|
rm -fr $RPM_BUILD_ROOT
|
|
make install DESTDIR=$RPM_BUILD_ROOT
|
|
|
|
%clean
|
|
rm -fr $RPM_BUILD_ROOT
|
|
|
|
%post
|
|
/sbin/install-info %{_infodir}/help2man.info %{_infodir}/dir 2>/dev/null || :
|
|
|
|
%preun
|
|
if [ $1 -eq 0 ]; then
|
|
/sbin/install-info --delete %{_infodir}/help2man.info \
|
|
%{_infodir}/dir 2>/dev/null || :
|
|
fi
|
|
|
|
%files
|
|
%defattr(-, root, root)
|
|
%doc README NEWS THANKS
|
|
%{_bindir}/help2man
|
|
%{_infodir}/*
|
|
%{_mandir}/man1/*
|
|
|
|
%changelog
|
|
* Fri Dec 23 2005 Ralf Corsépius <rc04203@freenet.de> - 1.35.1-2
|
|
- Fix disttag (#176473).
|
|
- Cleanup spec.
|
|
|
|
* Fri Apr 29 2005 Ralf Corsepius <ralf[AT]links2linux.de> - 1.35.1-1
|
|
- Update to 1.35.1
|
|
- Minor spec fixes.
|