Blame SPECS/help2man.spec

439d2a
# Supported build option:
439d2a
#
439d2a
# --with nls ... build this package with --enable-nls 
439d2a
439d2a
Name:           help2man
439d2a
Summary:        Create simple man pages from --help output
439d2a
Version:        1.41.1
439d2a
Release:        2%{?dist}
439d2a
Group:          Development/Tools
439d2a
License:        GPLv3+
439d2a
URL:            http://www.gnu.org/software/help2man
439d2a
Source:         ftp://ftp.gnu.org/gnu/help2man/help2man-%{version}.tar.gz
439d2a
439d2a
%bcond_with nls
439d2a
439d2a
%{!?with_nls:BuildArch: noarch}
439d2a
%{?with_nls:BuildRequires: perl(Locale::gettext) /usr/bin/msgfmt}
439d2a
%{?with_nls:Requires: perl(Locale::gettext)}
439d2a
439d2a
Requires(post): /sbin/install-info
439d2a
Requires(preun): /sbin/install-info
439d2a
439d2a
%description
439d2a
help2man is a script to create simple man pages from the --help and
439d2a
--version output of programs.
439d2a
439d2a
Since most GNU documentation is now in info format, this provides a
439d2a
way to generate a placeholder man page pointing to that resource while
439d2a
still providing some useful information.
439d2a
439d2a
%prep
439d2a
%setup -q -n help2man-%{version}
439d2a
439d2a
%build
439d2a
%configure --%{!?with_nls:disable}%{?with_nls:enable}-nls --libdir=%{_libdir}/help2man
439d2a
make %{?_smp_mflags}
439d2a
439d2a
%install
439d2a
make install_l10n DESTDIR=$RPM_BUILD_ROOT
439d2a
make install DESTDIR=$RPM_BUILD_ROOT
439d2a
%find_lang %name --with-man
439d2a
439d2a
%post
439d2a
/sbin/install-info %{_infodir}/help2man.info %{_infodir}/dir 2>/dev/null || :
439d2a
439d2a
%preun
439d2a
if [ $1 -eq 0 ]; then
439d2a
  /sbin/install-info --delete %{_infodir}/help2man.info \
439d2a
    %{_infodir}/dir 2>/dev/null || :
439d2a
fi
439d2a
439d2a
%files -f %name.lang
439d2a
%defattr(-, root, root,-)
439d2a
%doc README NEWS THANKS COPYING
439d2a
%{_bindir}/help2man
439d2a
%{_infodir}/*
439d2a
%{_mandir}/man1/*
439d2a
439d2a
%if %{with nls}
439d2a
%{_libdir}/help2man
439d2a
%endif
439d2a
439d2a
%changelog
439d2a
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.41.1-2
439d2a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
439d2a
439d2a
* Thu Jan 17 2013 Ralf Corsépius <corsepiu@fedoraproject.org> - 1.41.1-1
439d2a
- Upstream update.
439d2a
439d2a
* Thu Jan 17 2013 Ralf Corsépius <corsepiu@fedoraproject.org> - 1.40.13-1
439d2a
- Upstream update.
439d2a
- BR: /usr/bin/msgfmt if building with nls enabled.
439d2a
439d2a
* Thu Oct 04 2012 Ralf Corsépius <corsepiu@fedoraproject.org> - 1.40.12-1
439d2a
- Upstream update.
439d2a
439d2a
* Fri Jul 20 2012 Ralf Corsépius <corsepiu@fedoraproject.org> - 1.40.10-1
439d2a
- Upstream update.
439d2a
439d2a
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.40.8-2
439d2a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
439d2a
439d2a
* Thu Apr 12 2012 Ralf Corsépius <corsepiu@fedoraproject.org> - 1.40.8-1
439d2a
- Upstream update.
439d2a
439d2a
* Sat Feb 18 2012 Ralf Corsépius <corsepiu@fedoraproject.org> - 1.40.6-1
439d2a
- Upstream update.
439d2a
439d2a
* Thu Jan 05 2012 Ralf Corsépius <corsepiu@fedoraproject.org> - 1.40.5-1
439d2a
- Upstream update.
439d2a
439d2a
* Thu Dec 15 2011 Ralf Corsépius <corsepiu@fedoraproject.org> - 1.40.4-1
439d2a
- Upstream update.
439d2a
439d2a
* Wed Jun 08 2011 Ralf Corsépius <corsepiu@fedoraproject.org> - 1.40.2-1
439d2a
- Upstream update.
439d2a
439d2a
* Fri Apr 22 2011 Ralf Corsépius <corsepiu@fedoraproject.org> - 1.39.2-1
439d2a
- Upstream update.
439d2a
- Spec modernization.
439d2a
- Abandon patches (unnecessary).
439d2a
439d2a
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.38.2-2
439d2a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
439d2a
439d2a
* Fri Aug 27 2010 Ralf Corsépius <corsepiu@fedoraproject.org> - 1.38.2-1
439d2a
- Upstream update.
439d2a
- Add *-locales.diff, *-mans.diff.
439d2a
- Use %%find_lang --with-man.
439d2a
- Use %%bcond_with nls.
439d2a
439d2a
* Tue Feb 23 2010 Ondrej Vasik <ovasik@redhat.com> - 1.36.4-6
439d2a
- do ship COPYING file in %%doc
439d2a
439d2a
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.36.4-5
439d2a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
439d2a
439d2a
* Mon May 18 2009 Ralf Corsépius <corsepiu@fedoraproject.org> - 1.36.4-4
439d2a
- Apply patch from http://bugs.gentoo.org/show_bug.cgi?id=237378#c6
439d2a
  to address BZ #494089.
439d2a
439d2a
* Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.36.4-3
439d2a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
439d2a
439d2a
* Sun Feb 10 2008 Ralf Corsépius <rc040203@freenet.de> - 1.36.4-2
439d2a
- Update license tag.
439d2a
- Convert THANKS to utf-8.
439d2a
439d2a
* Tue Sep 05 2006 Ralf Corsépius <rc040203@freenet.de> - 1.36.4-1
439d2a
- Upstream update.
439d2a
- utf-8 encode l10n'd man pages.
439d2a
439d2a
* Fri Dec 23 2005 Ralf Corsépius <rc04203@freenet.de> - 1.36.3-1
439d2a
- Upstream update.
439d2a
- Add build option --with nls.
439d2a
439d2a
* Fri Dec 23 2005 Ralf Corsépius <rc04203@freenet.de> - 1.35.1-2
439d2a
- Fix disttag (#176473).
439d2a
- Cleanup spec.
439d2a
439d2a
* Fri Apr 29 2005 Ralf Corsepius <ralf[AT]links2linux.de> - 1.35.1-1
439d2a
- Update to 1.35.1
439d2a
- Minor spec fixes.