[libabw] generate man pages for the tools

David Tardon dtardon at fedoraproject.org
Mon Feb 10 17:11:11 UTC 2014


commit e431ffbda1c8adb77449a65386c7d53484a61092
Author: David Tardon <dtardon at redhat.com>
Date:   Mon Feb 10 18:10:29 2014 +0100

    generate man pages for the tools

 libabw.spec |   13 +++++++++++++
 1 files changed, 13 insertions(+), 0 deletions(-)
---
diff --git a/libabw.spec b/libabw.spec
index 3cd9938..cd475fa 100644
--- a/libabw.spec
+++ b/libabw.spec
@@ -13,6 +13,7 @@ Source: http://dev-www.libreoffice.org/src/%{name}-%{version}.tar.xz
 BuildRequires: boost-devel
 BuildRequires: doxygen
 BuildRequires: gperf
+BuildRequires: help2man
 BuildRequires: libwpd-devel
 BuildRequires: libxml2-devel
 
@@ -56,12 +57,20 @@ sed -i \
     libtool
 make %{?_smp_mflags}
 
+export LD_LIBRARY_PATH=`pwd`/src/lib${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
+help2man -N -n 'debug the conversion library' -o abw2raw.1 ./src/conv/raw/abw2raw
+help2man -N -n 'convert AbiWord document into HTML' -o abw2html.1 ./src/conv/html/abw2html
+help2man -N -n 'convert AbiWord document into plain text' -o abw2text.1 ./src/conv/text/abw2text
+
 %install
 make install DESTDIR=%{buildroot}
 rm -f %{buildroot}/%{_libdir}/*.la
 # we install API docs directly from build
 rm -rf %{buildroot}/%{_docdir}/%{name}
 
+mkdir -p %{buildroot}/%{_mandir}/man1
+install -m 0644 abw2*.1 %{buildroot}/%{_mandir}/man1
+
 %post -p /sbin/ldconfig
 
 %postun -p /sbin/ldconfig
@@ -84,10 +93,14 @@ rm -rf %{buildroot}/%{_docdir}/%{name}
 %{_bindir}/abw2raw
 %{_bindir}/abw2text
 %{_bindir}/abw2html
+%{_mandir}/man1/abw2raw.1*
+%{_mandir}/man1/abw2text.1*
+%{_mandir}/man1/abw2html.1*
 
 %changelog
 * Mon Feb 10 2014 David Tardon <dtardon at redhat.com> - 0.0.2-1
 - new upstream release 0.0.2
+- generate man pages for the tools
 
 * Wed Jan 15 2014 David Tardon <dtardon at redhat.com> - 0.0.1-1
 - new upstream release


More information about the scm-commits mailing list